[2024-12-30 00:00:05] Production.INFO: next invoice date [2024-12-30 00:00:05] Production.INFO: 2025-01-30 [2024-12-30 00:00:05] Production.INFO: getdaysdiff [2024-12-30 00:00:05] Production.INFO: +31 [2024-12-30 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (205,11,1,31,31,'RMScheduler',2024-12-30 00:00:05,0,0,,,0) [2024-12-30 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:00:06 [end_date_ymd] => 2024-12-30 00:00:06 [RateCDR] => 1 ) [2024-12-30 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-29 21:00:06' and `end` < '2024-12-30 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-30 00:00:20] Production.INFO: count ==648 [2024-12-30 00:00:20] Production.ERROR: pbx CDR StartTime 2024-12-29 21:00:06 - End Time 2024-12-30 00:00:06 [2024-12-30 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132393', 'tblTempUsageDetail_20' ) start [2024-12-30 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132393', 'tblTempUsageDetail_20' ) end [2024-12-30 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132393', 'tblTempVendorCDR_20' ) start [2024-12-30 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132393', 'tblTempVendorCDR_20' ) end [2024-12-30 00:00:20] Production.INFO: ProcessCDR(1,14132393,1,1,2) [2024-12-30 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132393', 'tblTempUsageDetail_20' ) start [2024-12-30 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132393', 'tblTempUsageDetail_20' ) end [2024-12-30 00:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:00:25] Production.INFO: ==22049== Releasing lock... [2024-12-30 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:00:25] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:01:05 [end_date_ymd] => 2024-12-30 00:01:05 [RateCDR] => 1 ) [2024-12-30 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:01:05' and `end` < '2024-12-30 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:01:24] Production.INFO: count ==585 [2024-12-30 00:01:24] Production.ERROR: pbx CDR StartTime 2024-12-29 21:01:05 - End Time 2024-12-30 00:01:05 [2024-12-30 00:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132396', 'tblTempUsageDetail_20' ) start [2024-12-30 00:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132396', 'tblTempUsageDetail_20' ) end [2024-12-30 00:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132396', 'tblTempVendorCDR_20' ) start [2024-12-30 00:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132396', 'tblTempVendorCDR_20' ) end [2024-12-30 00:01:24] Production.INFO: ProcessCDR(1,14132396,1,1,2) [2024-12-30 00:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132396', 'tblTempUsageDetail_20' ) start [2024-12-30 00:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132396', 'tblTempUsageDetail_20' ) end [2024-12-30 00:01:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:01:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:01:27] Production.INFO: ==22190== Releasing lock... [2024-12-30 00:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:01:27] Production.INFO: 32 MB #Memory Used# [2024-12-30 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:02:05 [end_date_ymd] => 2024-12-30 00:02:05 [RateCDR] => 1 ) [2024-12-30 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:02:05' and `end` < '2024-12-30 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:02:18] Production.INFO: count ==162 [2024-12-30 00:02:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:02:05 - End Time 2024-12-30 00:02:05 [2024-12-30 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132403', 'tblTempUsageDetail_20' ) start [2024-12-30 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132403', 'tblTempUsageDetail_20' ) end [2024-12-30 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132403', 'tblTempVendorCDR_20' ) start [2024-12-30 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132403', 'tblTempVendorCDR_20' ) end [2024-12-30 00:02:18] Production.INFO: ProcessCDR(1,14132403,1,1,2) [2024-12-30 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132403', 'tblTempUsageDetail_20' ) start [2024-12-30 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132403', 'tblTempUsageDetail_20' ) end [2024-12-30 00:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:02:22] Production.INFO: ==22303== Releasing lock... [2024-12-30 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:02:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:03:05 [end_date_ymd] => 2024-12-30 00:03:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:03:05' and `end` < '2024-12-30 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-30 00:03:18] Production.INFO: count ==162 [2024-12-30 00:03:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:03:05 - End Time 2024-12-30 00:03:05 [2024-12-30 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132408', 'tblTempUsageDetail_20' ) start [2024-12-30 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132408', 'tblTempUsageDetail_20' ) end [2024-12-30 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132408', 'tblTempVendorCDR_20' ) start [2024-12-30 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132408', 'tblTempVendorCDR_20' ) end [2024-12-30 00:03:18] Production.INFO: ProcessCDR(1,14132408,1,1,2) [2024-12-30 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132408', 'tblTempUsageDetail_20' ) start [2024-12-30 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132408', 'tblTempUsageDetail_20' ) end [2024-12-30 00:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:03:21] Production.INFO: ==22416== Releasing lock... [2024-12-30 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:03:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:04:05 [end_date_ymd] => 2024-12-30 00:04:05 [RateCDR] => 1 ) [2024-12-30 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:04:05' and `end` < '2024-12-30 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:04:18] Production.INFO: count ==162 [2024-12-30 00:04:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:04:05 - End Time 2024-12-30 00:04:05 [2024-12-30 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132413', 'tblTempUsageDetail_20' ) start [2024-12-30 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132413', 'tblTempUsageDetail_20' ) end [2024-12-30 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132413', 'tblTempVendorCDR_20' ) start [2024-12-30 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132413', 'tblTempVendorCDR_20' ) end [2024-12-30 00:04:18] Production.INFO: ProcessCDR(1,14132413,1,1,2) [2024-12-30 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132413', 'tblTempUsageDetail_20' ) start [2024-12-30 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132413', 'tblTempUsageDetail_20' ) end [2024-12-30 00:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:04:21] Production.INFO: ==22534== Releasing lock... [2024-12-30 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:04:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:05:05 [end_date_ymd] => 2024-12-30 00:05:05 [RateCDR] => 1 ) [2024-12-30 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:05:05' and `end` < '2024-12-30 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:05:18] Production.INFO: count ==164 [2024-12-30 00:05:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:05:05 - End Time 2024-12-30 00:05:05 [2024-12-30 00:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132418', 'tblTempUsageDetail_20' ) start [2024-12-30 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132418', 'tblTempUsageDetail_20' ) end [2024-12-30 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132418', 'tblTempVendorCDR_20' ) start [2024-12-30 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132418', 'tblTempVendorCDR_20' ) end [2024-12-30 00:05:18] Production.INFO: ProcessCDR(1,14132418,1,1,2) [2024-12-30 00:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132418', 'tblTempUsageDetail_20' ) start [2024-12-30 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132418', 'tblTempUsageDetail_20' ) end [2024-12-30 00:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:05:21] Production.INFO: ==22657== Releasing lock... [2024-12-30 00:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:05:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:06:05 [end_date_ymd] => 2024-12-30 00:06:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:06:05' and `end` < '2024-12-30 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-30 00:06:17] Production.INFO: count ==163 [2024-12-30 00:06:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:06:05 - End Time 2024-12-30 00:06:05 [2024-12-30 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132423', 'tblTempUsageDetail_20' ) start [2024-12-30 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132423', 'tblTempUsageDetail_20' ) end [2024-12-30 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132423', 'tblTempVendorCDR_20' ) start [2024-12-30 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132423', 'tblTempVendorCDR_20' ) end [2024-12-30 00:06:18] Production.INFO: ProcessCDR(1,14132423,1,1,2) [2024-12-30 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132423', 'tblTempUsageDetail_20' ) start [2024-12-30 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132423', 'tblTempUsageDetail_20' ) end [2024-12-30 00:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:06:21] Production.INFO: ==22783== Releasing lock... [2024-12-30 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:06:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:07:05 [end_date_ymd] => 2024-12-30 00:07:05 [RateCDR] => 1 ) [2024-12-30 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:07:05' and `end` < '2024-12-30 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:07:18] Production.INFO: count ==164 [2024-12-30 00:07:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:07:05 - End Time 2024-12-30 00:07:05 [2024-12-30 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132428', 'tblTempUsageDetail_20' ) start [2024-12-30 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132428', 'tblTempUsageDetail_20' ) end [2024-12-30 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132428', 'tblTempVendorCDR_20' ) start [2024-12-30 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132428', 'tblTempVendorCDR_20' ) end [2024-12-30 00:07:18] Production.INFO: ProcessCDR(1,14132428,1,1,2) [2024-12-30 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132428', 'tblTempUsageDetail_20' ) start [2024-12-30 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132428', 'tblTempUsageDetail_20' ) end [2024-12-30 00:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:07:22] Production.INFO: ==22909== Releasing lock... [2024-12-30 00:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:07:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:08:05 [end_date_ymd] => 2024-12-30 00:08:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:08:05' and `end` < '2024-12-30 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-30 00:08:18] Production.INFO: count ==163 [2024-12-30 00:08:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:08:05 - End Time 2024-12-30 00:08:05 [2024-12-30 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132433', 'tblTempUsageDetail_20' ) start [2024-12-30 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132433', 'tblTempUsageDetail_20' ) end [2024-12-30 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132433', 'tblTempVendorCDR_20' ) start [2024-12-30 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132433', 'tblTempVendorCDR_20' ) end [2024-12-30 00:08:18] Production.INFO: ProcessCDR(1,14132433,1,1,2) [2024-12-30 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132433', 'tblTempUsageDetail_20' ) start [2024-12-30 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132433', 'tblTempUsageDetail_20' ) end [2024-12-30 00:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:08:21] Production.INFO: ==23036== Releasing lock... [2024-12-30 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:08:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:09:05 [end_date_ymd] => 2024-12-30 00:09:05 [RateCDR] => 1 ) [2024-12-30 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:09:05' and `end` < '2024-12-30 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:09:17] Production.INFO: count ==163 [2024-12-30 00:09:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:09:05 - End Time 2024-12-30 00:09:05 [2024-12-30 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132438', 'tblTempUsageDetail_20' ) start [2024-12-30 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132438', 'tblTempUsageDetail_20' ) end [2024-12-30 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132438', 'tblTempVendorCDR_20' ) start [2024-12-30 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132438', 'tblTempVendorCDR_20' ) end [2024-12-30 00:09:18] Production.INFO: ProcessCDR(1,14132438,1,1,2) [2024-12-30 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132438', 'tblTempUsageDetail_20' ) start [2024-12-30 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132438', 'tblTempUsageDetail_20' ) end [2024-12-30 00:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:09:21] Production.INFO: ==23162== Releasing lock... [2024-12-30 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:09:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:10:06 [end_date_ymd] => 2024-12-30 00:10:06 [RateCDR] => 1 ) [2024-12-30 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:10:06' and `end` < '2024-12-30 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:10:18] Production.INFO: count ==167 [2024-12-30 00:10:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:10:06 - End Time 2024-12-30 00:10:06 [2024-12-30 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132444', 'tblTempUsageDetail_20' ) start [2024-12-30 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132444', 'tblTempUsageDetail_20' ) end [2024-12-30 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132444', 'tblTempVendorCDR_20' ) start [2024-12-30 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132444', 'tblTempVendorCDR_20' ) end [2024-12-30 00:10:18] Production.INFO: ProcessCDR(1,14132444,1,1,2) [2024-12-30 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132444', 'tblTempUsageDetail_20' ) start [2024-12-30 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132444', 'tblTempUsageDetail_20' ) end [2024-12-30 00:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:10:21] Production.INFO: ==23292== Releasing lock... [2024-12-30 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:10:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:11:04 [end_date_ymd] => 2024-12-30 00:11:04 [RateCDR] => 1 ) [2024-12-30 00: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-29 21:11:04' and `end` < '2024-12-30 00: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-30 00:11:17] Production.INFO: count ==166 [2024-12-30 00:11:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:11:04 - End Time 2024-12-30 00:11:04 [2024-12-30 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132449', 'tblTempUsageDetail_20' ) start [2024-12-30 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132449', 'tblTempUsageDetail_20' ) end [2024-12-30 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132449', 'tblTempVendorCDR_20' ) start [2024-12-30 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132449', 'tblTempVendorCDR_20' ) end [2024-12-30 00:11:17] Production.INFO: ProcessCDR(1,14132449,1,1,2) [2024-12-30 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132449', 'tblTempUsageDetail_20' ) start [2024-12-30 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132449', 'tblTempUsageDetail_20' ) end [2024-12-30 00:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:11:20] Production.INFO: ==23423== Releasing lock... [2024-12-30 00:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:11:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:12:05 [end_date_ymd] => 2024-12-30 00:12:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:12:05' and `end` < '2024-12-30 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-30 00:12:17] Production.INFO: count ==163 [2024-12-30 00:12:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:12:05 - End Time 2024-12-30 00:12:05 [2024-12-30 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132454', 'tblTempUsageDetail_20' ) start [2024-12-30 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132454', 'tblTempUsageDetail_20' ) end [2024-12-30 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132454', 'tblTempVendorCDR_20' ) start [2024-12-30 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132454', 'tblTempVendorCDR_20' ) end [2024-12-30 00:12:17] Production.INFO: ProcessCDR(1,14132454,1,1,2) [2024-12-30 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132454', 'tblTempUsageDetail_20' ) start [2024-12-30 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132454', 'tblTempUsageDetail_20' ) end [2024-12-30 00:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:12:20] Production.INFO: ==23557== Releasing lock... [2024-12-30 00:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:12:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:13:04 [end_date_ymd] => 2024-12-30 00:13:04 [RateCDR] => 1 ) [2024-12-30 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-29 21:13:04' and `end` < '2024-12-30 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-30 00:13:17] Production.INFO: count ==163 [2024-12-30 00:13:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:13:04 - End Time 2024-12-30 00:13:04 [2024-12-30 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132459', 'tblTempUsageDetail_20' ) start [2024-12-30 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132459', 'tblTempUsageDetail_20' ) end [2024-12-30 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132459', 'tblTempVendorCDR_20' ) start [2024-12-30 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132459', 'tblTempVendorCDR_20' ) end [2024-12-30 00:13:17] Production.INFO: ProcessCDR(1,14132459,1,1,2) [2024-12-30 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132459', 'tblTempUsageDetail_20' ) start [2024-12-30 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132459', 'tblTempUsageDetail_20' ) end [2024-12-30 00:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:13:20] Production.INFO: ==23726== Releasing lock... [2024-12-30 00:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:13:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:14:05 [end_date_ymd] => 2024-12-30 00:14:05 [RateCDR] => 1 ) [2024-12-30 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:14:05' and `end` < '2024-12-30 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:14:18] Production.INFO: count ==161 [2024-12-30 00:14:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:14:05 - End Time 2024-12-30 00:14:05 [2024-12-30 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132464', 'tblTempUsageDetail_20' ) start [2024-12-30 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132464', 'tblTempUsageDetail_20' ) end [2024-12-30 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132464', 'tblTempVendorCDR_20' ) start [2024-12-30 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132464', 'tblTempVendorCDR_20' ) end [2024-12-30 00:14:18] Production.INFO: ProcessCDR(1,14132464,1,1,2) [2024-12-30 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132464', 'tblTempUsageDetail_20' ) start [2024-12-30 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132464', 'tblTempUsageDetail_20' ) end [2024-12-30 00:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:14:21] Production.INFO: ==23867== Releasing lock... [2024-12-30 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:14:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:15:05 [end_date_ymd] => 2024-12-30 00:15:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:15:05' and `end` < '2024-12-30 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-30 00:15:18] Production.INFO: count ==159 [2024-12-30 00:15:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:15:05 - End Time 2024-12-30 00:15:05 [2024-12-30 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132469', 'tblTempUsageDetail_20' ) start [2024-12-30 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132469', 'tblTempUsageDetail_20' ) end [2024-12-30 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132469', 'tblTempVendorCDR_20' ) start [2024-12-30 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132469', 'tblTempVendorCDR_20' ) end [2024-12-30 00:15:18] Production.INFO: ProcessCDR(1,14132469,1,1,2) [2024-12-30 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132469', 'tblTempUsageDetail_20' ) start [2024-12-30 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132469', 'tblTempUsageDetail_20' ) end [2024-12-30 00:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:15:21] Production.INFO: ==24001== Releasing lock... [2024-12-30 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:15:21] Production.INFO: 30 MB #Memory Used# [2024-12-30 00:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:16:04 [end_date_ymd] => 2024-12-30 00:16:04 [RateCDR] => 1 ) [2024-12-30 00: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-29 21:16:04' and `end` < '2024-12-30 00: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-30 00:16:17] Production.INFO: count ==159 [2024-12-30 00:16:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:16:04 - End Time 2024-12-30 00:16:04 [2024-12-30 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132474', 'tblTempUsageDetail_20' ) start [2024-12-30 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132474', 'tblTempUsageDetail_20' ) end [2024-12-30 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132474', 'tblTempVendorCDR_20' ) start [2024-12-30 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132474', 'tblTempVendorCDR_20' ) end [2024-12-30 00:16:17] Production.INFO: ProcessCDR(1,14132474,1,1,2) [2024-12-30 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132474', 'tblTempUsageDetail_20' ) start [2024-12-30 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132474', 'tblTempUsageDetail_20' ) end [2024-12-30 00:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:16:20] Production.INFO: ==24132== Releasing lock... [2024-12-30 00:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:16:20] Production.INFO: 30 MB #Memory Used# [2024-12-30 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:17:05 [end_date_ymd] => 2024-12-30 00:17:05 [RateCDR] => 1 ) [2024-12-30 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:17:05' and `end` < '2024-12-30 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:17:17] Production.INFO: count ==162 [2024-12-30 00:17:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:17:05 - End Time 2024-12-30 00:17:05 [2024-12-30 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132479', 'tblTempUsageDetail_20' ) start [2024-12-30 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132479', 'tblTempUsageDetail_20' ) end [2024-12-30 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132479', 'tblTempVendorCDR_20' ) start [2024-12-30 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132479', 'tblTempVendorCDR_20' ) end [2024-12-30 00:17:17] Production.INFO: ProcessCDR(1,14132479,1,1,2) [2024-12-30 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132479', 'tblTempUsageDetail_20' ) start [2024-12-30 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132479', 'tblTempUsageDetail_20' ) end [2024-12-30 00:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:17:20] Production.INFO: ==24273== Releasing lock... [2024-12-30 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:17:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:18:05 [end_date_ymd] => 2024-12-30 00:18:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:18:05' and `end` < '2024-12-30 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-30 00:18:18] Production.INFO: count ==162 [2024-12-30 00:18:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:18:05 - End Time 2024-12-30 00:18:05 [2024-12-30 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132484', 'tblTempUsageDetail_20' ) start [2024-12-30 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132484', 'tblTempUsageDetail_20' ) end [2024-12-30 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132484', 'tblTempVendorCDR_20' ) start [2024-12-30 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132484', 'tblTempVendorCDR_20' ) end [2024-12-30 00:18:18] Production.INFO: ProcessCDR(1,14132484,1,1,2) [2024-12-30 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132484', 'tblTempUsageDetail_20' ) start [2024-12-30 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132484', 'tblTempUsageDetail_20' ) end [2024-12-30 00:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:18:21] Production.INFO: ==24397== Releasing lock... [2024-12-30 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:18:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:19:05 [end_date_ymd] => 2024-12-30 00:19:05 [RateCDR] => 1 ) [2024-12-30 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:19:05' and `end` < '2024-12-30 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:19:17] Production.INFO: count ==165 [2024-12-30 00:19:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:19:05 - End Time 2024-12-30 00:19:05 [2024-12-30 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132489', 'tblTempUsageDetail_20' ) start [2024-12-30 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132489', 'tblTempUsageDetail_20' ) end [2024-12-30 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132489', 'tblTempVendorCDR_20' ) start [2024-12-30 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132489', 'tblTempVendorCDR_20' ) end [2024-12-30 00:19:17] Production.INFO: ProcessCDR(1,14132489,1,1,2) [2024-12-30 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132489', 'tblTempUsageDetail_20' ) start [2024-12-30 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132489', 'tblTempUsageDetail_20' ) end [2024-12-30 00:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:19:20] Production.INFO: ==24528== Releasing lock... [2024-12-30 00:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:19:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:20:05 [end_date_ymd] => 2024-12-30 00:20:05 [RateCDR] => 1 ) [2024-12-30 00: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-29 21:20:05' and `end` < '2024-12-30 00: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-30 00:20:18] Production.INFO: count ==173 [2024-12-30 00:20:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:20:05 - End Time 2024-12-30 00:20:05 [2024-12-30 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132495', 'tblTempUsageDetail_20' ) start [2024-12-30 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132495', 'tblTempUsageDetail_20' ) end [2024-12-30 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132495', 'tblTempVendorCDR_20' ) start [2024-12-30 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132495', 'tblTempVendorCDR_20' ) end [2024-12-30 00:20:18] Production.INFO: ProcessCDR(1,14132495,1,1,2) [2024-12-30 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132495', 'tblTempUsageDetail_20' ) start [2024-12-30 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132495', 'tblTempUsageDetail_20' ) end [2024-12-30 00:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:20:21] Production.INFO: ==24658== Releasing lock... [2024-12-30 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:20:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:21:04 [end_date_ymd] => 2024-12-30 00:21:04 [RateCDR] => 1 ) [2024-12-30 00:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:21:04' and `end` < '2024-12-30 00:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:21:17] Production.INFO: count ==185 [2024-12-30 00:21:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:21:04 - End Time 2024-12-30 00:21:04 [2024-12-30 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132500', 'tblTempUsageDetail_20' ) start [2024-12-30 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132500', 'tblTempUsageDetail_20' ) end [2024-12-30 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132500', 'tblTempVendorCDR_20' ) start [2024-12-30 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132500', 'tblTempVendorCDR_20' ) end [2024-12-30 00:21:17] Production.INFO: ProcessCDR(1,14132500,1,1,2) [2024-12-30 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132500', 'tblTempUsageDetail_20' ) start [2024-12-30 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132500', 'tblTempUsageDetail_20' ) end [2024-12-30 00:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:21:20] Production.INFO: ==24792== Releasing lock... [2024-12-30 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:21:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:22:05 [end_date_ymd] => 2024-12-30 00:22:05 [RateCDR] => 1 ) [2024-12-30 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:22:05' and `end` < '2024-12-30 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:22:21] Production.INFO: count ==183 [2024-12-30 00:22:21] Production.ERROR: pbx CDR StartTime 2024-12-29 21:22:05 - End Time 2024-12-30 00:22:05 [2024-12-30 00:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132505', 'tblTempUsageDetail_20' ) start [2024-12-30 00:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132505', 'tblTempUsageDetail_20' ) end [2024-12-30 00:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132505', 'tblTempVendorCDR_20' ) start [2024-12-30 00:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132505', 'tblTempVendorCDR_20' ) end [2024-12-30 00:22:21] Production.INFO: ProcessCDR(1,14132505,1,1,2) [2024-12-30 00:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132505', 'tblTempUsageDetail_20' ) start [2024-12-30 00:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132505', 'tblTempUsageDetail_20' ) end [2024-12-30 00:22:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:22:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:22:24] Production.INFO: ==24916== Releasing lock... [2024-12-30 00:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:22:24] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:23:04 [end_date_ymd] => 2024-12-30 00:23:04 [RateCDR] => 1 ) [2024-12-30 00: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-29 21:23:04' and `end` < '2024-12-30 00: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-30 00:23:17] Production.INFO: count ==181 [2024-12-30 00:23:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:23:04 - End Time 2024-12-30 00:23:04 [2024-12-30 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132510', 'tblTempUsageDetail_20' ) start [2024-12-30 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132510', 'tblTempUsageDetail_20' ) end [2024-12-30 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132510', 'tblTempVendorCDR_20' ) start [2024-12-30 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132510', 'tblTempVendorCDR_20' ) end [2024-12-30 00:23:17] Production.INFO: ProcessCDR(1,14132510,1,1,2) [2024-12-30 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132510', 'tblTempUsageDetail_20' ) start [2024-12-30 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132510', 'tblTempUsageDetail_20' ) end [2024-12-30 00:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:23:20] Production.INFO: ==25041== Releasing lock... [2024-12-30 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:23:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:24:05 [end_date_ymd] => 2024-12-30 00:24:05 [RateCDR] => 1 ) [2024-12-30 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:24:05' and `end` < '2024-12-30 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:24:18] Production.INFO: count ==181 [2024-12-30 00:24:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:24:05 - End Time 2024-12-30 00:24:05 [2024-12-30 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132515', 'tblTempUsageDetail_20' ) start [2024-12-30 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132515', 'tblTempUsageDetail_20' ) end [2024-12-30 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132515', 'tblTempVendorCDR_20' ) start [2024-12-30 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132515', 'tblTempVendorCDR_20' ) end [2024-12-30 00:24:18] Production.INFO: ProcessCDR(1,14132515,1,1,2) [2024-12-30 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132515', 'tblTempUsageDetail_20' ) start [2024-12-30 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132515', 'tblTempUsageDetail_20' ) end [2024-12-30 00:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:24:21] Production.INFO: ==25178== Releasing lock... [2024-12-30 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:24:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:25:04 [end_date_ymd] => 2024-12-30 00:25:04 [RateCDR] => 1 ) [2024-12-30 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-29 21:25:04' and `end` < '2024-12-30 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-30 00:25:17] Production.INFO: count ==173 [2024-12-30 00:25:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:25:04 - End Time 2024-12-30 00:25:04 [2024-12-30 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132520', 'tblTempUsageDetail_20' ) start [2024-12-30 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132520', 'tblTempUsageDetail_20' ) end [2024-12-30 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132520', 'tblTempVendorCDR_20' ) start [2024-12-30 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132520', 'tblTempVendorCDR_20' ) end [2024-12-30 00:25:17] Production.INFO: ProcessCDR(1,14132520,1,1,2) [2024-12-30 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132520', 'tblTempUsageDetail_20' ) start [2024-12-30 00:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132520', 'tblTempUsageDetail_20' ) end [2024-12-30 00:25:19] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:25:19] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:25:20] Production.INFO: ==25290== Releasing lock... [2024-12-30 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:25:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-30 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:26:05 [end_date_ymd] => 2024-12-30 00:26:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:26:05' and `end` < '2024-12-30 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-30 00:26:17] Production.INFO: count ==172 [2024-12-30 00:26:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:26:05 - End Time 2024-12-30 00:26:05 [2024-12-30 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132525', 'tblTempUsageDetail_20' ) start [2024-12-30 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132525', 'tblTempUsageDetail_20' ) end [2024-12-30 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132525', 'tblTempVendorCDR_20' ) start [2024-12-30 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132525', 'tblTempVendorCDR_20' ) end [2024-12-30 00:26:18] Production.INFO: ProcessCDR(1,14132525,1,1,2) [2024-12-30 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132525', 'tblTempUsageDetail_20' ) start [2024-12-30 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132525', 'tblTempUsageDetail_20' ) end [2024-12-30 00:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:26:22] Production.INFO: ==25428== Releasing lock... [2024-12-30 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:26:22] Production.INFO: 30 MB #Memory Used# [2024-12-30 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:27:05 [end_date_ymd] => 2024-12-30 00:27:05 [RateCDR] => 1 ) [2024-12-30 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:27:05' and `end` < '2024-12-30 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:27:17] Production.INFO: count ==170 [2024-12-30 00:27:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:27:05 - End Time 2024-12-30 00:27:05 [2024-12-30 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132530', 'tblTempUsageDetail_20' ) start [2024-12-30 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132530', 'tblTempUsageDetail_20' ) end [2024-12-30 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132530', 'tblTempVendorCDR_20' ) start [2024-12-30 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132530', 'tblTempVendorCDR_20' ) end [2024-12-30 00:27:17] Production.INFO: ProcessCDR(1,14132530,1,1,2) [2024-12-30 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132530', 'tblTempUsageDetail_20' ) start [2024-12-30 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132530', 'tblTempUsageDetail_20' ) end [2024-12-30 00:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:27:21] Production.INFO: ==25535== Releasing lock... [2024-12-30 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:27:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:28:05 [end_date_ymd] => 2024-12-30 00:28:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:28:05' and `end` < '2024-12-30 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-30 00:28:17] Production.INFO: count ==168 [2024-12-30 00:28:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:28:05 - End Time 2024-12-30 00:28:05 [2024-12-30 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132535', 'tblTempUsageDetail_20' ) start [2024-12-30 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132535', 'tblTempUsageDetail_20' ) end [2024-12-30 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132535', 'tblTempVendorCDR_20' ) start [2024-12-30 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132535', 'tblTempVendorCDR_20' ) end [2024-12-30 00:28:17] Production.INFO: ProcessCDR(1,14132535,1,1,2) [2024-12-30 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132535', 'tblTempUsageDetail_20' ) start [2024-12-30 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132535', 'tblTempUsageDetail_20' ) end [2024-12-30 00:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:28:20] Production.INFO: ==25670== Releasing lock... [2024-12-30 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:28:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:29:05 [end_date_ymd] => 2024-12-30 00:29:05 [RateCDR] => 1 ) [2024-12-30 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:29:05' and `end` < '2024-12-30 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:29:17] Production.INFO: count ==168 [2024-12-30 00:29:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:29:05 - End Time 2024-12-30 00:29:05 [2024-12-30 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132540', 'tblTempUsageDetail_20' ) start [2024-12-30 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132540', 'tblTempUsageDetail_20' ) end [2024-12-30 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132540', 'tblTempVendorCDR_20' ) start [2024-12-30 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132540', 'tblTempVendorCDR_20' ) end [2024-12-30 00:29:17] Production.INFO: ProcessCDR(1,14132540,1,1,2) [2024-12-30 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132540', 'tblTempUsageDetail_20' ) start [2024-12-30 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132540', 'tblTempUsageDetail_20' ) end [2024-12-30 00:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:29:20] Production.INFO: ==25816== Releasing lock... [2024-12-30 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:29:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:30:05 [end_date_ymd] => 2024-12-30 00:30:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:30:05' and `end` < '2024-12-30 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-30 00:30:17] Production.INFO: count ==177 [2024-12-30 00:30:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:30:05 - End Time 2024-12-30 00:30:05 [2024-12-30 00:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132545', 'tblTempUsageDetail_20' ) start [2024-12-30 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132545', 'tblTempUsageDetail_20' ) end [2024-12-30 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132545', 'tblTempVendorCDR_20' ) start [2024-12-30 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132545', 'tblTempVendorCDR_20' ) end [2024-12-30 00:30:17] Production.INFO: ProcessCDR(1,14132545,1,1,2) [2024-12-30 00:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132545', 'tblTempUsageDetail_20' ) start [2024-12-30 00:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132545', 'tblTempUsageDetail_20' ) end [2024-12-30 00:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:30:20] Production.INFO: ==25950== Releasing lock... [2024-12-30 00:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:30:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-30 00:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:31:04 [end_date_ymd] => 2024-12-30 00:31:04 [RateCDR] => 1 ) [2024-12-30 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-29 21:31:04' and `end` < '2024-12-30 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-30 00:31:17] Production.INFO: count ==175 [2024-12-30 00:31:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:31:04 - End Time 2024-12-30 00:31:04 [2024-12-30 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132551', 'tblTempUsageDetail_20' ) start [2024-12-30 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132551', 'tblTempUsageDetail_20' ) end [2024-12-30 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132551', 'tblTempVendorCDR_20' ) start [2024-12-30 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132551', 'tblTempVendorCDR_20' ) end [2024-12-30 00:31:17] Production.INFO: ProcessCDR(1,14132551,1,1,2) [2024-12-30 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132551', 'tblTempUsageDetail_20' ) start [2024-12-30 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132551', 'tblTempUsageDetail_20' ) end [2024-12-30 00:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:31:20] Production.INFO: ==26060== Releasing lock... [2024-12-30 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:31:20] Production.INFO: 30 MB #Memory Used# [2024-12-30 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:32:05 [end_date_ymd] => 2024-12-30 00:32:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:32:05' and `end` < '2024-12-30 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-30 00:32:17] Production.INFO: count ==175 [2024-12-30 00:32:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:32:05 - End Time 2024-12-30 00:32:05 [2024-12-30 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132556', 'tblTempUsageDetail_20' ) start [2024-12-30 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132556', 'tblTempUsageDetail_20' ) end [2024-12-30 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132556', 'tblTempVendorCDR_20' ) start [2024-12-30 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132556', 'tblTempVendorCDR_20' ) end [2024-12-30 00:32:17] Production.INFO: ProcessCDR(1,14132556,1,1,2) [2024-12-30 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132556', 'tblTempUsageDetail_20' ) start [2024-12-30 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132556', 'tblTempUsageDetail_20' ) end [2024-12-30 00:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:32:20] Production.INFO: ==26192== Releasing lock... [2024-12-30 00:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:32:20] Production.INFO: 30 MB #Memory Used# [2024-12-30 00:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:33:04 [end_date_ymd] => 2024-12-30 00:33:04 [RateCDR] => 1 ) [2024-12-30 00: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-29 21:33:04' and `end` < '2024-12-30 00: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-30 00:33:17] Production.INFO: count ==177 [2024-12-30 00:33:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:33:04 - End Time 2024-12-30 00:33:04 [2024-12-30 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132561', 'tblTempUsageDetail_20' ) start [2024-12-30 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132561', 'tblTempUsageDetail_20' ) end [2024-12-30 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132561', 'tblTempVendorCDR_20' ) start [2024-12-30 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132561', 'tblTempVendorCDR_20' ) end [2024-12-30 00:33:17] Production.INFO: ProcessCDR(1,14132561,1,1,2) [2024-12-30 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132561', 'tblTempUsageDetail_20' ) start [2024-12-30 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132561', 'tblTempUsageDetail_20' ) end [2024-12-30 00:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:33:21] Production.INFO: ==26294== Releasing lock... [2024-12-30 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:33:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:34:05 [end_date_ymd] => 2024-12-30 00:34:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:34:05' and `end` < '2024-12-30 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-30 00:34:18] Production.INFO: count ==175 [2024-12-30 00:34:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:34:05 - End Time 2024-12-30 00:34:05 [2024-12-30 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132566', 'tblTempUsageDetail_20' ) start [2024-12-30 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132566', 'tblTempUsageDetail_20' ) end [2024-12-30 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132566', 'tblTempVendorCDR_20' ) start [2024-12-30 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132566', 'tblTempVendorCDR_20' ) end [2024-12-30 00:34:18] Production.INFO: ProcessCDR(1,14132566,1,1,2) [2024-12-30 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132566', 'tblTempUsageDetail_20' ) start [2024-12-30 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132566', 'tblTempUsageDetail_20' ) end [2024-12-30 00:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:34:21] Production.INFO: ==26424== Releasing lock... [2024-12-30 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:34:21] Production.INFO: 30 MB #Memory Used# [2024-12-30 00:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:35:04 [end_date_ymd] => 2024-12-30 00:35:04 [RateCDR] => 1 ) [2024-12-30 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-29 21:35:04' and `end` < '2024-12-30 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-30 00:35:17] Production.INFO: count ==174 [2024-12-30 00:35:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:35:04 - End Time 2024-12-30 00:35:04 [2024-12-30 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132571', 'tblTempUsageDetail_20' ) start [2024-12-30 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132571', 'tblTempUsageDetail_20' ) end [2024-12-30 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132571', 'tblTempVendorCDR_20' ) start [2024-12-30 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132571', 'tblTempVendorCDR_20' ) end [2024-12-30 00:35:17] Production.INFO: ProcessCDR(1,14132571,1,1,2) [2024-12-30 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132571', 'tblTempUsageDetail_20' ) start [2024-12-30 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132571', 'tblTempUsageDetail_20' ) end [2024-12-30 00:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:35:20] Production.INFO: ==26530== Releasing lock... [2024-12-30 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:35:20] Production.INFO: 30 MB #Memory Used# [2024-12-30 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:36:05 [end_date_ymd] => 2024-12-30 00:36:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:36:05' and `end` < '2024-12-30 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-30 00:36:18] Production.INFO: count ==174 [2024-12-30 00:36:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:36:05 - End Time 2024-12-30 00:36:05 [2024-12-30 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132576', 'tblTempUsageDetail_20' ) start [2024-12-30 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132576', 'tblTempUsageDetail_20' ) end [2024-12-30 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132576', 'tblTempVendorCDR_20' ) start [2024-12-30 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132576', 'tblTempVendorCDR_20' ) end [2024-12-30 00:36:18] Production.INFO: ProcessCDR(1,14132576,1,1,2) [2024-12-30 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132576', 'tblTempUsageDetail_20' ) start [2024-12-30 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132576', 'tblTempUsageDetail_20' ) end [2024-12-30 00:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:36:22] Production.INFO: ==26654== Releasing lock... [2024-12-30 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:36:22] Production.INFO: 30 MB #Memory Used# [2024-12-30 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:37:05 [end_date_ymd] => 2024-12-30 00:37:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:37:05' and `end` < '2024-12-30 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-30 00:37:17] Production.INFO: count ==174 [2024-12-30 00:37:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:37:05 - End Time 2024-12-30 00:37:05 [2024-12-30 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132581', 'tblTempUsageDetail_20' ) start [2024-12-30 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132581', 'tblTempUsageDetail_20' ) end [2024-12-30 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132581', 'tblTempVendorCDR_20' ) start [2024-12-30 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132581', 'tblTempVendorCDR_20' ) end [2024-12-30 00:37:17] Production.INFO: ProcessCDR(1,14132581,1,1,2) [2024-12-30 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132581', 'tblTempUsageDetail_20' ) start [2024-12-30 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132581', 'tblTempUsageDetail_20' ) end [2024-12-30 00:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:37:20] Production.INFO: ==26735== Releasing lock... [2024-12-30 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:37:20] Production.INFO: 30 MB #Memory Used# [2024-12-30 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:38:05 [end_date_ymd] => 2024-12-30 00:38:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:38:05' and `end` < '2024-12-30 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-30 00:38:17] Production.INFO: count ==174 [2024-12-30 00:38:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:38:05 - End Time 2024-12-30 00:38:05 [2024-12-30 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132586', 'tblTempUsageDetail_20' ) start [2024-12-30 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132586', 'tblTempUsageDetail_20' ) end [2024-12-30 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132586', 'tblTempVendorCDR_20' ) start [2024-12-30 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132586', 'tblTempVendorCDR_20' ) end [2024-12-30 00:38:18] Production.INFO: ProcessCDR(1,14132586,1,1,2) [2024-12-30 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132586', 'tblTempUsageDetail_20' ) start [2024-12-30 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132586', 'tblTempUsageDetail_20' ) end [2024-12-30 00:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:38:21] Production.INFO: ==26832== Releasing lock... [2024-12-30 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:38:21] Production.INFO: 30 MB #Memory Used# [2024-12-30 00:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:39:04 [end_date_ymd] => 2024-12-30 00:39:04 [RateCDR] => 1 ) [2024-12-30 00:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:39:04' and `end` < '2024-12-30 00:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:39:17] Production.INFO: count ==174 [2024-12-30 00:39:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:39:04 - End Time 2024-12-30 00:39:04 [2024-12-30 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132591', 'tblTempUsageDetail_20' ) start [2024-12-30 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132591', 'tblTempUsageDetail_20' ) end [2024-12-30 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132591', 'tblTempVendorCDR_20' ) start [2024-12-30 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132591', 'tblTempVendorCDR_20' ) end [2024-12-30 00:39:17] Production.INFO: ProcessCDR(1,14132591,1,1,2) [2024-12-30 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132591', 'tblTempUsageDetail_20' ) start [2024-12-30 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132591', 'tblTempUsageDetail_20' ) end [2024-12-30 00:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:39:20] Production.INFO: ==26908== Releasing lock... [2024-12-30 00:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:39:20] Production.INFO: 30 MB #Memory Used# [2024-12-30 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:40:05 [end_date_ymd] => 2024-12-30 00:40:05 [RateCDR] => 1 ) [2024-12-30 00: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-29 21:40:05' and `end` < '2024-12-30 00: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-30 00:40:18] Production.INFO: count ==180 [2024-12-30 00:40:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:40:05 - End Time 2024-12-30 00:40:05 [2024-12-30 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132596', 'tblTempUsageDetail_20' ) start [2024-12-30 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132596', 'tblTempUsageDetail_20' ) end [2024-12-30 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132596', 'tblTempVendorCDR_20' ) start [2024-12-30 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132596', 'tblTempVendorCDR_20' ) end [2024-12-30 00:40:18] Production.INFO: ProcessCDR(1,14132596,1,1,2) [2024-12-30 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132596', 'tblTempUsageDetail_20' ) start [2024-12-30 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132596', 'tblTempUsageDetail_20' ) end [2024-12-30 00:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:40:21] Production.INFO: ==27010== Releasing lock... [2024-12-30 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:40:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:41:05 [end_date_ymd] => 2024-12-30 00:41:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:41:05' and `end` < '2024-12-30 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-30 00:41:18] Production.INFO: count ==201 [2024-12-30 00:41:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:41:05 - End Time 2024-12-30 00:41:05 [2024-12-30 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132602', 'tblTempUsageDetail_20' ) start [2024-12-30 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132602', 'tblTempUsageDetail_20' ) end [2024-12-30 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132602', 'tblTempVendorCDR_20' ) start [2024-12-30 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132602', 'tblTempVendorCDR_20' ) end [2024-12-30 00:41:18] Production.INFO: ProcessCDR(1,14132602,1,1,2) [2024-12-30 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132602', 'tblTempUsageDetail_20' ) start [2024-12-30 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132602', 'tblTempUsageDetail_20' ) end [2024-12-30 00:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:41:22] Production.INFO: ==27096== Releasing lock... [2024-12-30 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:41:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:42:05 [end_date_ymd] => 2024-12-30 00:42:05 [RateCDR] => 1 ) [2024-12-30 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:42:05' and `end` < '2024-12-30 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:42:17] Production.INFO: count ==197 [2024-12-30 00:42:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:42:05 - End Time 2024-12-30 00:42:05 [2024-12-30 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132607', 'tblTempUsageDetail_20' ) start [2024-12-30 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132607', 'tblTempUsageDetail_20' ) end [2024-12-30 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132607', 'tblTempVendorCDR_20' ) start [2024-12-30 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132607', 'tblTempVendorCDR_20' ) end [2024-12-30 00:42:17] Production.INFO: ProcessCDR(1,14132607,1,1,2) [2024-12-30 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132607', 'tblTempUsageDetail_20' ) start [2024-12-30 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132607', 'tblTempUsageDetail_20' ) end [2024-12-30 00:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:42:20] Production.INFO: ==27170== Releasing lock... [2024-12-30 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:42:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:43:05 [end_date_ymd] => 2024-12-30 00:43:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:43:05' and `end` < '2024-12-30 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-30 00:43:18] Production.INFO: count ==197 [2024-12-30 00:43:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:43:05 - End Time 2024-12-30 00:43:05 [2024-12-30 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132612', 'tblTempUsageDetail_20' ) start [2024-12-30 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132612', 'tblTempUsageDetail_20' ) end [2024-12-30 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132612', 'tblTempVendorCDR_20' ) start [2024-12-30 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132612', 'tblTempVendorCDR_20' ) end [2024-12-30 00:43:18] Production.INFO: ProcessCDR(1,14132612,1,1,2) [2024-12-30 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132612', 'tblTempUsageDetail_20' ) start [2024-12-30 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132612', 'tblTempUsageDetail_20' ) end [2024-12-30 00:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:43:21] Production.INFO: ==27242== Releasing lock... [2024-12-30 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:43:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:44:05 [end_date_ymd] => 2024-12-30 00:44:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:44:05' and `end` < '2024-12-30 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-30 00:44:18] Production.INFO: count ==196 [2024-12-30 00:44:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:44:05 - End Time 2024-12-30 00:44:05 [2024-12-30 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132617', 'tblTempUsageDetail_20' ) start [2024-12-30 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132617', 'tblTempUsageDetail_20' ) end [2024-12-30 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132617', 'tblTempVendorCDR_20' ) start [2024-12-30 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132617', 'tblTempVendorCDR_20' ) end [2024-12-30 00:44:18] Production.INFO: ProcessCDR(1,14132617,1,1,2) [2024-12-30 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132617', 'tblTempUsageDetail_20' ) start [2024-12-30 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132617', 'tblTempUsageDetail_20' ) end [2024-12-30 00:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:44:21] Production.INFO: ==27350== Releasing lock... [2024-12-30 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:44:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:45:05 [end_date_ymd] => 2024-12-30 00:45:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:45:05' and `end` < '2024-12-30 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-30 00:45:18] Production.INFO: count ==194 [2024-12-30 00:45:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:45:05 - End Time 2024-12-30 00:45:05 [2024-12-30 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132622', 'tblTempUsageDetail_20' ) start [2024-12-30 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132622', 'tblTempUsageDetail_20' ) end [2024-12-30 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132622', 'tblTempVendorCDR_20' ) start [2024-12-30 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132622', 'tblTempVendorCDR_20' ) end [2024-12-30 00:45:18] Production.INFO: ProcessCDR(1,14132622,1,1,2) [2024-12-30 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132622', 'tblTempUsageDetail_20' ) start [2024-12-30 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132622', 'tblTempUsageDetail_20' ) end [2024-12-30 00:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:45:21] Production.INFO: ==27423== Releasing lock... [2024-12-30 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:45:21] Production.INFO: 30 MB #Memory Used# [2024-12-30 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:46:05 [end_date_ymd] => 2024-12-30 00:46:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:46:05' and `end` < '2024-12-30 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-30 00:46:17] Production.INFO: count ==194 [2024-12-30 00:46:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:46:05 - End Time 2024-12-30 00:46:05 [2024-12-30 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132627', 'tblTempUsageDetail_20' ) start [2024-12-30 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132627', 'tblTempUsageDetail_20' ) end [2024-12-30 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132627', 'tblTempVendorCDR_20' ) start [2024-12-30 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132627', 'tblTempVendorCDR_20' ) end [2024-12-30 00:46:17] Production.INFO: ProcessCDR(1,14132627,1,1,2) [2024-12-30 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132627', 'tblTempUsageDetail_20' ) start [2024-12-30 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132627', 'tblTempUsageDetail_20' ) end [2024-12-30 00:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:46:21] Production.INFO: ==27493== Releasing lock... [2024-12-30 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:46:21] Production.INFO: 30 MB #Memory Used# [2024-12-30 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:47:05 [end_date_ymd] => 2024-12-30 00:47:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:47:05' and `end` < '2024-12-30 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-30 00:47:18] Production.INFO: count ==193 [2024-12-30 00:47:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:47:05 - End Time 2024-12-30 00:47:05 [2024-12-30 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132632', 'tblTempUsageDetail_20' ) start [2024-12-30 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132632', 'tblTempUsageDetail_20' ) end [2024-12-30 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132632', 'tblTempVendorCDR_20' ) start [2024-12-30 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132632', 'tblTempVendorCDR_20' ) end [2024-12-30 00:47:18] Production.INFO: ProcessCDR(1,14132632,1,1,2) [2024-12-30 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132632', 'tblTempUsageDetail_20' ) start [2024-12-30 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132632', 'tblTempUsageDetail_20' ) end [2024-12-30 00:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:47:22] Production.INFO: ==27569== Releasing lock... [2024-12-30 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:47:22] Production.INFO: 30 MB #Memory Used# [2024-12-30 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:48:05 [end_date_ymd] => 2024-12-30 00:48:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:48:05' and `end` < '2024-12-30 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-30 00:48:17] Production.INFO: count ==193 [2024-12-30 00:48:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:48:05 - End Time 2024-12-30 00:48:05 [2024-12-30 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132637', 'tblTempUsageDetail_20' ) start [2024-12-30 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132637', 'tblTempUsageDetail_20' ) end [2024-12-30 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132637', 'tblTempVendorCDR_20' ) start [2024-12-30 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132637', 'tblTempVendorCDR_20' ) end [2024-12-30 00:48:18] Production.INFO: ProcessCDR(1,14132637,1,1,2) [2024-12-30 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132637', 'tblTempUsageDetail_20' ) start [2024-12-30 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132637', 'tblTempUsageDetail_20' ) end [2024-12-30 00:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:48:21] Production.INFO: ==27641== Releasing lock... [2024-12-30 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:48:21] Production.INFO: 30 MB #Memory Used# [2024-12-30 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:49:05 [end_date_ymd] => 2024-12-30 00:49:05 [RateCDR] => 1 ) [2024-12-30 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:49:05' and `end` < '2024-12-30 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:49:18] Production.INFO: count ==191 [2024-12-30 00:49:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:49:05 - End Time 2024-12-30 00:49:05 [2024-12-30 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132642', 'tblTempUsageDetail_20' ) start [2024-12-30 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132642', 'tblTempUsageDetail_20' ) end [2024-12-30 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132642', 'tblTempVendorCDR_20' ) start [2024-12-30 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132642', 'tblTempVendorCDR_20' ) end [2024-12-30 00:49:18] Production.INFO: ProcessCDR(1,14132642,1,1,2) [2024-12-30 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132642', 'tblTempUsageDetail_20' ) start [2024-12-30 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132642', 'tblTempUsageDetail_20' ) end [2024-12-30 00:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:49:21] Production.INFO: ==27714== Releasing lock... [2024-12-30 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:49:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:50:06 [end_date_ymd] => 2024-12-30 00:50:06 [RateCDR] => 1 ) [2024-12-30 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:50:06' and `end` < '2024-12-30 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:50:18] Production.INFO: count ==202 [2024-12-30 00:50:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:50:06 - End Time 2024-12-30 00:50:06 [2024-12-30 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132647', 'tblTempUsageDetail_20' ) start [2024-12-30 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132647', 'tblTempUsageDetail_20' ) end [2024-12-30 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132647', 'tblTempVendorCDR_20' ) start [2024-12-30 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132647', 'tblTempVendorCDR_20' ) end [2024-12-30 00:50:18] Production.INFO: ProcessCDR(1,14132647,1,1,2) [2024-12-30 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132647', 'tblTempUsageDetail_20' ) start [2024-12-30 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132647', 'tblTempUsageDetail_20' ) end [2024-12-30 00:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:50:23] Production.INFO: ==27787== Releasing lock... [2024-12-30 00:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:50:23] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:51:04 [end_date_ymd] => 2024-12-30 00:51:04 [RateCDR] => 1 ) [2024-12-30 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-29 21:51:04' and `end` < '2024-12-30 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-30 00:51:17] Production.INFO: count ==212 [2024-12-30 00:51:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:51:04 - End Time 2024-12-30 00:51:04 [2024-12-30 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132653', 'tblTempUsageDetail_20' ) start [2024-12-30 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132653', 'tblTempUsageDetail_20' ) end [2024-12-30 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132653', 'tblTempVendorCDR_20' ) start [2024-12-30 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132653', 'tblTempVendorCDR_20' ) end [2024-12-30 00:51:17] Production.INFO: ProcessCDR(1,14132653,1,1,2) [2024-12-30 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132653', 'tblTempUsageDetail_20' ) start [2024-12-30 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132653', 'tblTempUsageDetail_20' ) end [2024-12-30 00:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:51:20] Production.INFO: ==27863== Releasing lock... [2024-12-30 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:51:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:52:05 [end_date_ymd] => 2024-12-30 00:52:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:52:05' and `end` < '2024-12-30 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-30 00:52:18] Production.INFO: count ==211 [2024-12-30 00:52:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:52:05 - End Time 2024-12-30 00:52:05 [2024-12-30 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132658', 'tblTempUsageDetail_20' ) start [2024-12-30 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132658', 'tblTempUsageDetail_20' ) end [2024-12-30 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132658', 'tblTempVendorCDR_20' ) start [2024-12-30 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132658', 'tblTempVendorCDR_20' ) end [2024-12-30 00:52:18] Production.INFO: ProcessCDR(1,14132658,1,1,2) [2024-12-30 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132658', 'tblTempUsageDetail_20' ) start [2024-12-30 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132658', 'tblTempUsageDetail_20' ) end [2024-12-30 00:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:52:21] Production.INFO: ==27940== Releasing lock... [2024-12-30 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:52:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:53:05 [end_date_ymd] => 2024-12-30 00:53:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:53:05' and `end` < '2024-12-30 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-30 00:53:17] Production.INFO: count ==211 [2024-12-30 00:53:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:53:05 - End Time 2024-12-30 00:53:05 [2024-12-30 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132663', 'tblTempUsageDetail_20' ) start [2024-12-30 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132663', 'tblTempUsageDetail_20' ) end [2024-12-30 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132663', 'tblTempVendorCDR_20' ) start [2024-12-30 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132663', 'tblTempVendorCDR_20' ) end [2024-12-30 00:53:17] Production.INFO: ProcessCDR(1,14132663,1,1,2) [2024-12-30 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132663', 'tblTempUsageDetail_20' ) start [2024-12-30 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132663', 'tblTempUsageDetail_20' ) end [2024-12-30 00:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:53:20] Production.INFO: ==28012== Releasing lock... [2024-12-30 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:53:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:54:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:54:06 [end_date_ymd] => 2024-12-30 00:54:06 [RateCDR] => 1 ) [2024-12-30 00:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:54:06' and `end` < '2024-12-30 00:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:54:18] Production.INFO: count ==211 [2024-12-30 00:54:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:54:06 - End Time 2024-12-30 00:54:06 [2024-12-30 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132668', 'tblTempUsageDetail_20' ) start [2024-12-30 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132668', 'tblTempUsageDetail_20' ) end [2024-12-30 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132668', 'tblTempVendorCDR_20' ) start [2024-12-30 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132668', 'tblTempVendorCDR_20' ) end [2024-12-30 00:54:18] Production.INFO: ProcessCDR(1,14132668,1,1,2) [2024-12-30 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132668', 'tblTempUsageDetail_20' ) start [2024-12-30 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132668', 'tblTempUsageDetail_20' ) end [2024-12-30 00:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:54:22] Production.INFO: ==28087== Releasing lock... [2024-12-30 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:54:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:55:05 [end_date_ymd] => 2024-12-30 00:55:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:55:05' and `end` < '2024-12-30 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-30 00:55:17] Production.INFO: count ==211 [2024-12-30 00:55:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:55:05 - End Time 2024-12-30 00:55:05 [2024-12-30 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132673', 'tblTempUsageDetail_20' ) start [2024-12-30 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132673', 'tblTempUsageDetail_20' ) end [2024-12-30 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132673', 'tblTempVendorCDR_20' ) start [2024-12-30 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132673', 'tblTempVendorCDR_20' ) end [2024-12-30 00:55:17] Production.INFO: ProcessCDR(1,14132673,1,1,2) [2024-12-30 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132673', 'tblTempUsageDetail_20' ) start [2024-12-30 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132673', 'tblTempUsageDetail_20' ) end [2024-12-30 00:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:55:20] Production.INFO: ==28158== Releasing lock... [2024-12-30 00:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:55:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:56:05 [end_date_ymd] => 2024-12-30 00:56:05 [RateCDR] => 1 ) [2024-12-30 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 21:56:05' and `end` < '2024-12-30 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 00:56:17] Production.INFO: count ==211 [2024-12-30 00:56:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:56:05 - End Time 2024-12-30 00:56:05 [2024-12-30 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132678', 'tblTempUsageDetail_20' ) start [2024-12-30 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132678', 'tblTempUsageDetail_20' ) end [2024-12-30 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132678', 'tblTempVendorCDR_20' ) start [2024-12-30 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132678', 'tblTempVendorCDR_20' ) end [2024-12-30 00:56:18] Production.INFO: ProcessCDR(1,14132678,1,1,2) [2024-12-30 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132678', 'tblTempUsageDetail_20' ) start [2024-12-30 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132678', 'tblTempUsageDetail_20' ) end [2024-12-30 00:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:56:21] Production.INFO: ==28229== Releasing lock... [2024-12-30 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:56:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:57:04 [end_date_ymd] => 2024-12-30 00:57:04 [RateCDR] => 1 ) [2024-12-30 00: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-29 21:57:04' and `end` < '2024-12-30 00: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-30 00:57:17] Production.INFO: count ==211 [2024-12-30 00:57:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:57:04 - End Time 2024-12-30 00:57:04 [2024-12-30 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132683', 'tblTempUsageDetail_20' ) start [2024-12-30 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132683', 'tblTempUsageDetail_20' ) end [2024-12-30 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132683', 'tblTempVendorCDR_20' ) start [2024-12-30 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132683', 'tblTempVendorCDR_20' ) end [2024-12-30 00:57:17] Production.INFO: ProcessCDR(1,14132683,1,1,2) [2024-12-30 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132683', 'tblTempUsageDetail_20' ) start [2024-12-30 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132683', 'tblTempUsageDetail_20' ) end [2024-12-30 00:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:57:20] Production.INFO: ==28303== Releasing lock... [2024-12-30 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:57:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:58:05 [end_date_ymd] => 2024-12-30 00:58:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:58:05' and `end` < '2024-12-30 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-30 00:58:17] Production.INFO: count ==211 [2024-12-30 00:58:17] Production.ERROR: pbx CDR StartTime 2024-12-29 21:58:05 - End Time 2024-12-30 00:58:05 [2024-12-30 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132688', 'tblTempUsageDetail_20' ) start [2024-12-30 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132688', 'tblTempUsageDetail_20' ) end [2024-12-30 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132688', 'tblTempVendorCDR_20' ) start [2024-12-30 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132688', 'tblTempVendorCDR_20' ) end [2024-12-30 00:58:17] Production.INFO: ProcessCDR(1,14132688,1,1,2) [2024-12-30 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132688', 'tblTempUsageDetail_20' ) start [2024-12-30 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132688', 'tblTempUsageDetail_20' ) end [2024-12-30 00:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:58:20] Production.INFO: ==28374== Releasing lock... [2024-12-30 00:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:58:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 21:59:05 [end_date_ymd] => 2024-12-30 00:59:05 [RateCDR] => 1 ) [2024-12-30 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-29 21:59:05' and `end` < '2024-12-30 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-30 00:59:18] Production.INFO: count ==211 [2024-12-30 00:59:18] Production.ERROR: pbx CDR StartTime 2024-12-29 21:59:05 - End Time 2024-12-30 00:59:05 [2024-12-30 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132693', 'tblTempUsageDetail_20' ) start [2024-12-30 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132693', 'tblTempUsageDetail_20' ) end [2024-12-30 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132693', 'tblTempVendorCDR_20' ) start [2024-12-30 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132693', 'tblTempVendorCDR_20' ) end [2024-12-30 00:59:18] Production.INFO: ProcessCDR(1,14132693,1,1,2) [2024-12-30 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132693', 'tblTempUsageDetail_20' ) start [2024-12-30 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132693', 'tblTempUsageDetail_20' ) end [2024-12-30 00:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 00:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 00:59:21] Production.INFO: ==28445== Releasing lock... [2024-12-30 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 00:59:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:00:06 [end_date_ymd] => 2024-12-30 01:00:06 [RateCDR] => 1 ) [2024-12-30 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:00:06' and `end` < '2024-12-30 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:00:18] Production.INFO: count ==219 [2024-12-30 01:00:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:00:06 - End Time 2024-12-30 01:00:06 [2024-12-30 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132699', 'tblTempUsageDetail_20' ) start [2024-12-30 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132699', 'tblTempUsageDetail_20' ) end [2024-12-30 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132699', 'tblTempVendorCDR_20' ) start [2024-12-30 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132699', 'tblTempVendorCDR_20' ) end [2024-12-30 01:00:18] Production.INFO: ProcessCDR(1,14132699,1,1,2) [2024-12-30 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132699', 'tblTempUsageDetail_20' ) start [2024-12-30 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132699', 'tblTempUsageDetail_20' ) end [2024-12-30 01:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:00:21] Production.INFO: ==28558== Releasing lock... [2024-12-30 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:00:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:01:05 [end_date_ymd] => 2024-12-30 01:01:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:01:05' and `end` < '2024-12-30 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-30 01:01:18] Production.INFO: count ==217 [2024-12-30 01:01:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:01:05 - End Time 2024-12-30 01:01:05 [2024-12-30 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132704', 'tblTempUsageDetail_20' ) start [2024-12-30 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132704', 'tblTempUsageDetail_20' ) end [2024-12-30 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132704', 'tblTempVendorCDR_20' ) start [2024-12-30 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132704', 'tblTempVendorCDR_20' ) end [2024-12-30 01:01:18] Production.INFO: ProcessCDR(1,14132704,1,1,2) [2024-12-30 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132704', 'tblTempUsageDetail_20' ) start [2024-12-30 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132704', 'tblTempUsageDetail_20' ) end [2024-12-30 01:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:01:22] Production.INFO: ==28649== Releasing lock... [2024-12-30 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:01:22] Production.INFO: 30 MB #Memory Used# [2024-12-30 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:02:05 [end_date_ymd] => 2024-12-30 01:02:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:02:05' and `end` < '2024-12-30 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-30 01:02:17] Production.INFO: count ==217 [2024-12-30 01:02:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:02:05 - End Time 2024-12-30 01:02:05 [2024-12-30 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132709', 'tblTempUsageDetail_20' ) start [2024-12-30 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132709', 'tblTempUsageDetail_20' ) end [2024-12-30 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132709', 'tblTempVendorCDR_20' ) start [2024-12-30 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132709', 'tblTempVendorCDR_20' ) end [2024-12-30 01:02:17] Production.INFO: ProcessCDR(1,14132709,1,1,2) [2024-12-30 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132709', 'tblTempUsageDetail_20' ) start [2024-12-30 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132709', 'tblTempUsageDetail_20' ) end [2024-12-30 01:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:02:21] Production.INFO: ==28722== Releasing lock... [2024-12-30 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:02:21] Production.INFO: 30 MB #Memory Used# [2024-12-30 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:03:05 [end_date_ymd] => 2024-12-30 01:03:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:03:05' and `end` < '2024-12-30 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:03:19] Production.INFO: count ==216 [2024-12-30 01:03:19] Production.ERROR: pbx CDR StartTime 2024-12-29 22:03:05 - End Time 2024-12-30 01:03:05 [2024-12-30 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132714', 'tblTempUsageDetail_20' ) start [2024-12-30 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132714', 'tblTempUsageDetail_20' ) end [2024-12-30 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132714', 'tblTempVendorCDR_20' ) start [2024-12-30 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132714', 'tblTempVendorCDR_20' ) end [2024-12-30 01:03:19] Production.INFO: ProcessCDR(1,14132714,1,1,2) [2024-12-30 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132714', 'tblTempUsageDetail_20' ) start [2024-12-30 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132714', 'tblTempUsageDetail_20' ) end [2024-12-30 01:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:03:22] Production.INFO: ==28792== Releasing lock... [2024-12-30 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:03:22] Production.INFO: 30 MB #Memory Used# [2024-12-30 01:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:04:04 [end_date_ymd] => 2024-12-30 01:04:04 [RateCDR] => 1 ) [2024-12-30 01:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:04:04' and `end` < '2024-12-30 01:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:04:18] Production.INFO: count ==215 [2024-12-30 01:04:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:04:04 - End Time 2024-12-30 01:04:04 [2024-12-30 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132719', 'tblTempUsageDetail_20' ) start [2024-12-30 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132719', 'tblTempUsageDetail_20' ) end [2024-12-30 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132719', 'tblTempVendorCDR_20' ) start [2024-12-30 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132719', 'tblTempVendorCDR_20' ) end [2024-12-30 01:04:18] Production.INFO: ProcessCDR(1,14132719,1,1,2) [2024-12-30 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132719', 'tblTempUsageDetail_20' ) start [2024-12-30 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132719', 'tblTempUsageDetail_20' ) end [2024-12-30 01:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:04:21] Production.INFO: ==28862== Releasing lock... [2024-12-30 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:04:21] Production.INFO: 30 MB #Memory Used# [2024-12-30 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:05:05 [end_date_ymd] => 2024-12-30 01:05:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:05:05' and `end` < '2024-12-30 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-30 01:05:18] Production.INFO: count ==214 [2024-12-30 01:05:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:05:05 - End Time 2024-12-30 01:05:05 [2024-12-30 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132724', 'tblTempUsageDetail_20' ) start [2024-12-30 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132724', 'tblTempUsageDetail_20' ) end [2024-12-30 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132724', 'tblTempVendorCDR_20' ) start [2024-12-30 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132724', 'tblTempVendorCDR_20' ) end [2024-12-30 01:05:18] Production.INFO: ProcessCDR(1,14132724,1,1,2) [2024-12-30 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132724', 'tblTempUsageDetail_20' ) start [2024-12-30 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132724', 'tblTempUsageDetail_20' ) end [2024-12-30 01:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:05:21] Production.INFO: ==28932== Releasing lock... [2024-12-30 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:05:21] Production.INFO: 30 MB #Memory Used# [2024-12-30 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:06:05 [end_date_ymd] => 2024-12-30 01:06:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:06:05' and `end` < '2024-12-30 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-30 01:06:18] Production.INFO: count ==213 [2024-12-30 01:06:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:06:05 - End Time 2024-12-30 01:06:05 [2024-12-30 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132729', 'tblTempUsageDetail_20' ) start [2024-12-30 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132729', 'tblTempUsageDetail_20' ) end [2024-12-30 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132729', 'tblTempVendorCDR_20' ) start [2024-12-30 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132729', 'tblTempVendorCDR_20' ) end [2024-12-30 01:06:18] Production.INFO: ProcessCDR(1,14132729,1,1,2) [2024-12-30 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132729', 'tblTempUsageDetail_20' ) start [2024-12-30 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132729', 'tblTempUsageDetail_20' ) end [2024-12-30 01:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:06:21] Production.INFO: ==29006== Releasing lock... [2024-12-30 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:06:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:07:05 [end_date_ymd] => 2024-12-30 01:07:05 [RateCDR] => 1 ) [2024-12-30 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:07:05' and `end` < '2024-12-30 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:07:18] Production.INFO: count ==213 [2024-12-30 01:07:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:07:05 - End Time 2024-12-30 01:07:05 [2024-12-30 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132734', 'tblTempUsageDetail_20' ) start [2024-12-30 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132734', 'tblTempUsageDetail_20' ) end [2024-12-30 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132734', 'tblTempVendorCDR_20' ) start [2024-12-30 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132734', 'tblTempVendorCDR_20' ) end [2024-12-30 01:07:18] Production.INFO: ProcessCDR(1,14132734,1,1,2) [2024-12-30 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132734', 'tblTempUsageDetail_20' ) start [2024-12-30 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132734', 'tblTempUsageDetail_20' ) end [2024-12-30 01:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:07:21] Production.INFO: ==29083== Releasing lock... [2024-12-30 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:07:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:08:05 [end_date_ymd] => 2024-12-30 01:08:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:08:05' and `end` < '2024-12-30 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-30 01:08:18] Production.INFO: count ==213 [2024-12-30 01:08:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:08:05 - End Time 2024-12-30 01:08:05 [2024-12-30 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132739', 'tblTempUsageDetail_20' ) start [2024-12-30 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132739', 'tblTempUsageDetail_20' ) end [2024-12-30 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132739', 'tblTempVendorCDR_20' ) start [2024-12-30 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132739', 'tblTempVendorCDR_20' ) end [2024-12-30 01:08:18] Production.INFO: ProcessCDR(1,14132739,1,1,2) [2024-12-30 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132739', 'tblTempUsageDetail_20' ) start [2024-12-30 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132739', 'tblTempUsageDetail_20' ) end [2024-12-30 01:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:08:21] Production.INFO: ==29156== Releasing lock... [2024-12-30 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:08:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 01:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:09:04 [end_date_ymd] => 2024-12-30 01:09:04 [RateCDR] => 1 ) [2024-12-30 01: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-29 22:09:04' and `end` < '2024-12-30 01: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-30 01:09:17] Production.INFO: count ==209 [2024-12-30 01:09:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:09:04 - End Time 2024-12-30 01:09:04 [2024-12-30 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132744', 'tblTempUsageDetail_20' ) start [2024-12-30 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132744', 'tblTempUsageDetail_20' ) end [2024-12-30 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132744', 'tblTempVendorCDR_20' ) start [2024-12-30 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132744', 'tblTempVendorCDR_20' ) end [2024-12-30 01:09:17] Production.INFO: ProcessCDR(1,14132744,1,1,2) [2024-12-30 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132744', 'tblTempUsageDetail_20' ) start [2024-12-30 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132744', 'tblTempUsageDetail_20' ) end [2024-12-30 01:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:09:20] Production.INFO: ==29229== Releasing lock... [2024-12-30 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:09:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:10:05 [end_date_ymd] => 2024-12-30 01:10:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:10:05' and `end` < '2024-12-30 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-30 01:10:18] Production.INFO: count ==215 [2024-12-30 01:10:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:10:05 - End Time 2024-12-30 01:10:05 [2024-12-30 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132750', 'tblTempUsageDetail_20' ) start [2024-12-30 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132750', 'tblTempUsageDetail_20' ) end [2024-12-30 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132750', 'tblTempVendorCDR_20' ) start [2024-12-30 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132750', 'tblTempVendorCDR_20' ) end [2024-12-30 01:10:18] Production.INFO: ProcessCDR(1,14132750,1,1,2) [2024-12-30 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132750', 'tblTempUsageDetail_20' ) start [2024-12-30 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132750', 'tblTempUsageDetail_20' ) end [2024-12-30 01:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:10:21] Production.INFO: ==29304== Releasing lock... [2024-12-30 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:10:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:11:04 [end_date_ymd] => 2024-12-30 01:11:04 [RateCDR] => 1 ) [2024-12-30 01: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-29 22:11:04' and `end` < '2024-12-30 01: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-30 01:11:18] Production.INFO: count ==227 [2024-12-30 01:11:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:11:04 - End Time 2024-12-30 01:11:04 [2024-12-30 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132755', 'tblTempUsageDetail_20' ) start [2024-12-30 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132755', 'tblTempUsageDetail_20' ) end [2024-12-30 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132755', 'tblTempVendorCDR_20' ) start [2024-12-30 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132755', 'tblTempVendorCDR_20' ) end [2024-12-30 01:11:18] Production.INFO: ProcessCDR(1,14132755,1,1,2) [2024-12-30 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132755', 'tblTempUsageDetail_20' ) start [2024-12-30 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132755', 'tblTempUsageDetail_20' ) end [2024-12-30 01:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:11:21] Production.INFO: ==29376== Releasing lock... [2024-12-30 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:11:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:12:05 [end_date_ymd] => 2024-12-30 01:12:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:12:05' and `end` < '2024-12-30 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-30 01:12:17] Production.INFO: count ==227 [2024-12-30 01:12:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:12:05 - End Time 2024-12-30 01:12:05 [2024-12-30 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132760', 'tblTempUsageDetail_20' ) start [2024-12-30 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132760', 'tblTempUsageDetail_20' ) end [2024-12-30 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132760', 'tblTempVendorCDR_20' ) start [2024-12-30 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132760', 'tblTempVendorCDR_20' ) end [2024-12-30 01:12:18] Production.INFO: ProcessCDR(1,14132760,1,1,2) [2024-12-30 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132760', 'tblTempUsageDetail_20' ) start [2024-12-30 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132760', 'tblTempUsageDetail_20' ) end [2024-12-30 01:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:12:21] Production.INFO: ==29448== Releasing lock... [2024-12-30 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:12:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:13:05 [end_date_ymd] => 2024-12-30 01:13:05 [RateCDR] => 1 ) [2024-12-30 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:13:05' and `end` < '2024-12-30 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:13:18] Production.INFO: count ==227 [2024-12-30 01:13:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:13:05 - End Time 2024-12-30 01:13:05 [2024-12-30 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132765', 'tblTempUsageDetail_20' ) start [2024-12-30 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132765', 'tblTempUsageDetail_20' ) end [2024-12-30 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132765', 'tblTempVendorCDR_20' ) start [2024-12-30 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132765', 'tblTempVendorCDR_20' ) end [2024-12-30 01:13:18] Production.INFO: ProcessCDR(1,14132765,1,1,2) [2024-12-30 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132765', 'tblTempUsageDetail_20' ) start [2024-12-30 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132765', 'tblTempUsageDetail_20' ) end [2024-12-30 01:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:13:21] Production.INFO: ==29521== Releasing lock... [2024-12-30 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:13:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:14:05 [end_date_ymd] => 2024-12-30 01:14:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:14:05' and `end` < '2024-12-30 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-30 01:14:19] Production.INFO: count ==225 [2024-12-30 01:14:19] Production.ERROR: pbx CDR StartTime 2024-12-29 22:14:05 - End Time 2024-12-30 01:14:05 [2024-12-30 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132770', 'tblTempUsageDetail_20' ) start [2024-12-30 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132770', 'tblTempUsageDetail_20' ) end [2024-12-30 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132770', 'tblTempVendorCDR_20' ) start [2024-12-30 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132770', 'tblTempVendorCDR_20' ) end [2024-12-30 01:14:19] Production.INFO: ProcessCDR(1,14132770,1,1,2) [2024-12-30 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132770', 'tblTempUsageDetail_20' ) start [2024-12-30 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132770', 'tblTempUsageDetail_20' ) end [2024-12-30 01:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:14:22] Production.INFO: ==29594== Releasing lock... [2024-12-30 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:14:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:15:05 [end_date_ymd] => 2024-12-30 01:15:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:15:05' and `end` < '2024-12-30 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-30 01:15:18] Production.INFO: count ==224 [2024-12-30 01:15:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:15:05 - End Time 2024-12-30 01:15:05 [2024-12-30 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132775', 'tblTempUsageDetail_20' ) start [2024-12-30 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132775', 'tblTempUsageDetail_20' ) end [2024-12-30 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132775', 'tblTempVendorCDR_20' ) start [2024-12-30 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132775', 'tblTempVendorCDR_20' ) end [2024-12-30 01:15:18] Production.INFO: ProcessCDR(1,14132775,1,1,2) [2024-12-30 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132775', 'tblTempUsageDetail_20' ) start [2024-12-30 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132775', 'tblTempUsageDetail_20' ) end [2024-12-30 01:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:15:21] Production.INFO: ==29665== Releasing lock... [2024-12-30 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:15:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:16:05 [end_date_ymd] => 2024-12-30 01:16:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:16:05' and `end` < '2024-12-30 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-30 01:16:18] Production.INFO: count ==223 [2024-12-30 01:16:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:16:05 - End Time 2024-12-30 01:16:05 [2024-12-30 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132780', 'tblTempUsageDetail_20' ) start [2024-12-30 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132780', 'tblTempUsageDetail_20' ) end [2024-12-30 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132780', 'tblTempVendorCDR_20' ) start [2024-12-30 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132780', 'tblTempVendorCDR_20' ) end [2024-12-30 01:16:18] Production.INFO: ProcessCDR(1,14132780,1,1,2) [2024-12-30 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132780', 'tblTempUsageDetail_20' ) start [2024-12-30 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132780', 'tblTempUsageDetail_20' ) end [2024-12-30 01:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:16:21] Production.INFO: ==29776== Releasing lock... [2024-12-30 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:16:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:17:05 [end_date_ymd] => 2024-12-30 01:17:05 [RateCDR] => 1 ) [2024-12-30 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:17:05' and `end` < '2024-12-30 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:17:18] Production.INFO: count ==220 [2024-12-30 01:17:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:17:05 - End Time 2024-12-30 01:17:05 [2024-12-30 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132785', 'tblTempUsageDetail_20' ) start [2024-12-30 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132785', 'tblTempUsageDetail_20' ) end [2024-12-30 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132785', 'tblTempVendorCDR_20' ) start [2024-12-30 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132785', 'tblTempVendorCDR_20' ) end [2024-12-30 01:17:18] Production.INFO: ProcessCDR(1,14132785,1,1,2) [2024-12-30 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132785', 'tblTempUsageDetail_20' ) start [2024-12-30 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132785', 'tblTempUsageDetail_20' ) end [2024-12-30 01:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:17:21] Production.INFO: ==29847== Releasing lock... [2024-12-30 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:17:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:18:05 [end_date_ymd] => 2024-12-30 01:18:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:18:05' and `end` < '2024-12-30 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-30 01:18:17] Production.INFO: count ==219 [2024-12-30 01:18:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:18:05 - End Time 2024-12-30 01:18:05 [2024-12-30 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132790', 'tblTempUsageDetail_20' ) start [2024-12-30 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132790', 'tblTempUsageDetail_20' ) end [2024-12-30 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132790', 'tblTempVendorCDR_20' ) start [2024-12-30 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132790', 'tblTempVendorCDR_20' ) end [2024-12-30 01:18:17] Production.INFO: ProcessCDR(1,14132790,1,1,2) [2024-12-30 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132790', 'tblTempUsageDetail_20' ) start [2024-12-30 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132790', 'tblTempUsageDetail_20' ) end [2024-12-30 01:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:18:21] Production.INFO: ==29916== Releasing lock... [2024-12-30 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:18:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:19:05 [end_date_ymd] => 2024-12-30 01:19:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:19:05' and `end` < '2024-12-30 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-30 01:19:20] Production.INFO: count ==219 [2024-12-30 01:19:21] Production.ERROR: pbx CDR StartTime 2024-12-29 22:19:05 - End Time 2024-12-30 01:19:05 [2024-12-30 01:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132795', 'tblTempUsageDetail_20' ) start [2024-12-30 01:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132795', 'tblTempUsageDetail_20' ) end [2024-12-30 01:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132795', 'tblTempVendorCDR_20' ) start [2024-12-30 01:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132795', 'tblTempVendorCDR_20' ) end [2024-12-30 01:19:21] Production.INFO: ProcessCDR(1,14132795,1,1,2) [2024-12-30 01:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132795', 'tblTempUsageDetail_20' ) start [2024-12-30 01:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132795', 'tblTempUsageDetail_20' ) end [2024-12-30 01:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:19:24] Production.INFO: ==29989== Releasing lock... [2024-12-30 01:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:19:24] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:20:05 [end_date_ymd] => 2024-12-30 01:20:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:20:05' and `end` < '2024-12-30 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-30 01:20:17] Production.INFO: count ==225 [2024-12-30 01:20:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:20:05 - End Time 2024-12-30 01:20:05 [2024-12-30 01:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132801', 'tblTempUsageDetail_20' ) start [2024-12-30 01:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132801', 'tblTempUsageDetail_20' ) end [2024-12-30 01:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132801', 'tblTempVendorCDR_20' ) start [2024-12-30 01:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132801', 'tblTempVendorCDR_20' ) end [2024-12-30 01:20:17] Production.INFO: ProcessCDR(1,14132801,1,1,2) [2024-12-30 01:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132801', 'tblTempUsageDetail_20' ) start [2024-12-30 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132801', 'tblTempUsageDetail_20' ) end [2024-12-30 01:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:20:21] Production.INFO: ==30064== Releasing lock... [2024-12-30 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:20:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:21:05 [end_date_ymd] => 2024-12-30 01:21:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:21:05' and `end` < '2024-12-30 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-30 01:21:18] Production.INFO: count ==233 [2024-12-30 01:21:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:21:05 - End Time 2024-12-30 01:21:05 [2024-12-30 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132806', 'tblTempUsageDetail_20' ) start [2024-12-30 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132806', 'tblTempUsageDetail_20' ) end [2024-12-30 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132806', 'tblTempVendorCDR_20' ) start [2024-12-30 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132806', 'tblTempVendorCDR_20' ) end [2024-12-30 01:21:18] Production.INFO: ProcessCDR(1,14132806,1,1,2) [2024-12-30 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132806', 'tblTempUsageDetail_20' ) start [2024-12-30 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132806', 'tblTempUsageDetail_20' ) end [2024-12-30 01:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:21:21] Production.INFO: ==30139== Releasing lock... [2024-12-30 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:21:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:22:05 [end_date_ymd] => 2024-12-30 01:22:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:22:05' and `end` < '2024-12-30 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-30 01:22:18] Production.INFO: count ==233 [2024-12-30 01:22:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:22:05 - End Time 2024-12-30 01:22:05 [2024-12-30 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132811', 'tblTempUsageDetail_20' ) start [2024-12-30 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132811', 'tblTempUsageDetail_20' ) end [2024-12-30 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132811', 'tblTempVendorCDR_20' ) start [2024-12-30 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132811', 'tblTempVendorCDR_20' ) end [2024-12-30 01:22:18] Production.INFO: ProcessCDR(1,14132811,1,1,2) [2024-12-30 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132811', 'tblTempUsageDetail_20' ) start [2024-12-30 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132811', 'tblTempUsageDetail_20' ) end [2024-12-30 01:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:22:21] Production.INFO: ==30213== Releasing lock... [2024-12-30 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:22:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:23:04 [end_date_ymd] => 2024-12-30 01:23:04 [RateCDR] => 1 ) [2024-12-30 01: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-29 22:23:04' and `end` < '2024-12-30 01: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-30 01:23:18] Production.INFO: count ==230 [2024-12-30 01:23:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:23:04 - End Time 2024-12-30 01:23:04 [2024-12-30 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132816', 'tblTempUsageDetail_20' ) start [2024-12-30 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132816', 'tblTempUsageDetail_20' ) end [2024-12-30 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132816', 'tblTempVendorCDR_20' ) start [2024-12-30 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132816', 'tblTempVendorCDR_20' ) end [2024-12-30 01:23:18] Production.INFO: ProcessCDR(1,14132816,1,1,2) [2024-12-30 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132816', 'tblTempUsageDetail_20' ) start [2024-12-30 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132816', 'tblTempUsageDetail_20' ) end [2024-12-30 01:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:23:21] Production.INFO: ==30286== Releasing lock... [2024-12-30 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:23:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:24:05 [end_date_ymd] => 2024-12-30 01:24:05 [RateCDR] => 1 ) [2024-12-30 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:24:05' and `end` < '2024-12-30 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:24:19] Production.INFO: count ==226 [2024-12-30 01:24:19] Production.ERROR: pbx CDR StartTime 2024-12-29 22:24:05 - End Time 2024-12-30 01:24:05 [2024-12-30 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132821', 'tblTempUsageDetail_20' ) start [2024-12-30 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132821', 'tblTempUsageDetail_20' ) end [2024-12-30 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132821', 'tblTempVendorCDR_20' ) start [2024-12-30 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132821', 'tblTempVendorCDR_20' ) end [2024-12-30 01:24:19] Production.INFO: ProcessCDR(1,14132821,1,1,2) [2024-12-30 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132821', 'tblTempUsageDetail_20' ) start [2024-12-30 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132821', 'tblTempUsageDetail_20' ) end [2024-12-30 01:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:24:22] Production.INFO: ==30357== Releasing lock... [2024-12-30 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:24:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 01:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:25:04 [end_date_ymd] => 2024-12-30 01:25:04 [RateCDR] => 1 ) [2024-12-30 01: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-29 22:25:04' and `end` < '2024-12-30 01: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-30 01:25:17] Production.INFO: count ==220 [2024-12-30 01:25:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:25:04 - End Time 2024-12-30 01:25:04 [2024-12-30 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132826', 'tblTempUsageDetail_20' ) start [2024-12-30 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132826', 'tblTempUsageDetail_20' ) end [2024-12-30 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132826', 'tblTempVendorCDR_20' ) start [2024-12-30 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132826', 'tblTempVendorCDR_20' ) end [2024-12-30 01:25:17] Production.INFO: ProcessCDR(1,14132826,1,1,2) [2024-12-30 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132826', 'tblTempUsageDetail_20' ) start [2024-12-30 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132826', 'tblTempUsageDetail_20' ) end [2024-12-30 01:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:25:20] Production.INFO: ==30426== Releasing lock... [2024-12-30 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:25:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:26:04 [end_date_ymd] => 2024-12-30 01:26:04 [RateCDR] => 1 ) [2024-12-30 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-29 22:26:04' and `end` < '2024-12-30 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-30 01:26:19] Production.INFO: count ==220 [2024-12-30 01:26:19] Production.ERROR: pbx CDR StartTime 2024-12-29 22:26:04 - End Time 2024-12-30 01:26:04 [2024-12-30 01:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132831', 'tblTempUsageDetail_20' ) start [2024-12-30 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132831', 'tblTempUsageDetail_20' ) end [2024-12-30 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132831', 'tblTempVendorCDR_20' ) start [2024-12-30 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132831', 'tblTempVendorCDR_20' ) end [2024-12-30 01:26:19] Production.INFO: ProcessCDR(1,14132831,1,1,2) [2024-12-30 01:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132831', 'tblTempUsageDetail_20' ) start [2024-12-30 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132831', 'tblTempUsageDetail_20' ) end [2024-12-30 01:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:26:22] Production.INFO: ==30498== Releasing lock... [2024-12-30 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:26:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:27:05 [end_date_ymd] => 2024-12-30 01:27:05 [RateCDR] => 1 ) [2024-12-30 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:27:05' and `end` < '2024-12-30 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:27:18] Production.INFO: count ==220 [2024-12-30 01:27:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:27:05 - End Time 2024-12-30 01:27:05 [2024-12-30 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132836', 'tblTempUsageDetail_20' ) start [2024-12-30 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132836', 'tblTempUsageDetail_20' ) end [2024-12-30 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132836', 'tblTempVendorCDR_20' ) start [2024-12-30 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132836', 'tblTempVendorCDR_20' ) end [2024-12-30 01:27:19] Production.INFO: ProcessCDR(1,14132836,1,1,2) [2024-12-30 01:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132836', 'tblTempUsageDetail_20' ) start [2024-12-30 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132836', 'tblTempUsageDetail_20' ) end [2024-12-30 01:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:27:22] Production.INFO: ==30570== Releasing lock... [2024-12-30 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:27:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:28:05 [end_date_ymd] => 2024-12-30 01:28:05 [RateCDR] => 1 ) [2024-12-30 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:28:05' and `end` < '2024-12-30 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:28:17] Production.INFO: count ==221 [2024-12-30 01:28:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:28:05 - End Time 2024-12-30 01:28:05 [2024-12-30 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132841', 'tblTempUsageDetail_20' ) start [2024-12-30 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132841', 'tblTempUsageDetail_20' ) end [2024-12-30 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132841', 'tblTempVendorCDR_20' ) start [2024-12-30 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132841', 'tblTempVendorCDR_20' ) end [2024-12-30 01:28:17] Production.INFO: ProcessCDR(1,14132841,1,1,2) [2024-12-30 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132841', 'tblTempUsageDetail_20' ) start [2024-12-30 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132841', 'tblTempUsageDetail_20' ) end [2024-12-30 01:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:28:22] Production.INFO: ==30641== Releasing lock... [2024-12-30 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:28:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 01:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:29:04 [end_date_ymd] => 2024-12-30 01:29:04 [RateCDR] => 1 ) [2024-12-30 01:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:29:04' and `end` < '2024-12-30 01:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:29:17] Production.INFO: count ==220 [2024-12-30 01:29:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:29:04 - End Time 2024-12-30 01:29:04 [2024-12-30 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132846', 'tblTempUsageDetail_20' ) start [2024-12-30 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132846', 'tblTempUsageDetail_20' ) end [2024-12-30 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132846', 'tblTempVendorCDR_20' ) start [2024-12-30 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132846', 'tblTempVendorCDR_20' ) end [2024-12-30 01:29:17] Production.INFO: ProcessCDR(1,14132846,1,1,2) [2024-12-30 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132846', 'tblTempUsageDetail_20' ) start [2024-12-30 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132846', 'tblTempUsageDetail_20' ) end [2024-12-30 01:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:29:20] Production.INFO: ==30712== Releasing lock... [2024-12-30 01:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:29:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:30:05 [end_date_ymd] => 2024-12-30 01:30:05 [RateCDR] => 1 ) [2024-12-30 01:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:30:05' and `end` < '2024-12-30 01:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:30:17] Production.INFO: count ==220 [2024-12-30 01:30:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:30:05 - End Time 2024-12-30 01:30:05 [2024-12-30 01:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132851', 'tblTempUsageDetail_20' ) start [2024-12-30 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132851', 'tblTempUsageDetail_20' ) end [2024-12-30 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132851', 'tblTempVendorCDR_20' ) start [2024-12-30 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132851', 'tblTempVendorCDR_20' ) end [2024-12-30 01:30:18] Production.INFO: ProcessCDR(1,14132851,1,1,2) [2024-12-30 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132851', 'tblTempUsageDetail_20' ) start [2024-12-30 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132851', 'tblTempUsageDetail_20' ) end [2024-12-30 01:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:30:21] Production.INFO: ==30791== Releasing lock... [2024-12-30 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:30:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:31:05 [end_date_ymd] => 2024-12-30 01:31:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:31:05' and `end` < '2024-12-30 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-30 01:31:18] Production.INFO: count ==220 [2024-12-30 01:31:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:31:05 - End Time 2024-12-30 01:31:05 [2024-12-30 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132857', 'tblTempUsageDetail_20' ) start [2024-12-30 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132857', 'tblTempUsageDetail_20' ) end [2024-12-30 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132857', 'tblTempVendorCDR_20' ) start [2024-12-30 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132857', 'tblTempVendorCDR_20' ) end [2024-12-30 01:31:18] Production.INFO: ProcessCDR(1,14132857,1,1,2) [2024-12-30 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132857', 'tblTempUsageDetail_20' ) start [2024-12-30 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132857', 'tblTempUsageDetail_20' ) end [2024-12-30 01:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:31:21] Production.INFO: ==30904== Releasing lock... [2024-12-30 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:31:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:32:05 [end_date_ymd] => 2024-12-30 01:32:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:32:05' and `end` < '2024-12-30 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-30 01:32:18] Production.INFO: count ==220 [2024-12-30 01:32:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:32:05 - End Time 2024-12-30 01:32:05 [2024-12-30 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132862', 'tblTempUsageDetail_20' ) start [2024-12-30 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132862', 'tblTempUsageDetail_20' ) end [2024-12-30 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132862', 'tblTempVendorCDR_20' ) start [2024-12-30 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132862', 'tblTempVendorCDR_20' ) end [2024-12-30 01:32:18] Production.INFO: ProcessCDR(1,14132862,1,1,2) [2024-12-30 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132862', 'tblTempUsageDetail_20' ) start [2024-12-30 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132862', 'tblTempUsageDetail_20' ) end [2024-12-30 01:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:32:21] Production.INFO: ==30975== Releasing lock... [2024-12-30 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:32:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:33:05 [end_date_ymd] => 2024-12-30 01:33:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:33:05' and `end` < '2024-12-30 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-30 01:33:17] Production.INFO: count ==220 [2024-12-30 01:33:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:33:05 - End Time 2024-12-30 01:33:05 [2024-12-30 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132867', 'tblTempUsageDetail_20' ) start [2024-12-30 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132867', 'tblTempUsageDetail_20' ) end [2024-12-30 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132867', 'tblTempVendorCDR_20' ) start [2024-12-30 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132867', 'tblTempVendorCDR_20' ) end [2024-12-30 01:33:18] Production.INFO: ProcessCDR(1,14132867,1,1,2) [2024-12-30 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132867', 'tblTempUsageDetail_20' ) start [2024-12-30 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132867', 'tblTempUsageDetail_20' ) end [2024-12-30 01:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:33:21] Production.INFO: ==31046== Releasing lock... [2024-12-30 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:33:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:34:05 [end_date_ymd] => 2024-12-30 01:34:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:34:05' and `end` < '2024-12-30 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-30 01:34:18] Production.INFO: count ==220 [2024-12-30 01:34:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:34:05 - End Time 2024-12-30 01:34:05 [2024-12-30 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132872', 'tblTempUsageDetail_20' ) start [2024-12-30 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132872', 'tblTempUsageDetail_20' ) end [2024-12-30 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132872', 'tblTempVendorCDR_20' ) start [2024-12-30 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132872', 'tblTempVendorCDR_20' ) end [2024-12-30 01:34:18] Production.INFO: ProcessCDR(1,14132872,1,1,2) [2024-12-30 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132872', 'tblTempUsageDetail_20' ) start [2024-12-30 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132872', 'tblTempUsageDetail_20' ) end [2024-12-30 01:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:34:22] Production.INFO: ==31118== Releasing lock... [2024-12-30 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:34:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:35:05 [end_date_ymd] => 2024-12-30 01:35:05 [RateCDR] => 1 ) [2024-12-30 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:35:05' and `end` < '2024-12-30 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:35:18] Production.INFO: count ==220 [2024-12-30 01:35:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:35:05 - End Time 2024-12-30 01:35:05 [2024-12-30 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132877', 'tblTempUsageDetail_20' ) start [2024-12-30 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132877', 'tblTempUsageDetail_20' ) end [2024-12-30 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132877', 'tblTempVendorCDR_20' ) start [2024-12-30 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132877', 'tblTempVendorCDR_20' ) end [2024-12-30 01:35:18] Production.INFO: ProcessCDR(1,14132877,1,1,2) [2024-12-30 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132877', 'tblTempUsageDetail_20' ) start [2024-12-30 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132877', 'tblTempUsageDetail_20' ) end [2024-12-30 01:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:35:21] Production.INFO: ==31191== Releasing lock... [2024-12-30 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:35:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:36:04 [end_date_ymd] => 2024-12-30 01:36:04 [RateCDR] => 1 ) [2024-12-30 01: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-29 22:36:04' and `end` < '2024-12-30 01: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-30 01:36:18] Production.INFO: count ==220 [2024-12-30 01:36:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:36:04 - End Time 2024-12-30 01:36:04 [2024-12-30 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132882', 'tblTempUsageDetail_20' ) start [2024-12-30 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132882', 'tblTempUsageDetail_20' ) end [2024-12-30 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132882', 'tblTempVendorCDR_20' ) start [2024-12-30 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132882', 'tblTempVendorCDR_20' ) end [2024-12-30 01:36:18] Production.INFO: ProcessCDR(1,14132882,1,1,2) [2024-12-30 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132882', 'tblTempUsageDetail_20' ) start [2024-12-30 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132882', 'tblTempUsageDetail_20' ) end [2024-12-30 01:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:36:21] Production.INFO: ==31263== Releasing lock... [2024-12-30 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:36:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:37:05 [end_date_ymd] => 2024-12-30 01:37:05 [RateCDR] => 1 ) [2024-12-30 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:37:05' and `end` < '2024-12-30 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:37:18] Production.INFO: count ==217 [2024-12-30 01:37:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:37:05 - End Time 2024-12-30 01:37:05 [2024-12-30 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132887', 'tblTempUsageDetail_20' ) start [2024-12-30 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132887', 'tblTempUsageDetail_20' ) end [2024-12-30 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132887', 'tblTempVendorCDR_20' ) start [2024-12-30 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132887', 'tblTempVendorCDR_20' ) end [2024-12-30 01:37:18] Production.INFO: ProcessCDR(1,14132887,1,1,2) [2024-12-30 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132887', 'tblTempUsageDetail_20' ) start [2024-12-30 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132887', 'tblTempUsageDetail_20' ) end [2024-12-30 01:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:37:22] Production.INFO: ==31338== Releasing lock... [2024-12-30 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:37:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:38:05 [end_date_ymd] => 2024-12-30 01:38:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:38:05' and `end` < '2024-12-30 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-30 01:38:18] Production.INFO: count ==217 [2024-12-30 01:38:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:38:05 - End Time 2024-12-30 01:38:05 [2024-12-30 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132892', 'tblTempUsageDetail_20' ) start [2024-12-30 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132892', 'tblTempUsageDetail_20' ) end [2024-12-30 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132892', 'tblTempVendorCDR_20' ) start [2024-12-30 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132892', 'tblTempVendorCDR_20' ) end [2024-12-30 01:38:18] Production.INFO: ProcessCDR(1,14132892,1,1,2) [2024-12-30 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132892', 'tblTempUsageDetail_20' ) start [2024-12-30 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132892', 'tblTempUsageDetail_20' ) end [2024-12-30 01:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:38:21] Production.INFO: ==31409== Releasing lock... [2024-12-30 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:38:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:39:04 [end_date_ymd] => 2024-12-30 01:39:04 [RateCDR] => 1 ) [2024-12-30 01: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-29 22:39:04' and `end` < '2024-12-30 01: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-30 01:39:18] Production.INFO: count ==217 [2024-12-30 01:39:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:39:04 - End Time 2024-12-30 01:39:04 [2024-12-30 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132897', 'tblTempUsageDetail_20' ) start [2024-12-30 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132897', 'tblTempUsageDetail_20' ) end [2024-12-30 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132897', 'tblTempVendorCDR_20' ) start [2024-12-30 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132897', 'tblTempVendorCDR_20' ) end [2024-12-30 01:39:18] Production.INFO: ProcessCDR(1,14132897,1,1,2) [2024-12-30 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132897', 'tblTempUsageDetail_20' ) start [2024-12-30 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132897', 'tblTempUsageDetail_20' ) end [2024-12-30 01:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:39:21] Production.INFO: ==31482== Releasing lock... [2024-12-30 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:39:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:40:05 [end_date_ymd] => 2024-12-30 01:40:05 [RateCDR] => 1 ) [2024-12-30 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:40:05' and `end` < '2024-12-30 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-30 01:40:18] Production.INFO: count ==220 [2024-12-30 01:40:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:40:05 - End Time 2024-12-30 01:40:05 [2024-12-30 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132903', 'tblTempUsageDetail_20' ) start [2024-12-30 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132903', 'tblTempUsageDetail_20' ) end [2024-12-30 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132903', 'tblTempVendorCDR_20' ) start [2024-12-30 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132903', 'tblTempVendorCDR_20' ) end [2024-12-30 01:40:18] Production.INFO: ProcessCDR(1,14132903,1,1,2) [2024-12-30 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132903', 'tblTempUsageDetail_20' ) start [2024-12-30 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132903', 'tblTempUsageDetail_20' ) end [2024-12-30 01:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:40:21] Production.INFO: ==31558== Releasing lock... [2024-12-30 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:40:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:41:05 [end_date_ymd] => 2024-12-30 01:41:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:41:05' and `end` < '2024-12-30 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-30 01:41:19] Production.INFO: count ==220 [2024-12-30 01:41:19] Production.ERROR: pbx CDR StartTime 2024-12-29 22:41:05 - End Time 2024-12-30 01:41:05 [2024-12-30 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132908', 'tblTempUsageDetail_20' ) start [2024-12-30 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132908', 'tblTempUsageDetail_20' ) end [2024-12-30 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132908', 'tblTempVendorCDR_20' ) start [2024-12-30 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132908', 'tblTempVendorCDR_20' ) end [2024-12-30 01:41:19] Production.INFO: ProcessCDR(1,14132908,1,1,2) [2024-12-30 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132908', 'tblTempUsageDetail_20' ) start [2024-12-30 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132908', 'tblTempUsageDetail_20' ) end [2024-12-30 01:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:41:22] Production.INFO: ==31632== Releasing lock... [2024-12-30 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:41:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:42:05 [end_date_ymd] => 2024-12-30 01:42:05 [RateCDR] => 1 ) [2024-12-30 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:42:05' and `end` < '2024-12-30 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:42:18] Production.INFO: count ==220 [2024-12-30 01:42:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:42:05 - End Time 2024-12-30 01:42:05 [2024-12-30 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132913', 'tblTempUsageDetail_20' ) start [2024-12-30 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132913', 'tblTempUsageDetail_20' ) end [2024-12-30 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132913', 'tblTempVendorCDR_20' ) start [2024-12-30 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132913', 'tblTempVendorCDR_20' ) end [2024-12-30 01:42:18] Production.INFO: ProcessCDR(1,14132913,1,1,2) [2024-12-30 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132913', 'tblTempUsageDetail_20' ) start [2024-12-30 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132913', 'tblTempUsageDetail_20' ) end [2024-12-30 01:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:42:22] Production.INFO: ==31705== Releasing lock... [2024-12-30 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:42:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:43:04 [end_date_ymd] => 2024-12-30 01:43:04 [RateCDR] => 1 ) [2024-12-30 01: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-29 22:43:04' and `end` < '2024-12-30 01: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-30 01:43:18] Production.INFO: count ==220 [2024-12-30 01:43:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:43:04 - End Time 2024-12-30 01:43:04 [2024-12-30 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132918', 'tblTempUsageDetail_20' ) start [2024-12-30 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132918', 'tblTempUsageDetail_20' ) end [2024-12-30 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132918', 'tblTempVendorCDR_20' ) start [2024-12-30 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132918', 'tblTempVendorCDR_20' ) end [2024-12-30 01:43:18] Production.INFO: ProcessCDR(1,14132918,1,1,2) [2024-12-30 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132918', 'tblTempUsageDetail_20' ) start [2024-12-30 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132918', 'tblTempUsageDetail_20' ) end [2024-12-30 01:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:43:21] Production.INFO: ==31774== Releasing lock... [2024-12-30 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:43:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:44:05 [end_date_ymd] => 2024-12-30 01:44:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:44:05' and `end` < '2024-12-30 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-30 01:44:17] Production.INFO: count ==218 [2024-12-30 01:44:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:44:05 - End Time 2024-12-30 01:44:05 [2024-12-30 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132923', 'tblTempUsageDetail_20' ) start [2024-12-30 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132923', 'tblTempUsageDetail_20' ) end [2024-12-30 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132923', 'tblTempVendorCDR_20' ) start [2024-12-30 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132923', 'tblTempVendorCDR_20' ) end [2024-12-30 01:44:17] Production.INFO: ProcessCDR(1,14132923,1,1,2) [2024-12-30 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132923', 'tblTempUsageDetail_20' ) start [2024-12-30 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132923', 'tblTempUsageDetail_20' ) end [2024-12-30 01:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:44:20] Production.INFO: ==31846== Releasing lock... [2024-12-30 01:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:44:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:45:05 [end_date_ymd] => 2024-12-30 01:45:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:45:05' and `end` < '2024-12-30 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-30 01:45:17] Production.INFO: count ==218 [2024-12-30 01:45:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:45:05 - End Time 2024-12-30 01:45:05 [2024-12-30 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132928', 'tblTempUsageDetail_20' ) start [2024-12-30 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132928', 'tblTempUsageDetail_20' ) end [2024-12-30 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132928', 'tblTempVendorCDR_20' ) start [2024-12-30 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132928', 'tblTempVendorCDR_20' ) end [2024-12-30 01:45:18] Production.INFO: ProcessCDR(1,14132928,1,1,2) [2024-12-30 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132928', 'tblTempUsageDetail_20' ) start [2024-12-30 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132928', 'tblTempUsageDetail_20' ) end [2024-12-30 01:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:45:21] Production.INFO: ==31920== Releasing lock... [2024-12-30 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:45:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:46:04 [end_date_ymd] => 2024-12-30 01:46:04 [RateCDR] => 1 ) [2024-12-30 01: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-29 22:46:04' and `end` < '2024-12-30 01: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-30 01:46:16] Production.INFO: count ==218 [2024-12-30 01:46:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:46:04 - End Time 2024-12-30 01:46:04 [2024-12-30 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132933', 'tblTempUsageDetail_20' ) start [2024-12-30 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132933', 'tblTempUsageDetail_20' ) end [2024-12-30 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132933', 'tblTempVendorCDR_20' ) start [2024-12-30 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132933', 'tblTempVendorCDR_20' ) end [2024-12-30 01:46:17] Production.INFO: ProcessCDR(1,14132933,1,1,2) [2024-12-30 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:46:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:46:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132933', 'tblTempUsageDetail_20' ) start [2024-12-30 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132933', 'tblTempUsageDetail_20' ) end [2024-12-30 01:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:46:20] Production.INFO: ==31989== Releasing lock... [2024-12-30 01:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:46:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:47:05 [end_date_ymd] => 2024-12-30 01:47:05 [RateCDR] => 1 ) [2024-12-30 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:47:05' and `end` < '2024-12-30 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:47:17] Production.INFO: count ==221 [2024-12-30 01:47:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:47:05 - End Time 2024-12-30 01:47:05 [2024-12-30 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132938', 'tblTempUsageDetail_20' ) start [2024-12-30 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132938', 'tblTempUsageDetail_20' ) end [2024-12-30 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132938', 'tblTempVendorCDR_20' ) start [2024-12-30 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132938', 'tblTempVendorCDR_20' ) end [2024-12-30 01:47:17] Production.INFO: ProcessCDR(1,14132938,1,1,2) [2024-12-30 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132938', 'tblTempUsageDetail_20' ) start [2024-12-30 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132938', 'tblTempUsageDetail_20' ) end [2024-12-30 01:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:47:21] Production.INFO: ==32103== Releasing lock... [2024-12-30 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:47:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:48:04 [end_date_ymd] => 2024-12-30 01:48:04 [RateCDR] => 1 ) [2024-12-30 01: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-29 22:48:04' and `end` < '2024-12-30 01: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-30 01:48:17] Production.INFO: count ==221 [2024-12-30 01:48:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:48:04 - End Time 2024-12-30 01:48:04 [2024-12-30 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132943', 'tblTempUsageDetail_20' ) start [2024-12-30 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132943', 'tblTempUsageDetail_20' ) end [2024-12-30 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132943', 'tblTempVendorCDR_20' ) start [2024-12-30 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132943', 'tblTempVendorCDR_20' ) end [2024-12-30 01:48:17] Production.INFO: ProcessCDR(1,14132943,1,1,2) [2024-12-30 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132943', 'tblTempUsageDetail_20' ) start [2024-12-30 01:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132943', 'tblTempUsageDetail_20' ) end [2024-12-30 01:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:48:20] Production.INFO: ==32179== Releasing lock... [2024-12-30 01:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:48:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:49:05 [end_date_ymd] => 2024-12-30 01:49:05 [RateCDR] => 1 ) [2024-12-30 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:49:05' and `end` < '2024-12-30 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:49:17] Production.INFO: count ==221 [2024-12-30 01:49:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:49:05 - End Time 2024-12-30 01:49:05 [2024-12-30 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132948', 'tblTempUsageDetail_20' ) start [2024-12-30 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132948', 'tblTempUsageDetail_20' ) end [2024-12-30 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132948', 'tblTempVendorCDR_20' ) start [2024-12-30 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132948', 'tblTempVendorCDR_20' ) end [2024-12-30 01:49:17] Production.INFO: ProcessCDR(1,14132948,1,1,2) [2024-12-30 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132948', 'tblTempUsageDetail_20' ) start [2024-12-30 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132948', 'tblTempUsageDetail_20' ) end [2024-12-30 01:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:49:21] Production.INFO: ==32252== Releasing lock... [2024-12-30 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:49:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:50:05 [end_date_ymd] => 2024-12-30 01:50:05 [RateCDR] => 1 ) [2024-12-30 01:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:50:05' and `end` < '2024-12-30 01:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:50:18] Production.INFO: count ==226 [2024-12-30 01:50:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:50:05 - End Time 2024-12-30 01:50:05 [2024-12-30 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132954', 'tblTempUsageDetail_20' ) start [2024-12-30 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132954', 'tblTempUsageDetail_20' ) end [2024-12-30 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132954', 'tblTempVendorCDR_20' ) start [2024-12-30 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132954', 'tblTempVendorCDR_20' ) end [2024-12-30 01:50:18] Production.INFO: ProcessCDR(1,14132954,1,1,2) [2024-12-30 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132954', 'tblTempUsageDetail_20' ) start [2024-12-30 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132954', 'tblTempUsageDetail_20' ) end [2024-12-30 01:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:50:22] Production.INFO: ==32324== Releasing lock... [2024-12-30 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:50:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:51:05 [end_date_ymd] => 2024-12-30 01:51:05 [RateCDR] => 1 ) [2024-12-30 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:51:05' and `end` < '2024-12-30 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:51:17] Production.INFO: count ==235 [2024-12-30 01:51:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:51:05 - End Time 2024-12-30 01:51:05 [2024-12-30 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132959', 'tblTempUsageDetail_20' ) start [2024-12-30 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132959', 'tblTempUsageDetail_20' ) end [2024-12-30 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132959', 'tblTempVendorCDR_20' ) start [2024-12-30 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132959', 'tblTempVendorCDR_20' ) end [2024-12-30 01:51:17] Production.INFO: ProcessCDR(1,14132959,1,1,2) [2024-12-30 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132959', 'tblTempUsageDetail_20' ) start [2024-12-30 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132959', 'tblTempUsageDetail_20' ) end [2024-12-30 01:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:51:21] Production.INFO: ==32399== Releasing lock... [2024-12-30 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:51:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:52:05 [end_date_ymd] => 2024-12-30 01:52:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:52:05' and `end` < '2024-12-30 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-30 01:52:18] Production.INFO: count ==235 [2024-12-30 01:52:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:52:05 - End Time 2024-12-30 01:52:05 [2024-12-30 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132964', 'tblTempUsageDetail_20' ) start [2024-12-30 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132964', 'tblTempUsageDetail_20' ) end [2024-12-30 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132964', 'tblTempVendorCDR_20' ) start [2024-12-30 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132964', 'tblTempVendorCDR_20' ) end [2024-12-30 01:52:18] Production.INFO: ProcessCDR(1,14132964,1,1,2) [2024-12-30 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132964', 'tblTempUsageDetail_20' ) start [2024-12-30 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132964', 'tblTempUsageDetail_20' ) end [2024-12-30 01:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:52:21] Production.INFO: ==32481== Releasing lock... [2024-12-30 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:52:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:53:04 [end_date_ymd] => 2024-12-30 01:53:04 [RateCDR] => 1 ) [2024-12-30 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-29 22:53:04' and `end` < '2024-12-30 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-30 01:53:17] Production.INFO: count ==235 [2024-12-30 01:53:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:53:04 - End Time 2024-12-30 01:53:04 [2024-12-30 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132969', 'tblTempUsageDetail_20' ) start [2024-12-30 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132969', 'tblTempUsageDetail_20' ) end [2024-12-30 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132969', 'tblTempVendorCDR_20' ) start [2024-12-30 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132969', 'tblTempVendorCDR_20' ) end [2024-12-30 01:53:17] Production.INFO: ProcessCDR(1,14132969,1,1,2) [2024-12-30 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132969', 'tblTempUsageDetail_20' ) start [2024-12-30 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132969', 'tblTempUsageDetail_20' ) end [2024-12-30 01:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:53:20] Production.INFO: ==32554== Releasing lock... [2024-12-30 01:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:53:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:54:05 [end_date_ymd] => 2024-12-30 01:54:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:54:05' and `end` < '2024-12-30 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-30 01:54:17] Production.INFO: count ==234 [2024-12-30 01:54:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:54:05 - End Time 2024-12-30 01:54:05 [2024-12-30 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132974', 'tblTempUsageDetail_20' ) start [2024-12-30 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132974', 'tblTempUsageDetail_20' ) end [2024-12-30 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132974', 'tblTempVendorCDR_20' ) start [2024-12-30 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132974', 'tblTempVendorCDR_20' ) end [2024-12-30 01:54:17] Production.INFO: ProcessCDR(1,14132974,1,1,2) [2024-12-30 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132974', 'tblTempUsageDetail_20' ) start [2024-12-30 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132974', 'tblTempUsageDetail_20' ) end [2024-12-30 01:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:54:21] Production.INFO: ==32625== Releasing lock... [2024-12-30 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:54:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:55:05 [end_date_ymd] => 2024-12-30 01:55:05 [RateCDR] => 1 ) [2024-12-30 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-29 22:55:05' and `end` < '2024-12-30 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-30 01:55:17] Production.INFO: count ==234 [2024-12-30 01:55:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:55:05 - End Time 2024-12-30 01:55:05 [2024-12-30 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132979', 'tblTempUsageDetail_20' ) start [2024-12-30 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132979', 'tblTempUsageDetail_20' ) end [2024-12-30 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132979', 'tblTempVendorCDR_20' ) start [2024-12-30 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132979', 'tblTempVendorCDR_20' ) end [2024-12-30 01:55:17] Production.INFO: ProcessCDR(1,14132979,1,1,2) [2024-12-30 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132979', 'tblTempUsageDetail_20' ) start [2024-12-30 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132979', 'tblTempUsageDetail_20' ) end [2024-12-30 01:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:55:21] Production.INFO: ==32696== Releasing lock... [2024-12-30 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:55:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:56:05 [end_date_ymd] => 2024-12-30 01:56:05 [RateCDR] => 1 ) [2024-12-30 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:56:05' and `end` < '2024-12-30 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:56:18] Production.INFO: count ==232 [2024-12-30 01:56:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:56:05 - End Time 2024-12-30 01:56:05 [2024-12-30 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132984', 'tblTempUsageDetail_20' ) start [2024-12-30 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132984', 'tblTempUsageDetail_20' ) end [2024-12-30 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132984', 'tblTempVendorCDR_20' ) start [2024-12-30 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132984', 'tblTempVendorCDR_20' ) end [2024-12-30 01:56:18] Production.INFO: ProcessCDR(1,14132984,1,1,2) [2024-12-30 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132984', 'tblTempUsageDetail_20' ) start [2024-12-30 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132984', 'tblTempUsageDetail_20' ) end [2024-12-30 01:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:56:21] Production.INFO: ==32767== Releasing lock... [2024-12-30 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:56:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 01:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:57:04 [end_date_ymd] => 2024-12-30 01:57:04 [RateCDR] => 1 ) [2024-12-30 01: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-29 22:57:04' and `end` < '2024-12-30 01: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-30 01:57:17] Production.INFO: count ==231 [2024-12-30 01:57:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:57:04 - End Time 2024-12-30 01:57:04 [2024-12-30 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132989', 'tblTempUsageDetail_20' ) start [2024-12-30 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132989', 'tblTempUsageDetail_20' ) end [2024-12-30 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132989', 'tblTempVendorCDR_20' ) start [2024-12-30 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132989', 'tblTempVendorCDR_20' ) end [2024-12-30 01:57:17] Production.INFO: ProcessCDR(1,14132989,1,1,2) [2024-12-30 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132989', 'tblTempUsageDetail_20' ) start [2024-12-30 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132989', 'tblTempUsageDetail_20' ) end [2024-12-30 01:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:57:20] Production.INFO: ==388== Releasing lock... [2024-12-30 01:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:57:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:58:05 [end_date_ymd] => 2024-12-30 01:58:05 [RateCDR] => 1 ) [2024-12-30 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 22:58:05' and `end` < '2024-12-30 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 01:58:17] Production.INFO: count ==231 [2024-12-30 01:58:17] Production.ERROR: pbx CDR StartTime 2024-12-29 22:58:05 - End Time 2024-12-30 01:58:05 [2024-12-30 01:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132994', 'tblTempUsageDetail_20' ) start [2024-12-30 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132994', 'tblTempUsageDetail_20' ) end [2024-12-30 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132994', 'tblTempVendorCDR_20' ) start [2024-12-30 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132994', 'tblTempVendorCDR_20' ) end [2024-12-30 01:58:17] Production.INFO: ProcessCDR(1,14132994,1,1,2) [2024-12-30 01:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132994', 'tblTempUsageDetail_20' ) start [2024-12-30 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132994', 'tblTempUsageDetail_20' ) end [2024-12-30 01:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:58:21] Production.INFO: ==467== Releasing lock... [2024-12-30 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:58:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 01:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 22:59:04 [end_date_ymd] => 2024-12-30 01:59:04 [RateCDR] => 1 ) [2024-12-30 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-29 22:59:04' and `end` < '2024-12-30 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-30 01:59:18] Production.INFO: count ==234 [2024-12-30 01:59:18] Production.ERROR: pbx CDR StartTime 2024-12-29 22:59:04 - End Time 2024-12-30 01:59:04 [2024-12-30 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132999', 'tblTempUsageDetail_20' ) start [2024-12-30 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14132999', 'tblTempUsageDetail_20' ) end [2024-12-30 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132999', 'tblTempVendorCDR_20' ) start [2024-12-30 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14132999', 'tblTempVendorCDR_20' ) end [2024-12-30 01:59:18] Production.INFO: ProcessCDR(1,14132999,1,1,2) [2024-12-30 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14132999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14132999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14132999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14132999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132999', 'tblTempUsageDetail_20' ) start [2024-12-30 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14132999', 'tblTempUsageDetail_20' ) end [2024-12-30 01:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 01:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 01:59:21] Production.INFO: ==539== Releasing lock... [2024-12-30 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 01:59:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:00:06 [end_date_ymd] => 2024-12-30 02:00:06 [RateCDR] => 1 ) [2024-12-30 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-29 23:00:06' and `end` < '2024-12-30 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-30 02:00:18] Production.INFO: count ==241 [2024-12-30 02:00:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:00:06 - End Time 2024-12-30 02:00:06 [2024-12-30 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133005', 'tblTempUsageDetail_20' ) start [2024-12-30 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133005', 'tblTempUsageDetail_20' ) end [2024-12-30 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133005', 'tblTempVendorCDR_20' ) start [2024-12-30 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133005', 'tblTempVendorCDR_20' ) end [2024-12-30 02:00:18] Production.INFO: ProcessCDR(1,14133005,1,1,2) [2024-12-30 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133005', 'tblTempUsageDetail_20' ) start [2024-12-30 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133005', 'tblTempUsageDetail_20' ) end [2024-12-30 02:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:00:22] Production.INFO: ==624== Releasing lock... [2024-12-30 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:00:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:01:05 [end_date_ymd] => 2024-12-30 02:01:05 [RateCDR] => 1 ) [2024-12-30 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 23:01:05' and `end` < '2024-12-30 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 02:01:20] Production.INFO: count ==243 [2024-12-30 02:01:20] Production.ERROR: pbx CDR StartTime 2024-12-29 23:01:05 - End Time 2024-12-30 02:01:05 [2024-12-30 02:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133010', 'tblTempUsageDetail_20' ) start [2024-12-30 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133010', 'tblTempUsageDetail_20' ) end [2024-12-30 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133010', 'tblTempVendorCDR_20' ) start [2024-12-30 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133010', 'tblTempVendorCDR_20' ) end [2024-12-30 02:01:20] Production.INFO: ProcessCDR(1,14133010,1,1,2) [2024-12-30 02:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133010', 'tblTempUsageDetail_20' ) start [2024-12-30 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133010', 'tblTempUsageDetail_20' ) end [2024-12-30 02:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:01:23] Production.INFO: ==825== Releasing lock... [2024-12-30 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:01:23] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:02:05 [end_date_ymd] => 2024-12-30 02:02:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:02:05' and `end` < '2024-12-30 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-30 02:02:18] Production.INFO: count ==243 [2024-12-30 02:02:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:02:05 - End Time 2024-12-30 02:02:05 [2024-12-30 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133015', 'tblTempUsageDetail_20' ) start [2024-12-30 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133015', 'tblTempUsageDetail_20' ) end [2024-12-30 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133015', 'tblTempVendorCDR_20' ) start [2024-12-30 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133015', 'tblTempVendorCDR_20' ) end [2024-12-30 02:02:18] Production.INFO: ProcessCDR(1,14133015,1,1,2) [2024-12-30 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133015', 'tblTempUsageDetail_20' ) start [2024-12-30 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133015', 'tblTempUsageDetail_20' ) end [2024-12-30 02:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:02:21] Production.INFO: ==904== Releasing lock... [2024-12-30 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:02:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:03:05 [end_date_ymd] => 2024-12-30 02:03:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:03:05' and `end` < '2024-12-30 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-30 02:03:18] Production.INFO: count ==243 [2024-12-30 02:03:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:03:05 - End Time 2024-12-30 02:03:05 [2024-12-30 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133020', 'tblTempUsageDetail_20' ) start [2024-12-30 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133020', 'tblTempUsageDetail_20' ) end [2024-12-30 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133020', 'tblTempVendorCDR_20' ) start [2024-12-30 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133020', 'tblTempVendorCDR_20' ) end [2024-12-30 02:03:18] Production.INFO: ProcessCDR(1,14133020,1,1,2) [2024-12-30 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133020', 'tblTempUsageDetail_20' ) start [2024-12-30 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133020', 'tblTempUsageDetail_20' ) end [2024-12-30 02:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:03:21] Production.INFO: ==1018== Releasing lock... [2024-12-30 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:03:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 02:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:04:04 [end_date_ymd] => 2024-12-30 02:04:04 [RateCDR] => 1 ) [2024-12-30 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-29 23:04:04' and `end` < '2024-12-30 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-30 02:04:19] Production.INFO: count ==240 [2024-12-30 02:04:19] Production.ERROR: pbx CDR StartTime 2024-12-29 23:04:04 - End Time 2024-12-30 02:04:04 [2024-12-30 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133025', 'tblTempUsageDetail_20' ) start [2024-12-30 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133025', 'tblTempUsageDetail_20' ) end [2024-12-30 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133025', 'tblTempVendorCDR_20' ) start [2024-12-30 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133025', 'tblTempVendorCDR_20' ) end [2024-12-30 02:04:19] Production.INFO: ProcessCDR(1,14133025,1,1,2) [2024-12-30 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133025', 'tblTempUsageDetail_20' ) start [2024-12-30 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133025', 'tblTempUsageDetail_20' ) end [2024-12-30 02:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:04:22] Production.INFO: ==1090== Releasing lock... [2024-12-30 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:04:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:05:05 [end_date_ymd] => 2024-12-30 02:05:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:05:05' and `end` < '2024-12-30 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-30 02:05:18] Production.INFO: count ==236 [2024-12-30 02:05:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:05:05 - End Time 2024-12-30 02:05:05 [2024-12-30 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133030', 'tblTempUsageDetail_20' ) start [2024-12-30 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133030', 'tblTempUsageDetail_20' ) end [2024-12-30 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133030', 'tblTempVendorCDR_20' ) start [2024-12-30 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133030', 'tblTempVendorCDR_20' ) end [2024-12-30 02:05:18] Production.INFO: ProcessCDR(1,14133030,1,1,2) [2024-12-30 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133030', 'tblTempUsageDetail_20' ) start [2024-12-30 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133030', 'tblTempUsageDetail_20' ) end [2024-12-30 02:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:05:21] Production.INFO: ==1179== Releasing lock... [2024-12-30 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:05:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:06:05 [end_date_ymd] => 2024-12-30 02:06:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:06:05' and `end` < '2024-12-30 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-30 02:06:18] Production.INFO: count ==236 [2024-12-30 02:06:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:06:05 - End Time 2024-12-30 02:06:05 [2024-12-30 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133035', 'tblTempUsageDetail_20' ) start [2024-12-30 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133035', 'tblTempUsageDetail_20' ) end [2024-12-30 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133035', 'tblTempVendorCDR_20' ) start [2024-12-30 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133035', 'tblTempVendorCDR_20' ) end [2024-12-30 02:06:18] Production.INFO: ProcessCDR(1,14133035,1,1,2) [2024-12-30 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133035', 'tblTempUsageDetail_20' ) start [2024-12-30 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133035', 'tblTempUsageDetail_20' ) end [2024-12-30 02:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:06:21] Production.INFO: ==1271== Releasing lock... [2024-12-30 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:06:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:07:05 [end_date_ymd] => 2024-12-30 02:07:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:07:05' and `end` < '2024-12-30 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-30 02:07:18] Production.INFO: count ==234 [2024-12-30 02:07:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:07:05 - End Time 2024-12-30 02:07:05 [2024-12-30 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133040', 'tblTempUsageDetail_20' ) start [2024-12-30 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133040', 'tblTempUsageDetail_20' ) end [2024-12-30 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133040', 'tblTempVendorCDR_20' ) start [2024-12-30 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133040', 'tblTempVendorCDR_20' ) end [2024-12-30 02:07:18] Production.INFO: ProcessCDR(1,14133040,1,1,2) [2024-12-30 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133040', 'tblTempUsageDetail_20' ) start [2024-12-30 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133040', 'tblTempUsageDetail_20' ) end [2024-12-30 02:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:07:21] Production.INFO: ==1352== Releasing lock... [2024-12-30 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:07:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:08:05 [end_date_ymd] => 2024-12-30 02:08:05 [RateCDR] => 1 ) [2024-12-30 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 23:08:05' and `end` < '2024-12-30 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 02:08:18] Production.INFO: count ==234 [2024-12-30 02:08:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:08:05 - End Time 2024-12-30 02:08:05 [2024-12-30 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133045', 'tblTempUsageDetail_20' ) start [2024-12-30 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133045', 'tblTempUsageDetail_20' ) end [2024-12-30 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133045', 'tblTempVendorCDR_20' ) start [2024-12-30 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133045', 'tblTempVendorCDR_20' ) end [2024-12-30 02:08:18] Production.INFO: ProcessCDR(1,14133045,1,1,2) [2024-12-30 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133045', 'tblTempUsageDetail_20' ) start [2024-12-30 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133045', 'tblTempUsageDetail_20' ) end [2024-12-30 02:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:08:21] Production.INFO: ==1442== Releasing lock... [2024-12-30 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:08:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 02:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:09:04 [end_date_ymd] => 2024-12-30 02:09:04 [RateCDR] => 1 ) [2024-12-30 02: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-29 23:09:04' and `end` < '2024-12-30 02: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-30 02:09:17] Production.INFO: count ==234 [2024-12-30 02:09:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:09:04 - End Time 2024-12-30 02:09:04 [2024-12-30 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133050', 'tblTempUsageDetail_20' ) start [2024-12-30 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133050', 'tblTempUsageDetail_20' ) end [2024-12-30 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133050', 'tblTempVendorCDR_20' ) start [2024-12-30 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133050', 'tblTempVendorCDR_20' ) end [2024-12-30 02:09:17] Production.INFO: ProcessCDR(1,14133050,1,1,2) [2024-12-30 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133050', 'tblTempUsageDetail_20' ) start [2024-12-30 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133050', 'tblTempUsageDetail_20' ) end [2024-12-30 02:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:09:20] Production.INFO: ==1555== Releasing lock... [2024-12-30 02:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:09:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:10:05 [end_date_ymd] => 2024-12-30 02:10:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:10:05' and `end` < '2024-12-30 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-30 02:10:19] Production.INFO: count ==240 [2024-12-30 02:10:19] Production.ERROR: pbx CDR StartTime 2024-12-29 23:10:05 - End Time 2024-12-30 02:10:05 [2024-12-30 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133056', 'tblTempUsageDetail_20' ) start [2024-12-30 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133056', 'tblTempUsageDetail_20' ) end [2024-12-30 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133056', 'tblTempVendorCDR_20' ) start [2024-12-30 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133056', 'tblTempVendorCDR_20' ) end [2024-12-30 02:10:19] Production.INFO: ProcessCDR(1,14133056,1,1,2) [2024-12-30 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133056', 'tblTempUsageDetail_20' ) start [2024-12-30 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133056', 'tblTempUsageDetail_20' ) end [2024-12-30 02:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:10:22] Production.INFO: ==1652== Releasing lock... [2024-12-30 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:10:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 02:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:11:04 [end_date_ymd] => 2024-12-30 02:11:04 [RateCDR] => 1 ) [2024-12-30 02: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-29 23:11:04' and `end` < '2024-12-30 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-30 02:11:17] Production.INFO: count ==241 [2024-12-30 02:11:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:11:04 - End Time 2024-12-30 02:11:04 [2024-12-30 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133061', 'tblTempUsageDetail_20' ) start [2024-12-30 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133061', 'tblTempUsageDetail_20' ) end [2024-12-30 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133061', 'tblTempVendorCDR_20' ) start [2024-12-30 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133061', 'tblTempVendorCDR_20' ) end [2024-12-30 02:11:17] Production.INFO: ProcessCDR(1,14133061,1,1,2) [2024-12-30 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133061', 'tblTempUsageDetail_20' ) start [2024-12-30 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133061', 'tblTempUsageDetail_20' ) end [2024-12-30 02:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:11:20] Production.INFO: ==1735== Releasing lock... [2024-12-30 02:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:11:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:12:05 [end_date_ymd] => 2024-12-30 02:12:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:12:05' and `end` < '2024-12-30 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-30 02:12:18] Production.INFO: count ==238 [2024-12-30 02:12:19] Production.ERROR: pbx CDR StartTime 2024-12-29 23:12:05 - End Time 2024-12-30 02:12:05 [2024-12-30 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133066', 'tblTempUsageDetail_20' ) start [2024-12-30 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133066', 'tblTempUsageDetail_20' ) end [2024-12-30 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133066', 'tblTempVendorCDR_20' ) start [2024-12-30 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133066', 'tblTempVendorCDR_20' ) end [2024-12-30 02:12:19] Production.INFO: ProcessCDR(1,14133066,1,1,2) [2024-12-30 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133066', 'tblTempUsageDetail_20' ) start [2024-12-30 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133066', 'tblTempUsageDetail_20' ) end [2024-12-30 02:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:12:22] Production.INFO: ==1822== Releasing lock... [2024-12-30 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:12:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:13:05 [end_date_ymd] => 2024-12-30 02:13:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:13:05' and `end` < '2024-12-30 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-30 02:13:19] Production.INFO: count ==238 [2024-12-30 02:13:19] Production.ERROR: pbx CDR StartTime 2024-12-29 23:13:05 - End Time 2024-12-30 02:13:05 [2024-12-30 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133071', 'tblTempUsageDetail_20' ) start [2024-12-30 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133071', 'tblTempUsageDetail_20' ) end [2024-12-30 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133071', 'tblTempVendorCDR_20' ) start [2024-12-30 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133071', 'tblTempVendorCDR_20' ) end [2024-12-30 02:13:19] Production.INFO: ProcessCDR(1,14133071,1,1,2) [2024-12-30 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133071', 'tblTempUsageDetail_20' ) start [2024-12-30 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133071', 'tblTempUsageDetail_20' ) end [2024-12-30 02:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:13:22] Production.INFO: ==1912== Releasing lock... [2024-12-30 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:13:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:14:05 [end_date_ymd] => 2024-12-30 02:14:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:14:05' and `end` < '2024-12-30 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-30 02:14:17] Production.INFO: count ==237 [2024-12-30 02:14:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:14:05 - End Time 2024-12-30 02:14:05 [2024-12-30 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133076', 'tblTempUsageDetail_20' ) start [2024-12-30 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133076', 'tblTempUsageDetail_20' ) end [2024-12-30 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133076', 'tblTempVendorCDR_20' ) start [2024-12-30 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133076', 'tblTempVendorCDR_20' ) end [2024-12-30 02:14:17] Production.INFO: ProcessCDR(1,14133076,1,1,2) [2024-12-30 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133076', 'tblTempUsageDetail_20' ) start [2024-12-30 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133076', 'tblTempUsageDetail_20' ) end [2024-12-30 02:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:14:20] Production.INFO: ==1996== Releasing lock... [2024-12-30 02:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:14:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:15:05 [end_date_ymd] => 2024-12-30 02:15:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:15:05' and `end` < '2024-12-30 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-30 02:15:18] Production.INFO: count ==235 [2024-12-30 02:15:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:15:05 - End Time 2024-12-30 02:15:05 [2024-12-30 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133081', 'tblTempUsageDetail_20' ) start [2024-12-30 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133081', 'tblTempUsageDetail_20' ) end [2024-12-30 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133081', 'tblTempVendorCDR_20' ) start [2024-12-30 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133081', 'tblTempVendorCDR_20' ) end [2024-12-30 02:15:18] Production.INFO: ProcessCDR(1,14133081,1,1,2) [2024-12-30 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133081', 'tblTempUsageDetail_20' ) start [2024-12-30 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133081', 'tblTempUsageDetail_20' ) end [2024-12-30 02:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:15:21] Production.INFO: ==2077== Releasing lock... [2024-12-30 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:15:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 02:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:16:04 [end_date_ymd] => 2024-12-30 02:16:04 [RateCDR] => 1 ) [2024-12-30 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-29 23:16:04' and `end` < '2024-12-30 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-30 02:16:17] Production.INFO: count ==234 [2024-12-30 02:16:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:16:04 - End Time 2024-12-30 02:16:04 [2024-12-30 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133086', 'tblTempUsageDetail_20' ) start [2024-12-30 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133086', 'tblTempUsageDetail_20' ) end [2024-12-30 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133086', 'tblTempVendorCDR_20' ) start [2024-12-30 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133086', 'tblTempVendorCDR_20' ) end [2024-12-30 02:16:17] Production.INFO: ProcessCDR(1,14133086,1,1,2) [2024-12-30 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133086', 'tblTempUsageDetail_20' ) start [2024-12-30 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133086', 'tblTempUsageDetail_20' ) end [2024-12-30 02:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:16:20] Production.INFO: ==2158== Releasing lock... [2024-12-30 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:16:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:17:05 [end_date_ymd] => 2024-12-30 02:17:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:17:05' and `end` < '2024-12-30 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-30 02:17:18] Production.INFO: count ==223 [2024-12-30 02:17:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:17:05 - End Time 2024-12-30 02:17:05 [2024-12-30 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133091', 'tblTempUsageDetail_20' ) start [2024-12-30 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133091', 'tblTempUsageDetail_20' ) end [2024-12-30 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133091', 'tblTempVendorCDR_20' ) start [2024-12-30 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133091', 'tblTempVendorCDR_20' ) end [2024-12-30 02:17:18] Production.INFO: ProcessCDR(1,14133091,1,1,2) [2024-12-30 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133091', 'tblTempUsageDetail_20' ) start [2024-12-30 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133091', 'tblTempUsageDetail_20' ) end [2024-12-30 02:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:17:23] Production.INFO: ==2238== Releasing lock... [2024-12-30 02:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:17:23] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:18:04 [end_date_ymd] => 2024-12-30 02:18:04 [RateCDR] => 1 ) [2024-12-30 02:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 23:18:04' and `end` < '2024-12-30 02:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 02:18:17] Production.INFO: count ==221 [2024-12-30 02:18:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:18:04 - End Time 2024-12-30 02:18:04 [2024-12-30 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133096', 'tblTempUsageDetail_20' ) start [2024-12-30 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133096', 'tblTempUsageDetail_20' ) end [2024-12-30 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133096', 'tblTempVendorCDR_20' ) start [2024-12-30 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133096', 'tblTempVendorCDR_20' ) end [2024-12-30 02:18:17] Production.INFO: ProcessCDR(1,14133096,1,1,2) [2024-12-30 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133096', 'tblTempUsageDetail_20' ) start [2024-12-30 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133096', 'tblTempUsageDetail_20' ) end [2024-12-30 02:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:18:21] Production.INFO: ==2318== Releasing lock... [2024-12-30 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:18:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:19:05 [end_date_ymd] => 2024-12-30 02:19:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:19:05' and `end` < '2024-12-30 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-30 02:19:18] Production.INFO: count ==221 [2024-12-30 02:19:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:19:05 - End Time 2024-12-30 02:19:05 [2024-12-30 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133101', 'tblTempUsageDetail_20' ) start [2024-12-30 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133101', 'tblTempUsageDetail_20' ) end [2024-12-30 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133101', 'tblTempVendorCDR_20' ) start [2024-12-30 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133101', 'tblTempVendorCDR_20' ) end [2024-12-30 02:19:18] Production.INFO: ProcessCDR(1,14133101,1,1,2) [2024-12-30 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133101', 'tblTempUsageDetail_20' ) start [2024-12-30 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133101', 'tblTempUsageDetail_20' ) end [2024-12-30 02:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:19:21] Production.INFO: ==2436== Releasing lock... [2024-12-30 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:19:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:20:06 [end_date_ymd] => 2024-12-30 02:20:06 [RateCDR] => 1 ) [2024-12-30 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-29 23:20:06' and `end` < '2024-12-30 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-30 02:20:18] Production.INFO: count ==220 [2024-12-30 02:20:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:20:06 - End Time 2024-12-30 02:20:06 [2024-12-30 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133107', 'tblTempUsageDetail_20' ) start [2024-12-30 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133107', 'tblTempUsageDetail_20' ) end [2024-12-30 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133107', 'tblTempVendorCDR_20' ) start [2024-12-30 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133107', 'tblTempVendorCDR_20' ) end [2024-12-30 02:20:18] Production.INFO: ProcessCDR(1,14133107,1,1,2) [2024-12-30 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133107', 'tblTempUsageDetail_20' ) start [2024-12-30 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133107', 'tblTempUsageDetail_20' ) end [2024-12-30 02:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:20:21] Production.INFO: ==2515== Releasing lock... [2024-12-30 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:20:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:21:05 [end_date_ymd] => 2024-12-30 02:21:05 [RateCDR] => 1 ) [2024-12-30 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 23:21:05' and `end` < '2024-12-30 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 02:21:17] Production.INFO: count ==220 [2024-12-30 02:21:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:21:05 - End Time 2024-12-30 02:21:05 [2024-12-30 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133112', 'tblTempUsageDetail_20' ) start [2024-12-30 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133112', 'tblTempUsageDetail_20' ) end [2024-12-30 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133112', 'tblTempVendorCDR_20' ) start [2024-12-30 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133112', 'tblTempVendorCDR_20' ) end [2024-12-30 02:21:17] Production.INFO: ProcessCDR(1,14133112,1,1,2) [2024-12-30 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133112', 'tblTempUsageDetail_20' ) start [2024-12-30 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133112', 'tblTempUsageDetail_20' ) end [2024-12-30 02:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:21:20] Production.INFO: ==2592== Releasing lock... [2024-12-30 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:21:20] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:22:05 [end_date_ymd] => 2024-12-30 02:22:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:22:05' and `end` < '2024-12-30 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-30 02:22:17] Production.INFO: count ==220 [2024-12-30 02:22:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:22:05 - End Time 2024-12-30 02:22:05 [2024-12-30 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133117', 'tblTempUsageDetail_20' ) start [2024-12-30 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133117', 'tblTempUsageDetail_20' ) end [2024-12-30 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133117', 'tblTempVendorCDR_20' ) start [2024-12-30 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133117', 'tblTempVendorCDR_20' ) end [2024-12-30 02:22:17] Production.INFO: ProcessCDR(1,14133117,1,1,2) [2024-12-30 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133117', 'tblTempUsageDetail_20' ) start [2024-12-30 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133117', 'tblTempUsageDetail_20' ) end [2024-12-30 02:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:22:21] Production.INFO: ==2672== Releasing lock... [2024-12-30 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:22:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:23:04 [end_date_ymd] => 2024-12-30 02:23:04 [RateCDR] => 1 ) [2024-12-30 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-29 23:23:04' and `end` < '2024-12-30 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-30 02:23:17] Production.INFO: count ==220 [2024-12-30 02:23:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:23:04 - End Time 2024-12-30 02:23:04 [2024-12-30 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133122', 'tblTempUsageDetail_20' ) start [2024-12-30 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133122', 'tblTempUsageDetail_20' ) end [2024-12-30 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133122', 'tblTempVendorCDR_20' ) start [2024-12-30 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133122', 'tblTempVendorCDR_20' ) end [2024-12-30 02:23:17] Production.INFO: ProcessCDR(1,14133122,1,1,2) [2024-12-30 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133122', 'tblTempUsageDetail_20' ) start [2024-12-30 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133122', 'tblTempUsageDetail_20' ) end [2024-12-30 02:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:23:20] Production.INFO: ==2750== Releasing lock... [2024-12-30 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:23:20] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:24:05 [end_date_ymd] => 2024-12-30 02:24:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:24:05' and `end` < '2024-12-30 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-30 02:24:17] Production.INFO: count ==223 [2024-12-30 02:24:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:24:05 - End Time 2024-12-30 02:24:05 [2024-12-30 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133127', 'tblTempUsageDetail_20' ) start [2024-12-30 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133127', 'tblTempUsageDetail_20' ) end [2024-12-30 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133127', 'tblTempVendorCDR_20' ) start [2024-12-30 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133127', 'tblTempVendorCDR_20' ) end [2024-12-30 02:24:17] Production.INFO: ProcessCDR(1,14133127,1,1,2) [2024-12-30 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133127', 'tblTempUsageDetail_20' ) start [2024-12-30 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133127', 'tblTempUsageDetail_20' ) end [2024-12-30 02:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:24:20] Production.INFO: ==2822== Releasing lock... [2024-12-30 02:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:24:20] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:25:04 [end_date_ymd] => 2024-12-30 02:25:04 [RateCDR] => 1 ) [2024-12-30 02: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-29 23:25:04' and `end` < '2024-12-30 02: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-30 02:25:17] Production.INFO: count ==222 [2024-12-30 02:25:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:25:04 - End Time 2024-12-30 02:25:04 [2024-12-30 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133132', 'tblTempUsageDetail_20' ) start [2024-12-30 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133132', 'tblTempUsageDetail_20' ) end [2024-12-30 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133132', 'tblTempVendorCDR_20' ) start [2024-12-30 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133132', 'tblTempVendorCDR_20' ) end [2024-12-30 02:25:17] Production.INFO: ProcessCDR(1,14133132,1,1,2) [2024-12-30 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133132', 'tblTempUsageDetail_20' ) start [2024-12-30 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133132', 'tblTempUsageDetail_20' ) end [2024-12-30 02:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:25:20] Production.INFO: ==2898== Releasing lock... [2024-12-30 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:25:20] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:26:05 [end_date_ymd] => 2024-12-30 02:26:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:26:05' and `end` < '2024-12-30 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-30 02:26:20] Production.INFO: count ==222 [2024-12-30 02:26:20] Production.ERROR: pbx CDR StartTime 2024-12-29 23:26:05 - End Time 2024-12-30 02:26:05 [2024-12-30 02:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133137', 'tblTempUsageDetail_20' ) start [2024-12-30 02:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133137', 'tblTempUsageDetail_20' ) end [2024-12-30 02:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133137', 'tblTempVendorCDR_20' ) start [2024-12-30 02:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133137', 'tblTempVendorCDR_20' ) end [2024-12-30 02:26:20] Production.INFO: ProcessCDR(1,14133137,1,1,2) [2024-12-30 02:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133137', 'tblTempUsageDetail_20' ) start [2024-12-30 02:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133137', 'tblTempUsageDetail_20' ) end [2024-12-30 02:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:26:23] Production.INFO: ==2973== Releasing lock... [2024-12-30 02:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:26:23] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:27:05 [end_date_ymd] => 2024-12-30 02:27:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:27:05' and `end` < '2024-12-30 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-30 02:27:18] Production.INFO: count ==226 [2024-12-30 02:27:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:27:05 - End Time 2024-12-30 02:27:05 [2024-12-30 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133142', 'tblTempUsageDetail_20' ) start [2024-12-30 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133142', 'tblTempUsageDetail_20' ) end [2024-12-30 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133142', 'tblTempVendorCDR_20' ) start [2024-12-30 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133142', 'tblTempVendorCDR_20' ) end [2024-12-30 02:27:18] Production.INFO: ProcessCDR(1,14133142,1,1,2) [2024-12-30 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133142', 'tblTempUsageDetail_20' ) start [2024-12-30 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133142', 'tblTempUsageDetail_20' ) end [2024-12-30 02:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:27:21] Production.INFO: ==3051== Releasing lock... [2024-12-30 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:27:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:28:05 [end_date_ymd] => 2024-12-30 02:28:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:28:05' and `end` < '2024-12-30 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-30 02:28:17] Production.INFO: count ==226 [2024-12-30 02:28:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:28:05 - End Time 2024-12-30 02:28:05 [2024-12-30 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133147', 'tblTempUsageDetail_20' ) start [2024-12-30 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133147', 'tblTempUsageDetail_20' ) end [2024-12-30 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133147', 'tblTempVendorCDR_20' ) start [2024-12-30 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133147', 'tblTempVendorCDR_20' ) end [2024-12-30 02:28:17] Production.INFO: ProcessCDR(1,14133147,1,1,2) [2024-12-30 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133147', 'tblTempUsageDetail_20' ) start [2024-12-30 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133147', 'tblTempUsageDetail_20' ) end [2024-12-30 02:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:28:21] Production.INFO: ==3125== Releasing lock... [2024-12-30 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:28:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:29:05 [end_date_ymd] => 2024-12-30 02:29:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:29:05' and `end` < '2024-12-30 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-30 02:29:18] Production.INFO: count ==226 [2024-12-30 02:29:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:29:05 - End Time 2024-12-30 02:29:05 [2024-12-30 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133152', 'tblTempUsageDetail_20' ) start [2024-12-30 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133152', 'tblTempUsageDetail_20' ) end [2024-12-30 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133152', 'tblTempVendorCDR_20' ) start [2024-12-30 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133152', 'tblTempVendorCDR_20' ) end [2024-12-30 02:29:18] Production.INFO: ProcessCDR(1,14133152,1,1,2) [2024-12-30 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133152', 'tblTempUsageDetail_20' ) start [2024-12-30 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133152', 'tblTempUsageDetail_20' ) end [2024-12-30 02:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:29:21] Production.INFO: ==3197== Releasing lock... [2024-12-30 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:29:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:30:05 [end_date_ymd] => 2024-12-30 02:30:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:30:05' and `end` < '2024-12-30 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-30 02:30:18] Production.INFO: count ==228 [2024-12-30 02:30:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:30:05 - End Time 2024-12-30 02:30:05 [2024-12-30 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133157', 'tblTempUsageDetail_20' ) start [2024-12-30 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133157', 'tblTempUsageDetail_20' ) end [2024-12-30 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133157', 'tblTempVendorCDR_20' ) start [2024-12-30 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133157', 'tblTempVendorCDR_20' ) end [2024-12-30 02:30:18] Production.INFO: ProcessCDR(1,14133157,1,1,2) [2024-12-30 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133157', 'tblTempUsageDetail_20' ) start [2024-12-30 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133157', 'tblTempUsageDetail_20' ) end [2024-12-30 02:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:30:21] Production.INFO: ==3275== Releasing lock... [2024-12-30 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:30:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:31:05 [end_date_ymd] => 2024-12-30 02:31:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:31:05' and `end` < '2024-12-30 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 02:31:18] Production.INFO: count ==228 [2024-12-30 02:31:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:31:05 - End Time 2024-12-30 02:31:05 [2024-12-30 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133163', 'tblTempUsageDetail_20' ) start [2024-12-30 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133163', 'tblTempUsageDetail_20' ) end [2024-12-30 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133163', 'tblTempVendorCDR_20' ) start [2024-12-30 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133163', 'tblTempVendorCDR_20' ) end [2024-12-30 02:31:18] Production.INFO: ProcessCDR(1,14133163,1,1,2) [2024-12-30 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133163', 'tblTempUsageDetail_20' ) start [2024-12-30 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133163', 'tblTempUsageDetail_20' ) end [2024-12-30 02:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:31:21] Production.INFO: ==3349== Releasing lock... [2024-12-30 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:31:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:32:05 [end_date_ymd] => 2024-12-30 02:32:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:32:05' and `end` < '2024-12-30 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-30 02:32:18] Production.INFO: count ==226 [2024-12-30 02:32:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:32:05 - End Time 2024-12-30 02:32:05 [2024-12-30 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133168', 'tblTempUsageDetail_20' ) start [2024-12-30 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133168', 'tblTempUsageDetail_20' ) end [2024-12-30 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133168', 'tblTempVendorCDR_20' ) start [2024-12-30 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133168', 'tblTempVendorCDR_20' ) end [2024-12-30 02:32:18] Production.INFO: ProcessCDR(1,14133168,1,1,2) [2024-12-30 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133168', 'tblTempUsageDetail_20' ) start [2024-12-30 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133168', 'tblTempUsageDetail_20' ) end [2024-12-30 02:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:32:21] Production.INFO: ==3420== Releasing lock... [2024-12-30 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:32:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:33:05 [end_date_ymd] => 2024-12-30 02:33:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:33:05' and `end` < '2024-12-30 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-30 02:33:18] Production.INFO: count ==224 [2024-12-30 02:33:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:33:05 - End Time 2024-12-30 02:33:05 [2024-12-30 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133173', 'tblTempUsageDetail_20' ) start [2024-12-30 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133173', 'tblTempUsageDetail_20' ) end [2024-12-30 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133173', 'tblTempVendorCDR_20' ) start [2024-12-30 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133173', 'tblTempVendorCDR_20' ) end [2024-12-30 02:33:18] Production.INFO: ProcessCDR(1,14133173,1,1,2) [2024-12-30 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133173', 'tblTempUsageDetail_20' ) start [2024-12-30 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133173', 'tblTempUsageDetail_20' ) end [2024-12-30 02:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:33:21] Production.INFO: ==3498== Releasing lock... [2024-12-30 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:33:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:34:04 [end_date_ymd] => 2024-12-30 02:34:04 [RateCDR] => 1 ) [2024-12-30 02: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-29 23:34:04' and `end` < '2024-12-30 02: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-30 02:34:17] Production.INFO: count ==224 [2024-12-30 02:34:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:34:04 - End Time 2024-12-30 02:34:04 [2024-12-30 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133178', 'tblTempUsageDetail_20' ) start [2024-12-30 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133178', 'tblTempUsageDetail_20' ) end [2024-12-30 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133178', 'tblTempVendorCDR_20' ) start [2024-12-30 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133178', 'tblTempVendorCDR_20' ) end [2024-12-30 02:34:17] Production.INFO: ProcessCDR(1,14133178,1,1,2) [2024-12-30 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133178', 'tblTempUsageDetail_20' ) start [2024-12-30 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133178', 'tblTempUsageDetail_20' ) end [2024-12-30 02:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:34:21] Production.INFO: ==3615== Releasing lock... [2024-12-30 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:34:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:35:05 [end_date_ymd] => 2024-12-30 02:35:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:35:05' and `end` < '2024-12-30 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-30 02:35:18] Production.INFO: count ==224 [2024-12-30 02:35:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:35:05 - End Time 2024-12-30 02:35:05 [2024-12-30 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133183', 'tblTempUsageDetail_20' ) start [2024-12-30 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133183', 'tblTempUsageDetail_20' ) end [2024-12-30 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133183', 'tblTempVendorCDR_20' ) start [2024-12-30 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133183', 'tblTempVendorCDR_20' ) end [2024-12-30 02:35:18] Production.INFO: ProcessCDR(1,14133183,1,1,2) [2024-12-30 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133183', 'tblTempUsageDetail_20' ) start [2024-12-30 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133183', 'tblTempUsageDetail_20' ) end [2024-12-30 02:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:35:21] Production.INFO: ==3694== Releasing lock... [2024-12-30 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:35:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:36:04 [end_date_ymd] => 2024-12-30 02:36:04 [RateCDR] => 1 ) [2024-12-30 02: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-29 23:36:04' and `end` < '2024-12-30 02: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-30 02:36:17] Production.INFO: count ==223 [2024-12-30 02:36:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:36:04 - End Time 2024-12-30 02:36:04 [2024-12-30 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133188', 'tblTempUsageDetail_20' ) start [2024-12-30 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133188', 'tblTempUsageDetail_20' ) end [2024-12-30 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133188', 'tblTempVendorCDR_20' ) start [2024-12-30 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133188', 'tblTempVendorCDR_20' ) end [2024-12-30 02:36:18] Production.INFO: ProcessCDR(1,14133188,1,1,2) [2024-12-30 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133188', 'tblTempUsageDetail_20' ) start [2024-12-30 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133188', 'tblTempUsageDetail_20' ) end [2024-12-30 02:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:36:22] Production.INFO: ==3773== Releasing lock... [2024-12-30 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:36:22] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:37:05 [end_date_ymd] => 2024-12-30 02:37:05 [RateCDR] => 1 ) [2024-12-30 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 23:37:05' and `end` < '2024-12-30 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 02:37:18] Production.INFO: count ==222 [2024-12-30 02:37:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:37:05 - End Time 2024-12-30 02:37:05 [2024-12-30 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133193', 'tblTempUsageDetail_20' ) start [2024-12-30 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133193', 'tblTempUsageDetail_20' ) end [2024-12-30 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133193', 'tblTempVendorCDR_20' ) start [2024-12-30 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133193', 'tblTempVendorCDR_20' ) end [2024-12-30 02:37:18] Production.INFO: ProcessCDR(1,14133193,1,1,2) [2024-12-30 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133193', 'tblTempUsageDetail_20' ) start [2024-12-30 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133193', 'tblTempUsageDetail_20' ) end [2024-12-30 02:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:37:21] Production.INFO: ==3857== Releasing lock... [2024-12-30 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:37:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:38:04 [end_date_ymd] => 2024-12-30 02:38:04 [RateCDR] => 1 ) [2024-12-30 02: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-29 23:38:04' and `end` < '2024-12-30 02: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-30 02:38:17] Production.INFO: count ==222 [2024-12-30 02:38:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:38:04 - End Time 2024-12-30 02:38:04 [2024-12-30 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133198', 'tblTempUsageDetail_20' ) start [2024-12-30 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133198', 'tblTempUsageDetail_20' ) end [2024-12-30 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133198', 'tblTempVendorCDR_20' ) start [2024-12-30 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133198', 'tblTempVendorCDR_20' ) end [2024-12-30 02:38:17] Production.INFO: ProcessCDR(1,14133198,1,1,2) [2024-12-30 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133198', 'tblTempUsageDetail_20' ) start [2024-12-30 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133198', 'tblTempUsageDetail_20' ) end [2024-12-30 02:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:38:20] Production.INFO: ==3937== Releasing lock... [2024-12-30 02:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:38:20] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:39:05 [end_date_ymd] => 2024-12-30 02:39:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:39:05' and `end` < '2024-12-30 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-30 02:39:17] Production.INFO: count ==222 [2024-12-30 02:39:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:39:05 - End Time 2024-12-30 02:39:05 [2024-12-30 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133203', 'tblTempUsageDetail_20' ) start [2024-12-30 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133203', 'tblTempUsageDetail_20' ) end [2024-12-30 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133203', 'tblTempVendorCDR_20' ) start [2024-12-30 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133203', 'tblTempVendorCDR_20' ) end [2024-12-30 02:39:17] Production.INFO: ProcessCDR(1,14133203,1,1,2) [2024-12-30 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133203', 'tblTempUsageDetail_20' ) start [2024-12-30 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133203', 'tblTempUsageDetail_20' ) end [2024-12-30 02:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:39:21] Production.INFO: ==4016== Releasing lock... [2024-12-30 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:39:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:40:06 [end_date_ymd] => 2024-12-30 02:40:06 [RateCDR] => 1 ) [2024-12-30 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-29 23:40:06' and `end` < '2024-12-30 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-30 02:40:19] Production.INFO: count ==226 [2024-12-30 02:40:19] Production.ERROR: pbx CDR StartTime 2024-12-29 23:40:06 - End Time 2024-12-30 02:40:06 [2024-12-30 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133209', 'tblTempUsageDetail_20' ) start [2024-12-30 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133209', 'tblTempUsageDetail_20' ) end [2024-12-30 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133209', 'tblTempVendorCDR_20' ) start [2024-12-30 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133209', 'tblTempVendorCDR_20' ) end [2024-12-30 02:40:19] Production.INFO: ProcessCDR(1,14133209,1,1,2) [2024-12-30 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133209', 'tblTempUsageDetail_20' ) start [2024-12-30 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133209', 'tblTempUsageDetail_20' ) end [2024-12-30 02:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:40:22] Production.INFO: ==4099== Releasing lock... [2024-12-30 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:40:22] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:41:04 [end_date_ymd] => 2024-12-30 02:41:04 [RateCDR] => 1 ) [2024-12-30 02: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-29 23:41:04' and `end` < '2024-12-30 02: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-30 02:41:18] Production.INFO: count ==227 [2024-12-30 02:41:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:41:04 - End Time 2024-12-30 02:41:04 [2024-12-30 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133214', 'tblTempUsageDetail_20' ) start [2024-12-30 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133214', 'tblTempUsageDetail_20' ) end [2024-12-30 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133214', 'tblTempVendorCDR_20' ) start [2024-12-30 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133214', 'tblTempVendorCDR_20' ) end [2024-12-30 02:41:18] Production.INFO: ProcessCDR(1,14133214,1,1,2) [2024-12-30 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133214', 'tblTempUsageDetail_20' ) start [2024-12-30 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133214', 'tblTempUsageDetail_20' ) end [2024-12-30 02:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:41:21] Production.INFO: ==4177== Releasing lock... [2024-12-30 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:41:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:42:05 [end_date_ymd] => 2024-12-30 02:42:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:42:05' and `end` < '2024-12-30 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-30 02:42:18] Production.INFO: count ==227 [2024-12-30 02:42:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:42:05 - End Time 2024-12-30 02:42:05 [2024-12-30 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133219', 'tblTempUsageDetail_20' ) start [2024-12-30 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133219', 'tblTempUsageDetail_20' ) end [2024-12-30 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133219', 'tblTempVendorCDR_20' ) start [2024-12-30 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133219', 'tblTempVendorCDR_20' ) end [2024-12-30 02:42:18] Production.INFO: ProcessCDR(1,14133219,1,1,2) [2024-12-30 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133219', 'tblTempUsageDetail_20' ) start [2024-12-30 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133219', 'tblTempUsageDetail_20' ) end [2024-12-30 02:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:42:21] Production.INFO: ==4258== Releasing lock... [2024-12-30 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:42:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:43:04 [end_date_ymd] => 2024-12-30 02:43:04 [RateCDR] => 1 ) [2024-12-30 02: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-29 23:43:04' and `end` < '2024-12-30 02: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-30 02:43:18] Production.INFO: count ==227 [2024-12-30 02:43:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:43:04 - End Time 2024-12-30 02:43:04 [2024-12-30 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133224', 'tblTempUsageDetail_20' ) start [2024-12-30 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133224', 'tblTempUsageDetail_20' ) end [2024-12-30 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133224', 'tblTempVendorCDR_20' ) start [2024-12-30 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133224', 'tblTempVendorCDR_20' ) end [2024-12-30 02:43:18] Production.INFO: ProcessCDR(1,14133224,1,1,2) [2024-12-30 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133224', 'tblTempUsageDetail_20' ) start [2024-12-30 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133224', 'tblTempUsageDetail_20' ) end [2024-12-30 02:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:43:21] Production.INFO: ==4340== Releasing lock... [2024-12-30 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:43:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:44:05 [end_date_ymd] => 2024-12-30 02:44:05 [RateCDR] => 1 ) [2024-12-30 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 23:44:05' and `end` < '2024-12-30 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 02:44:18] Production.INFO: count ==227 [2024-12-30 02:44:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:44:05 - End Time 2024-12-30 02:44:05 [2024-12-30 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133229', 'tblTempUsageDetail_20' ) start [2024-12-30 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133229', 'tblTempUsageDetail_20' ) end [2024-12-30 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133229', 'tblTempVendorCDR_20' ) start [2024-12-30 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133229', 'tblTempVendorCDR_20' ) end [2024-12-30 02:44:18] Production.INFO: ProcessCDR(1,14133229,1,1,2) [2024-12-30 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133229', 'tblTempUsageDetail_20' ) start [2024-12-30 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133229', 'tblTempUsageDetail_20' ) end [2024-12-30 02:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:44:21] Production.INFO: ==4417== Releasing lock... [2024-12-30 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:44:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:45:05 [end_date_ymd] => 2024-12-30 02:45:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:45:05' and `end` < '2024-12-30 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-30 02:45:18] Production.INFO: count ==227 [2024-12-30 02:45:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:45:05 - End Time 2024-12-30 02:45:05 [2024-12-30 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133234', 'tblTempUsageDetail_20' ) start [2024-12-30 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133234', 'tblTempUsageDetail_20' ) end [2024-12-30 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133234', 'tblTempVendorCDR_20' ) start [2024-12-30 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133234', 'tblTempVendorCDR_20' ) end [2024-12-30 02:45:18] Production.INFO: ProcessCDR(1,14133234,1,1,2) [2024-12-30 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133234', 'tblTempUsageDetail_20' ) start [2024-12-30 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133234', 'tblTempUsageDetail_20' ) end [2024-12-30 02:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:45:21] Production.INFO: ==4494== Releasing lock... [2024-12-30 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:45:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:46:04 [end_date_ymd] => 2024-12-30 02:46:04 [RateCDR] => 1 ) [2024-12-30 02: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-29 23:46:04' and `end` < '2024-12-30 02: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-30 02:46:19] Production.INFO: count ==225 [2024-12-30 02:46:19] Production.ERROR: pbx CDR StartTime 2024-12-29 23:46:04 - End Time 2024-12-30 02:46:04 [2024-12-30 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133239', 'tblTempUsageDetail_20' ) start [2024-12-30 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133239', 'tblTempUsageDetail_20' ) end [2024-12-30 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133239', 'tblTempVendorCDR_20' ) start [2024-12-30 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133239', 'tblTempVendorCDR_20' ) end [2024-12-30 02:46:19] Production.INFO: ProcessCDR(1,14133239,1,1,2) [2024-12-30 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133239', 'tblTempUsageDetail_20' ) start [2024-12-30 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133239', 'tblTempUsageDetail_20' ) end [2024-12-30 02:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:46:22] Production.INFO: ==4620== Releasing lock... [2024-12-30 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:46:22] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:47:05 [end_date_ymd] => 2024-12-30 02:47:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:47:05' and `end` < '2024-12-30 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-30 02:47:17] Production.INFO: count ==224 [2024-12-30 02:47:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:47:05 - End Time 2024-12-30 02:47:05 [2024-12-30 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133244', 'tblTempUsageDetail_20' ) start [2024-12-30 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133244', 'tblTempUsageDetail_20' ) end [2024-12-30 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133244', 'tblTempVendorCDR_20' ) start [2024-12-30 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133244', 'tblTempVendorCDR_20' ) end [2024-12-30 02:47:17] Production.INFO: ProcessCDR(1,14133244,1,1,2) [2024-12-30 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133244', 'tblTempUsageDetail_20' ) start [2024-12-30 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133244', 'tblTempUsageDetail_20' ) end [2024-12-30 02:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:47:20] Production.INFO: ==4703== Releasing lock... [2024-12-30 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:47:20] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:48:05 [end_date_ymd] => 2024-12-30 02:48:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:48:05' and `end` < '2024-12-30 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-30 02:48:19] Production.INFO: count ==222 [2024-12-30 02:48:19] Production.ERROR: pbx CDR StartTime 2024-12-29 23:48:05 - End Time 2024-12-30 02:48:05 [2024-12-30 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133249', 'tblTempUsageDetail_20' ) start [2024-12-30 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133249', 'tblTempUsageDetail_20' ) end [2024-12-30 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133249', 'tblTempVendorCDR_20' ) start [2024-12-30 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133249', 'tblTempVendorCDR_20' ) end [2024-12-30 02:48:19] Production.INFO: ProcessCDR(1,14133249,1,1,2) [2024-12-30 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133249', 'tblTempUsageDetail_20' ) start [2024-12-30 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133249', 'tblTempUsageDetail_20' ) end [2024-12-30 02:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:48:22] Production.INFO: ==4782== Releasing lock... [2024-12-30 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:48:22] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:49:05 [end_date_ymd] => 2024-12-30 02:49:05 [RateCDR] => 1 ) [2024-12-30 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 23:49:05' and `end` < '2024-12-30 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 02:49:18] Production.INFO: count ==222 [2024-12-30 02:49:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:49:05 - End Time 2024-12-30 02:49:05 [2024-12-30 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133254', 'tblTempUsageDetail_20' ) start [2024-12-30 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133254', 'tblTempUsageDetail_20' ) end [2024-12-30 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133254', 'tblTempVendorCDR_20' ) start [2024-12-30 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133254', 'tblTempVendorCDR_20' ) end [2024-12-30 02:49:18] Production.INFO: ProcessCDR(1,14133254,1,1,2) [2024-12-30 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133254', 'tblTempUsageDetail_20' ) start [2024-12-30 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133254', 'tblTempUsageDetail_20' ) end [2024-12-30 02:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:49:21] Production.INFO: ==4864== Releasing lock... [2024-12-30 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:49:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:50:05 [end_date_ymd] => 2024-12-30 02:50:05 [RateCDR] => 1 ) [2024-12-30 02: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-29 23:50:05' and `end` < '2024-12-30 02: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-30 02:50:18] Production.INFO: count ==222 [2024-12-30 02:50:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:50:05 - End Time 2024-12-30 02:50:05 [2024-12-30 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133260', 'tblTempUsageDetail_20' ) start [2024-12-30 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133260', 'tblTempUsageDetail_20' ) end [2024-12-30 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133260', 'tblTempVendorCDR_20' ) start [2024-12-30 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133260', 'tblTempVendorCDR_20' ) end [2024-12-30 02:50:18] Production.INFO: ProcessCDR(1,14133260,1,1,2) [2024-12-30 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133260', 'tblTempUsageDetail_20' ) start [2024-12-30 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133260', 'tblTempUsageDetail_20' ) end [2024-12-30 02:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:50:21] Production.INFO: ==4982== Releasing lock... [2024-12-30 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:50:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:51:05 [end_date_ymd] => 2024-12-30 02:51:05 [RateCDR] => 1 ) [2024-12-30 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 23:51:05' and `end` < '2024-12-30 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 02:51:18] Production.INFO: count ==221 [2024-12-30 02:51:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:51:05 - End Time 2024-12-30 02:51:05 [2024-12-30 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133265', 'tblTempUsageDetail_20' ) start [2024-12-30 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133265', 'tblTempUsageDetail_20' ) end [2024-12-30 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133265', 'tblTempVendorCDR_20' ) start [2024-12-30 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133265', 'tblTempVendorCDR_20' ) end [2024-12-30 02:51:18] Production.INFO: ProcessCDR(1,14133265,1,1,2) [2024-12-30 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133265', 'tblTempUsageDetail_20' ) start [2024-12-30 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133265', 'tblTempUsageDetail_20' ) end [2024-12-30 02:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:51:21] Production.INFO: ==5080== Releasing lock... [2024-12-30 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:51:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:52:04 [end_date_ymd] => 2024-12-30 02:52:04 [RateCDR] => 1 ) [2024-12-30 02: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-29 23:52:04' and `end` < '2024-12-30 02: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-30 02:52:17] Production.INFO: count ==221 [2024-12-30 02:52:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:52:04 - End Time 2024-12-30 02:52:04 [2024-12-30 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133270', 'tblTempUsageDetail_20' ) start [2024-12-30 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133270', 'tblTempUsageDetail_20' ) end [2024-12-30 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133270', 'tblTempVendorCDR_20' ) start [2024-12-30 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133270', 'tblTempVendorCDR_20' ) end [2024-12-30 02:52:17] Production.INFO: ProcessCDR(1,14133270,1,1,2) [2024-12-30 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133270', 'tblTempUsageDetail_20' ) start [2024-12-30 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133270', 'tblTempUsageDetail_20' ) end [2024-12-30 02:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:52:20] Production.INFO: ==5205== Releasing lock... [2024-12-30 02:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:52:20] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:53:05 [end_date_ymd] => 2024-12-30 02:53:05 [RateCDR] => 1 ) [2024-12-30 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 23:53:05' and `end` < '2024-12-30 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 02:53:17] Production.INFO: count ==221 [2024-12-30 02:53:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:53:05 - End Time 2024-12-30 02:53:05 [2024-12-30 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133275', 'tblTempUsageDetail_20' ) start [2024-12-30 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133275', 'tblTempUsageDetail_20' ) end [2024-12-30 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133275', 'tblTempVendorCDR_20' ) start [2024-12-30 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133275', 'tblTempVendorCDR_20' ) end [2024-12-30 02:53:17] Production.INFO: ProcessCDR(1,14133275,1,1,2) [2024-12-30 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133275', 'tblTempUsageDetail_20' ) start [2024-12-30 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133275', 'tblTempUsageDetail_20' ) end [2024-12-30 02:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:53:20] Production.INFO: ==5335== Releasing lock... [2024-12-30 02:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:53:20] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:54:05 [end_date_ymd] => 2024-12-30 02:54:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:54:05' and `end` < '2024-12-30 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-30 02:54:17] Production.INFO: count ==221 [2024-12-30 02:54:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:54:05 - End Time 2024-12-30 02:54:05 [2024-12-30 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133280', 'tblTempUsageDetail_20' ) start [2024-12-30 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133280', 'tblTempUsageDetail_20' ) end [2024-12-30 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133280', 'tblTempVendorCDR_20' ) start [2024-12-30 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133280', 'tblTempVendorCDR_20' ) end [2024-12-30 02:54:17] Production.INFO: ProcessCDR(1,14133280,1,1,2) [2024-12-30 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133280', 'tblTempUsageDetail_20' ) start [2024-12-30 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133280', 'tblTempUsageDetail_20' ) end [2024-12-30 02:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:54:20] Production.INFO: ==5459== Releasing lock... [2024-12-30 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:54:20] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:55:04 [end_date_ymd] => 2024-12-30 02:55:04 [RateCDR] => 1 ) [2024-12-30 02: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-29 23:55:04' and `end` < '2024-12-30 02: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-30 02:55:17] Production.INFO: count ==221 [2024-12-30 02:55:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:55:04 - End Time 2024-12-30 02:55:04 [2024-12-30 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133285', 'tblTempUsageDetail_20' ) start [2024-12-30 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133285', 'tblTempUsageDetail_20' ) end [2024-12-30 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133285', 'tblTempVendorCDR_20' ) start [2024-12-30 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133285', 'tblTempVendorCDR_20' ) end [2024-12-30 02:55:17] Production.INFO: ProcessCDR(1,14133285,1,1,2) [2024-12-30 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133285', 'tblTempUsageDetail_20' ) start [2024-12-30 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133285', 'tblTempUsageDetail_20' ) end [2024-12-30 02:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:55:20] Production.INFO: ==5583== Releasing lock... [2024-12-30 02:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:55:20] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:56:05 [end_date_ymd] => 2024-12-30 02:56:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:56:05' and `end` < '2024-12-30 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-30 02:56:18] Production.INFO: count ==221 [2024-12-30 02:56:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:56:05 - End Time 2024-12-30 02:56:05 [2024-12-30 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133290', 'tblTempUsageDetail_20' ) start [2024-12-30 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133290', 'tblTempUsageDetail_20' ) end [2024-12-30 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133290', 'tblTempVendorCDR_20' ) start [2024-12-30 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133290', 'tblTempVendorCDR_20' ) end [2024-12-30 02:56:18] Production.INFO: ProcessCDR(1,14133290,1,1,2) [2024-12-30 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133290', 'tblTempUsageDetail_20' ) start [2024-12-30 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133290', 'tblTempUsageDetail_20' ) end [2024-12-30 02:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:56:21] Production.INFO: ==5708== Releasing lock... [2024-12-30 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:56:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:57:05 [end_date_ymd] => 2024-12-30 02:57:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:57:05' and `end` < '2024-12-30 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-30 02:57:17] Production.INFO: count ==221 [2024-12-30 02:57:17] Production.ERROR: pbx CDR StartTime 2024-12-29 23:57:05 - End Time 2024-12-30 02:57:05 [2024-12-30 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133295', 'tblTempUsageDetail_20' ) start [2024-12-30 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133295', 'tblTempUsageDetail_20' ) end [2024-12-30 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133295', 'tblTempVendorCDR_20' ) start [2024-12-30 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133295', 'tblTempVendorCDR_20' ) end [2024-12-30 02:57:17] Production.INFO: ProcessCDR(1,14133295,1,1,2) [2024-12-30 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133295', 'tblTempUsageDetail_20' ) start [2024-12-30 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133295', 'tblTempUsageDetail_20' ) end [2024-12-30 02:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:57:21] Production.INFO: ==5825== Releasing lock... [2024-12-30 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:57:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:58:05 [end_date_ymd] => 2024-12-30 02:58:05 [RateCDR] => 1 ) [2024-12-30 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-29 23:58:05' and `end` < '2024-12-30 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 02:58:18] Production.INFO: count ==221 [2024-12-30 02:58:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:58:05 - End Time 2024-12-30 02:58:05 [2024-12-30 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133300', 'tblTempUsageDetail_20' ) start [2024-12-30 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133300', 'tblTempUsageDetail_20' ) end [2024-12-30 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133300', 'tblTempVendorCDR_20' ) start [2024-12-30 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133300', 'tblTempVendorCDR_20' ) end [2024-12-30 02:58:18] Production.INFO: ProcessCDR(1,14133300,1,1,2) [2024-12-30 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133300', 'tblTempUsageDetail_20' ) start [2024-12-30 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133300', 'tblTempUsageDetail_20' ) end [2024-12-30 02:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:58:22] Production.INFO: ==5946== Releasing lock... [2024-12-30 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:58:22] Production.INFO: 29 MB #Memory Used# [2024-12-30 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-29 23:59:05 [end_date_ymd] => 2024-12-30 02:59:05 [RateCDR] => 1 ) [2024-12-30 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-29 23:59:05' and `end` < '2024-12-30 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-30 02:59:18] Production.INFO: count ==221 [2024-12-30 02:59:18] Production.ERROR: pbx CDR StartTime 2024-12-29 23:59:05 - End Time 2024-12-30 02:59:05 [2024-12-30 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133305', 'tblTempUsageDetail_20' ) start [2024-12-30 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133305', 'tblTempUsageDetail_20' ) end [2024-12-30 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133305', 'tblTempVendorCDR_20' ) start [2024-12-30 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133305', 'tblTempVendorCDR_20' ) end [2024-12-30 02:59:18] Production.INFO: ProcessCDR(1,14133305,1,1,2) [2024-12-30 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133305', 'tblTempUsageDetail_20' ) start [2024-12-30 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133305', 'tblTempUsageDetail_20' ) end [2024-12-30 02:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 02:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 02:59:21] Production.INFO: ==6064== Releasing lock... [2024-12-30 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 02:59:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:00:06 [end_date_ymd] => 2024-12-30 03:00:06 [RateCDR] => 1 ) [2024-12-30 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-30 00:00:06' and `end` < '2024-12-30 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-30 03:00:18] Production.INFO: count ==218 [2024-12-30 03:00:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:00:06 - End Time 2024-12-30 03:00:06 [2024-12-30 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133311', 'tblTempUsageDetail_20' ) start [2024-12-30 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133311', 'tblTempUsageDetail_20' ) end [2024-12-30 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133311', 'tblTempVendorCDR_20' ) start [2024-12-30 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133311', 'tblTempVendorCDR_20' ) end [2024-12-30 03:00:18] Production.INFO: ProcessCDR(1,14133311,1,1,2) [2024-12-30 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133311', 'tblTempUsageDetail_20' ) start [2024-12-30 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133311', 'tblTempUsageDetail_20' ) end [2024-12-30 03:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:00:21] Production.INFO: ==6183== Releasing lock... [2024-12-30 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:00:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:01:06 [end_date_ymd] => 2024-12-30 03:01:06 [RateCDR] => 1 ) [2024-12-30 03:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 00:01:06' and `end` < '2024-12-30 03:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 03:01:18] Production.INFO: count ==216 [2024-12-30 03:01:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:01:06 - End Time 2024-12-30 03:01:06 [2024-12-30 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133316', 'tblTempUsageDetail_20' ) start [2024-12-30 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133316', 'tblTempUsageDetail_20' ) end [2024-12-30 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133316', 'tblTempVendorCDR_20' ) start [2024-12-30 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133316', 'tblTempVendorCDR_20' ) end [2024-12-30 03:01:19] Production.INFO: ProcessCDR(1,14133316,1,1,2) [2024-12-30 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133316', 'tblTempUsageDetail_20' ) start [2024-12-30 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133316', 'tblTempUsageDetail_20' ) end [2024-12-30 03:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:01:22] Production.INFO: ==6320== Releasing lock... [2024-12-30 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:01:22] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:02:05 [end_date_ymd] => 2024-12-30 03:02:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:02:05' and `end` < '2024-12-30 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-30 03:02:17] Production.INFO: count ==215 [2024-12-30 03:02:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:02:05 - End Time 2024-12-30 03:02:05 [2024-12-30 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133321', 'tblTempUsageDetail_20' ) start [2024-12-30 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133321', 'tblTempUsageDetail_20' ) end [2024-12-30 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133321', 'tblTempVendorCDR_20' ) start [2024-12-30 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133321', 'tblTempVendorCDR_20' ) end [2024-12-30 03:02:17] Production.INFO: ProcessCDR(1,14133321,1,1,2) [2024-12-30 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133321', 'tblTempUsageDetail_20' ) start [2024-12-30 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133321', 'tblTempUsageDetail_20' ) end [2024-12-30 03:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:02:20] Production.INFO: ==6486== Releasing lock... [2024-12-30 03:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:02:20] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:03:05 [end_date_ymd] => 2024-12-30 03:03:05 [RateCDR] => 1 ) [2024-12-30 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 00:03:05' and `end` < '2024-12-30 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 03:03:17] Production.INFO: count ==215 [2024-12-30 03:03:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:03:05 - End Time 2024-12-30 03:03:05 [2024-12-30 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133326', 'tblTempUsageDetail_20' ) start [2024-12-30 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133326', 'tblTempUsageDetail_20' ) end [2024-12-30 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133326', 'tblTempVendorCDR_20' ) start [2024-12-30 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133326', 'tblTempVendorCDR_20' ) end [2024-12-30 03:03:17] Production.INFO: ProcessCDR(1,14133326,1,1,2) [2024-12-30 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133326', 'tblTempUsageDetail_20' ) start [2024-12-30 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133326', 'tblTempUsageDetail_20' ) end [2024-12-30 03:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:03:20] Production.INFO: ==6556== Releasing lock... [2024-12-30 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:03:20] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:04:04 [end_date_ymd] => 2024-12-30 03:04:04 [RateCDR] => 1 ) [2024-12-30 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-30 00:04:04' and `end` < '2024-12-30 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-30 03:04:18] Production.INFO: count ==215 [2024-12-30 03:04:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:04:04 - End Time 2024-12-30 03:04:04 [2024-12-30 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133331', 'tblTempUsageDetail_20' ) start [2024-12-30 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133331', 'tblTempUsageDetail_20' ) end [2024-12-30 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133331', 'tblTempVendorCDR_20' ) start [2024-12-30 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133331', 'tblTempVendorCDR_20' ) end [2024-12-30 03:04:18] Production.INFO: ProcessCDR(1,14133331,1,1,2) [2024-12-30 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133331', 'tblTempUsageDetail_20' ) start [2024-12-30 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133331', 'tblTempUsageDetail_20' ) end [2024-12-30 03:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:04:21] Production.INFO: ==6625== Releasing lock... [2024-12-30 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:04:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:05:05 [end_date_ymd] => 2024-12-30 03:05:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:05:05' and `end` < '2024-12-30 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-30 03:05:17] Production.INFO: count ==214 [2024-12-30 03:05:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:05:05 - End Time 2024-12-30 03:05:05 [2024-12-30 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133336', 'tblTempUsageDetail_20' ) start [2024-12-30 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133336', 'tblTempUsageDetail_20' ) end [2024-12-30 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133336', 'tblTempVendorCDR_20' ) start [2024-12-30 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133336', 'tblTempVendorCDR_20' ) end [2024-12-30 03:05:17] Production.INFO: ProcessCDR(1,14133336,1,1,2) [2024-12-30 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133336', 'tblTempUsageDetail_20' ) start [2024-12-30 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133336', 'tblTempUsageDetail_20' ) end [2024-12-30 03:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:05:21] Production.INFO: ==6693== Releasing lock... [2024-12-30 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:05:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:06:04 [end_date_ymd] => 2024-12-30 03:06:04 [RateCDR] => 1 ) [2024-12-30 03: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-30 00:06:04' and `end` < '2024-12-30 03: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-30 03:06:17] Production.INFO: count ==214 [2024-12-30 03:06:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:06:04 - End Time 2024-12-30 03:06:04 [2024-12-30 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133341', 'tblTempUsageDetail_20' ) start [2024-12-30 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133341', 'tblTempUsageDetail_20' ) end [2024-12-30 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133341', 'tblTempVendorCDR_20' ) start [2024-12-30 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133341', 'tblTempVendorCDR_20' ) end [2024-12-30 03:06:17] Production.INFO: ProcessCDR(1,14133341,1,1,2) [2024-12-30 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133341', 'tblTempUsageDetail_20' ) start [2024-12-30 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133341', 'tblTempUsageDetail_20' ) end [2024-12-30 03:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:06:20] Production.INFO: ==6881== Releasing lock... [2024-12-30 03:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:06:20] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:07:05 [end_date_ymd] => 2024-12-30 03:07:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:07:05' and `end` < '2024-12-30 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-30 03:07:18] Production.INFO: count ==213 [2024-12-30 03:07:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:07:05 - End Time 2024-12-30 03:07:05 [2024-12-30 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133346', 'tblTempUsageDetail_20' ) start [2024-12-30 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133346', 'tblTempUsageDetail_20' ) end [2024-12-30 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133346', 'tblTempVendorCDR_20' ) start [2024-12-30 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133346', 'tblTempVendorCDR_20' ) end [2024-12-30 03:07:18] Production.INFO: ProcessCDR(1,14133346,1,1,2) [2024-12-30 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133346', 'tblTempUsageDetail_20' ) start [2024-12-30 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133346', 'tblTempUsageDetail_20' ) end [2024-12-30 03:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:07:21] Production.INFO: ==6952== Releasing lock... [2024-12-30 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:07:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:08:05 [end_date_ymd] => 2024-12-30 03:08:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:08:05' and `end` < '2024-12-30 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-30 03:08:19] Production.INFO: count ==213 [2024-12-30 03:08:19] Production.ERROR: pbx CDR StartTime 2024-12-30 00:08:05 - End Time 2024-12-30 03:08:05 [2024-12-30 03:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133351', 'tblTempUsageDetail_20' ) start [2024-12-30 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133351', 'tblTempUsageDetail_20' ) end [2024-12-30 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133351', 'tblTempVendorCDR_20' ) start [2024-12-30 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133351', 'tblTempVendorCDR_20' ) end [2024-12-30 03:08:19] Production.INFO: ProcessCDR(1,14133351,1,1,2) [2024-12-30 03:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133351', 'tblTempUsageDetail_20' ) start [2024-12-30 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133351', 'tblTempUsageDetail_20' ) end [2024-12-30 03:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:08:22] Production.INFO: ==7023== Releasing lock... [2024-12-30 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:08:22] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:09:05 [end_date_ymd] => 2024-12-30 03:09:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:09:05' and `end` < '2024-12-30 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-30 03:09:17] Production.INFO: count ==213 [2024-12-30 03:09:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:09:05 - End Time 2024-12-30 03:09:05 [2024-12-30 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133356', 'tblTempUsageDetail_20' ) start [2024-12-30 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133356', 'tblTempUsageDetail_20' ) end [2024-12-30 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133356', 'tblTempVendorCDR_20' ) start [2024-12-30 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133356', 'tblTempVendorCDR_20' ) end [2024-12-30 03:09:17] Production.INFO: ProcessCDR(1,14133356,1,1,2) [2024-12-30 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133356', 'tblTempUsageDetail_20' ) start [2024-12-30 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133356', 'tblTempUsageDetail_20' ) end [2024-12-30 03:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:09:20] Production.INFO: ==7172== Releasing lock... [2024-12-30 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:09:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:10:06 [end_date_ymd] => 2024-12-30 03:10:06 [RateCDR] => 1 ) [2024-12-30 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 00:10:06' and `end` < '2024-12-30 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 03:10:18] Production.INFO: count ==209 [2024-12-30 03:10:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:10:06 - End Time 2024-12-30 03:10:06 [2024-12-30 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133362', 'tblTempUsageDetail_20' ) start [2024-12-30 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133362', 'tblTempUsageDetail_20' ) end [2024-12-30 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133362', 'tblTempVendorCDR_20' ) start [2024-12-30 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133362', 'tblTempVendorCDR_20' ) end [2024-12-30 03:10:18] Production.INFO: ProcessCDR(1,14133362,1,1,2) [2024-12-30 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133362', 'tblTempUsageDetail_20' ) start [2024-12-30 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133362', 'tblTempUsageDetail_20' ) end [2024-12-30 03:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:10:21] Production.INFO: ==7249== Releasing lock... [2024-12-30 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:10:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:11:05 [end_date_ymd] => 2024-12-30 03:11:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:11:05' and `end` < '2024-12-30 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-30 03:11:18] Production.INFO: count ==209 [2024-12-30 03:11:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:11:05 - End Time 2024-12-30 03:11:05 [2024-12-30 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133367', 'tblTempUsageDetail_20' ) start [2024-12-30 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133367', 'tblTempUsageDetail_20' ) end [2024-12-30 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133367', 'tblTempVendorCDR_20' ) start [2024-12-30 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133367', 'tblTempVendorCDR_20' ) end [2024-12-30 03:11:18] Production.INFO: ProcessCDR(1,14133367,1,1,2) [2024-12-30 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133367', 'tblTempUsageDetail_20' ) start [2024-12-30 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133367', 'tblTempUsageDetail_20' ) end [2024-12-30 03:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:11:21] Production.INFO: ==7319== Releasing lock... [2024-12-30 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:11:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:12:05 [end_date_ymd] => 2024-12-30 03:12:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:12:05' and `end` < '2024-12-30 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-30 03:12:17] Production.INFO: count ==209 [2024-12-30 03:12:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:12:05 - End Time 2024-12-30 03:12:05 [2024-12-30 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133372', 'tblTempUsageDetail_20' ) start [2024-12-30 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133372', 'tblTempUsageDetail_20' ) end [2024-12-30 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133372', 'tblTempVendorCDR_20' ) start [2024-12-30 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133372', 'tblTempVendorCDR_20' ) end [2024-12-30 03:12:18] Production.INFO: ProcessCDR(1,14133372,1,1,2) [2024-12-30 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133372', 'tblTempUsageDetail_20' ) start [2024-12-30 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133372', 'tblTempUsageDetail_20' ) end [2024-12-30 03:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:12:21] Production.INFO: ==7398== Releasing lock... [2024-12-30 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:12:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:13:04 [end_date_ymd] => 2024-12-30 03:13:04 [RateCDR] => 1 ) [2024-12-30 03: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-30 00:13:04' and `end` < '2024-12-30 03: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-30 03:13:17] Production.INFO: count ==209 [2024-12-30 03:13:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:13:04 - End Time 2024-12-30 03:13:04 [2024-12-30 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133377', 'tblTempUsageDetail_20' ) start [2024-12-30 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133377', 'tblTempUsageDetail_20' ) end [2024-12-30 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133377', 'tblTempVendorCDR_20' ) start [2024-12-30 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133377', 'tblTempVendorCDR_20' ) end [2024-12-30 03:13:17] Production.INFO: ProcessCDR(1,14133377,1,1,2) [2024-12-30 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133377', 'tblTempUsageDetail_20' ) start [2024-12-30 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133377', 'tblTempUsageDetail_20' ) end [2024-12-30 03:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:13:20] Production.INFO: ==7550== Releasing lock... [2024-12-30 03:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:13:20] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:14:05 [end_date_ymd] => 2024-12-30 03:14:05 [RateCDR] => 1 ) [2024-12-30 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 00:14:05' and `end` < '2024-12-30 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 03:14:18] Production.INFO: count ==209 [2024-12-30 03:14:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:14:05 - End Time 2024-12-30 03:14:05 [2024-12-30 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133382', 'tblTempUsageDetail_20' ) start [2024-12-30 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133382', 'tblTempUsageDetail_20' ) end [2024-12-30 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133382', 'tblTempVendorCDR_20' ) start [2024-12-30 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133382', 'tblTempVendorCDR_20' ) end [2024-12-30 03:14:18] Production.INFO: ProcessCDR(1,14133382,1,1,2) [2024-12-30 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133382', 'tblTempUsageDetail_20' ) start [2024-12-30 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133382', 'tblTempUsageDetail_20' ) end [2024-12-30 03:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:14:21] Production.INFO: ==7647== Releasing lock... [2024-12-30 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:14:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:15:05 [end_date_ymd] => 2024-12-30 03:15:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:15:05' and `end` < '2024-12-30 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-30 03:15:18] Production.INFO: count ==207 [2024-12-30 03:15:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:15:05 - End Time 2024-12-30 03:15:05 [2024-12-30 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133387', 'tblTempUsageDetail_20' ) start [2024-12-30 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133387', 'tblTempUsageDetail_20' ) end [2024-12-30 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133387', 'tblTempVendorCDR_20' ) start [2024-12-30 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133387', 'tblTempVendorCDR_20' ) end [2024-12-30 03:15:18] Production.INFO: ProcessCDR(1,14133387,1,1,2) [2024-12-30 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133387', 'tblTempUsageDetail_20' ) start [2024-12-30 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133387', 'tblTempUsageDetail_20' ) end [2024-12-30 03:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:15:21] Production.INFO: ==7754== Releasing lock... [2024-12-30 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:15:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:16:04 [end_date_ymd] => 2024-12-30 03:16:04 [RateCDR] => 1 ) [2024-12-30 03: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-30 00:16:04' and `end` < '2024-12-30 03: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-30 03:16:18] Production.INFO: count ==207 [2024-12-30 03:16:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:16:04 - End Time 2024-12-30 03:16:04 [2024-12-30 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133392', 'tblTempUsageDetail_20' ) start [2024-12-30 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133392', 'tblTempUsageDetail_20' ) end [2024-12-30 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133392', 'tblTempVendorCDR_20' ) start [2024-12-30 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133392', 'tblTempVendorCDR_20' ) end [2024-12-30 03:16:18] Production.INFO: ProcessCDR(1,14133392,1,1,2) [2024-12-30 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133392', 'tblTempUsageDetail_20' ) start [2024-12-30 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133392', 'tblTempUsageDetail_20' ) end [2024-12-30 03:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:16:21] Production.INFO: ==7838== Releasing lock... [2024-12-30 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:16:21] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:17:05 [end_date_ymd] => 2024-12-30 03:17:05 [RateCDR] => 1 ) [2024-12-30 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 00:17:05' and `end` < '2024-12-30 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 03:17:17] Production.INFO: count ==204 [2024-12-30 03:17:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:17:05 - End Time 2024-12-30 03:17:05 [2024-12-30 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133397', 'tblTempUsageDetail_20' ) start [2024-12-30 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133397', 'tblTempUsageDetail_20' ) end [2024-12-30 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133397', 'tblTempVendorCDR_20' ) start [2024-12-30 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133397', 'tblTempVendorCDR_20' ) end [2024-12-30 03:17:17] Production.INFO: ProcessCDR(1,14133397,1,1,2) [2024-12-30 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133397', 'tblTempUsageDetail_20' ) start [2024-12-30 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133397', 'tblTempUsageDetail_20' ) end [2024-12-30 03:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:17:20] Production.INFO: ==8003== Releasing lock... [2024-12-30 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:17:20] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:18:04 [end_date_ymd] => 2024-12-30 03:18:04 [RateCDR] => 1 ) [2024-12-30 03: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-30 00:18:04' and `end` < '2024-12-30 03: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-30 03:18:17] Production.INFO: count ==204 [2024-12-30 03:18:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:18:04 - End Time 2024-12-30 03:18:04 [2024-12-30 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133402', 'tblTempUsageDetail_20' ) start [2024-12-30 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133402', 'tblTempUsageDetail_20' ) end [2024-12-30 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133402', 'tblTempVendorCDR_20' ) start [2024-12-30 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133402', 'tblTempVendorCDR_20' ) end [2024-12-30 03:18:17] Production.INFO: ProcessCDR(1,14133402,1,1,2) [2024-12-30 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133402', 'tblTempUsageDetail_20' ) start [2024-12-30 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133402', 'tblTempUsageDetail_20' ) end [2024-12-30 03:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:18:20] Production.INFO: ==8087== Releasing lock... [2024-12-30 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:18:20] Production.INFO: 29 MB #Memory Used# [2024-12-30 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:19:05 [end_date_ymd] => 2024-12-30 03:19:05 [RateCDR] => 1 ) [2024-12-30 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 00:19:05' and `end` < '2024-12-30 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 03:19:19] Production.INFO: count ==203 [2024-12-30 03:19:19] Production.ERROR: pbx CDR StartTime 2024-12-30 00:19:05 - End Time 2024-12-30 03:19:05 [2024-12-30 03:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133407', 'tblTempUsageDetail_20' ) start [2024-12-30 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133407', 'tblTempUsageDetail_20' ) end [2024-12-30 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133407', 'tblTempVendorCDR_20' ) start [2024-12-30 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133407', 'tblTempVendorCDR_20' ) end [2024-12-30 03:19:19] Production.INFO: ProcessCDR(1,14133407,1,1,2) [2024-12-30 03:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133407', 'tblTempUsageDetail_20' ) start [2024-12-30 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133407', 'tblTempUsageDetail_20' ) end [2024-12-30 03:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:19:22] Production.INFO: ==8173== Releasing lock... [2024-12-30 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:19:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-30 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:20:06 [end_date_ymd] => 2024-12-30 03:20:06 [RateCDR] => 1 ) [2024-12-30 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-30 00:20:06' and `end` < '2024-12-30 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-30 03:20:19] Production.INFO: count ==195 [2024-12-30 03:20:19] Production.ERROR: pbx CDR StartTime 2024-12-30 00:20:06 - End Time 2024-12-30 03:20:06 [2024-12-30 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133412', 'tblTempUsageDetail_20' ) start [2024-12-30 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133412', 'tblTempUsageDetail_20' ) end [2024-12-30 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133412', 'tblTempVendorCDR_20' ) start [2024-12-30 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133412', 'tblTempVendorCDR_20' ) end [2024-12-30 03:20:19] Production.INFO: ProcessCDR(1,14133412,1,1,2) [2024-12-30 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133412', 'tblTempUsageDetail_20' ) start [2024-12-30 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133412', 'tblTempUsageDetail_20' ) end [2024-12-30 03:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:20:22] Production.INFO: ==8269== Releasing lock... [2024-12-30 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:20:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-30 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:21:04 [end_date_ymd] => 2024-12-30 03:21:04 [RateCDR] => 1 ) [2024-12-30 03: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-30 00:21:04' and `end` < '2024-12-30 03: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-30 03:21:18] Production.INFO: count ==185 [2024-12-30 03:21:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:21:04 - End Time 2024-12-30 03:21:04 [2024-12-30 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133414', 'tblTempUsageDetail_20' ) start [2024-12-30 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133414', 'tblTempUsageDetail_20' ) end [2024-12-30 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133414', 'tblTempVendorCDR_20' ) start [2024-12-30 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133414', 'tblTempVendorCDR_20' ) end [2024-12-30 03:21:18] Production.INFO: ProcessCDR(1,14133414,1,1,2) [2024-12-30 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133414', 'tblTempUsageDetail_20' ) start [2024-12-30 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133414', 'tblTempUsageDetail_20' ) end [2024-12-30 03:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:21:21] Production.INFO: ==8354== Releasing lock... [2024-12-30 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:21:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-30 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:22:05 [end_date_ymd] => 2024-12-30 03:22:05 [RateCDR] => 1 ) [2024-12-30 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 00:22:05' and `end` < '2024-12-30 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 03:22:19] Production.INFO: count ==185 [2024-12-30 03:22:19] Production.ERROR: pbx CDR StartTime 2024-12-30 00:22:05 - End Time 2024-12-30 03:22:05 [2024-12-30 03:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133423', 'tblTempUsageDetail_20' ) start [2024-12-30 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133423', 'tblTempUsageDetail_20' ) end [2024-12-30 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133423', 'tblTempVendorCDR_20' ) start [2024-12-30 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133423', 'tblTempVendorCDR_20' ) end [2024-12-30 03:22:19] Production.INFO: ProcessCDR(1,14133423,1,1,2) [2024-12-30 03:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133423', 'tblTempUsageDetail_20' ) start [2024-12-30 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133423', 'tblTempUsageDetail_20' ) end [2024-12-30 03:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:22:22] Production.INFO: ==8438== Releasing lock... [2024-12-30 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:22:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-30 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:23:04 [end_date_ymd] => 2024-12-30 03:23:04 [RateCDR] => 1 ) [2024-12-30 03: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-30 00:23:04' and `end` < '2024-12-30 03: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-30 03:23:17] Production.INFO: count ==185 [2024-12-30 03:23:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:23:04 - End Time 2024-12-30 03:23:04 [2024-12-30 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133428', 'tblTempUsageDetail_20' ) start [2024-12-30 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133428', 'tblTempUsageDetail_20' ) end [2024-12-30 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133428', 'tblTempVendorCDR_20' ) start [2024-12-30 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133428', 'tblTempVendorCDR_20' ) end [2024-12-30 03:23:17] Production.INFO: ProcessCDR(1,14133428,1,1,2) [2024-12-30 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133428', 'tblTempUsageDetail_20' ) start [2024-12-30 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133428', 'tblTempUsageDetail_20' ) end [2024-12-30 03:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:23:20] Production.INFO: ==8566== Releasing lock... [2024-12-30 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:23:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-30 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:24:05 [end_date_ymd] => 2024-12-30 03:24:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:24:05' and `end` < '2024-12-30 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-30 03:24:18] Production.INFO: count ==185 [2024-12-30 03:24:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:24:05 - End Time 2024-12-30 03:24:05 [2024-12-30 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133433', 'tblTempUsageDetail_20' ) start [2024-12-30 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133433', 'tblTempUsageDetail_20' ) end [2024-12-30 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133433', 'tblTempVendorCDR_20' ) start [2024-12-30 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133433', 'tblTempVendorCDR_20' ) end [2024-12-30 03:24:18] Production.INFO: ProcessCDR(1,14133433,1,1,2) [2024-12-30 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133433', 'tblTempUsageDetail_20' ) start [2024-12-30 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133433', 'tblTempUsageDetail_20' ) end [2024-12-30 03:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:24:21] Production.INFO: ==8652== Releasing lock... [2024-12-30 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:24:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-30 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:25:04 [end_date_ymd] => 2024-12-30 03:25:04 [RateCDR] => 1 ) [2024-12-30 03: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-30 00:25:04' and `end` < '2024-12-30 03: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-30 03:25:17] Production.INFO: count ==185 [2024-12-30 03:25:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:25:04 - End Time 2024-12-30 03:25:04 [2024-12-30 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133438', 'tblTempUsageDetail_20' ) start [2024-12-30 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133438', 'tblTempUsageDetail_20' ) end [2024-12-30 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133438', 'tblTempVendorCDR_20' ) start [2024-12-30 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133438', 'tblTempVendorCDR_20' ) end [2024-12-30 03:25:17] Production.INFO: ProcessCDR(1,14133438,1,1,2) [2024-12-30 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133438', 'tblTempUsageDetail_20' ) start [2024-12-30 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133438', 'tblTempUsageDetail_20' ) end [2024-12-30 03:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:25:20] Production.INFO: ==8737== Releasing lock... [2024-12-30 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:25:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-30 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:26:05 [end_date_ymd] => 2024-12-30 03:26:05 [RateCDR] => 1 ) [2024-12-30 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 00:26:05' and `end` < '2024-12-30 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 03:26:17] Production.INFO: count ==184 [2024-12-30 03:26:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:26:05 - End Time 2024-12-30 03:26:05 [2024-12-30 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133443', 'tblTempUsageDetail_20' ) start [2024-12-30 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133443', 'tblTempUsageDetail_20' ) end [2024-12-30 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133443', 'tblTempVendorCDR_20' ) start [2024-12-30 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133443', 'tblTempVendorCDR_20' ) end [2024-12-30 03:26:17] Production.INFO: ProcessCDR(1,14133443,1,1,2) [2024-12-30 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133443', 'tblTempUsageDetail_20' ) start [2024-12-30 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133443', 'tblTempUsageDetail_20' ) end [2024-12-30 03:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:26:20] Production.INFO: ==8820== Releasing lock... [2024-12-30 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:26:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-30 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:27:05 [end_date_ymd] => 2024-12-30 03:27:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:27:05' and `end` < '2024-12-30 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-30 03:27:17] Production.INFO: count ==184 [2024-12-30 03:27:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:27:05 - End Time 2024-12-30 03:27:05 [2024-12-30 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133448', 'tblTempUsageDetail_20' ) start [2024-12-30 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133448', 'tblTempUsageDetail_20' ) end [2024-12-30 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133448', 'tblTempVendorCDR_20' ) start [2024-12-30 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133448', 'tblTempVendorCDR_20' ) end [2024-12-30 03:27:17] Production.INFO: ProcessCDR(1,14133448,1,1,2) [2024-12-30 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133448', 'tblTempUsageDetail_20' ) start [2024-12-30 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133448', 'tblTempUsageDetail_20' ) end [2024-12-30 03:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:27:20] Production.INFO: ==8910== Releasing lock... [2024-12-30 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:27:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-30 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:28:05 [end_date_ymd] => 2024-12-30 03:28:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:28:05' and `end` < '2024-12-30 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-30 03:28:20] Production.INFO: count ==184 [2024-12-30 03:28:20] Production.ERROR: pbx CDR StartTime 2024-12-30 00:28:05 - End Time 2024-12-30 03:28:05 [2024-12-30 03:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133453', 'tblTempUsageDetail_20' ) start [2024-12-30 03:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133453', 'tblTempUsageDetail_20' ) end [2024-12-30 03:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133453', 'tblTempVendorCDR_20' ) start [2024-12-30 03:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133453', 'tblTempVendorCDR_20' ) end [2024-12-30 03:28:20] Production.INFO: ProcessCDR(1,14133453,1,1,2) [2024-12-30 03:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133453', 'tblTempUsageDetail_20' ) start [2024-12-30 03:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133453', 'tblTempUsageDetail_20' ) end [2024-12-30 03:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:28:23] Production.INFO: ==8995== Releasing lock... [2024-12-30 03:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:28:23] Production.INFO: 28.75 MB #Memory Used# [2024-12-30 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:29:05 [end_date_ymd] => 2024-12-30 03:29:05 [RateCDR] => 1 ) [2024-12-30 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 00:29:05' and `end` < '2024-12-30 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 03:29:17] Production.INFO: count ==182 [2024-12-30 03:29:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:29:05 - End Time 2024-12-30 03:29:05 [2024-12-30 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133458', 'tblTempUsageDetail_20' ) start [2024-12-30 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133458', 'tblTempUsageDetail_20' ) end [2024-12-30 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133458', 'tblTempVendorCDR_20' ) start [2024-12-30 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133458', 'tblTempVendorCDR_20' ) end [2024-12-30 03:29:17] Production.INFO: ProcessCDR(1,14133458,1,1,2) [2024-12-30 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133458', 'tblTempUsageDetail_20' ) start [2024-12-30 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133458', 'tblTempUsageDetail_20' ) end [2024-12-30 03:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:29:20] Production.INFO: ==9079== Releasing lock... [2024-12-30 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:29:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-30 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:30:05 [end_date_ymd] => 2024-12-30 03:30:05 [RateCDR] => 1 ) [2024-12-30 03:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 00:30:05' and `end` < '2024-12-30 03:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 03:30:23] Production.INFO: count ==175 [2024-12-30 03:30:23] Production.ERROR: pbx CDR StartTime 2024-12-30 00:30:05 - End Time 2024-12-30 03:30:05 [2024-12-30 03:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133464', 'tblTempUsageDetail_20' ) start [2024-12-30 03:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133464', 'tblTempUsageDetail_20' ) end [2024-12-30 03:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133464', 'tblTempVendorCDR_20' ) start [2024-12-30 03:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133464', 'tblTempVendorCDR_20' ) end [2024-12-30 03:30:24] Production.INFO: ProcessCDR(1,14133464,1,1,2) [2024-12-30 03:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133464', 'tblTempUsageDetail_20' ) start [2024-12-30 03:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133464', 'tblTempUsageDetail_20' ) end [2024-12-30 03:30:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:30:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:30:27] Production.INFO: ==9168== Releasing lock... [2024-12-30 03:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:30:27] Production.INFO: 28.75 MB #Memory Used# [2024-12-30 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:31:05 [end_date_ymd] => 2024-12-30 03:31:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:31:05' and `end` < '2024-12-30 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-30 03:31:19] Production.INFO: count ==171 [2024-12-30 03:31:19] Production.ERROR: pbx CDR StartTime 2024-12-30 00:31:05 - End Time 2024-12-30 03:31:05 [2024-12-30 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133469', 'tblTempUsageDetail_20' ) start [2024-12-30 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133469', 'tblTempUsageDetail_20' ) end [2024-12-30 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133469', 'tblTempVendorCDR_20' ) start [2024-12-30 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133469', 'tblTempVendorCDR_20' ) end [2024-12-30 03:31:19] Production.INFO: ProcessCDR(1,14133469,1,1,2) [2024-12-30 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133469', 'tblTempUsageDetail_20' ) start [2024-12-30 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133469', 'tblTempUsageDetail_20' ) end [2024-12-30 03:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:31:22] Production.INFO: ==9253== Releasing lock... [2024-12-30 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:31:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:32:04 [end_date_ymd] => 2024-12-30 03:32:04 [RateCDR] => 1 ) [2024-12-30 03: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-30 00:32:04' and `end` < '2024-12-30 03: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-30 03:32:17] Production.INFO: count ==171 [2024-12-30 03:32:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:32:04 - End Time 2024-12-30 03:32:04 [2024-12-30 03:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133474', 'tblTempUsageDetail_20' ) start [2024-12-30 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133474', 'tblTempUsageDetail_20' ) end [2024-12-30 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133474', 'tblTempVendorCDR_20' ) start [2024-12-30 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133474', 'tblTempVendorCDR_20' ) end [2024-12-30 03:32:17] Production.INFO: ProcessCDR(1,14133474,1,1,2) [2024-12-30 03:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133474', 'tblTempUsageDetail_20' ) start [2024-12-30 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133474', 'tblTempUsageDetail_20' ) end [2024-12-30 03:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:32:20] Production.INFO: ==9330== Releasing lock... [2024-12-30 03:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:32:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:33:05 [end_date_ymd] => 2024-12-30 03:33:05 [RateCDR] => 1 ) [2024-12-30 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 00:33:05' and `end` < '2024-12-30 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 03:33:17] Production.INFO: count ==169 [2024-12-30 03:33:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:33:05 - End Time 2024-12-30 03:33:05 [2024-12-30 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133479', 'tblTempUsageDetail_20' ) start [2024-12-30 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133479', 'tblTempUsageDetail_20' ) end [2024-12-30 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133479', 'tblTempVendorCDR_20' ) start [2024-12-30 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133479', 'tblTempVendorCDR_20' ) end [2024-12-30 03:33:17] Production.INFO: ProcessCDR(1,14133479,1,1,2) [2024-12-30 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133479', 'tblTempUsageDetail_20' ) start [2024-12-30 03:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133479', 'tblTempUsageDetail_20' ) end [2024-12-30 03:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:33:20] Production.INFO: ==9408== Releasing lock... [2024-12-30 03:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:33:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:34:05 [end_date_ymd] => 2024-12-30 03:34:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:34:05' and `end` < '2024-12-30 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-30 03:34:18] Production.INFO: count ==167 [2024-12-30 03:34:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:34:05 - End Time 2024-12-30 03:34:05 [2024-12-30 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133484', 'tblTempUsageDetail_20' ) start [2024-12-30 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133484', 'tblTempUsageDetail_20' ) end [2024-12-30 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133484', 'tblTempVendorCDR_20' ) start [2024-12-30 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133484', 'tblTempVendorCDR_20' ) end [2024-12-30 03:34:18] Production.INFO: ProcessCDR(1,14133484,1,1,2) [2024-12-30 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133484', 'tblTempUsageDetail_20' ) start [2024-12-30 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133484', 'tblTempUsageDetail_20' ) end [2024-12-30 03:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:34:21] Production.INFO: ==9478== Releasing lock... [2024-12-30 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:34:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:35:05 [end_date_ymd] => 2024-12-30 03:35:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:35:05' and `end` < '2024-12-30 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-30 03:35:18] Production.INFO: count ==166 [2024-12-30 03:35:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:35:05 - End Time 2024-12-30 03:35:05 [2024-12-30 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133489', 'tblTempUsageDetail_20' ) start [2024-12-30 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133489', 'tblTempUsageDetail_20' ) end [2024-12-30 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133489', 'tblTempVendorCDR_20' ) start [2024-12-30 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133489', 'tblTempVendorCDR_20' ) end [2024-12-30 03:35:18] Production.INFO: ProcessCDR(1,14133489,1,1,2) [2024-12-30 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133489', 'tblTempUsageDetail_20' ) start [2024-12-30 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133489', 'tblTempUsageDetail_20' ) end [2024-12-30 03:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:35:21] Production.INFO: ==9550== Releasing lock... [2024-12-30 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:35:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:36:05 [end_date_ymd] => 2024-12-30 03:36:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:36:05' and `end` < '2024-12-30 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-30 03:36:18] Production.INFO: count ==163 [2024-12-30 03:36:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:36:05 - End Time 2024-12-30 03:36:05 [2024-12-30 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133494', 'tblTempUsageDetail_20' ) start [2024-12-30 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133494', 'tblTempUsageDetail_20' ) end [2024-12-30 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133494', 'tblTempVendorCDR_20' ) start [2024-12-30 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133494', 'tblTempVendorCDR_20' ) end [2024-12-30 03:36:18] Production.INFO: ProcessCDR(1,14133494,1,1,2) [2024-12-30 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133494', 'tblTempUsageDetail_20' ) start [2024-12-30 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133494', 'tblTempUsageDetail_20' ) end [2024-12-30 03:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:36:21] Production.INFO: ==9621== Releasing lock... [2024-12-30 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:36:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:37:04 [end_date_ymd] => 2024-12-30 03:37:04 [RateCDR] => 1 ) [2024-12-30 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-30 00:37:04' and `end` < '2024-12-30 03: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-30 03:37:17] Production.INFO: count ==163 [2024-12-30 03:37:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:37:04 - End Time 2024-12-30 03:37:04 [2024-12-30 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133499', 'tblTempUsageDetail_20' ) start [2024-12-30 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133499', 'tblTempUsageDetail_20' ) end [2024-12-30 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133499', 'tblTempVendorCDR_20' ) start [2024-12-30 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133499', 'tblTempVendorCDR_20' ) end [2024-12-30 03:37:17] Production.INFO: ProcessCDR(1,14133499,1,1,2) [2024-12-30 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133499', 'tblTempUsageDetail_20' ) start [2024-12-30 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133499', 'tblTempUsageDetail_20' ) end [2024-12-30 03:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:37:20] Production.INFO: ==9694== Releasing lock... [2024-12-30 03:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:37:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:38:05 [end_date_ymd] => 2024-12-30 03:38:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:38:05' and `end` < '2024-12-30 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-30 03:38:18] Production.INFO: count ==163 [2024-12-30 03:38:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:38:05 - End Time 2024-12-30 03:38:05 [2024-12-30 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133504', 'tblTempUsageDetail_20' ) start [2024-12-30 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133504', 'tblTempUsageDetail_20' ) end [2024-12-30 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133504', 'tblTempVendorCDR_20' ) start [2024-12-30 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133504', 'tblTempVendorCDR_20' ) end [2024-12-30 03:38:18] Production.INFO: ProcessCDR(1,14133504,1,1,2) [2024-12-30 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133504', 'tblTempUsageDetail_20' ) start [2024-12-30 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133504', 'tblTempUsageDetail_20' ) end [2024-12-30 03:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:38:21] Production.INFO: ==9766== Releasing lock... [2024-12-30 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:38:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:39:05 [end_date_ymd] => 2024-12-30 03:39:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:39:05' and `end` < '2024-12-30 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-30 03:39:18] Production.INFO: count ==163 [2024-12-30 03:39:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:39:05 - End Time 2024-12-30 03:39:05 [2024-12-30 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133509', 'tblTempUsageDetail_20' ) start [2024-12-30 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133509', 'tblTempUsageDetail_20' ) end [2024-12-30 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133509', 'tblTempVendorCDR_20' ) start [2024-12-30 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133509', 'tblTempVendorCDR_20' ) end [2024-12-30 03:39:18] Production.INFO: ProcessCDR(1,14133509,1,1,2) [2024-12-30 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133509', 'tblTempUsageDetail_20' ) start [2024-12-30 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133509', 'tblTempUsageDetail_20' ) end [2024-12-30 03:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:39:21] Production.INFO: ==9877== Releasing lock... [2024-12-30 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:39:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:40:05 [end_date_ymd] => 2024-12-30 03:40:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:40:05' and `end` < '2024-12-30 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-30 03:40:18] Production.INFO: count ==157 [2024-12-30 03:40:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:40:05 - End Time 2024-12-30 03:40:05 [2024-12-30 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133515', 'tblTempUsageDetail_20' ) start [2024-12-30 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133515', 'tblTempUsageDetail_20' ) end [2024-12-30 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133515', 'tblTempVendorCDR_20' ) start [2024-12-30 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133515', 'tblTempVendorCDR_20' ) end [2024-12-30 03:40:18] Production.INFO: ProcessCDR(1,14133515,1,1,2) [2024-12-30 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133515', 'tblTempUsageDetail_20' ) start [2024-12-30 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133515', 'tblTempUsageDetail_20' ) end [2024-12-30 03:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:40:21] Production.INFO: ==9950== Releasing lock... [2024-12-30 03:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:40:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:41:04 [end_date_ymd] => 2024-12-30 03:41:04 [RateCDR] => 1 ) [2024-12-30 03: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-30 00:41:04' and `end` < '2024-12-30 03: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-30 03:41:17] Production.INFO: count ==136 [2024-12-30 03:41:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:41:04 - End Time 2024-12-30 03:41:04 [2024-12-30 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133520', 'tblTempUsageDetail_20' ) start [2024-12-30 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133520', 'tblTempUsageDetail_20' ) end [2024-12-30 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133520', 'tblTempVendorCDR_20' ) start [2024-12-30 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133520', 'tblTempVendorCDR_20' ) end [2024-12-30 03:41:17] Production.INFO: ProcessCDR(1,14133520,1,1,2) [2024-12-30 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133520', 'tblTempUsageDetail_20' ) start [2024-12-30 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133520', 'tblTempUsageDetail_20' ) end [2024-12-30 03:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:41:20] Production.INFO: ==10021== Releasing lock... [2024-12-30 03:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:41:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:42:05 [end_date_ymd] => 2024-12-30 03:42:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:42:05' and `end` < '2024-12-30 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-30 03:42:17] Production.INFO: count ==137 [2024-12-30 03:42:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:42:05 - End Time 2024-12-30 03:42:05 [2024-12-30 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133525', 'tblTempUsageDetail_20' ) start [2024-12-30 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133525', 'tblTempUsageDetail_20' ) end [2024-12-30 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133525', 'tblTempVendorCDR_20' ) start [2024-12-30 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133525', 'tblTempVendorCDR_20' ) end [2024-12-30 03:42:17] Production.INFO: ProcessCDR(1,14133525,1,1,2) [2024-12-30 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133525', 'tblTempUsageDetail_20' ) start [2024-12-30 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133525', 'tblTempUsageDetail_20' ) end [2024-12-30 03:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:42:22] Production.INFO: ==10093== Releasing lock... [2024-12-30 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:42:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:43:04 [end_date_ymd] => 2024-12-30 03:43:04 [RateCDR] => 1 ) [2024-12-30 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-30 00:43:04' and `end` < '2024-12-30 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-30 03:43:18] Production.INFO: count ==135 [2024-12-30 03:43:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:43:04 - End Time 2024-12-30 03:43:04 [2024-12-30 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133530', 'tblTempUsageDetail_20' ) start [2024-12-30 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133530', 'tblTempUsageDetail_20' ) end [2024-12-30 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133530', 'tblTempVendorCDR_20' ) start [2024-12-30 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133530', 'tblTempVendorCDR_20' ) end [2024-12-30 03:43:18] Production.INFO: ProcessCDR(1,14133530,1,1,2) [2024-12-30 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133530', 'tblTempUsageDetail_20' ) start [2024-12-30 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133530', 'tblTempUsageDetail_20' ) end [2024-12-30 03:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:43:21] Production.INFO: ==10164== Releasing lock... [2024-12-30 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:43:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:44:04 [end_date_ymd] => 2024-12-30 03:44:04 [RateCDR] => 1 ) [2024-12-30 03: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-30 00:44:04' and `end` < '2024-12-30 03: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-30 03:44:17] Production.INFO: count ==135 [2024-12-30 03:44:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:44:04 - End Time 2024-12-30 03:44:04 [2024-12-30 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133535', 'tblTempUsageDetail_20' ) start [2024-12-30 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133535', 'tblTempUsageDetail_20' ) end [2024-12-30 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133535', 'tblTempVendorCDR_20' ) start [2024-12-30 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133535', 'tblTempVendorCDR_20' ) end [2024-12-30 03:44:17] Production.INFO: ProcessCDR(1,14133535,1,1,2) [2024-12-30 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133535', 'tblTempUsageDetail_20' ) start [2024-12-30 03:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133535', 'tblTempUsageDetail_20' ) end [2024-12-30 03:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:44:20] Production.INFO: ==10235== Releasing lock... [2024-12-30 03:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:44:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:45:05 [end_date_ymd] => 2024-12-30 03:45:05 [RateCDR] => 1 ) [2024-12-30 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 00:45:05' and `end` < '2024-12-30 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 03:45:18] Production.INFO: count ==135 [2024-12-30 03:45:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:45:05 - End Time 2024-12-30 03:45:05 [2024-12-30 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133540', 'tblTempUsageDetail_20' ) start [2024-12-30 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133540', 'tblTempUsageDetail_20' ) end [2024-12-30 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133540', 'tblTempVendorCDR_20' ) start [2024-12-30 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133540', 'tblTempVendorCDR_20' ) end [2024-12-30 03:45:18] Production.INFO: ProcessCDR(1,14133540,1,1,2) [2024-12-30 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133540', 'tblTempUsageDetail_20' ) start [2024-12-30 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133540', 'tblTempUsageDetail_20' ) end [2024-12-30 03:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:45:21] Production.INFO: ==10306== Releasing lock... [2024-12-30 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:45:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:46:05 [end_date_ymd] => 2024-12-30 03:46:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:46:05' and `end` < '2024-12-30 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-30 03:46:18] Production.INFO: count ==134 [2024-12-30 03:46:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:46:05 - End Time 2024-12-30 03:46:05 [2024-12-30 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133545', 'tblTempUsageDetail_20' ) start [2024-12-30 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133545', 'tblTempUsageDetail_20' ) end [2024-12-30 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133545', 'tblTempVendorCDR_20' ) start [2024-12-30 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133545', 'tblTempVendorCDR_20' ) end [2024-12-30 03:46:18] Production.INFO: ProcessCDR(1,14133545,1,1,2) [2024-12-30 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133545', 'tblTempUsageDetail_20' ) start [2024-12-30 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133545', 'tblTempUsageDetail_20' ) end [2024-12-30 03:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:46:21] Production.INFO: ==10378== Releasing lock... [2024-12-30 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:46:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:47:05 [end_date_ymd] => 2024-12-30 03:47:05 [RateCDR] => 1 ) [2024-12-30 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 00:47:05' and `end` < '2024-12-30 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 03:47:17] Production.INFO: count ==134 [2024-12-30 03:47:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:47:05 - End Time 2024-12-30 03:47:05 [2024-12-30 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133550', 'tblTempUsageDetail_20' ) start [2024-12-30 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133550', 'tblTempUsageDetail_20' ) end [2024-12-30 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133550', 'tblTempVendorCDR_20' ) start [2024-12-30 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133550', 'tblTempVendorCDR_20' ) end [2024-12-30 03:47:17] Production.INFO: ProcessCDR(1,14133550,1,1,2) [2024-12-30 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133550', 'tblTempUsageDetail_20' ) start [2024-12-30 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133550', 'tblTempUsageDetail_20' ) end [2024-12-30 03:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:47:20] Production.INFO: ==10447== Releasing lock... [2024-12-30 03:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:47:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:48:05 [end_date_ymd] => 2024-12-30 03:48:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:48:05' and `end` < '2024-12-30 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-30 03:48:17] Production.INFO: count ==134 [2024-12-30 03:48:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:48:05 - End Time 2024-12-30 03:48:05 [2024-12-30 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133555', 'tblTempUsageDetail_20' ) start [2024-12-30 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133555', 'tblTempUsageDetail_20' ) end [2024-12-30 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133555', 'tblTempVendorCDR_20' ) start [2024-12-30 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133555', 'tblTempVendorCDR_20' ) end [2024-12-30 03:48:18] Production.INFO: ProcessCDR(1,14133555,1,1,2) [2024-12-30 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133555', 'tblTempUsageDetail_20' ) start [2024-12-30 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133555', 'tblTempUsageDetail_20' ) end [2024-12-30 03:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:48:21] Production.INFO: ==10541== Releasing lock... [2024-12-30 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:48:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:49:05 [end_date_ymd] => 2024-12-30 03:49:05 [RateCDR] => 1 ) [2024-12-30 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 00:49:05' and `end` < '2024-12-30 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 03:49:19] Production.INFO: count ==132 [2024-12-30 03:49:19] Production.ERROR: pbx CDR StartTime 2024-12-30 00:49:05 - End Time 2024-12-30 03:49:05 [2024-12-30 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133560', 'tblTempUsageDetail_20' ) start [2024-12-30 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133560', 'tblTempUsageDetail_20' ) end [2024-12-30 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133560', 'tblTempVendorCDR_20' ) start [2024-12-30 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133560', 'tblTempVendorCDR_20' ) end [2024-12-30 03:49:19] Production.INFO: ProcessCDR(1,14133560,1,1,2) [2024-12-30 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133560', 'tblTempUsageDetail_20' ) start [2024-12-30 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133560', 'tblTempUsageDetail_20' ) end [2024-12-30 03:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:49:23] Production.INFO: ==10610== Releasing lock... [2024-12-30 03:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:49:23] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:50:05 [end_date_ymd] => 2024-12-30 03:50:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:50:05' and `end` < '2024-12-30 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-30 03:50:18] Production.INFO: count ==124 [2024-12-30 03:50:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:50:05 - End Time 2024-12-30 03:50:05 [2024-12-30 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133566', 'tblTempUsageDetail_20' ) start [2024-12-30 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133566', 'tblTempUsageDetail_20' ) end [2024-12-30 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133566', 'tblTempVendorCDR_20' ) start [2024-12-30 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133566', 'tblTempVendorCDR_20' ) end [2024-12-30 03:50:18] Production.INFO: ProcessCDR(1,14133566,1,1,2) [2024-12-30 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133566', 'tblTempUsageDetail_20' ) start [2024-12-30 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133566', 'tblTempUsageDetail_20' ) end [2024-12-30 03:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:50:21] Production.INFO: ==10683== Releasing lock... [2024-12-30 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:50:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:51:04 [end_date_ymd] => 2024-12-30 03:51:04 [RateCDR] => 1 ) [2024-12-30 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-30 00:51:04' and `end` < '2024-12-30 03: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-30 03:51:18] Production.INFO: count ==112 [2024-12-30 03:51:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:51:04 - End Time 2024-12-30 03:51:04 [2024-12-30 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133571', 'tblTempUsageDetail_20' ) start [2024-12-30 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133571', 'tblTempUsageDetail_20' ) end [2024-12-30 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133571', 'tblTempVendorCDR_20' ) start [2024-12-30 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133571', 'tblTempVendorCDR_20' ) end [2024-12-30 03:51:18] Production.INFO: ProcessCDR(1,14133571,1,1,2) [2024-12-30 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133571', 'tblTempUsageDetail_20' ) start [2024-12-30 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133571', 'tblTempUsageDetail_20' ) end [2024-12-30 03:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:51:21] Production.INFO: ==10756== Releasing lock... [2024-12-30 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:51:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:52:05 [end_date_ymd] => 2024-12-30 03:52:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:52:05' and `end` < '2024-12-30 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-30 03:52:19] Production.INFO: count ==112 [2024-12-30 03:52:19] Production.ERROR: pbx CDR StartTime 2024-12-30 00:52:05 - End Time 2024-12-30 03:52:05 [2024-12-30 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133576', 'tblTempUsageDetail_20' ) start [2024-12-30 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133576', 'tblTempUsageDetail_20' ) end [2024-12-30 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133576', 'tblTempVendorCDR_20' ) start [2024-12-30 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133576', 'tblTempVendorCDR_20' ) end [2024-12-30 03:52:19] Production.INFO: ProcessCDR(1,14133576,1,1,2) [2024-12-30 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133576', 'tblTempUsageDetail_20' ) start [2024-12-30 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133576', 'tblTempUsageDetail_20' ) end [2024-12-30 03:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:52:22] Production.INFO: ==10827== Releasing lock... [2024-12-30 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:52:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 03:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:53:04 [end_date_ymd] => 2024-12-30 03:53:04 [RateCDR] => 1 ) [2024-12-30 03: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-30 00:53:04' and `end` < '2024-12-30 03: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-30 03:53:17] Production.INFO: count ==112 [2024-12-30 03:53:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:53:04 - End Time 2024-12-30 03:53:04 [2024-12-30 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133581', 'tblTempUsageDetail_20' ) start [2024-12-30 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133581', 'tblTempUsageDetail_20' ) end [2024-12-30 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133581', 'tblTempVendorCDR_20' ) start [2024-12-30 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133581', 'tblTempVendorCDR_20' ) end [2024-12-30 03:53:17] Production.INFO: ProcessCDR(1,14133581,1,1,2) [2024-12-30 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133581', 'tblTempUsageDetail_20' ) start [2024-12-30 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133581', 'tblTempUsageDetail_20' ) end [2024-12-30 03:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:53:20] Production.INFO: ==10897== Releasing lock... [2024-12-30 03:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:53:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:54:05 [end_date_ymd] => 2024-12-30 03:54:05 [RateCDR] => 1 ) [2024-12-30 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 00:54:05' and `end` < '2024-12-30 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 03:54:17] Production.INFO: count ==112 [2024-12-30 03:54:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:54:05 - End Time 2024-12-30 03:54:05 [2024-12-30 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133586', 'tblTempUsageDetail_20' ) start [2024-12-30 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133586', 'tblTempUsageDetail_20' ) end [2024-12-30 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133586', 'tblTempVendorCDR_20' ) start [2024-12-30 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133586', 'tblTempVendorCDR_20' ) end [2024-12-30 03:54:17] Production.INFO: ProcessCDR(1,14133586,1,1,2) [2024-12-30 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133586', 'tblTempUsageDetail_20' ) start [2024-12-30 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133586', 'tblTempUsageDetail_20' ) end [2024-12-30 03:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:54:21] Production.INFO: ==11014== Releasing lock... [2024-12-30 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:54:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:55:05 [end_date_ymd] => 2024-12-30 03:55:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:55:05' and `end` < '2024-12-30 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-30 03:55:18] Production.INFO: count ==112 [2024-12-30 03:55:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:55:05 - End Time 2024-12-30 03:55:05 [2024-12-30 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133591', 'tblTempUsageDetail_20' ) start [2024-12-30 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133591', 'tblTempUsageDetail_20' ) end [2024-12-30 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133591', 'tblTempVendorCDR_20' ) start [2024-12-30 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133591', 'tblTempVendorCDR_20' ) end [2024-12-30 03:55:18] Production.INFO: ProcessCDR(1,14133591,1,1,2) [2024-12-30 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133591', 'tblTempUsageDetail_20' ) start [2024-12-30 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133591', 'tblTempUsageDetail_20' ) end [2024-12-30 03:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:55:21] Production.INFO: ==11084== Releasing lock... [2024-12-30 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:55:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:56:05 [end_date_ymd] => 2024-12-30 03:56:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:56:05' and `end` < '2024-12-30 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-30 03:56:17] Production.INFO: count ==112 [2024-12-30 03:56:17] Production.ERROR: pbx CDR StartTime 2024-12-30 00:56:05 - End Time 2024-12-30 03:56:05 [2024-12-30 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133596', 'tblTempUsageDetail_20' ) start [2024-12-30 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133596', 'tblTempUsageDetail_20' ) end [2024-12-30 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133596', 'tblTempVendorCDR_20' ) start [2024-12-30 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133596', 'tblTempVendorCDR_20' ) end [2024-12-30 03:56:17] Production.INFO: ProcessCDR(1,14133596,1,1,2) [2024-12-30 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133596', 'tblTempUsageDetail_20' ) start [2024-12-30 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133596', 'tblTempUsageDetail_20' ) end [2024-12-30 03:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:56:21] Production.INFO: ==11154== Releasing lock... [2024-12-30 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:56:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:57:05 [end_date_ymd] => 2024-12-30 03:57:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:57:05' and `end` < '2024-12-30 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-30 03:57:18] Production.INFO: count ==112 [2024-12-30 03:57:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:57:05 - End Time 2024-12-30 03:57:05 [2024-12-30 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133601', 'tblTempUsageDetail_20' ) start [2024-12-30 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133601', 'tblTempUsageDetail_20' ) end [2024-12-30 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133601', 'tblTempVendorCDR_20' ) start [2024-12-30 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133601', 'tblTempVendorCDR_20' ) end [2024-12-30 03:57:18] Production.INFO: ProcessCDR(1,14133601,1,1,2) [2024-12-30 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133601', 'tblTempUsageDetail_20' ) start [2024-12-30 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133601', 'tblTempUsageDetail_20' ) end [2024-12-30 03:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:57:21] Production.INFO: ==11225== Releasing lock... [2024-12-30 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:57:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:58:05 [end_date_ymd] => 2024-12-30 03:58:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:58:05' and `end` < '2024-12-30 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-30 03:58:18] Production.INFO: count ==112 [2024-12-30 03:58:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:58:05 - End Time 2024-12-30 03:58:05 [2024-12-30 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133606', 'tblTempUsageDetail_20' ) start [2024-12-30 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133606', 'tblTempUsageDetail_20' ) end [2024-12-30 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133606', 'tblTempVendorCDR_20' ) start [2024-12-30 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133606', 'tblTempVendorCDR_20' ) end [2024-12-30 03:58:18] Production.INFO: ProcessCDR(1,14133606,1,1,2) [2024-12-30 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133606', 'tblTempUsageDetail_20' ) start [2024-12-30 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133606', 'tblTempUsageDetail_20' ) end [2024-12-30 03:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:58:22] Production.INFO: ==11297== Releasing lock... [2024-12-30 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:58:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 00:59:05 [end_date_ymd] => 2024-12-30 03:59:05 [RateCDR] => 1 ) [2024-12-30 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-30 00:59:05' and `end` < '2024-12-30 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-30 03:59:18] Production.INFO: count ==112 [2024-12-30 03:59:18] Production.ERROR: pbx CDR StartTime 2024-12-30 00:59:05 - End Time 2024-12-30 03:59:05 [2024-12-30 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133611', 'tblTempUsageDetail_20' ) start [2024-12-30 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133611', 'tblTempUsageDetail_20' ) end [2024-12-30 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133611', 'tblTempVendorCDR_20' ) start [2024-12-30 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133611', 'tblTempVendorCDR_20' ) end [2024-12-30 03:59:18] Production.INFO: ProcessCDR(1,14133611,1,1,2) [2024-12-30 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133611', 'tblTempUsageDetail_20' ) start [2024-12-30 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133611', 'tblTempUsageDetail_20' ) end [2024-12-30 03:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 03:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 03:59:21] Production.INFO: ==11369== Releasing lock... [2024-12-30 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 03:59:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:00:05 [end_date_ymd] => 2024-12-30 04:00:05 [RateCDR] => 1 ) [2024-12-30 04: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-30 01:00:05' and `end` < '2024-12-30 04: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-30 04:00:18] Production.INFO: count ==106 [2024-12-30 04:00:18] Production.ERROR: pbx CDR StartTime 2024-12-30 01:00:05 - End Time 2024-12-30 04:00:05 [2024-12-30 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133618', 'tblTempUsageDetail_20' ) start [2024-12-30 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133618', 'tblTempUsageDetail_20' ) end [2024-12-30 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133618', 'tblTempVendorCDR_20' ) start [2024-12-30 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133618', 'tblTempVendorCDR_20' ) end [2024-12-30 04:00:18] Production.INFO: ProcessCDR(1,14133618,1,1,2) [2024-12-30 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133618', 'tblTempUsageDetail_20' ) start [2024-12-30 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133618', 'tblTempUsageDetail_20' ) end [2024-12-30 04:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:00:21] Production.INFO: ==11443== Releasing lock... [2024-12-30 04:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:00:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:01:04 [end_date_ymd] => 2024-12-30 04:01:04 [RateCDR] => 1 ) [2024-12-30 04: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-30 01:01:04' and `end` < '2024-12-30 04: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-30 04:01:18] Production.INFO: count ==99 [2024-12-30 04:01:18] Production.ERROR: pbx CDR StartTime 2024-12-30 01:01:04 - End Time 2024-12-30 04:01:04 [2024-12-30 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133623', 'tblTempUsageDetail_20' ) start [2024-12-30 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133623', 'tblTempUsageDetail_20' ) end [2024-12-30 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133623', 'tblTempVendorCDR_20' ) start [2024-12-30 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133623', 'tblTempVendorCDR_20' ) end [2024-12-30 04:01:18] Production.INFO: ProcessCDR(1,14133623,1,1,2) [2024-12-30 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133623', 'tblTempUsageDetail_20' ) start [2024-12-30 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133623', 'tblTempUsageDetail_20' ) end [2024-12-30 04:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:01:21] Production.INFO: ==11529== Releasing lock... [2024-12-30 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:01:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:02:05 [end_date_ymd] => 2024-12-30 04:02:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:02:05' and `end` < '2024-12-30 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-30 04:02:20] Production.INFO: count ==99 [2024-12-30 04:02:20] Production.ERROR: pbx CDR StartTime 2024-12-30 01:02:05 - End Time 2024-12-30 04:02:05 [2024-12-30 04:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133628', 'tblTempUsageDetail_20' ) start [2024-12-30 04:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133628', 'tblTempUsageDetail_20' ) end [2024-12-30 04:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133628', 'tblTempVendorCDR_20' ) start [2024-12-30 04:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133628', 'tblTempVendorCDR_20' ) end [2024-12-30 04:02:20] Production.INFO: ProcessCDR(1,14133628,1,1,2) [2024-12-30 04:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133628', 'tblTempUsageDetail_20' ) start [2024-12-30 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133628', 'tblTempUsageDetail_20' ) end [2024-12-30 04:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:02:23] Production.INFO: ==11603== Releasing lock... [2024-12-30 04:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:02:23] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:03:05 [end_date_ymd] => 2024-12-30 04:03:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:03:05' and `end` < '2024-12-30 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-30 04:03:17] Production.INFO: count ==99 [2024-12-30 04:03:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:03:05 - End Time 2024-12-30 04:03:05 [2024-12-30 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133633', 'tblTempUsageDetail_20' ) start [2024-12-30 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133633', 'tblTempUsageDetail_20' ) end [2024-12-30 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133633', 'tblTempVendorCDR_20' ) start [2024-12-30 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133633', 'tblTempVendorCDR_20' ) end [2024-12-30 04:03:17] Production.INFO: ProcessCDR(1,14133633,1,1,2) [2024-12-30 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133633', 'tblTempUsageDetail_20' ) start [2024-12-30 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133633', 'tblTempUsageDetail_20' ) end [2024-12-30 04:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:03:21] Production.INFO: ==11674== Releasing lock... [2024-12-30 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:03:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:04:04 [end_date_ymd] => 2024-12-30 04:04:04 [RateCDR] => 1 ) [2024-12-30 04: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-30 01:04:04' and `end` < '2024-12-30 04: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-30 04:04:17] Production.INFO: count ==99 [2024-12-30 04:04:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:04:04 - End Time 2024-12-30 04:04:04 [2024-12-30 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133638', 'tblTempUsageDetail_20' ) start [2024-12-30 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133638', 'tblTempUsageDetail_20' ) end [2024-12-30 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133638', 'tblTempVendorCDR_20' ) start [2024-12-30 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133638', 'tblTempVendorCDR_20' ) end [2024-12-30 04:04:17] Production.INFO: ProcessCDR(1,14133638,1,1,2) [2024-12-30 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133638', 'tblTempUsageDetail_20' ) start [2024-12-30 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133638', 'tblTempUsageDetail_20' ) end [2024-12-30 04:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:04:20] Production.INFO: ==11742== Releasing lock... [2024-12-30 04:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:04:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:05:05 [end_date_ymd] => 2024-12-30 04:05:05 [RateCDR] => 1 ) [2024-12-30 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 01:05:05' and `end` < '2024-12-30 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 04:05:17] Production.INFO: count ==99 [2024-12-30 04:05:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:05:05 - End Time 2024-12-30 04:05:05 [2024-12-30 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133643', 'tblTempUsageDetail_20' ) start [2024-12-30 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133643', 'tblTempUsageDetail_20' ) end [2024-12-30 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133643', 'tblTempVendorCDR_20' ) start [2024-12-30 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133643', 'tblTempVendorCDR_20' ) end [2024-12-30 04:05:17] Production.INFO: ProcessCDR(1,14133643,1,1,2) [2024-12-30 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133643', 'tblTempUsageDetail_20' ) start [2024-12-30 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133643', 'tblTempUsageDetail_20' ) end [2024-12-30 04:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:05:21] Production.INFO: ==11817== Releasing lock... [2024-12-30 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:05:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:06:05 [end_date_ymd] => 2024-12-30 04:06:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:06:05' and `end` < '2024-12-30 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-30 04:06:18] Production.INFO: count ==99 [2024-12-30 04:06:18] Production.ERROR: pbx CDR StartTime 2024-12-30 01:06:05 - End Time 2024-12-30 04:06:05 [2024-12-30 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133648', 'tblTempUsageDetail_20' ) start [2024-12-30 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133648', 'tblTempUsageDetail_20' ) end [2024-12-30 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133648', 'tblTempVendorCDR_20' ) start [2024-12-30 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133648', 'tblTempVendorCDR_20' ) end [2024-12-30 04:06:18] Production.INFO: ProcessCDR(1,14133648,1,1,2) [2024-12-30 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133648', 'tblTempUsageDetail_20' ) start [2024-12-30 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133648', 'tblTempUsageDetail_20' ) end [2024-12-30 04:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:06:21] Production.INFO: ==11889== Releasing lock... [2024-12-30 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:06:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:07:05 [end_date_ymd] => 2024-12-30 04:07:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:07:05' and `end` < '2024-12-30 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-30 04:07:18] Production.INFO: count ==99 [2024-12-30 04:07:18] Production.ERROR: pbx CDR StartTime 2024-12-30 01:07:05 - End Time 2024-12-30 04:07:05 [2024-12-30 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133653', 'tblTempUsageDetail_20' ) start [2024-12-30 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133653', 'tblTempUsageDetail_20' ) end [2024-12-30 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133653', 'tblTempVendorCDR_20' ) start [2024-12-30 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133653', 'tblTempVendorCDR_20' ) end [2024-12-30 04:07:18] Production.INFO: ProcessCDR(1,14133653,1,1,2) [2024-12-30 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133653', 'tblTempUsageDetail_20' ) start [2024-12-30 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133653', 'tblTempUsageDetail_20' ) end [2024-12-30 04:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:07:21] Production.INFO: ==11962== Releasing lock... [2024-12-30 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:07:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:08:05 [end_date_ymd] => 2024-12-30 04:08:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:08:05' and `end` < '2024-12-30 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-30 04:08:19] Production.INFO: count ==99 [2024-12-30 04:08:19] Production.ERROR: pbx CDR StartTime 2024-12-30 01:08:05 - End Time 2024-12-30 04:08:05 [2024-12-30 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133658', 'tblTempUsageDetail_20' ) start [2024-12-30 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133658', 'tblTempUsageDetail_20' ) end [2024-12-30 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133658', 'tblTempVendorCDR_20' ) start [2024-12-30 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133658', 'tblTempVendorCDR_20' ) end [2024-12-30 04:08:19] Production.INFO: ProcessCDR(1,14133658,1,1,2) [2024-12-30 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133658', 'tblTempUsageDetail_20' ) start [2024-12-30 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133658', 'tblTempUsageDetail_20' ) end [2024-12-30 04:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:08:22] Production.INFO: ==12034== Releasing lock... [2024-12-30 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:08:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:09:05 [end_date_ymd] => 2024-12-30 04:09:05 [RateCDR] => 1 ) [2024-12-30 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 01:09:05' and `end` < '2024-12-30 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 04:09:19] Production.INFO: count ==99 [2024-12-30 04:09:19] Production.ERROR: pbx CDR StartTime 2024-12-30 01:09:05 - End Time 2024-12-30 04:09:05 [2024-12-30 04:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133663', 'tblTempUsageDetail_20' ) start [2024-12-30 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133663', 'tblTempUsageDetail_20' ) end [2024-12-30 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133663', 'tblTempVendorCDR_20' ) start [2024-12-30 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133663', 'tblTempVendorCDR_20' ) end [2024-12-30 04:09:19] Production.INFO: ProcessCDR(1,14133663,1,1,2) [2024-12-30 04:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133663', 'tblTempUsageDetail_20' ) start [2024-12-30 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133663', 'tblTempUsageDetail_20' ) end [2024-12-30 04:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:09:22] Production.INFO: ==12106== Releasing lock... [2024-12-30 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:09:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:10:06 [end_date_ymd] => 2024-12-30 04:10:06 [RateCDR] => 1 ) [2024-12-30 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-30 01:10:06' and `end` < '2024-12-30 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-30 04:10:18] Production.INFO: count ==99 [2024-12-30 04:10:18] Production.ERROR: pbx CDR StartTime 2024-12-30 01:10:06 - End Time 2024-12-30 04:10:06 [2024-12-30 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133669', 'tblTempUsageDetail_20' ) start [2024-12-30 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133669', 'tblTempUsageDetail_20' ) end [2024-12-30 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133669', 'tblTempVendorCDR_20' ) start [2024-12-30 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133669', 'tblTempVendorCDR_20' ) end [2024-12-30 04:10:18] Production.INFO: ProcessCDR(1,14133669,1,1,2) [2024-12-30 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133669', 'tblTempUsageDetail_20' ) start [2024-12-30 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133669', 'tblTempUsageDetail_20' ) end [2024-12-30 04:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:10:21] Production.INFO: ==12218== Releasing lock... [2024-12-30 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:10:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:11:04 [end_date_ymd] => 2024-12-30 04:11:04 [RateCDR] => 1 ) [2024-12-30 04: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-30 01:11:04' and `end` < '2024-12-30 04: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-30 04:11:17] Production.INFO: count ==89 [2024-12-30 04:11:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:11:04 - End Time 2024-12-30 04:11:04 [2024-12-30 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133674', 'tblTempUsageDetail_20' ) start [2024-12-30 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133674', 'tblTempUsageDetail_20' ) end [2024-12-30 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133674', 'tblTempVendorCDR_20' ) start [2024-12-30 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133674', 'tblTempVendorCDR_20' ) end [2024-12-30 04:11:17] Production.INFO: ProcessCDR(1,14133674,1,1,2) [2024-12-30 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133674', 'tblTempUsageDetail_20' ) start [2024-12-30 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133674', 'tblTempUsageDetail_20' ) end [2024-12-30 04:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:11:20] Production.INFO: ==12290== Releasing lock... [2024-12-30 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:11:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:12:05 [end_date_ymd] => 2024-12-30 04:12:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:12:05' and `end` < '2024-12-30 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-30 04:12:17] Production.INFO: count ==89 [2024-12-30 04:12:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:12:05 - End Time 2024-12-30 04:12:05 [2024-12-30 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133679', 'tblTempUsageDetail_20' ) start [2024-12-30 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133679', 'tblTempUsageDetail_20' ) end [2024-12-30 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133679', 'tblTempVendorCDR_20' ) start [2024-12-30 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133679', 'tblTempVendorCDR_20' ) end [2024-12-30 04:12:17] Production.INFO: ProcessCDR(1,14133679,1,1,2) [2024-12-30 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133679', 'tblTempUsageDetail_20' ) start [2024-12-30 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133679', 'tblTempUsageDetail_20' ) end [2024-12-30 04:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:12:21] Production.INFO: ==12363== Releasing lock... [2024-12-30 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:12:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:13:06 [end_date_ymd] => 2024-12-30 04:13:06 [RateCDR] => 1 ) [2024-12-30 04: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-30 01:13:06' and `end` < '2024-12-30 04: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-30 04:13:19] Production.INFO: count ==89 [2024-12-30 04:13:19] Production.ERROR: pbx CDR StartTime 2024-12-30 01:13:06 - End Time 2024-12-30 04:13:06 [2024-12-30 04:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133684', 'tblTempUsageDetail_20' ) start [2024-12-30 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133684', 'tblTempUsageDetail_20' ) end [2024-12-30 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133684', 'tblTempVendorCDR_20' ) start [2024-12-30 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133684', 'tblTempVendorCDR_20' ) end [2024-12-30 04:13:19] Production.INFO: ProcessCDR(1,14133684,1,1,2) [2024-12-30 04:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133684', 'tblTempUsageDetail_20' ) start [2024-12-30 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133684', 'tblTempUsageDetail_20' ) end [2024-12-30 04:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:13:22] Production.INFO: ==12436== Releasing lock... [2024-12-30 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:13:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:14:05 [end_date_ymd] => 2024-12-30 04:14:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:14:05' and `end` < '2024-12-30 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-30 04:14:17] Production.INFO: count ==89 [2024-12-30 04:14:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:14:05 - End Time 2024-12-30 04:14:05 [2024-12-30 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133689', 'tblTempUsageDetail_20' ) start [2024-12-30 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133689', 'tblTempUsageDetail_20' ) end [2024-12-30 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133689', 'tblTempVendorCDR_20' ) start [2024-12-30 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133689', 'tblTempVendorCDR_20' ) end [2024-12-30 04:14:17] Production.INFO: ProcessCDR(1,14133689,1,1,2) [2024-12-30 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133689', 'tblTempUsageDetail_20' ) start [2024-12-30 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133689', 'tblTempUsageDetail_20' ) end [2024-12-30 04:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:14:20] Production.INFO: ==12506== Releasing lock... [2024-12-30 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:14:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:15:05 [end_date_ymd] => 2024-12-30 04:15:05 [RateCDR] => 1 ) [2024-12-30 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 01:15:05' and `end` < '2024-12-30 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-30 04:15:18] Production.INFO: count ==89 [2024-12-30 04:15:18] Production.ERROR: pbx CDR StartTime 2024-12-30 01:15:05 - End Time 2024-12-30 04:15:05 [2024-12-30 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133694', 'tblTempUsageDetail_20' ) start [2024-12-30 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133694', 'tblTempUsageDetail_20' ) end [2024-12-30 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133694', 'tblTempVendorCDR_20' ) start [2024-12-30 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133694', 'tblTempVendorCDR_20' ) end [2024-12-30 04:15:18] Production.INFO: ProcessCDR(1,14133694,1,1,2) [2024-12-30 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133694', 'tblTempUsageDetail_20' ) start [2024-12-30 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133694', 'tblTempUsageDetail_20' ) end [2024-12-30 04:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:15:21] Production.INFO: ==12576== Releasing lock... [2024-12-30 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:15:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:16:04 [end_date_ymd] => 2024-12-30 04:16:04 [RateCDR] => 1 ) [2024-12-30 04: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-30 01:16:04' and `end` < '2024-12-30 04: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-30 04:16:18] Production.INFO: count ==89 [2024-12-30 04:16:18] Production.ERROR: pbx CDR StartTime 2024-12-30 01:16:04 - End Time 2024-12-30 04:16:04 [2024-12-30 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133699', 'tblTempUsageDetail_20' ) start [2024-12-30 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133699', 'tblTempUsageDetail_20' ) end [2024-12-30 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133699', 'tblTempVendorCDR_20' ) start [2024-12-30 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133699', 'tblTempVendorCDR_20' ) end [2024-12-30 04:16:18] Production.INFO: ProcessCDR(1,14133699,1,1,2) [2024-12-30 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133699', 'tblTempUsageDetail_20' ) start [2024-12-30 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133699', 'tblTempUsageDetail_20' ) end [2024-12-30 04:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:16:22] Production.INFO: ==12646== Releasing lock... [2024-12-30 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:16:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:17:05 [end_date_ymd] => 2024-12-30 04:17:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:17:05' and `end` < '2024-12-30 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-30 04:17:17] Production.INFO: count ==89 [2024-12-30 04:17:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:17:05 - End Time 2024-12-30 04:17:05 [2024-12-30 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133704', 'tblTempUsageDetail_20' ) start [2024-12-30 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133704', 'tblTempUsageDetail_20' ) end [2024-12-30 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133704', 'tblTempVendorCDR_20' ) start [2024-12-30 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133704', 'tblTempVendorCDR_20' ) end [2024-12-30 04:17:17] Production.INFO: ProcessCDR(1,14133704,1,1,2) [2024-12-30 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133704', 'tblTempUsageDetail_20' ) start [2024-12-30 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133704', 'tblTempUsageDetail_20' ) end [2024-12-30 04:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:17:20] Production.INFO: ==12728== Releasing lock... [2024-12-30 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:17:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:18:04 [end_date_ymd] => 2024-12-30 04:18:04 [RateCDR] => 1 ) [2024-12-30 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-30 01:18:04' and `end` < '2024-12-30 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-30 04:18:17] Production.INFO: count ==89 [2024-12-30 04:18:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:18:04 - End Time 2024-12-30 04:18:04 [2024-12-30 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133709', 'tblTempUsageDetail_20' ) start [2024-12-30 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133709', 'tblTempUsageDetail_20' ) end [2024-12-30 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133709', 'tblTempVendorCDR_20' ) start [2024-12-30 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133709', 'tblTempVendorCDR_20' ) end [2024-12-30 04:18:17] Production.INFO: ProcessCDR(1,14133709,1,1,2) [2024-12-30 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133709', 'tblTempUsageDetail_20' ) start [2024-12-30 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133709', 'tblTempUsageDetail_20' ) end [2024-12-30 04:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:18:20] Production.INFO: ==12800== Releasing lock... [2024-12-30 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:18:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:19:05 [end_date_ymd] => 2024-12-30 04:19:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:19:05' and `end` < '2024-12-30 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-30 04:19:18] Production.INFO: count ==89 [2024-12-30 04:19:18] Production.ERROR: pbx CDR StartTime 2024-12-30 01:19:05 - End Time 2024-12-30 04:19:05 [2024-12-30 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133714', 'tblTempUsageDetail_20' ) start [2024-12-30 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133714', 'tblTempUsageDetail_20' ) end [2024-12-30 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133714', 'tblTempVendorCDR_20' ) start [2024-12-30 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133714', 'tblTempVendorCDR_20' ) end [2024-12-30 04:19:18] Production.INFO: ProcessCDR(1,14133714,1,1,2) [2024-12-30 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133714', 'tblTempUsageDetail_20' ) start [2024-12-30 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133714', 'tblTempUsageDetail_20' ) end [2024-12-30 04:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:19:21] Production.INFO: ==12873== Releasing lock... [2024-12-30 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:19:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:20:06 [end_date_ymd] => 2024-12-30 04:20:06 [RateCDR] => 1 ) [2024-12-30 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 01:20:06' and `end` < '2024-12-30 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 04:20:19] Production.INFO: count ==81 [2024-12-30 04:20:19] Production.ERROR: pbx CDR StartTime 2024-12-30 01:20:06 - End Time 2024-12-30 04:20:06 [2024-12-30 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133720', 'tblTempUsageDetail_20' ) start [2024-12-30 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133720', 'tblTempUsageDetail_20' ) end [2024-12-30 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133720', 'tblTempVendorCDR_20' ) start [2024-12-30 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133720', 'tblTempVendorCDR_20' ) end [2024-12-30 04:20:19] Production.INFO: ProcessCDR(1,14133720,1,1,2) [2024-12-30 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133720', 'tblTempUsageDetail_20' ) start [2024-12-30 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133720', 'tblTempUsageDetail_20' ) end [2024-12-30 04:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:20:22] Production.INFO: ==12946== Releasing lock... [2024-12-30 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:20:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:21:05 [end_date_ymd] => 2024-12-30 04:21:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:21:05' and `end` < '2024-12-30 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-30 04:21:17] Production.INFO: count ==75 [2024-12-30 04:21:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:21:05 - End Time 2024-12-30 04:21:05 [2024-12-30 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133725', 'tblTempUsageDetail_20' ) start [2024-12-30 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133725', 'tblTempUsageDetail_20' ) end [2024-12-30 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133725', 'tblTempVendorCDR_20' ) start [2024-12-30 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133725', 'tblTempVendorCDR_20' ) end [2024-12-30 04:21:17] Production.INFO: ProcessCDR(1,14133725,1,1,2) [2024-12-30 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133725', 'tblTempUsageDetail_20' ) start [2024-12-30 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133725', 'tblTempUsageDetail_20' ) end [2024-12-30 04:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:21:20] Production.INFO: ==13025== Releasing lock... [2024-12-30 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:21:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:22:05 [end_date_ymd] => 2024-12-30 04:22:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:22:05' and `end` < '2024-12-30 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-30 04:22:19] Production.INFO: count ==75 [2024-12-30 04:22:19] Production.ERROR: pbx CDR StartTime 2024-12-30 01:22:05 - End Time 2024-12-30 04:22:05 [2024-12-30 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133730', 'tblTempUsageDetail_20' ) start [2024-12-30 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133730', 'tblTempUsageDetail_20' ) end [2024-12-30 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133730', 'tblTempVendorCDR_20' ) start [2024-12-30 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133730', 'tblTempVendorCDR_20' ) end [2024-12-30 04:22:19] Production.INFO: ProcessCDR(1,14133730,1,1,2) [2024-12-30 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133730', 'tblTempUsageDetail_20' ) start [2024-12-30 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133730', 'tblTempUsageDetail_20' ) end [2024-12-30 04:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:22:22] Production.INFO: ==13094== Releasing lock... [2024-12-30 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:22:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:23:05 [end_date_ymd] => 2024-12-30 04:23:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:23:05' and `end` < '2024-12-30 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-30 04:23:19] Production.INFO: count ==75 [2024-12-30 04:23:19] Production.ERROR: pbx CDR StartTime 2024-12-30 01:23:05 - End Time 2024-12-30 04:23:05 [2024-12-30 04:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133735', 'tblTempUsageDetail_20' ) start [2024-12-30 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133735', 'tblTempUsageDetail_20' ) end [2024-12-30 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133735', 'tblTempVendorCDR_20' ) start [2024-12-30 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133735', 'tblTempVendorCDR_20' ) end [2024-12-30 04:23:19] Production.INFO: ProcessCDR(1,14133735,1,1,2) [2024-12-30 04:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133735', 'tblTempUsageDetail_20' ) start [2024-12-30 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133735', 'tblTempUsageDetail_20' ) end [2024-12-30 04:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:23:22] Production.INFO: ==13167== Releasing lock... [2024-12-30 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:23:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:24:05 [end_date_ymd] => 2024-12-30 04:24:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:24:05' and `end` < '2024-12-30 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-30 04:24:18] Production.INFO: count ==75 [2024-12-30 04:24:18] Production.ERROR: pbx CDR StartTime 2024-12-30 01:24:05 - End Time 2024-12-30 04:24:05 [2024-12-30 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133740', 'tblTempUsageDetail_20' ) start [2024-12-30 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133740', 'tblTempUsageDetail_20' ) end [2024-12-30 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133740', 'tblTempVendorCDR_20' ) start [2024-12-30 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133740', 'tblTempVendorCDR_20' ) end [2024-12-30 04:24:18] Production.INFO: ProcessCDR(1,14133740,1,1,2) [2024-12-30 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133740', 'tblTempUsageDetail_20' ) start [2024-12-30 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133740', 'tblTempUsageDetail_20' ) end [2024-12-30 04:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:24:21] Production.INFO: ==13240== Releasing lock... [2024-12-30 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:24:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:25:05 [end_date_ymd] => 2024-12-30 04:25:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:25:05' and `end` < '2024-12-30 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-30 04:25:18] Production.INFO: count ==75 [2024-12-30 04:25:18] Production.ERROR: pbx CDR StartTime 2024-12-30 01:25:05 - End Time 2024-12-30 04:25:05 [2024-12-30 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133745', 'tblTempUsageDetail_20' ) start [2024-12-30 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133745', 'tblTempUsageDetail_20' ) end [2024-12-30 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133745', 'tblTempVendorCDR_20' ) start [2024-12-30 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133745', 'tblTempVendorCDR_20' ) end [2024-12-30 04:25:18] Production.INFO: ProcessCDR(1,14133745,1,1,2) [2024-12-30 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133745', 'tblTempUsageDetail_20' ) start [2024-12-30 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133745', 'tblTempUsageDetail_20' ) end [2024-12-30 04:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:25:21] Production.INFO: ==13317== Releasing lock... [2024-12-30 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:25:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:26:04 [end_date_ymd] => 2024-12-30 04:26:04 [RateCDR] => 1 ) [2024-12-30 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-30 01:26:04' and `end` < '2024-12-30 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-30 04:26:17] Production.INFO: count ==75 [2024-12-30 04:26:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:26:04 - End Time 2024-12-30 04:26:04 [2024-12-30 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133750', 'tblTempUsageDetail_20' ) start [2024-12-30 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133750', 'tblTempUsageDetail_20' ) end [2024-12-30 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133750', 'tblTempVendorCDR_20' ) start [2024-12-30 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133750', 'tblTempVendorCDR_20' ) end [2024-12-30 04:26:17] Production.INFO: ProcessCDR(1,14133750,1,1,2) [2024-12-30 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133750', 'tblTempUsageDetail_20' ) start [2024-12-30 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133750', 'tblTempUsageDetail_20' ) end [2024-12-30 04:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:26:20] Production.INFO: ==13425== Releasing lock... [2024-12-30 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:26:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:27:05 [end_date_ymd] => 2024-12-30 04:27:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:27:05' and `end` < '2024-12-30 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-30 04:27:17] Production.INFO: count ==75 [2024-12-30 04:27:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:27:05 - End Time 2024-12-30 04:27:05 [2024-12-30 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133755', 'tblTempUsageDetail_20' ) start [2024-12-30 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133755', 'tblTempUsageDetail_20' ) end [2024-12-30 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133755', 'tblTempVendorCDR_20' ) start [2024-12-30 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133755', 'tblTempVendorCDR_20' ) end [2024-12-30 04:27:17] Production.INFO: ProcessCDR(1,14133755,1,1,2) [2024-12-30 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133755', 'tblTempUsageDetail_20' ) start [2024-12-30 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133755', 'tblTempUsageDetail_20' ) end [2024-12-30 04:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:27:20] Production.INFO: ==13499== Releasing lock... [2024-12-30 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:27:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:28:04 [end_date_ymd] => 2024-12-30 04:28:04 [RateCDR] => 1 ) [2024-12-30 04: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-30 01:28:04' and `end` < '2024-12-30 04: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-30 04:28:18] Production.INFO: count ==74 [2024-12-30 04:28:18] Production.ERROR: pbx CDR StartTime 2024-12-30 01:28:04 - End Time 2024-12-30 04:28:04 [2024-12-30 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133760', 'tblTempUsageDetail_20' ) start [2024-12-30 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133760', 'tblTempUsageDetail_20' ) end [2024-12-30 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133760', 'tblTempVendorCDR_20' ) start [2024-12-30 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133760', 'tblTempVendorCDR_20' ) end [2024-12-30 04:28:18] Production.INFO: ProcessCDR(1,14133760,1,1,2) [2024-12-30 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133760', 'tblTempUsageDetail_20' ) start [2024-12-30 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133760', 'tblTempUsageDetail_20' ) end [2024-12-30 04:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:28:22] Production.INFO: ==13570== Releasing lock... [2024-12-30 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:28:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:29:05 [end_date_ymd] => 2024-12-30 04:29:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:29:05' and `end` < '2024-12-30 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-30 04:29:17] Production.INFO: count ==74 [2024-12-30 04:29:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:29:05 - End Time 2024-12-30 04:29:05 [2024-12-30 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133765', 'tblTempUsageDetail_20' ) start [2024-12-30 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133765', 'tblTempUsageDetail_20' ) end [2024-12-30 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133765', 'tblTempVendorCDR_20' ) start [2024-12-30 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133765', 'tblTempVendorCDR_20' ) end [2024-12-30 04:29:17] Production.INFO: ProcessCDR(1,14133765,1,1,2) [2024-12-30 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133765', 'tblTempUsageDetail_20' ) start [2024-12-30 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133765', 'tblTempUsageDetail_20' ) end [2024-12-30 04:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:29:20] Production.INFO: ==13644== Releasing lock... [2024-12-30 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:29:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:30:05 [end_date_ymd] => 2024-12-30 04:30:05 [RateCDR] => 1 ) [2024-12-30 04:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 01:30:05' and `end` < '2024-12-30 04:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 04:30:18] Production.INFO: count ==78 [2024-12-30 04:30:18] Production.ERROR: pbx CDR StartTime 2024-12-30 01:30:05 - End Time 2024-12-30 04:30:05 [2024-12-30 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133772', 'tblTempUsageDetail_20' ) start [2024-12-30 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133772', 'tblTempUsageDetail_20' ) end [2024-12-30 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133772', 'tblTempVendorCDR_20' ) start [2024-12-30 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133772', 'tblTempVendorCDR_20' ) end [2024-12-30 04:30:18] Production.INFO: ProcessCDR(1,14133772,1,1,2) [2024-12-30 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133772', 'tblTempUsageDetail_20' ) start [2024-12-30 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133772', 'tblTempUsageDetail_20' ) end [2024-12-30 04:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:30:21] Production.INFO: ==13720== Releasing lock... [2024-12-30 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:30:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:31:05 [end_date_ymd] => 2024-12-30 04:31:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:31:05' and `end` < '2024-12-30 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-30 04:31:19] Production.INFO: count ==79 [2024-12-30 04:31:19] Production.ERROR: pbx CDR StartTime 2024-12-30 01:31:05 - End Time 2024-12-30 04:31:05 [2024-12-30 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133777', 'tblTempUsageDetail_20' ) start [2024-12-30 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133777', 'tblTempUsageDetail_20' ) end [2024-12-30 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133777', 'tblTempVendorCDR_20' ) start [2024-12-30 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133777', 'tblTempVendorCDR_20' ) end [2024-12-30 04:31:19] Production.INFO: ProcessCDR(1,14133777,1,1,2) [2024-12-30 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133777', 'tblTempUsageDetail_20' ) start [2024-12-30 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133777', 'tblTempUsageDetail_20' ) end [2024-12-30 04:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:31:22] Production.INFO: ==13824== Releasing lock... [2024-12-30 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:31:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:32:06 [end_date_ymd] => 2024-12-30 04:32:06 [RateCDR] => 1 ) [2024-12-30 04: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-30 01:32:06' and `end` < '2024-12-30 04: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-30 04:32:18] Production.INFO: count ==79 [2024-12-30 04:32:18] Production.ERROR: pbx CDR StartTime 2024-12-30 01:32:06 - End Time 2024-12-30 04:32:06 [2024-12-30 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133782', 'tblTempUsageDetail_20' ) start [2024-12-30 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133782', 'tblTempUsageDetail_20' ) end [2024-12-30 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133782', 'tblTempVendorCDR_20' ) start [2024-12-30 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133782', 'tblTempVendorCDR_20' ) end [2024-12-30 04:32:18] Production.INFO: ProcessCDR(1,14133782,1,1,2) [2024-12-30 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133782', 'tblTempUsageDetail_20' ) start [2024-12-30 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133782', 'tblTempUsageDetail_20' ) end [2024-12-30 04:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:32:22] Production.INFO: ==13894== Releasing lock... [2024-12-30 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:32:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:33:04 [end_date_ymd] => 2024-12-30 04:33:04 [RateCDR] => 1 ) [2024-12-30 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-30 01:33:04' and `end` < '2024-12-30 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-30 04:33:17] Production.INFO: count ==79 [2024-12-30 04:33:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:33:04 - End Time 2024-12-30 04:33:04 [2024-12-30 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133787', 'tblTempUsageDetail_20' ) start [2024-12-30 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133787', 'tblTempUsageDetail_20' ) end [2024-12-30 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133787', 'tblTempVendorCDR_20' ) start [2024-12-30 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133787', 'tblTempVendorCDR_20' ) end [2024-12-30 04:33:17] Production.INFO: ProcessCDR(1,14133787,1,1,2) [2024-12-30 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133787', 'tblTempUsageDetail_20' ) start [2024-12-30 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133787', 'tblTempUsageDetail_20' ) end [2024-12-30 04:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:33:20] Production.INFO: ==13963== Releasing lock... [2024-12-30 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:33:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:34:05 [end_date_ymd] => 2024-12-30 04:34:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:34:05' and `end` < '2024-12-30 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-30 04:34:19] Production.INFO: count ==79 [2024-12-30 04:34:19] Production.ERROR: pbx CDR StartTime 2024-12-30 01:34:05 - End Time 2024-12-30 04:34:05 [2024-12-30 04:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133792', 'tblTempUsageDetail_20' ) start [2024-12-30 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133792', 'tblTempUsageDetail_20' ) end [2024-12-30 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133792', 'tblTempVendorCDR_20' ) start [2024-12-30 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133792', 'tblTempVendorCDR_20' ) end [2024-12-30 04:34:19] Production.INFO: ProcessCDR(1,14133792,1,1,2) [2024-12-30 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133792', 'tblTempUsageDetail_20' ) start [2024-12-30 04:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133792', 'tblTempUsageDetail_20' ) end [2024-12-30 04:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:34:23] Production.INFO: ==14036== Releasing lock... [2024-12-30 04:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:34:23] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:35:04 [end_date_ymd] => 2024-12-30 04:35:04 [RateCDR] => 1 ) [2024-12-30 04: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-30 01:35:04' and `end` < '2024-12-30 04: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-30 04:35:17] Production.INFO: count ==79 [2024-12-30 04:35:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:35:04 - End Time 2024-12-30 04:35:04 [2024-12-30 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133797', 'tblTempUsageDetail_20' ) start [2024-12-30 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133797', 'tblTempUsageDetail_20' ) end [2024-12-30 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133797', 'tblTempVendorCDR_20' ) start [2024-12-30 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133797', 'tblTempVendorCDR_20' ) end [2024-12-30 04:35:17] Production.INFO: ProcessCDR(1,14133797,1,1,2) [2024-12-30 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133797', 'tblTempUsageDetail_20' ) start [2024-12-30 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133797', 'tblTempUsageDetail_20' ) end [2024-12-30 04:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:35:20] Production.INFO: ==14105== Releasing lock... [2024-12-30 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:35:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:36:06 [end_date_ymd] => 2024-12-30 04:36:06 [RateCDR] => 1 ) [2024-12-30 04:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 01:36:06' and `end` < '2024-12-30 04:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 04:36:18] Production.INFO: count ==79 [2024-12-30 04:36:18] Production.ERROR: pbx CDR StartTime 2024-12-30 01:36:06 - End Time 2024-12-30 04:36:06 [2024-12-30 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133802', 'tblTempUsageDetail_20' ) start [2024-12-30 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133802', 'tblTempUsageDetail_20' ) end [2024-12-30 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133802', 'tblTempVendorCDR_20' ) start [2024-12-30 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133802', 'tblTempVendorCDR_20' ) end [2024-12-30 04:36:18] Production.INFO: ProcessCDR(1,14133802,1,1,2) [2024-12-30 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133802', 'tblTempUsageDetail_20' ) start [2024-12-30 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133802', 'tblTempUsageDetail_20' ) end [2024-12-30 04:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:36:21] Production.INFO: ==14177== Releasing lock... [2024-12-30 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:36:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:37:05 [end_date_ymd] => 2024-12-30 04:37:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:37:05' and `end` < '2024-12-30 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-30 04:37:18] Production.INFO: count ==79 [2024-12-30 04:37:18] Production.ERROR: pbx CDR StartTime 2024-12-30 01:37:05 - End Time 2024-12-30 04:37:05 [2024-12-30 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133806', 'tblTempUsageDetail_20' ) start [2024-12-30 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133806', 'tblTempUsageDetail_20' ) end [2024-12-30 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133806', 'tblTempVendorCDR_20' ) start [2024-12-30 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133806', 'tblTempVendorCDR_20' ) end [2024-12-30 04:37:18] Production.INFO: ProcessCDR(1,14133806,1,1,2) [2024-12-30 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133806', 'tblTempUsageDetail_20' ) start [2024-12-30 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133806', 'tblTempUsageDetail_20' ) end [2024-12-30 04:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:37:21] Production.INFO: ==14247== Releasing lock... [2024-12-30 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:37:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:38:04 [end_date_ymd] => 2024-12-30 04:38:04 [RateCDR] => 1 ) [2024-12-30 04: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-30 01:38:04' and `end` < '2024-12-30 04: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-30 04:38:17] Production.INFO: count ==79 [2024-12-30 04:38:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:38:04 - End Time 2024-12-30 04:38:04 [2024-12-30 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133812', 'tblTempUsageDetail_20' ) start [2024-12-30 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133812', 'tblTempUsageDetail_20' ) end [2024-12-30 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133812', 'tblTempVendorCDR_20' ) start [2024-12-30 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133812', 'tblTempVendorCDR_20' ) end [2024-12-30 04:38:17] Production.INFO: ProcessCDR(1,14133812,1,1,2) [2024-12-30 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133812', 'tblTempUsageDetail_20' ) start [2024-12-30 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133812', 'tblTempUsageDetail_20' ) end [2024-12-30 04:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:38:20] Production.INFO: ==14317== Releasing lock... [2024-12-30 04:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:38:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:39:05 [end_date_ymd] => 2024-12-30 04:39:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:39:05' and `end` < '2024-12-30 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-30 04:39:17] Production.INFO: count ==79 [2024-12-30 04:39:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:39:05 - End Time 2024-12-30 04:39:05 [2024-12-30 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133817', 'tblTempUsageDetail_20' ) start [2024-12-30 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133817', 'tblTempUsageDetail_20' ) end [2024-12-30 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133817', 'tblTempVendorCDR_20' ) start [2024-12-30 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133817', 'tblTempVendorCDR_20' ) end [2024-12-30 04:39:17] Production.INFO: ProcessCDR(1,14133817,1,1,2) [2024-12-30 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133817', 'tblTempUsageDetail_20' ) start [2024-12-30 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133817', 'tblTempUsageDetail_20' ) end [2024-12-30 04:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:39:20] Production.INFO: ==14393== Releasing lock... [2024-12-30 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:39:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:40:06 [end_date_ymd] => 2024-12-30 04:40:06 [RateCDR] => 1 ) [2024-12-30 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 01:40:06' and `end` < '2024-12-30 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 04:40:18] Production.INFO: count ==75 [2024-12-30 04:40:18] Production.ERROR: pbx CDR StartTime 2024-12-30 01:40:06 - End Time 2024-12-30 04:40:06 [2024-12-30 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133823', 'tblTempUsageDetail_20' ) start [2024-12-30 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133823', 'tblTempUsageDetail_20' ) end [2024-12-30 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133823', 'tblTempVendorCDR_20' ) start [2024-12-30 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133823', 'tblTempVendorCDR_20' ) end [2024-12-30 04:40:18] Production.INFO: ProcessCDR(1,14133823,1,1,2) [2024-12-30 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133823', 'tblTempUsageDetail_20' ) start [2024-12-30 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133823', 'tblTempUsageDetail_20' ) end [2024-12-30 04:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:40:21] Production.INFO: ==14468== Releasing lock... [2024-12-30 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:40:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:41:05 [end_date_ymd] => 2024-12-30 04:41:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:41:05' and `end` < '2024-12-30 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-30 04:41:17] Production.INFO: count ==75 [2024-12-30 04:41:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:41:05 - End Time 2024-12-30 04:41:05 [2024-12-30 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133828', 'tblTempUsageDetail_20' ) start [2024-12-30 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133828', 'tblTempUsageDetail_20' ) end [2024-12-30 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133828', 'tblTempVendorCDR_20' ) start [2024-12-30 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133828', 'tblTempVendorCDR_20' ) end [2024-12-30 04:41:18] Production.INFO: ProcessCDR(1,14133828,1,1,2) [2024-12-30 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133828', 'tblTempUsageDetail_20' ) start [2024-12-30 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133828', 'tblTempUsageDetail_20' ) end [2024-12-30 04:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:41:21] Production.INFO: ==14580== Releasing lock... [2024-12-30 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:41:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:42:04 [end_date_ymd] => 2024-12-30 04:42:04 [RateCDR] => 1 ) [2024-12-30 04: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-30 01:42:04' and `end` < '2024-12-30 04: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-30 04:42:17] Production.INFO: count ==75 [2024-12-30 04:42:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:42:04 - End Time 2024-12-30 04:42:04 [2024-12-30 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133833', 'tblTempUsageDetail_20' ) start [2024-12-30 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133833', 'tblTempUsageDetail_20' ) end [2024-12-30 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133833', 'tblTempVendorCDR_20' ) start [2024-12-30 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133833', 'tblTempVendorCDR_20' ) end [2024-12-30 04:42:17] Production.INFO: ProcessCDR(1,14133833,1,1,2) [2024-12-30 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133833', 'tblTempUsageDetail_20' ) start [2024-12-30 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133833', 'tblTempUsageDetail_20' ) end [2024-12-30 04:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:42:20] Production.INFO: ==14651== Releasing lock... [2024-12-30 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:42:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:43:05 [end_date_ymd] => 2024-12-30 04:43:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:43:05' and `end` < '2024-12-30 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-30 04:43:19] Production.INFO: count ==75 [2024-12-30 04:43:19] Production.ERROR: pbx CDR StartTime 2024-12-30 01:43:05 - End Time 2024-12-30 04:43:05 [2024-12-30 04:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133838', 'tblTempUsageDetail_20' ) start [2024-12-30 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133838', 'tblTempUsageDetail_20' ) end [2024-12-30 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133838', 'tblTempVendorCDR_20' ) start [2024-12-30 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133838', 'tblTempVendorCDR_20' ) end [2024-12-30 04:43:19] Production.INFO: ProcessCDR(1,14133838,1,1,2) [2024-12-30 04:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133838', 'tblTempUsageDetail_20' ) start [2024-12-30 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133838', 'tblTempUsageDetail_20' ) end [2024-12-30 04:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:43:22] Production.INFO: ==14726== Releasing lock... [2024-12-30 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:43:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:44:05 [end_date_ymd] => 2024-12-30 04:44:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:44:05' and `end` < '2024-12-30 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-30 04:44:18] Production.INFO: count ==75 [2024-12-30 04:44:18] Production.ERROR: pbx CDR StartTime 2024-12-30 01:44:05 - End Time 2024-12-30 04:44:05 [2024-12-30 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133843', 'tblTempUsageDetail_20' ) start [2024-12-30 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133843', 'tblTempUsageDetail_20' ) end [2024-12-30 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133843', 'tblTempVendorCDR_20' ) start [2024-12-30 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133843', 'tblTempVendorCDR_20' ) end [2024-12-30 04:44:18] Production.INFO: ProcessCDR(1,14133843,1,1,2) [2024-12-30 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133843', 'tblTempUsageDetail_20' ) start [2024-12-30 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133843', 'tblTempUsageDetail_20' ) end [2024-12-30 04:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:44:21] Production.INFO: ==14798== Releasing lock... [2024-12-30 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:44:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:45:05 [end_date_ymd] => 2024-12-30 04:45:05 [RateCDR] => 1 ) [2024-12-30 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 01:45:05' and `end` < '2024-12-30 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 04:45:17] Production.INFO: count ==75 [2024-12-30 04:45:17] Production.ERROR: pbx CDR StartTime 2024-12-30 01:45:05 - End Time 2024-12-30 04:45:05 [2024-12-30 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133848', 'tblTempUsageDetail_20' ) start [2024-12-30 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133848', 'tblTempUsageDetail_20' ) end [2024-12-30 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133848', 'tblTempVendorCDR_20' ) start [2024-12-30 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133848', 'tblTempVendorCDR_20' ) end [2024-12-30 04:45:17] Production.INFO: ProcessCDR(1,14133848,1,1,2) [2024-12-30 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133848', 'tblTempUsageDetail_20' ) start [2024-12-30 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133848', 'tblTempUsageDetail_20' ) end [2024-12-30 04:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:45:20] Production.INFO: ==14870== Releasing lock... [2024-12-30 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:45:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:46:05 [end_date_ymd] => 2024-12-30 04:46:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:46:05' and `end` < '2024-12-30 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-30 04:46:23] Production.INFO: count ==73 [2024-12-30 04:46:23] Production.ERROR: pbx CDR StartTime 2024-12-30 01:46:05 - End Time 2024-12-30 04:46:05 [2024-12-30 04:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133853', 'tblTempUsageDetail_20' ) start [2024-12-30 04:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133853', 'tblTempUsageDetail_20' ) end [2024-12-30 04:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133853', 'tblTempVendorCDR_20' ) start [2024-12-30 04:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133853', 'tblTempVendorCDR_20' ) end [2024-12-30 04:46:23] Production.INFO: ProcessCDR(1,14133853,1,1,2) [2024-12-30 04:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133853', 'tblTempUsageDetail_20' ) start [2024-12-30 04:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133853', 'tblTempUsageDetail_20' ) end [2024-12-30 04:46:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:46:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:46:26] Production.INFO: ==14939== Releasing lock... [2024-12-30 04:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:46:26] Production.INFO: 28 MB #Memory Used# [2024-12-30 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:47:05 [end_date_ymd] => 2024-12-30 04:47:05 [RateCDR] => 1 ) [2024-12-30 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 01:47:05' and `end` < '2024-12-30 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 04:47:20] Production.INFO: count ==72 [2024-12-30 04:47:20] Production.ERROR: pbx CDR StartTime 2024-12-30 01:47:05 - End Time 2024-12-30 04:47:05 [2024-12-30 04:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133858', 'tblTempUsageDetail_20' ) start [2024-12-30 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133858', 'tblTempUsageDetail_20' ) end [2024-12-30 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133858', 'tblTempVendorCDR_20' ) start [2024-12-30 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133858', 'tblTempVendorCDR_20' ) end [2024-12-30 04:47:20] Production.INFO: ProcessCDR(1,14133858,1,1,2) [2024-12-30 04:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133858', 'tblTempUsageDetail_20' ) start [2024-12-30 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133858', 'tblTempUsageDetail_20' ) end [2024-12-30 04:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:47:23] Production.INFO: ==15011== Releasing lock... [2024-12-30 04:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:47:23] Production.INFO: 28 MB #Memory Used# [2024-12-30 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:48:05 [end_date_ymd] => 2024-12-30 04:48:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:48:05' and `end` < '2024-12-30 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-30 04:48:19] Production.INFO: count ==72 [2024-12-30 04:48:19] Production.ERROR: pbx CDR StartTime 2024-12-30 01:48:05 - End Time 2024-12-30 04:48:05 [2024-12-30 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133863', 'tblTempUsageDetail_20' ) start [2024-12-30 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133863', 'tblTempUsageDetail_20' ) end [2024-12-30 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133863', 'tblTempVendorCDR_20' ) start [2024-12-30 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133863', 'tblTempVendorCDR_20' ) end [2024-12-30 04:48:19] Production.INFO: ProcessCDR(1,14133863,1,1,2) [2024-12-30 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133863', 'tblTempUsageDetail_20' ) start [2024-12-30 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133863', 'tblTempUsageDetail_20' ) end [2024-12-30 04:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:48:23] Production.INFO: ==15081== Releasing lock... [2024-12-30 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:48:23] Production.INFO: 28 MB #Memory Used# [2024-12-30 04:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:49:04 [end_date_ymd] => 2024-12-30 04:49:04 [RateCDR] => 1 ) [2024-12-30 04: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-30 01:49:04' and `end` < '2024-12-30 04: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-30 04:49:19] Production.INFO: count ==72 [2024-12-30 04:49:19] Production.ERROR: pbx CDR StartTime 2024-12-30 01:49:04 - End Time 2024-12-30 04:49:04 [2024-12-30 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133868', 'tblTempUsageDetail_20' ) start [2024-12-30 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133868', 'tblTempUsageDetail_20' ) end [2024-12-30 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133868', 'tblTempVendorCDR_20' ) start [2024-12-30 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133868', 'tblTempVendorCDR_20' ) end [2024-12-30 04:49:19] Production.INFO: ProcessCDR(1,14133868,1,1,2) [2024-12-30 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133868', 'tblTempUsageDetail_20' ) start [2024-12-30 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133868', 'tblTempUsageDetail_20' ) end [2024-12-30 04:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:49:22] Production.INFO: ==15152== Releasing lock... [2024-12-30 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:49:22] Production.INFO: 28 MB #Memory Used# [2024-12-30 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:50:06 [end_date_ymd] => 2024-12-30 04:50:06 [RateCDR] => 1 ) [2024-12-30 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 01:50:06' and `end` < '2024-12-30 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 04:50:21] Production.INFO: count ==66 [2024-12-30 04:50:21] Production.ERROR: pbx CDR StartTime 2024-12-30 01:50:06 - End Time 2024-12-30 04:50:06 [2024-12-30 04:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133873', 'tblTempUsageDetail_20' ) start [2024-12-30 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133873', 'tblTempUsageDetail_20' ) end [2024-12-30 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133873', 'tblTempVendorCDR_20' ) start [2024-12-30 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133873', 'tblTempVendorCDR_20' ) end [2024-12-30 04:50:21] Production.INFO: ProcessCDR(1,14133873,1,1,2) [2024-12-30 04:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133873', 'tblTempUsageDetail_20' ) start [2024-12-30 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133873', 'tblTempUsageDetail_20' ) end [2024-12-30 04:50:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:50:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:50:24] Production.INFO: ==15226== Releasing lock... [2024-12-30 04:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:50:24] Production.INFO: 28 MB #Memory Used# [2024-12-30 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:51:05 [end_date_ymd] => 2024-12-30 04:51:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:51:05' and `end` < '2024-12-30 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-30 04:51:20] Production.INFO: count ==58 [2024-12-30 04:51:20] Production.ERROR: pbx CDR StartTime 2024-12-30 01:51:05 - End Time 2024-12-30 04:51:05 [2024-12-30 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133879', 'tblTempUsageDetail_20' ) start [2024-12-30 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133879', 'tblTempUsageDetail_20' ) end [2024-12-30 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133879', 'tblTempVendorCDR_20' ) start [2024-12-30 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133879', 'tblTempVendorCDR_20' ) end [2024-12-30 04:51:20] Production.INFO: ProcessCDR(1,14133879,1,1,2) [2024-12-30 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133879', 'tblTempUsageDetail_20' ) start [2024-12-30 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133879', 'tblTempUsageDetail_20' ) end [2024-12-30 04:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:51:23] Production.INFO: ==15297== Releasing lock... [2024-12-30 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:51:23] Production.INFO: 28 MB #Memory Used# [2024-12-30 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:52:05 [end_date_ymd] => 2024-12-30 04:52:05 [RateCDR] => 1 ) [2024-12-30 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 01:52:05' and `end` < '2024-12-30 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 04:52:21] Production.INFO: count ==58 [2024-12-30 04:52:21] Production.ERROR: pbx CDR StartTime 2024-12-30 01:52:05 - End Time 2024-12-30 04:52:05 [2024-12-30 04:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133884', 'tblTempUsageDetail_20' ) start [2024-12-30 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133884', 'tblTempUsageDetail_20' ) end [2024-12-30 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133884', 'tblTempVendorCDR_20' ) start [2024-12-30 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133884', 'tblTempVendorCDR_20' ) end [2024-12-30 04:52:21] Production.INFO: ProcessCDR(1,14133884,1,1,2) [2024-12-30 04:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133884', 'tblTempUsageDetail_20' ) start [2024-12-30 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133884', 'tblTempUsageDetail_20' ) end [2024-12-30 04:52:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:52:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:52:24] Production.INFO: ==15368== Releasing lock... [2024-12-30 04:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:52:24] Production.INFO: 28 MB #Memory Used# [2024-12-30 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:53:05 [end_date_ymd] => 2024-12-30 04:53:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:53:05' and `end` < '2024-12-30 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-30 04:53:21] Production.INFO: count ==58 [2024-12-30 04:53:21] Production.ERROR: pbx CDR StartTime 2024-12-30 01:53:05 - End Time 2024-12-30 04:53:05 [2024-12-30 04:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133889', 'tblTempUsageDetail_20' ) start [2024-12-30 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133889', 'tblTempUsageDetail_20' ) end [2024-12-30 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133889', 'tblTempVendorCDR_20' ) start [2024-12-30 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133889', 'tblTempVendorCDR_20' ) end [2024-12-30 04:53:21] Production.INFO: ProcessCDR(1,14133889,1,1,2) [2024-12-30 04:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133889', 'tblTempUsageDetail_20' ) start [2024-12-30 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133889', 'tblTempUsageDetail_20' ) end [2024-12-30 04:53:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:53:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:53:24] Production.INFO: ==15439== Releasing lock... [2024-12-30 04:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:53:24] Production.INFO: 28 MB #Memory Used# [2024-12-30 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:54:05 [end_date_ymd] => 2024-12-30 04:54:05 [RateCDR] => 1 ) [2024-12-30 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 01:54:05' and `end` < '2024-12-30 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 04:54:21] Production.INFO: count ==58 [2024-12-30 04:54:21] Production.ERROR: pbx CDR StartTime 2024-12-30 01:54:05 - End Time 2024-12-30 04:54:05 [2024-12-30 04:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133894', 'tblTempUsageDetail_20' ) start [2024-12-30 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133894', 'tblTempUsageDetail_20' ) end [2024-12-30 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133894', 'tblTempVendorCDR_20' ) start [2024-12-30 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133894', 'tblTempVendorCDR_20' ) end [2024-12-30 04:54:21] Production.INFO: ProcessCDR(1,14133894,1,1,2) [2024-12-30 04:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133894', 'tblTempUsageDetail_20' ) start [2024-12-30 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133894', 'tblTempUsageDetail_20' ) end [2024-12-30 04:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:54:24] Production.INFO: ==15513== Releasing lock... [2024-12-30 04:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:54:24] Production.INFO: 28 MB #Memory Used# [2024-12-30 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:55:05 [end_date_ymd] => 2024-12-30 04:55:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:55:05' and `end` < '2024-12-30 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-30 04:55:20] Production.INFO: count ==58 [2024-12-30 04:55:20] Production.ERROR: pbx CDR StartTime 2024-12-30 01:55:05 - End Time 2024-12-30 04:55:05 [2024-12-30 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133899', 'tblTempUsageDetail_20' ) start [2024-12-30 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133899', 'tblTempUsageDetail_20' ) end [2024-12-30 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133899', 'tblTempVendorCDR_20' ) start [2024-12-30 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133899', 'tblTempVendorCDR_20' ) end [2024-12-30 04:55:20] Production.INFO: ProcessCDR(1,14133899,1,1,2) [2024-12-30 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133899', 'tblTempUsageDetail_20' ) start [2024-12-30 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133899', 'tblTempUsageDetail_20' ) end [2024-12-30 04:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:55:23] Production.INFO: ==15588== Releasing lock... [2024-12-30 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:55:23] Production.INFO: 28 MB #Memory Used# [2024-12-30 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:56:05 [end_date_ymd] => 2024-12-30 04:56:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:56:05' and `end` < '2024-12-30 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-30 04:56:20] Production.INFO: count ==58 [2024-12-30 04:56:20] Production.ERROR: pbx CDR StartTime 2024-12-30 01:56:05 - End Time 2024-12-30 04:56:05 [2024-12-30 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133904', 'tblTempUsageDetail_20' ) start [2024-12-30 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133904', 'tblTempUsageDetail_20' ) end [2024-12-30 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133904', 'tblTempVendorCDR_20' ) start [2024-12-30 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133904', 'tblTempVendorCDR_20' ) end [2024-12-30 04:56:20] Production.INFO: ProcessCDR(1,14133904,1,1,2) [2024-12-30 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133904', 'tblTempUsageDetail_20' ) start [2024-12-30 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133904', 'tblTempUsageDetail_20' ) end [2024-12-30 04:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:56:23] Production.INFO: ==15663== Releasing lock... [2024-12-30 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:56:23] Production.INFO: 28 MB #Memory Used# [2024-12-30 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:57:05 [end_date_ymd] => 2024-12-30 04:57:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:57:05' and `end` < '2024-12-30 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-30 04:57:19] Production.INFO: count ==58 [2024-12-30 04:57:19] Production.ERROR: pbx CDR StartTime 2024-12-30 01:57:05 - End Time 2024-12-30 04:57:05 [2024-12-30 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133909', 'tblTempUsageDetail_20' ) start [2024-12-30 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133909', 'tblTempUsageDetail_20' ) end [2024-12-30 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133909', 'tblTempVendorCDR_20' ) start [2024-12-30 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133909', 'tblTempVendorCDR_20' ) end [2024-12-30 04:57:19] Production.INFO: ProcessCDR(1,14133909,1,1,2) [2024-12-30 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133909', 'tblTempUsageDetail_20' ) start [2024-12-30 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133909', 'tblTempUsageDetail_20' ) end [2024-12-30 04:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:57:22] Production.INFO: ==15772== Releasing lock... [2024-12-30 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:57:22] Production.INFO: 28 MB #Memory Used# [2024-12-30 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:58:05 [end_date_ymd] => 2024-12-30 04:58:05 [RateCDR] => 1 ) [2024-12-30 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-30 01:58:05' and `end` < '2024-12-30 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-30 04:58:20] Production.INFO: count ==55 [2024-12-30 04:58:20] Production.ERROR: pbx CDR StartTime 2024-12-30 01:58:05 - End Time 2024-12-30 04:58:05 [2024-12-30 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133914', 'tblTempUsageDetail_20' ) start [2024-12-30 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133914', 'tblTempUsageDetail_20' ) end [2024-12-30 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133914', 'tblTempVendorCDR_20' ) start [2024-12-30 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133914', 'tblTempVendorCDR_20' ) end [2024-12-30 04:58:20] Production.INFO: ProcessCDR(1,14133914,1,1,2) [2024-12-30 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133914', 'tblTempUsageDetail_20' ) start [2024-12-30 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133914', 'tblTempUsageDetail_20' ) end [2024-12-30 04:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:58:23] Production.INFO: ==15844== Releasing lock... [2024-12-30 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:58:23] Production.INFO: 28 MB #Memory Used# [2024-12-30 04:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 01:59:04 [end_date_ymd] => 2024-12-30 04:59:04 [RateCDR] => 1 ) [2024-12-30 04: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-30 01:59:04' and `end` < '2024-12-30 04: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-30 04:59:18] Production.INFO: count ==55 [2024-12-30 04:59:18] Production.ERROR: pbx CDR StartTime 2024-12-30 01:59:04 - End Time 2024-12-30 04:59:04 [2024-12-30 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133919', 'tblTempUsageDetail_20' ) start [2024-12-30 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133919', 'tblTempUsageDetail_20' ) end [2024-12-30 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133919', 'tblTempVendorCDR_20' ) start [2024-12-30 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133919', 'tblTempVendorCDR_20' ) end [2024-12-30 04:59:18] Production.INFO: ProcessCDR(1,14133919,1,1,2) [2024-12-30 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133919', 'tblTempUsageDetail_20' ) start [2024-12-30 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133919', 'tblTempUsageDetail_20' ) end [2024-12-30 04:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 04:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 04:59:21] Production.INFO: ==15914== Releasing lock... [2024-12-30 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 04:59:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:00:06 [end_date_ymd] => 2024-12-30 05:00:06 [RateCDR] => 1 ) [2024-12-30 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-30 02:00:06' and `end` < '2024-12-30 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-30 05:00:20] Production.INFO: count ==48 [2024-12-30 05:00:20] Production.ERROR: pbx CDR StartTime 2024-12-30 02:00:06 - End Time 2024-12-30 05:00:06 [2024-12-30 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133925', 'tblTempUsageDetail_20' ) start [2024-12-30 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133925', 'tblTempUsageDetail_20' ) end [2024-12-30 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133925', 'tblTempVendorCDR_20' ) start [2024-12-30 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133925', 'tblTempVendorCDR_20' ) end [2024-12-30 05:00:20] Production.INFO: ProcessCDR(1,14133925,1,1,2) [2024-12-30 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133925', 'tblTempUsageDetail_20' ) start [2024-12-30 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133925', 'tblTempUsageDetail_20' ) end [2024-12-30 05:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:00:23] Production.INFO: ==15987== Releasing lock... [2024-12-30 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:00:23] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:01:04 [end_date_ymd] => 2024-12-30 05:01:04 [RateCDR] => 1 ) [2024-12-30 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-30 02:01:04' and `end` < '2024-12-30 05: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-30 05:01:19] Production.INFO: count ==46 [2024-12-30 05:01:19] Production.ERROR: pbx CDR StartTime 2024-12-30 02:01:04 - End Time 2024-12-30 05:01:04 [2024-12-30 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133930', 'tblTempUsageDetail_20' ) start [2024-12-30 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133930', 'tblTempUsageDetail_20' ) end [2024-12-30 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133930', 'tblTempVendorCDR_20' ) start [2024-12-30 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133930', 'tblTempVendorCDR_20' ) end [2024-12-30 05:01:19] Production.INFO: ProcessCDR(1,14133930,1,1,2) [2024-12-30 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133930', 'tblTempUsageDetail_20' ) start [2024-12-30 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133930', 'tblTempUsageDetail_20' ) end [2024-12-30 05:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:01:22] Production.INFO: ==16073== Releasing lock... [2024-12-30 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:01:22] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:02:04 [end_date_ymd] => 2024-12-30 05:02:04 [RateCDR] => 1 ) [2024-12-30 05: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-30 02:02:04' and `end` < '2024-12-30 05: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-30 05:02:18] Production.INFO: count ==46 [2024-12-30 05:02:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:02:04 - End Time 2024-12-30 05:02:04 [2024-12-30 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133935', 'tblTempUsageDetail_20' ) start [2024-12-30 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133935', 'tblTempUsageDetail_20' ) end [2024-12-30 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133935', 'tblTempVendorCDR_20' ) start [2024-12-30 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133935', 'tblTempVendorCDR_20' ) end [2024-12-30 05:02:18] Production.INFO: ProcessCDR(1,14133935,1,1,2) [2024-12-30 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133935', 'tblTempUsageDetail_20' ) start [2024-12-30 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133935', 'tblTempUsageDetail_20' ) end [2024-12-30 05:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:02:21] Production.INFO: ==16144== Releasing lock... [2024-12-30 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:02:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:03:05 [end_date_ymd] => 2024-12-30 05:03:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:03:05' and `end` < '2024-12-30 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-30 05:03:18] Production.INFO: count ==46 [2024-12-30 05:03:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:03:05 - End Time 2024-12-30 05:03:05 [2024-12-30 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133940', 'tblTempUsageDetail_20' ) start [2024-12-30 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133940', 'tblTempUsageDetail_20' ) end [2024-12-30 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133940', 'tblTempVendorCDR_20' ) start [2024-12-30 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133940', 'tblTempVendorCDR_20' ) end [2024-12-30 05:03:18] Production.INFO: ProcessCDR(1,14133940,1,1,2) [2024-12-30 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133940', 'tblTempUsageDetail_20' ) start [2024-12-30 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133940', 'tblTempUsageDetail_20' ) end [2024-12-30 05:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:03:21] Production.INFO: ==16215== Releasing lock... [2024-12-30 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:03:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:04:05 [end_date_ymd] => 2024-12-30 05:04:05 [RateCDR] => 1 ) [2024-12-30 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 02:04:05' and `end` < '2024-12-30 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 05:04:17] Production.INFO: count ==43 [2024-12-30 05:04:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:04:05 - End Time 2024-12-30 05:04:05 [2024-12-30 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133945', 'tblTempUsageDetail_20' ) start [2024-12-30 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133945', 'tblTempUsageDetail_20' ) end [2024-12-30 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133945', 'tblTempVendorCDR_20' ) start [2024-12-30 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133945', 'tblTempVendorCDR_20' ) end [2024-12-30 05:04:17] Production.INFO: ProcessCDR(1,14133945,1,1,2) [2024-12-30 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133945', 'tblTempUsageDetail_20' ) start [2024-12-30 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133945', 'tblTempUsageDetail_20' ) end [2024-12-30 05:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:04:20] Production.INFO: ==16284== Releasing lock... [2024-12-30 05:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:04:20] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:05:05 [end_date_ymd] => 2024-12-30 05:05:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:05:05' and `end` < '2024-12-30 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-30 05:05:18] Production.INFO: count ==43 [2024-12-30 05:05:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:05:05 - End Time 2024-12-30 05:05:05 [2024-12-30 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133950', 'tblTempUsageDetail_20' ) start [2024-12-30 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133950', 'tblTempUsageDetail_20' ) end [2024-12-30 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133950', 'tblTempVendorCDR_20' ) start [2024-12-30 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133950', 'tblTempVendorCDR_20' ) end [2024-12-30 05:05:18] Production.INFO: ProcessCDR(1,14133950,1,1,2) [2024-12-30 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133950', 'tblTempUsageDetail_20' ) start [2024-12-30 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133950', 'tblTempUsageDetail_20' ) end [2024-12-30 05:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:05:21] Production.INFO: ==16355== Releasing lock... [2024-12-30 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:05:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:06:05 [end_date_ymd] => 2024-12-30 05:06:05 [RateCDR] => 1 ) [2024-12-30 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 02:06:05' and `end` < '2024-12-30 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 05:06:46] Production.INFO: count ==43 [2024-12-30 05:06:46] Production.ERROR: pbx CDR StartTime 2024-12-30 02:06:05 - End Time 2024-12-30 05:06:05 [2024-12-30 05:06:46] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:06:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133955', 'tblTempUsageDetail_20' ) start [2024-12-30 05:06:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133955', 'tblTempUsageDetail_20' ) end [2024-12-30 05:06:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133955', 'tblTempVendorCDR_20' ) start [2024-12-30 05:06:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133955', 'tblTempVendorCDR_20' ) end [2024-12-30 05:06:46] Production.INFO: ProcessCDR(1,14133955,1,1,2) [2024-12-30 05:06:46] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:06:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:06:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:06:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:06:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133955', 'tblTempUsageDetail_20' ) start [2024-12-30 05:06:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133955', 'tblTempUsageDetail_20' ) end [2024-12-30 05:06:49] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:06:49] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:06:49] Production.INFO: ==16428== Releasing lock... [2024-12-30 05:06:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:06:49] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:07:05 [end_date_ymd] => 2024-12-30 05:07:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:07:05' and `end` < '2024-12-30 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-30 05:07:18] Production.INFO: count ==43 [2024-12-30 05:07:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:07:05 - End Time 2024-12-30 05:07:05 [2024-12-30 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133960', 'tblTempUsageDetail_20' ) start [2024-12-30 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133960', 'tblTempUsageDetail_20' ) end [2024-12-30 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133960', 'tblTempVendorCDR_20' ) start [2024-12-30 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133960', 'tblTempVendorCDR_20' ) end [2024-12-30 05:07:18] Production.INFO: ProcessCDR(1,14133960,1,1,2) [2024-12-30 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133960', 'tblTempUsageDetail_20' ) start [2024-12-30 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133960', 'tblTempUsageDetail_20' ) end [2024-12-30 05:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:07:21] Production.INFO: ==16499== Releasing lock... [2024-12-30 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:07:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:08:06 [end_date_ymd] => 2024-12-30 05:08:06 [RateCDR] => 1 ) [2024-12-30 05:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 02:08:06' and `end` < '2024-12-30 05:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 05:08:19] Production.INFO: count ==43 [2024-12-30 05:08:19] Production.ERROR: pbx CDR StartTime 2024-12-30 02:08:06 - End Time 2024-12-30 05:08:06 [2024-12-30 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133965', 'tblTempUsageDetail_20' ) start [2024-12-30 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133965', 'tblTempUsageDetail_20' ) end [2024-12-30 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133965', 'tblTempVendorCDR_20' ) start [2024-12-30 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133965', 'tblTempVendorCDR_20' ) end [2024-12-30 05:08:19] Production.INFO: ProcessCDR(1,14133965,1,1,2) [2024-12-30 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133965', 'tblTempUsageDetail_20' ) start [2024-12-30 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133965', 'tblTempUsageDetail_20' ) end [2024-12-30 05:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:08:22] Production.INFO: ==16572== Releasing lock... [2024-12-30 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:08:22] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:09:05 [end_date_ymd] => 2024-12-30 05:09:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:09:05' and `end` < '2024-12-30 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-30 05:09:17] Production.INFO: count ==43 [2024-12-30 05:09:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:09:05 - End Time 2024-12-30 05:09:05 [2024-12-30 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133970', 'tblTempUsageDetail_20' ) start [2024-12-30 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133970', 'tblTempUsageDetail_20' ) end [2024-12-30 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133970', 'tblTempVendorCDR_20' ) start [2024-12-30 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133970', 'tblTempVendorCDR_20' ) end [2024-12-30 05:09:17] Production.INFO: ProcessCDR(1,14133970,1,1,2) [2024-12-30 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133970', 'tblTempUsageDetail_20' ) start [2024-12-30 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133970', 'tblTempUsageDetail_20' ) end [2024-12-30 05:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:09:20] Production.INFO: ==16641== Releasing lock... [2024-12-30 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:09:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:10:06 [end_date_ymd] => 2024-12-30 05:10:06 [RateCDR] => 1 ) [2024-12-30 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-30 02:10:06' and `end` < '2024-12-30 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-30 05:10:18] Production.INFO: count ==41 [2024-12-30 05:10:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:10:06 - End Time 2024-12-30 05:10:06 [2024-12-30 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133975', 'tblTempUsageDetail_20' ) start [2024-12-30 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133975', 'tblTempUsageDetail_20' ) end [2024-12-30 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133975', 'tblTempVendorCDR_20' ) start [2024-12-30 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133975', 'tblTempVendorCDR_20' ) end [2024-12-30 05:10:18] Production.INFO: ProcessCDR(1,14133975,1,1,2) [2024-12-30 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133975', 'tblTempUsageDetail_20' ) start [2024-12-30 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133975', 'tblTempUsageDetail_20' ) end [2024-12-30 05:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:10:21] Production.INFO: ==16724== Releasing lock... [2024-12-30 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:10:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:11:05 [end_date_ymd] => 2024-12-30 05:11:05 [RateCDR] => 1 ) [2024-12-30 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 02:11:05' and `end` < '2024-12-30 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 05:11:18] Production.INFO: count ==41 [2024-12-30 05:11:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:11:05 - End Time 2024-12-30 05:11:05 [2024-12-30 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133981', 'tblTempUsageDetail_20' ) start [2024-12-30 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133981', 'tblTempUsageDetail_20' ) end [2024-12-30 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133981', 'tblTempVendorCDR_20' ) start [2024-12-30 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133981', 'tblTempVendorCDR_20' ) end [2024-12-30 05:11:18] Production.INFO: ProcessCDR(1,14133981,1,1,2) [2024-12-30 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133981', 'tblTempUsageDetail_20' ) start [2024-12-30 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133981', 'tblTempUsageDetail_20' ) end [2024-12-30 05:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:11:21] Production.INFO: ==16802== Releasing lock... [2024-12-30 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:11:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:12:05 [end_date_ymd] => 2024-12-30 05:12:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:12:05' and `end` < '2024-12-30 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-30 05:12:17] Production.INFO: count ==41 [2024-12-30 05:12:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:12:05 - End Time 2024-12-30 05:12:05 [2024-12-30 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133986', 'tblTempUsageDetail_20' ) start [2024-12-30 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133986', 'tblTempUsageDetail_20' ) end [2024-12-30 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133986', 'tblTempVendorCDR_20' ) start [2024-12-30 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133986', 'tblTempVendorCDR_20' ) end [2024-12-30 05:12:17] Production.INFO: ProcessCDR(1,14133986,1,1,2) [2024-12-30 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133986', 'tblTempUsageDetail_20' ) start [2024-12-30 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133986', 'tblTempUsageDetail_20' ) end [2024-12-30 05:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:12:21] Production.INFO: ==16871== Releasing lock... [2024-12-30 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:12:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:13:05 [end_date_ymd] => 2024-12-30 05:13:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:13:05' and `end` < '2024-12-30 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-30 05:13:17] Production.INFO: count ==41 [2024-12-30 05:13:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:13:05 - End Time 2024-12-30 05:13:05 [2024-12-30 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133991', 'tblTempUsageDetail_20' ) start [2024-12-30 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133991', 'tblTempUsageDetail_20' ) end [2024-12-30 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133991', 'tblTempVendorCDR_20' ) start [2024-12-30 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133991', 'tblTempVendorCDR_20' ) end [2024-12-30 05:13:17] Production.INFO: ProcessCDR(1,14133991,1,1,2) [2024-12-30 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133991', 'tblTempUsageDetail_20' ) start [2024-12-30 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133991', 'tblTempUsageDetail_20' ) end [2024-12-30 05:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:13:20] Production.INFO: ==16982== Releasing lock... [2024-12-30 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:13:20] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:14:05 [end_date_ymd] => 2024-12-30 05:14:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:14:05' and `end` < '2024-12-30 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-30 05:14:19] Production.INFO: count ==41 [2024-12-30 05:14:19] Production.ERROR: pbx CDR StartTime 2024-12-30 02:14:05 - End Time 2024-12-30 05:14:05 [2024-12-30 05:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133996', 'tblTempUsageDetail_20' ) start [2024-12-30 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14133996', 'tblTempUsageDetail_20' ) end [2024-12-30 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133996', 'tblTempVendorCDR_20' ) start [2024-12-30 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14133996', 'tblTempVendorCDR_20' ) end [2024-12-30 05:14:19] Production.INFO: ProcessCDR(1,14133996,1,1,2) [2024-12-30 05:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14133996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14133996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14133996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14133996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133996', 'tblTempUsageDetail_20' ) start [2024-12-30 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14133996', 'tblTempUsageDetail_20' ) end [2024-12-30 05:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:14:22] Production.INFO: ==17053== Releasing lock... [2024-12-30 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:14:22] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:15:05 [end_date_ymd] => 2024-12-30 05:15:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:15:05' and `end` < '2024-12-30 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-30 05:15:17] Production.INFO: count ==41 [2024-12-30 05:15:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:15:05 - End Time 2024-12-30 05:15:05 [2024-12-30 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134001', 'tblTempUsageDetail_20' ) start [2024-12-30 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134001', 'tblTempUsageDetail_20' ) end [2024-12-30 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134001', 'tblTempVendorCDR_20' ) start [2024-12-30 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134001', 'tblTempVendorCDR_20' ) end [2024-12-30 05:15:17] Production.INFO: ProcessCDR(1,14134001,1,1,2) [2024-12-30 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134001', 'tblTempUsageDetail_20' ) start [2024-12-30 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134001', 'tblTempUsageDetail_20' ) end [2024-12-30 05:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:15:20] Production.INFO: ==17123== Releasing lock... [2024-12-30 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:15:20] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:16:05 [end_date_ymd] => 2024-12-30 05:16:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:16:05' and `end` < '2024-12-30 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-30 05:16:18] Production.INFO: count ==41 [2024-12-30 05:16:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:16:05 - End Time 2024-12-30 05:16:05 [2024-12-30 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134006', 'tblTempUsageDetail_20' ) start [2024-12-30 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134006', 'tblTempUsageDetail_20' ) end [2024-12-30 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134006', 'tblTempVendorCDR_20' ) start [2024-12-30 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134006', 'tblTempVendorCDR_20' ) end [2024-12-30 05:16:18] Production.INFO: ProcessCDR(1,14134006,1,1,2) [2024-12-30 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134006', 'tblTempUsageDetail_20' ) start [2024-12-30 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134006', 'tblTempUsageDetail_20' ) end [2024-12-30 05:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:16:21] Production.INFO: ==17196== Releasing lock... [2024-12-30 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:16:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:17:05 [end_date_ymd] => 2024-12-30 05:17:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:17:05' and `end` < '2024-12-30 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-30 05:17:17] Production.INFO: count ==40 [2024-12-30 05:17:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:17:05 - End Time 2024-12-30 05:17:05 [2024-12-30 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134011', 'tblTempUsageDetail_20' ) start [2024-12-30 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134011', 'tblTempUsageDetail_20' ) end [2024-12-30 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134011', 'tblTempVendorCDR_20' ) start [2024-12-30 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134011', 'tblTempVendorCDR_20' ) end [2024-12-30 05:17:17] Production.INFO: ProcessCDR(1,14134011,1,1,2) [2024-12-30 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134011', 'tblTempUsageDetail_20' ) start [2024-12-30 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134011', 'tblTempUsageDetail_20' ) end [2024-12-30 05:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:17:20] Production.INFO: ==17267== Releasing lock... [2024-12-30 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:17:20] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:18:05 [end_date_ymd] => 2024-12-30 05:18:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:18:05' and `end` < '2024-12-30 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-30 05:18:19] Production.INFO: count ==40 [2024-12-30 05:18:19] Production.ERROR: pbx CDR StartTime 2024-12-30 02:18:05 - End Time 2024-12-30 05:18:05 [2024-12-30 05:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134016', 'tblTempUsageDetail_20' ) start [2024-12-30 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134016', 'tblTempUsageDetail_20' ) end [2024-12-30 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134016', 'tblTempVendorCDR_20' ) start [2024-12-30 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134016', 'tblTempVendorCDR_20' ) end [2024-12-30 05:18:19] Production.INFO: ProcessCDR(1,14134016,1,1,2) [2024-12-30 05:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134016', 'tblTempUsageDetail_20' ) start [2024-12-30 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134016', 'tblTempUsageDetail_20' ) end [2024-12-30 05:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:18:22] Production.INFO: ==17340== Releasing lock... [2024-12-30 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:18:22] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:19:05 [end_date_ymd] => 2024-12-30 05:19:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:19:05' and `end` < '2024-12-30 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-30 05:19:17] Production.INFO: count ==40 [2024-12-30 05:19:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:19:05 - End Time 2024-12-30 05:19:05 [2024-12-30 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134021', 'tblTempUsageDetail_20' ) start [2024-12-30 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134021', 'tblTempUsageDetail_20' ) end [2024-12-30 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134021', 'tblTempVendorCDR_20' ) start [2024-12-30 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134021', 'tblTempVendorCDR_20' ) end [2024-12-30 05:19:17] Production.INFO: ProcessCDR(1,14134021,1,1,2) [2024-12-30 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134021', 'tblTempUsageDetail_20' ) start [2024-12-30 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134021', 'tblTempUsageDetail_20' ) end [2024-12-30 05:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:19:21] Production.INFO: ==17412== Releasing lock... [2024-12-30 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:19:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:20:05 [end_date_ymd] => 2024-12-30 05:20:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:20:05' and `end` < '2024-12-30 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-30 05:20:19] Production.INFO: count ==40 [2024-12-30 05:20:19] Production.ERROR: pbx CDR StartTime 2024-12-30 02:20:05 - End Time 2024-12-30 05:20:05 [2024-12-30 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134027', 'tblTempUsageDetail_20' ) start [2024-12-30 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134027', 'tblTempUsageDetail_20' ) end [2024-12-30 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134027', 'tblTempVendorCDR_20' ) start [2024-12-30 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134027', 'tblTempVendorCDR_20' ) end [2024-12-30 05:20:19] Production.INFO: ProcessCDR(1,14134027,1,1,2) [2024-12-30 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134027', 'tblTempUsageDetail_20' ) start [2024-12-30 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134027', 'tblTempUsageDetail_20' ) end [2024-12-30 05:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:20:22] Production.INFO: ==17486== Releasing lock... [2024-12-30 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:20:22] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:21:04 [end_date_ymd] => 2024-12-30 05:21:04 [RateCDR] => 1 ) [2024-12-30 05: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-30 02:21:04' and `end` < '2024-12-30 05: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-30 05:21:17] Production.INFO: count ==40 [2024-12-30 05:21:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:21:04 - End Time 2024-12-30 05:21:04 [2024-12-30 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134032', 'tblTempUsageDetail_20' ) start [2024-12-30 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134032', 'tblTempUsageDetail_20' ) end [2024-12-30 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134032', 'tblTempVendorCDR_20' ) start [2024-12-30 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134032', 'tblTempVendorCDR_20' ) end [2024-12-30 05:21:17] Production.INFO: ProcessCDR(1,14134032,1,1,2) [2024-12-30 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134032', 'tblTempUsageDetail_20' ) start [2024-12-30 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134032', 'tblTempUsageDetail_20' ) end [2024-12-30 05:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:21:20] Production.INFO: ==17558== Releasing lock... [2024-12-30 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:21:20] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:22:04 [end_date_ymd] => 2024-12-30 05:22:04 [RateCDR] => 1 ) [2024-12-30 05: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-30 02:22:04' and `end` < '2024-12-30 05: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-30 05:22:17] Production.INFO: count ==40 [2024-12-30 05:22:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:22:04 - End Time 2024-12-30 05:22:04 [2024-12-30 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134037', 'tblTempUsageDetail_20' ) start [2024-12-30 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134037', 'tblTempUsageDetail_20' ) end [2024-12-30 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134037', 'tblTempVendorCDR_20' ) start [2024-12-30 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134037', 'tblTempVendorCDR_20' ) end [2024-12-30 05:22:17] Production.INFO: ProcessCDR(1,14134037,1,1,2) [2024-12-30 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134037', 'tblTempUsageDetail_20' ) start [2024-12-30 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134037', 'tblTempUsageDetail_20' ) end [2024-12-30 05:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:22:20] Production.INFO: ==17631== Releasing lock... [2024-12-30 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:22:20] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:23:04 [end_date_ymd] => 2024-12-30 05:23:04 [RateCDR] => 1 ) [2024-12-30 05:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 02:23:04' and `end` < '2024-12-30 05:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 05:23:18] Production.INFO: count ==40 [2024-12-30 05:23:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:23:04 - End Time 2024-12-30 05:23:04 [2024-12-30 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134042', 'tblTempUsageDetail_20' ) start [2024-12-30 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134042', 'tblTempUsageDetail_20' ) end [2024-12-30 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134042', 'tblTempVendorCDR_20' ) start [2024-12-30 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134042', 'tblTempVendorCDR_20' ) end [2024-12-30 05:23:18] Production.INFO: ProcessCDR(1,14134042,1,1,2) [2024-12-30 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134042', 'tblTempUsageDetail_20' ) start [2024-12-30 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134042', 'tblTempUsageDetail_20' ) end [2024-12-30 05:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:23:21] Production.INFO: ==17700== Releasing lock... [2024-12-30 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:23:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:24:05 [end_date_ymd] => 2024-12-30 05:24:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:24:05' and `end` < '2024-12-30 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-30 05:24:18] Production.INFO: count ==33 [2024-12-30 05:24:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:24:05 - End Time 2024-12-30 05:24:05 [2024-12-30 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134047', 'tblTempUsageDetail_20' ) start [2024-12-30 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134047', 'tblTempUsageDetail_20' ) end [2024-12-30 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134047', 'tblTempVendorCDR_20' ) start [2024-12-30 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134047', 'tblTempVendorCDR_20' ) end [2024-12-30 05:24:18] Production.INFO: ProcessCDR(1,14134047,1,1,2) [2024-12-30 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134047', 'tblTempUsageDetail_20' ) start [2024-12-30 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134047', 'tblTempUsageDetail_20' ) end [2024-12-30 05:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:24:21] Production.INFO: ==17771== Releasing lock... [2024-12-30 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:24:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:25:05 [end_date_ymd] => 2024-12-30 05:25:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:25:05' and `end` < '2024-12-30 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-30 05:25:18] Production.INFO: count ==33 [2024-12-30 05:25:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:25:05 - End Time 2024-12-30 05:25:05 [2024-12-30 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134052', 'tblTempUsageDetail_20' ) start [2024-12-30 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134052', 'tblTempUsageDetail_20' ) end [2024-12-30 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134052', 'tblTempVendorCDR_20' ) start [2024-12-30 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134052', 'tblTempVendorCDR_20' ) end [2024-12-30 05:25:18] Production.INFO: ProcessCDR(1,14134052,1,1,2) [2024-12-30 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134052', 'tblTempUsageDetail_20' ) start [2024-12-30 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134052', 'tblTempUsageDetail_20' ) end [2024-12-30 05:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:25:21] Production.INFO: ==17845== Releasing lock... [2024-12-30 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:25:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:26:05 [end_date_ymd] => 2024-12-30 05:26:05 [RateCDR] => 1 ) [2024-12-30 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 02:26:05' and `end` < '2024-12-30 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 05:26:17] Production.INFO: count ==33 [2024-12-30 05:26:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:26:05 - End Time 2024-12-30 05:26:05 [2024-12-30 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134057', 'tblTempUsageDetail_20' ) start [2024-12-30 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134057', 'tblTempUsageDetail_20' ) end [2024-12-30 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134057', 'tblTempVendorCDR_20' ) start [2024-12-30 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134057', 'tblTempVendorCDR_20' ) end [2024-12-30 05:26:17] Production.INFO: ProcessCDR(1,14134057,1,1,2) [2024-12-30 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134057', 'tblTempUsageDetail_20' ) start [2024-12-30 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134057', 'tblTempUsageDetail_20' ) end [2024-12-30 05:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:26:20] Production.INFO: ==17919== Releasing lock... [2024-12-30 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:26:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:27:04 [end_date_ymd] => 2024-12-30 05:27:04 [RateCDR] => 1 ) [2024-12-30 05:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 02:27:04' and `end` < '2024-12-30 05:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 05:27:17] Production.INFO: count ==33 [2024-12-30 05:27:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:27:04 - End Time 2024-12-30 05:27:04 [2024-12-30 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134062', 'tblTempUsageDetail_20' ) start [2024-12-30 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134062', 'tblTempUsageDetail_20' ) end [2024-12-30 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134062', 'tblTempVendorCDR_20' ) start [2024-12-30 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134062', 'tblTempVendorCDR_20' ) end [2024-12-30 05:27:17] Production.INFO: ProcessCDR(1,14134062,1,1,2) [2024-12-30 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134062', 'tblTempUsageDetail_20' ) start [2024-12-30 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134062', 'tblTempUsageDetail_20' ) end [2024-12-30 05:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:27:20] Production.INFO: ==17990== Releasing lock... [2024-12-30 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:27:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:28:05 [end_date_ymd] => 2024-12-30 05:28:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:28:05' and `end` < '2024-12-30 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-30 05:28:18] Production.INFO: count ==33 [2024-12-30 05:28:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:28:05 - End Time 2024-12-30 05:28:05 [2024-12-30 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134067', 'tblTempUsageDetail_20' ) start [2024-12-30 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134067', 'tblTempUsageDetail_20' ) end [2024-12-30 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134067', 'tblTempVendorCDR_20' ) start [2024-12-30 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134067', 'tblTempVendorCDR_20' ) end [2024-12-30 05:28:18] Production.INFO: ProcessCDR(1,14134067,1,1,2) [2024-12-30 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134067', 'tblTempUsageDetail_20' ) start [2024-12-30 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134067', 'tblTempUsageDetail_20' ) end [2024-12-30 05:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:28:21] Production.INFO: ==18100== Releasing lock... [2024-12-30 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:28:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:29:05 [end_date_ymd] => 2024-12-30 05:29:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:29:05' and `end` < '2024-12-30 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-30 05:29:18] Production.INFO: count ==33 [2024-12-30 05:29:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:29:05 - End Time 2024-12-30 05:29:05 [2024-12-30 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134072', 'tblTempUsageDetail_20' ) start [2024-12-30 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134072', 'tblTempUsageDetail_20' ) end [2024-12-30 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134072', 'tblTempVendorCDR_20' ) start [2024-12-30 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134072', 'tblTempVendorCDR_20' ) end [2024-12-30 05:29:18] Production.INFO: ProcessCDR(1,14134072,1,1,2) [2024-12-30 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134072', 'tblTempUsageDetail_20' ) start [2024-12-30 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134072', 'tblTempUsageDetail_20' ) end [2024-12-30 05:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:29:21] Production.INFO: ==18173== Releasing lock... [2024-12-30 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:29:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:30:05 [end_date_ymd] => 2024-12-30 05:30:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:30:05' and `end` < '2024-12-30 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-30 05:30:18] Production.INFO: count ==30 [2024-12-30 05:30:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:30:05 - End Time 2024-12-30 05:30:05 [2024-12-30 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134078', 'tblTempUsageDetail_20' ) start [2024-12-30 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134078', 'tblTempUsageDetail_20' ) end [2024-12-30 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134078', 'tblTempVendorCDR_20' ) start [2024-12-30 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134078', 'tblTempVendorCDR_20' ) end [2024-12-30 05:30:18] Production.INFO: ProcessCDR(1,14134078,1,1,2) [2024-12-30 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134078', 'tblTempUsageDetail_20' ) start [2024-12-30 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134078', 'tblTempUsageDetail_20' ) end [2024-12-30 05:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:30:21] Production.INFO: ==18245== Releasing lock... [2024-12-30 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:30:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:31:05 [end_date_ymd] => 2024-12-30 05:31:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:31:05' and `end` < '2024-12-30 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-30 05:31:18] Production.INFO: count ==30 [2024-12-30 05:31:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:31:05 - End Time 2024-12-30 05:31:05 [2024-12-30 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134083', 'tblTempUsageDetail_20' ) start [2024-12-30 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134083', 'tblTempUsageDetail_20' ) end [2024-12-30 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134083', 'tblTempVendorCDR_20' ) start [2024-12-30 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134083', 'tblTempVendorCDR_20' ) end [2024-12-30 05:31:18] Production.INFO: ProcessCDR(1,14134083,1,1,2) [2024-12-30 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134083', 'tblTempUsageDetail_20' ) start [2024-12-30 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134083', 'tblTempUsageDetail_20' ) end [2024-12-30 05:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:31:22] Production.INFO: ==18318== Releasing lock... [2024-12-30 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:31:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:32:05 [end_date_ymd] => 2024-12-30 05:32:05 [RateCDR] => 1 ) [2024-12-30 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 02:32:05' and `end` < '2024-12-30 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 05:32:17] Production.INFO: count ==30 [2024-12-30 05:32:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:32:05 - End Time 2024-12-30 05:32:05 [2024-12-30 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134088', 'tblTempUsageDetail_20' ) start [2024-12-30 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134088', 'tblTempUsageDetail_20' ) end [2024-12-30 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134088', 'tblTempVendorCDR_20' ) start [2024-12-30 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134088', 'tblTempVendorCDR_20' ) end [2024-12-30 05:32:17] Production.INFO: ProcessCDR(1,14134088,1,1,2) [2024-12-30 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134088', 'tblTempUsageDetail_20' ) start [2024-12-30 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134088', 'tblTempUsageDetail_20' ) end [2024-12-30 05:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:32:21] Production.INFO: ==18391== Releasing lock... [2024-12-30 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:32:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:33:05 [end_date_ymd] => 2024-12-30 05:33:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:33:05' and `end` < '2024-12-30 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-30 05:33:18] Production.INFO: count ==30 [2024-12-30 05:33:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:33:05 - End Time 2024-12-30 05:33:05 [2024-12-30 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134093', 'tblTempUsageDetail_20' ) start [2024-12-30 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134093', 'tblTempUsageDetail_20' ) end [2024-12-30 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134093', 'tblTempVendorCDR_20' ) start [2024-12-30 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134093', 'tblTempVendorCDR_20' ) end [2024-12-30 05:33:18] Production.INFO: ProcessCDR(1,14134093,1,1,2) [2024-12-30 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134093', 'tblTempUsageDetail_20' ) start [2024-12-30 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134093', 'tblTempUsageDetail_20' ) end [2024-12-30 05:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:33:21] Production.INFO: ==18464== Releasing lock... [2024-12-30 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:33:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:34:05 [end_date_ymd] => 2024-12-30 05:34:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:34:05' and `end` < '2024-12-30 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-30 05:34:17] Production.INFO: count ==30 [2024-12-30 05:34:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:34:05 - End Time 2024-12-30 05:34:05 [2024-12-30 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134098', 'tblTempUsageDetail_20' ) start [2024-12-30 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134098', 'tblTempUsageDetail_20' ) end [2024-12-30 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134098', 'tblTempVendorCDR_20' ) start [2024-12-30 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134098', 'tblTempVendorCDR_20' ) end [2024-12-30 05:34:17] Production.INFO: ProcessCDR(1,14134098,1,1,2) [2024-12-30 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134098', 'tblTempUsageDetail_20' ) start [2024-12-30 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134098', 'tblTempUsageDetail_20' ) end [2024-12-30 05:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:34:20] Production.INFO: ==18538== Releasing lock... [2024-12-30 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:34:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:35:05 [end_date_ymd] => 2024-12-30 05:35:05 [RateCDR] => 1 ) [2024-12-30 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 02:35:05' and `end` < '2024-12-30 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 05:35:18] Production.INFO: count ==30 [2024-12-30 05:35:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:35:05 - End Time 2024-12-30 05:35:05 [2024-12-30 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134103', 'tblTempUsageDetail_20' ) start [2024-12-30 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134103', 'tblTempUsageDetail_20' ) end [2024-12-30 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134103', 'tblTempVendorCDR_20' ) start [2024-12-30 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134103', 'tblTempVendorCDR_20' ) end [2024-12-30 05:35:18] Production.INFO: ProcessCDR(1,14134103,1,1,2) [2024-12-30 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134103', 'tblTempUsageDetail_20' ) start [2024-12-30 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134103', 'tblTempUsageDetail_20' ) end [2024-12-30 05:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:35:21] Production.INFO: ==18620== Releasing lock... [2024-12-30 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:35:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:36:05 [end_date_ymd] => 2024-12-30 05:36:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:36:05' and `end` < '2024-12-30 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-30 05:36:17] Production.INFO: count ==29 [2024-12-30 05:36:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:36:05 - End Time 2024-12-30 05:36:05 [2024-12-30 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134108', 'tblTempUsageDetail_20' ) start [2024-12-30 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134108', 'tblTempUsageDetail_20' ) end [2024-12-30 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134108', 'tblTempVendorCDR_20' ) start [2024-12-30 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134108', 'tblTempVendorCDR_20' ) end [2024-12-30 05:36:17] Production.INFO: ProcessCDR(1,14134108,1,1,2) [2024-12-30 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134108', 'tblTempUsageDetail_20' ) start [2024-12-30 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134108', 'tblTempUsageDetail_20' ) end [2024-12-30 05:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:36:20] Production.INFO: ==18695== Releasing lock... [2024-12-30 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:36:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:37:05 [end_date_ymd] => 2024-12-30 05:37:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:37:05' and `end` < '2024-12-30 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-30 05:37:18] Production.INFO: count ==29 [2024-12-30 05:37:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:37:05 - End Time 2024-12-30 05:37:05 [2024-12-30 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134113', 'tblTempUsageDetail_20' ) start [2024-12-30 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134113', 'tblTempUsageDetail_20' ) end [2024-12-30 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134113', 'tblTempVendorCDR_20' ) start [2024-12-30 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134113', 'tblTempVendorCDR_20' ) end [2024-12-30 05:37:18] Production.INFO: ProcessCDR(1,14134113,1,1,2) [2024-12-30 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134113', 'tblTempUsageDetail_20' ) start [2024-12-30 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134113', 'tblTempUsageDetail_20' ) end [2024-12-30 05:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:37:21] Production.INFO: ==18770== Releasing lock... [2024-12-30 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:37:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:38:04 [end_date_ymd] => 2024-12-30 05:38:04 [RateCDR] => 1 ) [2024-12-30 05:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 02:38:04' and `end` < '2024-12-30 05:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 05:38:17] Production.INFO: count ==29 [2024-12-30 05:38:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:38:04 - End Time 2024-12-30 05:38:04 [2024-12-30 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134118', 'tblTempUsageDetail_20' ) start [2024-12-30 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134118', 'tblTempUsageDetail_20' ) end [2024-12-30 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134118', 'tblTempVendorCDR_20' ) start [2024-12-30 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134118', 'tblTempVendorCDR_20' ) end [2024-12-30 05:38:17] Production.INFO: ProcessCDR(1,14134118,1,1,2) [2024-12-30 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134118', 'tblTempUsageDetail_20' ) start [2024-12-30 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134118', 'tblTempUsageDetail_20' ) end [2024-12-30 05:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:38:20] Production.INFO: ==18867== Releasing lock... [2024-12-30 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:38:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:39:05 [end_date_ymd] => 2024-12-30 05:39:05 [RateCDR] => 1 ) [2024-12-30 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 02:39:05' and `end` < '2024-12-30 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 05:39:18] Production.INFO: count ==29 [2024-12-30 05:39:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:39:05 - End Time 2024-12-30 05:39:05 [2024-12-30 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134123', 'tblTempUsageDetail_20' ) start [2024-12-30 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134123', 'tblTempUsageDetail_20' ) end [2024-12-30 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134123', 'tblTempVendorCDR_20' ) start [2024-12-30 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134123', 'tblTempVendorCDR_20' ) end [2024-12-30 05:39:18] Production.INFO: ProcessCDR(1,14134123,1,1,2) [2024-12-30 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134123', 'tblTempUsageDetail_20' ) start [2024-12-30 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134123', 'tblTempUsageDetail_20' ) end [2024-12-30 05:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:39:21] Production.INFO: ==18958== Releasing lock... [2024-12-30 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:39:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:40:06 [end_date_ymd] => 2024-12-30 05:40:06 [RateCDR] => 1 ) [2024-12-30 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 02:40:06' and `end` < '2024-12-30 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 05:40:18] Production.INFO: count ==24 [2024-12-30 05:40:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:40:06 - End Time 2024-12-30 05:40:06 [2024-12-30 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134129', 'tblTempUsageDetail_20' ) start [2024-12-30 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134129', 'tblTempUsageDetail_20' ) end [2024-12-30 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134129', 'tblTempVendorCDR_20' ) start [2024-12-30 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134129', 'tblTempVendorCDR_20' ) end [2024-12-30 05:40:18] Production.INFO: ProcessCDR(1,14134129,1,1,2) [2024-12-30 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134129', 'tblTempUsageDetail_20' ) start [2024-12-30 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134129', 'tblTempUsageDetail_20' ) end [2024-12-30 05:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:40:22] Production.INFO: ==19056== Releasing lock... [2024-12-30 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:40:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:41:05 [end_date_ymd] => 2024-12-30 05:41:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:41:05' and `end` < '2024-12-30 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-30 05:41:17] Production.INFO: count ==24 [2024-12-30 05:41:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:41:05 - End Time 2024-12-30 05:41:05 [2024-12-30 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134134', 'tblTempUsageDetail_20' ) start [2024-12-30 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134134', 'tblTempUsageDetail_20' ) end [2024-12-30 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134134', 'tblTempVendorCDR_20' ) start [2024-12-30 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134134', 'tblTempVendorCDR_20' ) end [2024-12-30 05:41:17] Production.INFO: ProcessCDR(1,14134134,1,1,2) [2024-12-30 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134134', 'tblTempUsageDetail_20' ) start [2024-12-30 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134134', 'tblTempUsageDetail_20' ) end [2024-12-30 05:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:41:21] Production.INFO: ==19157== Releasing lock... [2024-12-30 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:41:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:42:05 [end_date_ymd] => 2024-12-30 05:42:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:42:05' and `end` < '2024-12-30 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-30 05:42:19] Production.INFO: count ==24 [2024-12-30 05:42:19] Production.ERROR: pbx CDR StartTime 2024-12-30 02:42:05 - End Time 2024-12-30 05:42:05 [2024-12-30 05:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134139', 'tblTempUsageDetail_20' ) start [2024-12-30 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134139', 'tblTempUsageDetail_20' ) end [2024-12-30 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134139', 'tblTempVendorCDR_20' ) start [2024-12-30 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134139', 'tblTempVendorCDR_20' ) end [2024-12-30 05:42:19] Production.INFO: ProcessCDR(1,14134139,1,1,2) [2024-12-30 05:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134139', 'tblTempUsageDetail_20' ) start [2024-12-30 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134139', 'tblTempUsageDetail_20' ) end [2024-12-30 05:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:42:22] Production.INFO: ==19252== Releasing lock... [2024-12-30 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:42:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:43:05 [end_date_ymd] => 2024-12-30 05:43:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:43:05' and `end` < '2024-12-30 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-30 05:43:18] Production.INFO: count ==24 [2024-12-30 05:43:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:43:05 - End Time 2024-12-30 05:43:05 [2024-12-30 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134144', 'tblTempUsageDetail_20' ) start [2024-12-30 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134144', 'tblTempUsageDetail_20' ) end [2024-12-30 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134144', 'tblTempVendorCDR_20' ) start [2024-12-30 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134144', 'tblTempVendorCDR_20' ) end [2024-12-30 05:43:18] Production.INFO: ProcessCDR(1,14134144,1,1,2) [2024-12-30 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134144', 'tblTempUsageDetail_20' ) start [2024-12-30 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134144', 'tblTempUsageDetail_20' ) end [2024-12-30 05:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:43:21] Production.INFO: ==19350== Releasing lock... [2024-12-30 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:43:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:44:05 [end_date_ymd] => 2024-12-30 05:44:05 [RateCDR] => 1 ) [2024-12-30 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 02:44:05' and `end` < '2024-12-30 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 05:44:18] Production.INFO: count ==24 [2024-12-30 05:44:19] Production.ERROR: pbx CDR StartTime 2024-12-30 02:44:05 - End Time 2024-12-30 05:44:05 [2024-12-30 05:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134149', 'tblTempUsageDetail_20' ) start [2024-12-30 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134149', 'tblTempUsageDetail_20' ) end [2024-12-30 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134149', 'tblTempVendorCDR_20' ) start [2024-12-30 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134149', 'tblTempVendorCDR_20' ) end [2024-12-30 05:44:19] Production.INFO: ProcessCDR(1,14134149,1,1,2) [2024-12-30 05:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134149', 'tblTempUsageDetail_20' ) start [2024-12-30 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134149', 'tblTempUsageDetail_20' ) end [2024-12-30 05:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:44:22] Production.INFO: ==19485== Releasing lock... [2024-12-30 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:44:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:45:05 [end_date_ymd] => 2024-12-30 05:45:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:45:05' and `end` < '2024-12-30 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-30 05:45:17] Production.INFO: count ==24 [2024-12-30 05:45:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:45:05 - End Time 2024-12-30 05:45:05 [2024-12-30 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134154', 'tblTempUsageDetail_20' ) start [2024-12-30 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134154', 'tblTempUsageDetail_20' ) end [2024-12-30 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134154', 'tblTempVendorCDR_20' ) start [2024-12-30 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134154', 'tblTempVendorCDR_20' ) end [2024-12-30 05:45:17] Production.INFO: ProcessCDR(1,14134154,1,1,2) [2024-12-30 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134154', 'tblTempUsageDetail_20' ) start [2024-12-30 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134154', 'tblTempUsageDetail_20' ) end [2024-12-30 05:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:45:20] Production.INFO: ==19579== Releasing lock... [2024-12-30 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:45:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:46:05 [end_date_ymd] => 2024-12-30 05:46:05 [RateCDR] => 1 ) [2024-12-30 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 02:46:05' and `end` < '2024-12-30 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 05:46:19] Production.INFO: count ==24 [2024-12-30 05:46:19] Production.ERROR: pbx CDR StartTime 2024-12-30 02:46:05 - End Time 2024-12-30 05:46:05 [2024-12-30 05:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134159', 'tblTempUsageDetail_20' ) start [2024-12-30 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134159', 'tblTempUsageDetail_20' ) end [2024-12-30 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134159', 'tblTempVendorCDR_20' ) start [2024-12-30 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134159', 'tblTempVendorCDR_20' ) end [2024-12-30 05:46:19] Production.INFO: ProcessCDR(1,14134159,1,1,2) [2024-12-30 05:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134159', 'tblTempUsageDetail_20' ) start [2024-12-30 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134159', 'tblTempUsageDetail_20' ) end [2024-12-30 05:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:46:22] Production.INFO: ==19676== Releasing lock... [2024-12-30 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:46:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:47:05 [end_date_ymd] => 2024-12-30 05:47:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:47:05' and `end` < '2024-12-30 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-30 05:47:17] Production.INFO: count ==24 [2024-12-30 05:47:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:47:05 - End Time 2024-12-30 05:47:05 [2024-12-30 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134164', 'tblTempUsageDetail_20' ) start [2024-12-30 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134164', 'tblTempUsageDetail_20' ) end [2024-12-30 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134164', 'tblTempVendorCDR_20' ) start [2024-12-30 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134164', 'tblTempVendorCDR_20' ) end [2024-12-30 05:47:17] Production.INFO: ProcessCDR(1,14134164,1,1,2) [2024-12-30 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134164', 'tblTempUsageDetail_20' ) start [2024-12-30 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134164', 'tblTempUsageDetail_20' ) end [2024-12-30 05:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:47:20] Production.INFO: ==19777== Releasing lock... [2024-12-30 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:47:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:48:05 [end_date_ymd] => 2024-12-30 05:48:05 [RateCDR] => 1 ) [2024-12-30 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 02:48:05' and `end` < '2024-12-30 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 05:48:19] Production.INFO: count ==24 [2024-12-30 05:48:19] Production.ERROR: pbx CDR StartTime 2024-12-30 02:48:05 - End Time 2024-12-30 05:48:05 [2024-12-30 05:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134169', 'tblTempUsageDetail_20' ) start [2024-12-30 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134169', 'tblTempUsageDetail_20' ) end [2024-12-30 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134169', 'tblTempVendorCDR_20' ) start [2024-12-30 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134169', 'tblTempVendorCDR_20' ) end [2024-12-30 05:48:19] Production.INFO: ProcessCDR(1,14134169,1,1,2) [2024-12-30 05:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134169', 'tblTempUsageDetail_20' ) start [2024-12-30 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134169', 'tblTempUsageDetail_20' ) end [2024-12-30 05:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:48:22] Production.INFO: ==19870== Releasing lock... [2024-12-30 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:48:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:49:04 [end_date_ymd] => 2024-12-30 05:49:04 [RateCDR] => 1 ) [2024-12-30 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-30 02:49:04' and `end` < '2024-12-30 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-30 05:49:17] Production.INFO: count ==24 [2024-12-30 05:49:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:49:04 - End Time 2024-12-30 05:49:04 [2024-12-30 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134174', 'tblTempUsageDetail_20' ) start [2024-12-30 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134174', 'tblTempUsageDetail_20' ) end [2024-12-30 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134174', 'tblTempVendorCDR_20' ) start [2024-12-30 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134174', 'tblTempVendorCDR_20' ) end [2024-12-30 05:49:17] Production.INFO: ProcessCDR(1,14134174,1,1,2) [2024-12-30 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134174', 'tblTempUsageDetail_20' ) start [2024-12-30 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134174', 'tblTempUsageDetail_20' ) end [2024-12-30 05:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:49:20] Production.INFO: ==19971== Releasing lock... [2024-12-30 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:49:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:50:05 [end_date_ymd] => 2024-12-30 05:50:05 [RateCDR] => 1 ) [2024-12-30 05:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 02:50:05' and `end` < '2024-12-30 05:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 05:50:19] Production.INFO: count ==24 [2024-12-30 05:50:19] Production.ERROR: pbx CDR StartTime 2024-12-30 02:50:05 - End Time 2024-12-30 05:50:05 [2024-12-30 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134179', 'tblTempUsageDetail_20' ) start [2024-12-30 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134179', 'tblTempUsageDetail_20' ) end [2024-12-30 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134179', 'tblTempVendorCDR_20' ) start [2024-12-30 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134179', 'tblTempVendorCDR_20' ) end [2024-12-30 05:50:19] Production.INFO: ProcessCDR(1,14134179,1,1,2) [2024-12-30 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134179', 'tblTempUsageDetail_20' ) start [2024-12-30 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134179', 'tblTempUsageDetail_20' ) end [2024-12-30 05:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:50:22] Production.INFO: ==20094== Releasing lock... [2024-12-30 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:50:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:51:05 [end_date_ymd] => 2024-12-30 05:51:05 [RateCDR] => 1 ) [2024-12-30 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 02:51:05' and `end` < '2024-12-30 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 05:51:17] Production.INFO: count ==24 [2024-12-30 05:51:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:51:05 - End Time 2024-12-30 05:51:05 [2024-12-30 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134185', 'tblTempUsageDetail_20' ) start [2024-12-30 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134185', 'tblTempUsageDetail_20' ) end [2024-12-30 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134185', 'tblTempVendorCDR_20' ) start [2024-12-30 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134185', 'tblTempVendorCDR_20' ) end [2024-12-30 05:51:17] Production.INFO: ProcessCDR(1,14134185,1,1,2) [2024-12-30 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134185', 'tblTempUsageDetail_20' ) start [2024-12-30 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134185', 'tblTempUsageDetail_20' ) end [2024-12-30 05:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:51:20] Production.INFO: ==20226== Releasing lock... [2024-12-30 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:51:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:52:05 [end_date_ymd] => 2024-12-30 05:52:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:52:05' and `end` < '2024-12-30 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-30 05:52:18] Production.INFO: count ==24 [2024-12-30 05:52:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:52:05 - End Time 2024-12-30 05:52:05 [2024-12-30 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134190', 'tblTempUsageDetail_20' ) start [2024-12-30 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134190', 'tblTempUsageDetail_20' ) end [2024-12-30 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134190', 'tblTempVendorCDR_20' ) start [2024-12-30 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134190', 'tblTempVendorCDR_20' ) end [2024-12-30 05:52:18] Production.INFO: ProcessCDR(1,14134190,1,1,2) [2024-12-30 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134190', 'tblTempUsageDetail_20' ) start [2024-12-30 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134190', 'tblTempUsageDetail_20' ) end [2024-12-30 05:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:52:21] Production.INFO: ==20349== Releasing lock... [2024-12-30 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:52:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:53:05 [end_date_ymd] => 2024-12-30 05:53:05 [RateCDR] => 1 ) [2024-12-30 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 02:53:05' and `end` < '2024-12-30 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 05:53:18] Production.INFO: count ==24 [2024-12-30 05:53:18] Production.ERROR: pbx CDR StartTime 2024-12-30 02:53:05 - End Time 2024-12-30 05:53:05 [2024-12-30 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134195', 'tblTempUsageDetail_20' ) start [2024-12-30 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134195', 'tblTempUsageDetail_20' ) end [2024-12-30 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134195', 'tblTempVendorCDR_20' ) start [2024-12-30 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134195', 'tblTempVendorCDR_20' ) end [2024-12-30 05:53:18] Production.INFO: ProcessCDR(1,14134195,1,1,2) [2024-12-30 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134195', 'tblTempUsageDetail_20' ) start [2024-12-30 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134195', 'tblTempUsageDetail_20' ) end [2024-12-30 05:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:53:21] Production.INFO: ==20478== Releasing lock... [2024-12-30 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:53:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:54:05 [end_date_ymd] => 2024-12-30 05:54:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:54:05' and `end` < '2024-12-30 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-30 05:54:19] Production.INFO: count ==24 [2024-12-30 05:54:19] Production.ERROR: pbx CDR StartTime 2024-12-30 02:54:05 - End Time 2024-12-30 05:54:05 [2024-12-30 05:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134200', 'tblTempUsageDetail_20' ) start [2024-12-30 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134200', 'tblTempUsageDetail_20' ) end [2024-12-30 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134200', 'tblTempVendorCDR_20' ) start [2024-12-30 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134200', 'tblTempVendorCDR_20' ) end [2024-12-30 05:54:19] Production.INFO: ProcessCDR(1,14134200,1,1,2) [2024-12-30 05:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134200', 'tblTempUsageDetail_20' ) start [2024-12-30 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134200', 'tblTempUsageDetail_20' ) end [2024-12-30 05:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:54:22] Production.INFO: ==20599== Releasing lock... [2024-12-30 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:54:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:55:04 [end_date_ymd] => 2024-12-30 05:55:04 [RateCDR] => 1 ) [2024-12-30 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-30 02:55:04' and `end` < '2024-12-30 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-30 05:55:17] Production.INFO: count ==24 [2024-12-30 05:55:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:55:04 - End Time 2024-12-30 05:55:04 [2024-12-30 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134205', 'tblTempUsageDetail_20' ) start [2024-12-30 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134205', 'tblTempUsageDetail_20' ) end [2024-12-30 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134205', 'tblTempVendorCDR_20' ) start [2024-12-30 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134205', 'tblTempVendorCDR_20' ) end [2024-12-30 05:55:17] Production.INFO: ProcessCDR(1,14134205,1,1,2) [2024-12-30 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134205', 'tblTempUsageDetail_20' ) start [2024-12-30 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134205', 'tblTempUsageDetail_20' ) end [2024-12-30 05:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:55:20] Production.INFO: ==20715== Releasing lock... [2024-12-30 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:55:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:56:05 [end_date_ymd] => 2024-12-30 05:56:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:56:05' and `end` < '2024-12-30 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-30 05:56:17] Production.INFO: count ==24 [2024-12-30 05:56:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:56:05 - End Time 2024-12-30 05:56:05 [2024-12-30 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134210', 'tblTempUsageDetail_20' ) start [2024-12-30 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134210', 'tblTempUsageDetail_20' ) end [2024-12-30 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134210', 'tblTempVendorCDR_20' ) start [2024-12-30 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134210', 'tblTempVendorCDR_20' ) end [2024-12-30 05:56:17] Production.INFO: ProcessCDR(1,14134210,1,1,2) [2024-12-30 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134210', 'tblTempUsageDetail_20' ) start [2024-12-30 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134210', 'tblTempUsageDetail_20' ) end [2024-12-30 05:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:56:21] Production.INFO: ==20859== Releasing lock... [2024-12-30 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:56:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:57:05 [end_date_ymd] => 2024-12-30 05:57:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:57:05' and `end` < '2024-12-30 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-30 05:57:17] Production.INFO: count ==24 [2024-12-30 05:57:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:57:05 - End Time 2024-12-30 05:57:05 [2024-12-30 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134215', 'tblTempUsageDetail_20' ) start [2024-12-30 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134215', 'tblTempUsageDetail_20' ) end [2024-12-30 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134215', 'tblTempVendorCDR_20' ) start [2024-12-30 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134215', 'tblTempVendorCDR_20' ) end [2024-12-30 05:57:17] Production.INFO: ProcessCDR(1,14134215,1,1,2) [2024-12-30 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134215', 'tblTempUsageDetail_20' ) start [2024-12-30 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134215', 'tblTempUsageDetail_20' ) end [2024-12-30 05:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:57:20] Production.INFO: ==21006== Releasing lock... [2024-12-30 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:57:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:58:05 [end_date_ymd] => 2024-12-30 05:58:05 [RateCDR] => 1 ) [2024-12-30 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-30 02:58:05' and `end` < '2024-12-30 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-30 05:58:19] Production.INFO: count ==24 [2024-12-30 05:58:19] Production.ERROR: pbx CDR StartTime 2024-12-30 02:58:05 - End Time 2024-12-30 05:58:05 [2024-12-30 05:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134220', 'tblTempUsageDetail_20' ) start [2024-12-30 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134220', 'tblTempUsageDetail_20' ) end [2024-12-30 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134220', 'tblTempVendorCDR_20' ) start [2024-12-30 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134220', 'tblTempVendorCDR_20' ) end [2024-12-30 05:58:19] Production.INFO: ProcessCDR(1,14134220,1,1,2) [2024-12-30 05:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134220', 'tblTempUsageDetail_20' ) start [2024-12-30 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134220', 'tblTempUsageDetail_20' ) end [2024-12-30 05:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:58:22] Production.INFO: ==21149== Releasing lock... [2024-12-30 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:58:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 05:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 02:59:04 [end_date_ymd] => 2024-12-30 05:59:04 [RateCDR] => 1 ) [2024-12-30 05: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-30 02:59:04' and `end` < '2024-12-30 05: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-30 05:59:17] Production.INFO: count ==24 [2024-12-30 05:59:17] Production.ERROR: pbx CDR StartTime 2024-12-30 02:59:04 - End Time 2024-12-30 05:59:04 [2024-12-30 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134225', 'tblTempUsageDetail_20' ) start [2024-12-30 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134225', 'tblTempUsageDetail_20' ) end [2024-12-30 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134225', 'tblTempVendorCDR_20' ) start [2024-12-30 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134225', 'tblTempVendorCDR_20' ) end [2024-12-30 05:59:17] Production.INFO: ProcessCDR(1,14134225,1,1,2) [2024-12-30 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134225', 'tblTempUsageDetail_20' ) start [2024-12-30 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134225', 'tblTempUsageDetail_20' ) end [2024-12-30 05:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 05:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 05:59:20] Production.INFO: ==21296== Releasing lock... [2024-12-30 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 05:59:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:00:05 [end_date_ymd] => 2024-12-30 06:00:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:00:05' and `end` < '2024-12-30 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-30 06:00:18] Production.INFO: count ==24 [2024-12-30 06:00:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:00:05 - End Time 2024-12-30 06:00:05 [2024-12-30 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134230', 'tblTempUsageDetail_20' ) start [2024-12-30 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134230', 'tblTempUsageDetail_20' ) end [2024-12-30 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134230', 'tblTempVendorCDR_20' ) start [2024-12-30 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134230', 'tblTempVendorCDR_20' ) end [2024-12-30 06:00:18] Production.INFO: ProcessCDR(1,14134230,1,1,2) [2024-12-30 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134230', 'tblTempUsageDetail_20' ) start [2024-12-30 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134230', 'tblTempUsageDetail_20' ) end [2024-12-30 06:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:00:21] Production.INFO: ==21492== Releasing lock... [2024-12-30 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:00:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:01:04 [end_date_ymd] => 2024-12-30 06:01:04 [RateCDR] => 1 ) [2024-12-30 06:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 03:01:04' and `end` < '2024-12-30 06:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 06:01:17] Production.INFO: count ==24 [2024-12-30 06:01:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:01:04 - End Time 2024-12-30 06:01:04 [2024-12-30 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134236', 'tblTempUsageDetail_20' ) start [2024-12-30 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134236', 'tblTempUsageDetail_20' ) end [2024-12-30 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134236', 'tblTempVendorCDR_20' ) start [2024-12-30 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134236', 'tblTempVendorCDR_20' ) end [2024-12-30 06:01:17] Production.INFO: ProcessCDR(1,14134236,1,1,2) [2024-12-30 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134236', 'tblTempUsageDetail_20' ) start [2024-12-30 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134236', 'tblTempUsageDetail_20' ) end [2024-12-30 06:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:01:20] Production.INFO: ==21648== Releasing lock... [2024-12-30 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:01:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:02:05 [end_date_ymd] => 2024-12-30 06:02:05 [RateCDR] => 1 ) [2024-12-30 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 03:02:05' and `end` < '2024-12-30 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 06:02:17] Production.INFO: count ==24 [2024-12-30 06:02:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:02:05 - End Time 2024-12-30 06:02:05 [2024-12-30 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134241', 'tblTempUsageDetail_20' ) start [2024-12-30 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134241', 'tblTempUsageDetail_20' ) end [2024-12-30 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134241', 'tblTempVendorCDR_20' ) start [2024-12-30 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134241', 'tblTempVendorCDR_20' ) end [2024-12-30 06:02:17] Production.INFO: ProcessCDR(1,14134241,1,1,2) [2024-12-30 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134241', 'tblTempUsageDetail_20' ) start [2024-12-30 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134241', 'tblTempUsageDetail_20' ) end [2024-12-30 06:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:02:20] Production.INFO: ==21794== Releasing lock... [2024-12-30 06:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:02:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:03:05 [end_date_ymd] => 2024-12-30 06:03:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:03:05' and `end` < '2024-12-30 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-30 06:03:17] Production.INFO: count ==24 [2024-12-30 06:03:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:03:05 - End Time 2024-12-30 06:03:05 [2024-12-30 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134246', 'tblTempUsageDetail_20' ) start [2024-12-30 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134246', 'tblTempUsageDetail_20' ) end [2024-12-30 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134246', 'tblTempVendorCDR_20' ) start [2024-12-30 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134246', 'tblTempVendorCDR_20' ) end [2024-12-30 06:03:17] Production.INFO: ProcessCDR(1,14134246,1,1,2) [2024-12-30 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134246', 'tblTempUsageDetail_20' ) start [2024-12-30 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134246', 'tblTempUsageDetail_20' ) end [2024-12-30 06:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:03:21] Production.INFO: ==21946== Releasing lock... [2024-12-30 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:03:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:04:06 [end_date_ymd] => 2024-12-30 06:04:06 [RateCDR] => 1 ) [2024-12-30 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-30 03:04:06' and `end` < '2024-12-30 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-30 06:04:18] Production.INFO: count ==24 [2024-12-30 06:04:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:04:06 - End Time 2024-12-30 06:04:06 [2024-12-30 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134251', 'tblTempUsageDetail_20' ) start [2024-12-30 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134251', 'tblTempUsageDetail_20' ) end [2024-12-30 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134251', 'tblTempVendorCDR_20' ) start [2024-12-30 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134251', 'tblTempVendorCDR_20' ) end [2024-12-30 06:04:18] Production.INFO: ProcessCDR(1,14134251,1,1,2) [2024-12-30 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134251', 'tblTempUsageDetail_20' ) start [2024-12-30 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134251', 'tblTempUsageDetail_20' ) end [2024-12-30 06:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:04:21] Production.INFO: ==22090== Releasing lock... [2024-12-30 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:04:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:05:05 [end_date_ymd] => 2024-12-30 06:05:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:05:05' and `end` < '2024-12-30 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-30 06:05:18] Production.INFO: count ==24 [2024-12-30 06:05:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:05:05 - End Time 2024-12-30 06:05:05 [2024-12-30 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134256', 'tblTempUsageDetail_20' ) start [2024-12-30 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134256', 'tblTempUsageDetail_20' ) end [2024-12-30 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134256', 'tblTempVendorCDR_20' ) start [2024-12-30 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134256', 'tblTempVendorCDR_20' ) end [2024-12-30 06:05:18] Production.INFO: ProcessCDR(1,14134256,1,1,2) [2024-12-30 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134256', 'tblTempUsageDetail_20' ) start [2024-12-30 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134256', 'tblTempUsageDetail_20' ) end [2024-12-30 06:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:05:21] Production.INFO: ==22236== Releasing lock... [2024-12-30 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:05:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:06:04 [end_date_ymd] => 2024-12-30 06:06:04 [RateCDR] => 1 ) [2024-12-30 06: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-30 03:06:04' and `end` < '2024-12-30 06: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-30 06:06:17] Production.INFO: count ==24 [2024-12-30 06:06:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:06:04 - End Time 2024-12-30 06:06:04 [2024-12-30 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134261', 'tblTempUsageDetail_20' ) start [2024-12-30 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134261', 'tblTempUsageDetail_20' ) end [2024-12-30 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134261', 'tblTempVendorCDR_20' ) start [2024-12-30 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134261', 'tblTempVendorCDR_20' ) end [2024-12-30 06:06:17] Production.INFO: ProcessCDR(1,14134261,1,1,2) [2024-12-30 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134261', 'tblTempUsageDetail_20' ) start [2024-12-30 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134261', 'tblTempUsageDetail_20' ) end [2024-12-30 06:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:06:20] Production.INFO: ==22381== Releasing lock... [2024-12-30 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:06:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:07:04 [end_date_ymd] => 2024-12-30 06:07:04 [RateCDR] => 1 ) [2024-12-30 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-30 03:07:04' and `end` < '2024-12-30 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-30 06:07:18] Production.INFO: count ==24 [2024-12-30 06:07:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:07:04 - End Time 2024-12-30 06:07:04 [2024-12-30 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134266', 'tblTempUsageDetail_20' ) start [2024-12-30 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134266', 'tblTempUsageDetail_20' ) end [2024-12-30 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134266', 'tblTempVendorCDR_20' ) start [2024-12-30 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134266', 'tblTempVendorCDR_20' ) end [2024-12-30 06:07:18] Production.INFO: ProcessCDR(1,14134266,1,1,2) [2024-12-30 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134266', 'tblTempUsageDetail_20' ) start [2024-12-30 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134266', 'tblTempUsageDetail_20' ) end [2024-12-30 06:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:07:21] Production.INFO: ==22503== Releasing lock... [2024-12-30 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:07:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:08:05 [end_date_ymd] => 2024-12-30 06:08:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:08:05' and `end` < '2024-12-30 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-30 06:08:18] Production.INFO: count ==24 [2024-12-30 06:08:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:08:05 - End Time 2024-12-30 06:08:05 [2024-12-30 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134271', 'tblTempUsageDetail_20' ) start [2024-12-30 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134271', 'tblTempUsageDetail_20' ) end [2024-12-30 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134271', 'tblTempVendorCDR_20' ) start [2024-12-30 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134271', 'tblTempVendorCDR_20' ) end [2024-12-30 06:08:18] Production.INFO: ProcessCDR(1,14134271,1,1,2) [2024-12-30 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134271', 'tblTempUsageDetail_20' ) start [2024-12-30 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134271', 'tblTempUsageDetail_20' ) end [2024-12-30 06:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:08:22] Production.INFO: ==22616== Releasing lock... [2024-12-30 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:08:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:09:05 [end_date_ymd] => 2024-12-30 06:09:05 [RateCDR] => 1 ) [2024-12-30 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 03:09:05' and `end` < '2024-12-30 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 06:09:18] Production.INFO: count ==24 [2024-12-30 06:09:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:09:05 - End Time 2024-12-30 06:09:05 [2024-12-30 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134276', 'tblTempUsageDetail_20' ) start [2024-12-30 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134276', 'tblTempUsageDetail_20' ) end [2024-12-30 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134276', 'tblTempVendorCDR_20' ) start [2024-12-30 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134276', 'tblTempVendorCDR_20' ) end [2024-12-30 06:09:18] Production.INFO: ProcessCDR(1,14134276,1,1,2) [2024-12-30 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134276', 'tblTempUsageDetail_20' ) start [2024-12-30 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134276', 'tblTempUsageDetail_20' ) end [2024-12-30 06:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:09:22] Production.INFO: ==22729== Releasing lock... [2024-12-30 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:09:22] Production.INFO: 28 MB #Memory Used# [2024-12-30 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:10:05 [end_date_ymd] => 2024-12-30 06:10:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:10:05' and `end` < '2024-12-30 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-30 06:10:18] Production.INFO: count ==24 [2024-12-30 06:10:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:10:05 - End Time 2024-12-30 06:10:05 [2024-12-30 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134282', 'tblTempUsageDetail_20' ) start [2024-12-30 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134282', 'tblTempUsageDetail_20' ) end [2024-12-30 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134282', 'tblTempVendorCDR_20' ) start [2024-12-30 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134282', 'tblTempVendorCDR_20' ) end [2024-12-30 06:10:18] Production.INFO: ProcessCDR(1,14134282,1,1,2) [2024-12-30 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134282', 'tblTempUsageDetail_20' ) start [2024-12-30 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134282', 'tblTempUsageDetail_20' ) end [2024-12-30 06:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:10:21] Production.INFO: ==22851== Releasing lock... [2024-12-30 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:10:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:11:05 [end_date_ymd] => 2024-12-30 06:11:05 [RateCDR] => 1 ) [2024-12-30 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 03:11:05' and `end` < '2024-12-30 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 06:11:17] Production.INFO: count ==24 [2024-12-30 06:11:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:11:05 - End Time 2024-12-30 06:11:05 [2024-12-30 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134287', 'tblTempUsageDetail_20' ) start [2024-12-30 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134287', 'tblTempUsageDetail_20' ) end [2024-12-30 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134287', 'tblTempVendorCDR_20' ) start [2024-12-30 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134287', 'tblTempVendorCDR_20' ) end [2024-12-30 06:11:17] Production.INFO: ProcessCDR(1,14134287,1,1,2) [2024-12-30 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134287', 'tblTempUsageDetail_20' ) start [2024-12-30 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134287', 'tblTempUsageDetail_20' ) end [2024-12-30 06:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:11:20] Production.INFO: ==22980== Releasing lock... [2024-12-30 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:11:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:12:05 [end_date_ymd] => 2024-12-30 06:12:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:12:05' and `end` < '2024-12-30 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-30 06:12:18] Production.INFO: count ==24 [2024-12-30 06:12:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:12:05 - End Time 2024-12-30 06:12:05 [2024-12-30 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134292', 'tblTempUsageDetail_20' ) start [2024-12-30 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134292', 'tblTempUsageDetail_20' ) end [2024-12-30 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134292', 'tblTempVendorCDR_20' ) start [2024-12-30 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134292', 'tblTempVendorCDR_20' ) end [2024-12-30 06:12:18] Production.INFO: ProcessCDR(1,14134292,1,1,2) [2024-12-30 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134292', 'tblTempUsageDetail_20' ) start [2024-12-30 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134292', 'tblTempUsageDetail_20' ) end [2024-12-30 06:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:12:21] Production.INFO: ==23098== Releasing lock... [2024-12-30 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:12:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:13:04 [end_date_ymd] => 2024-12-30 06:13:04 [RateCDR] => 1 ) [2024-12-30 06:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 03:13:04' and `end` < '2024-12-30 06:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 06:13:17] Production.INFO: count ==24 [2024-12-30 06:13:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:13:04 - End Time 2024-12-30 06:13:04 [2024-12-30 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134297', 'tblTempUsageDetail_20' ) start [2024-12-30 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134297', 'tblTempUsageDetail_20' ) end [2024-12-30 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134297', 'tblTempVendorCDR_20' ) start [2024-12-30 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134297', 'tblTempVendorCDR_20' ) end [2024-12-30 06:13:17] Production.INFO: ProcessCDR(1,14134297,1,1,2) [2024-12-30 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134297', 'tblTempUsageDetail_20' ) start [2024-12-30 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134297', 'tblTempUsageDetail_20' ) end [2024-12-30 06:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:13:20] Production.INFO: ==23199== Releasing lock... [2024-12-30 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:13:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:14:05 [end_date_ymd] => 2024-12-30 06:14:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:14:05' and `end` < '2024-12-30 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-30 06:14:19] Production.INFO: count ==24 [2024-12-30 06:14:19] Production.ERROR: pbx CDR StartTime 2024-12-30 03:14:05 - End Time 2024-12-30 06:14:05 [2024-12-30 06:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134302', 'tblTempUsageDetail_20' ) start [2024-12-30 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134302', 'tblTempUsageDetail_20' ) end [2024-12-30 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134302', 'tblTempVendorCDR_20' ) start [2024-12-30 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134302', 'tblTempVendorCDR_20' ) end [2024-12-30 06:14:19] Production.INFO: ProcessCDR(1,14134302,1,1,2) [2024-12-30 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134302', 'tblTempUsageDetail_20' ) start [2024-12-30 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134302', 'tblTempUsageDetail_20' ) end [2024-12-30 06:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:14:22] Production.INFO: ==23286== Releasing lock... [2024-12-30 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:14:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:15:05 [end_date_ymd] => 2024-12-30 06:15:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:15:05' and `end` < '2024-12-30 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-30 06:15:17] Production.INFO: count ==24 [2024-12-30 06:15:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:15:05 - End Time 2024-12-30 06:15:05 [2024-12-30 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134307', 'tblTempUsageDetail_20' ) start [2024-12-30 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134307', 'tblTempUsageDetail_20' ) end [2024-12-30 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134307', 'tblTempVendorCDR_20' ) start [2024-12-30 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134307', 'tblTempVendorCDR_20' ) end [2024-12-30 06:15:17] Production.INFO: ProcessCDR(1,14134307,1,1,2) [2024-12-30 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134307', 'tblTempUsageDetail_20' ) start [2024-12-30 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134307', 'tblTempUsageDetail_20' ) end [2024-12-30 06:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:15:20] Production.INFO: ==23387== Releasing lock... [2024-12-30 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:15:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:16:05 [end_date_ymd] => 2024-12-30 06:16:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:16:05' and `end` < '2024-12-30 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-30 06:16:17] Production.INFO: count ==24 [2024-12-30 06:16:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:16:05 - End Time 2024-12-30 06:16:05 [2024-12-30 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134312', 'tblTempUsageDetail_20' ) start [2024-12-30 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134312', 'tblTempUsageDetail_20' ) end [2024-12-30 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134312', 'tblTempVendorCDR_20' ) start [2024-12-30 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134312', 'tblTempVendorCDR_20' ) end [2024-12-30 06:16:17] Production.INFO: ProcessCDR(1,14134312,1,1,2) [2024-12-30 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134312', 'tblTempUsageDetail_20' ) start [2024-12-30 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134312', 'tblTempUsageDetail_20' ) end [2024-12-30 06:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:16:20] Production.INFO: ==23500== Releasing lock... [2024-12-30 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:16:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:17:04 [end_date_ymd] => 2024-12-30 06:17:04 [RateCDR] => 1 ) [2024-12-30 06: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-30 03:17:04' and `end` < '2024-12-30 06: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-30 06:17:17] Production.INFO: count ==24 [2024-12-30 06:17:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:17:04 - End Time 2024-12-30 06:17:04 [2024-12-30 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134317', 'tblTempUsageDetail_20' ) start [2024-12-30 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134317', 'tblTempUsageDetail_20' ) end [2024-12-30 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134317', 'tblTempVendorCDR_20' ) start [2024-12-30 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134317', 'tblTempVendorCDR_20' ) end [2024-12-30 06:17:17] Production.INFO: ProcessCDR(1,14134317,1,1,2) [2024-12-30 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134317', 'tblTempUsageDetail_20' ) start [2024-12-30 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134317', 'tblTempUsageDetail_20' ) end [2024-12-30 06:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:17:20] Production.INFO: ==23575== Releasing lock... [2024-12-30 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:17:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:18:05 [end_date_ymd] => 2024-12-30 06:18:05 [RateCDR] => 1 ) [2024-12-30 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 03:18:05' and `end` < '2024-12-30 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 06:18:17] Production.INFO: count ==24 [2024-12-30 06:18:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:18:05 - End Time 2024-12-30 06:18:05 [2024-12-30 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134322', 'tblTempUsageDetail_20' ) start [2024-12-30 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134322', 'tblTempUsageDetail_20' ) end [2024-12-30 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134322', 'tblTempVendorCDR_20' ) start [2024-12-30 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134322', 'tblTempVendorCDR_20' ) end [2024-12-30 06:18:17] Production.INFO: ProcessCDR(1,14134322,1,1,2) [2024-12-30 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134322', 'tblTempUsageDetail_20' ) start [2024-12-30 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134322', 'tblTempUsageDetail_20' ) end [2024-12-30 06:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:18:20] Production.INFO: ==23648== Releasing lock... [2024-12-30 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:18:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:19:04 [end_date_ymd] => 2024-12-30 06:19:04 [RateCDR] => 1 ) [2024-12-30 06: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-30 03:19:04' and `end` < '2024-12-30 06: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-30 06:19:17] Production.INFO: count ==24 [2024-12-30 06:19:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:19:04 - End Time 2024-12-30 06:19:04 [2024-12-30 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134327', 'tblTempUsageDetail_20' ) start [2024-12-30 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134327', 'tblTempUsageDetail_20' ) end [2024-12-30 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134327', 'tblTempVendorCDR_20' ) start [2024-12-30 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134327', 'tblTempVendorCDR_20' ) end [2024-12-30 06:19:17] Production.INFO: ProcessCDR(1,14134327,1,1,2) [2024-12-30 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134327', 'tblTempUsageDetail_20' ) start [2024-12-30 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134327', 'tblTempUsageDetail_20' ) end [2024-12-30 06:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:19:20] Production.INFO: ==23721== Releasing lock... [2024-12-30 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:19:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:20:05 [end_date_ymd] => 2024-12-30 06:20:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:20:05' and `end` < '2024-12-30 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-30 06:20:17] Production.INFO: count ==22 [2024-12-30 06:20:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:20:05 - End Time 2024-12-30 06:20:05 [2024-12-30 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134333', 'tblTempUsageDetail_20' ) start [2024-12-30 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134333', 'tblTempUsageDetail_20' ) end [2024-12-30 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134333', 'tblTempVendorCDR_20' ) start [2024-12-30 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134333', 'tblTempVendorCDR_20' ) end [2024-12-30 06:20:17] Production.INFO: ProcessCDR(1,14134333,1,1,2) [2024-12-30 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134333', 'tblTempUsageDetail_20' ) start [2024-12-30 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134333', 'tblTempUsageDetail_20' ) end [2024-12-30 06:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:20:21] Production.INFO: ==23796== Releasing lock... [2024-12-30 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:20:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:21:05 [end_date_ymd] => 2024-12-30 06:21:05 [RateCDR] => 1 ) [2024-12-30 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 03:21:05' and `end` < '2024-12-30 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 06:21:17] Production.INFO: count ==22 [2024-12-30 06:21:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:21:05 - End Time 2024-12-30 06:21:05 [2024-12-30 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134338', 'tblTempUsageDetail_20' ) start [2024-12-30 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134338', 'tblTempUsageDetail_20' ) end [2024-12-30 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134338', 'tblTempVendorCDR_20' ) start [2024-12-30 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134338', 'tblTempVendorCDR_20' ) end [2024-12-30 06:21:17] Production.INFO: ProcessCDR(1,14134338,1,1,2) [2024-12-30 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134338', 'tblTempUsageDetail_20' ) start [2024-12-30 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134338', 'tblTempUsageDetail_20' ) end [2024-12-30 06:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:21:20] Production.INFO: ==23874== Releasing lock... [2024-12-30 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:21:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:22:04 [end_date_ymd] => 2024-12-30 06:22:04 [RateCDR] => 1 ) [2024-12-30 06: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-30 03:22:04' and `end` < '2024-12-30 06: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-30 06:22:17] Production.INFO: count ==22 [2024-12-30 06:22:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:22:04 - End Time 2024-12-30 06:22:04 [2024-12-30 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134343', 'tblTempUsageDetail_20' ) start [2024-12-30 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134343', 'tblTempUsageDetail_20' ) end [2024-12-30 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134343', 'tblTempVendorCDR_20' ) start [2024-12-30 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134343', 'tblTempVendorCDR_20' ) end [2024-12-30 06:22:17] Production.INFO: ProcessCDR(1,14134343,1,1,2) [2024-12-30 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134343', 'tblTempUsageDetail_20' ) start [2024-12-30 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134343', 'tblTempUsageDetail_20' ) end [2024-12-30 06:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:22:20] Production.INFO: ==23947== Releasing lock... [2024-12-30 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:22:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:23:05 [end_date_ymd] => 2024-12-30 06:23:05 [RateCDR] => 1 ) [2024-12-30 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 03:23:05' and `end` < '2024-12-30 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 06:23:18] Production.INFO: count ==22 [2024-12-30 06:23:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:23:05 - End Time 2024-12-30 06:23:05 [2024-12-30 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134348', 'tblTempUsageDetail_20' ) start [2024-12-30 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134348', 'tblTempUsageDetail_20' ) end [2024-12-30 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134348', 'tblTempVendorCDR_20' ) start [2024-12-30 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134348', 'tblTempVendorCDR_20' ) end [2024-12-30 06:23:18] Production.INFO: ProcessCDR(1,14134348,1,1,2) [2024-12-30 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134348', 'tblTempUsageDetail_20' ) start [2024-12-30 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134348', 'tblTempUsageDetail_20' ) end [2024-12-30 06:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:23:21] Production.INFO: ==24023== Releasing lock... [2024-12-30 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:23:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:24:05 [end_date_ymd] => 2024-12-30 06:24:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:24:05' and `end` < '2024-12-30 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-30 06:24:17] Production.INFO: count ==22 [2024-12-30 06:24:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:24:05 - End Time 2024-12-30 06:24:05 [2024-12-30 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134353', 'tblTempUsageDetail_20' ) start [2024-12-30 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134353', 'tblTempUsageDetail_20' ) end [2024-12-30 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134353', 'tblTempVendorCDR_20' ) start [2024-12-30 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134353', 'tblTempVendorCDR_20' ) end [2024-12-30 06:24:17] Production.INFO: ProcessCDR(1,14134353,1,1,2) [2024-12-30 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134353', 'tblTempUsageDetail_20' ) start [2024-12-30 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134353', 'tblTempUsageDetail_20' ) end [2024-12-30 06:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:24:20] Production.INFO: ==24093== Releasing lock... [2024-12-30 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:24:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:25:05 [end_date_ymd] => 2024-12-30 06:25:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:25:05' and `end` < '2024-12-30 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-30 06:25:18] Production.INFO: count ==22 [2024-12-30 06:25:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:25:05 - End Time 2024-12-30 06:25:05 [2024-12-30 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134358', 'tblTempUsageDetail_20' ) start [2024-12-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134358', 'tblTempUsageDetail_20' ) end [2024-12-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134358', 'tblTempVendorCDR_20' ) start [2024-12-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134358', 'tblTempVendorCDR_20' ) end [2024-12-30 06:25:18] Production.INFO: ProcessCDR(1,14134358,1,1,2) [2024-12-30 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134358', 'tblTempUsageDetail_20' ) start [2024-12-30 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134358', 'tblTempUsageDetail_20' ) end [2024-12-30 06:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:25:21] Production.INFO: ==24163== Releasing lock... [2024-12-30 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:25:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:26:05 [end_date_ymd] => 2024-12-30 06:26:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:26:05' and `end` < '2024-12-30 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-30 06:26:17] Production.INFO: count ==22 [2024-12-30 06:26:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:26:05 - End Time 2024-12-30 06:26:05 [2024-12-30 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134363', 'tblTempUsageDetail_20' ) start [2024-12-30 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134363', 'tblTempUsageDetail_20' ) end [2024-12-30 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134363', 'tblTempVendorCDR_20' ) start [2024-12-30 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134363', 'tblTempVendorCDR_20' ) end [2024-12-30 06:26:17] Production.INFO: ProcessCDR(1,14134363,1,1,2) [2024-12-30 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134363', 'tblTempUsageDetail_20' ) start [2024-12-30 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134363', 'tblTempUsageDetail_20' ) end [2024-12-30 06:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:26:21] Production.INFO: ==24237== Releasing lock... [2024-12-30 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:26:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:27:05 [end_date_ymd] => 2024-12-30 06:27:05 [RateCDR] => 1 ) [2024-12-30 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 03:27:05' and `end` < '2024-12-30 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 06:27:18] Production.INFO: count ==22 [2024-12-30 06:27:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:27:05 - End Time 2024-12-30 06:27:05 [2024-12-30 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134368', 'tblTempUsageDetail_20' ) start [2024-12-30 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134368', 'tblTempUsageDetail_20' ) end [2024-12-30 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134368', 'tblTempVendorCDR_20' ) start [2024-12-30 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134368', 'tblTempVendorCDR_20' ) end [2024-12-30 06:27:18] Production.INFO: ProcessCDR(1,14134368,1,1,2) [2024-12-30 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134368', 'tblTempUsageDetail_20' ) start [2024-12-30 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134368', 'tblTempUsageDetail_20' ) end [2024-12-30 06:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:27:21] Production.INFO: ==24308== Releasing lock... [2024-12-30 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:27:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:28:04 [end_date_ymd] => 2024-12-30 06:28:04 [RateCDR] => 1 ) [2024-12-30 06: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-30 03:28:04' and `end` < '2024-12-30 06:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 06:28:18] Production.INFO: count ==22 [2024-12-30 06:28:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:28:04 - End Time 2024-12-30 06:28:04 [2024-12-30 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134373', 'tblTempUsageDetail_20' ) start [2024-12-30 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134373', 'tblTempUsageDetail_20' ) end [2024-12-30 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134373', 'tblTempVendorCDR_20' ) start [2024-12-30 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134373', 'tblTempVendorCDR_20' ) end [2024-12-30 06:28:18] Production.INFO: ProcessCDR(1,14134373,1,1,2) [2024-12-30 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134373', 'tblTempUsageDetail_20' ) start [2024-12-30 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134373', 'tblTempUsageDetail_20' ) end [2024-12-30 06:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:28:21] Production.INFO: ==24379== Releasing lock... [2024-12-30 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:28:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:29:05 [end_date_ymd] => 2024-12-30 06:29:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:29:05' and `end` < '2024-12-30 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-30 06:29:18] Production.INFO: count ==22 [2024-12-30 06:29:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:29:05 - End Time 2024-12-30 06:29:05 [2024-12-30 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134378', 'tblTempUsageDetail_20' ) start [2024-12-30 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134378', 'tblTempUsageDetail_20' ) end [2024-12-30 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134378', 'tblTempVendorCDR_20' ) start [2024-12-30 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134378', 'tblTempVendorCDR_20' ) end [2024-12-30 06:29:18] Production.INFO: ProcessCDR(1,14134378,1,1,2) [2024-12-30 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134378', 'tblTempUsageDetail_20' ) start [2024-12-30 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134378', 'tblTempUsageDetail_20' ) end [2024-12-30 06:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:29:21] Production.INFO: ==24452== Releasing lock... [2024-12-30 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:29:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:30:05 [end_date_ymd] => 2024-12-30 06:30:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:30:05' and `end` < '2024-12-30 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-30 06:30:18] Production.INFO: count ==24 [2024-12-30 06:30:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:30:05 - End Time 2024-12-30 06:30:05 [2024-12-30 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134383', 'tblTempUsageDetail_20' ) start [2024-12-30 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134383', 'tblTempUsageDetail_20' ) end [2024-12-30 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134383', 'tblTempVendorCDR_20' ) start [2024-12-30 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134383', 'tblTempVendorCDR_20' ) end [2024-12-30 06:30:18] Production.INFO: ProcessCDR(1,14134383,1,1,2) [2024-12-30 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134383', 'tblTempUsageDetail_20' ) start [2024-12-30 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134383', 'tblTempUsageDetail_20' ) end [2024-12-30 06:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:30:21] Production.INFO: ==24526== Releasing lock... [2024-12-30 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:30:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:31:05 [end_date_ymd] => 2024-12-30 06:31:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:31:05' and `end` < '2024-12-30 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-30 06:31:17] Production.INFO: count ==25 [2024-12-30 06:31:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:31:05 - End Time 2024-12-30 06:31:05 [2024-12-30 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134389', 'tblTempUsageDetail_20' ) start [2024-12-30 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134389', 'tblTempUsageDetail_20' ) end [2024-12-30 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134389', 'tblTempVendorCDR_20' ) start [2024-12-30 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134389', 'tblTempVendorCDR_20' ) end [2024-12-30 06:31:17] Production.INFO: ProcessCDR(1,14134389,1,1,2) [2024-12-30 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134389', 'tblTempUsageDetail_20' ) start [2024-12-30 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134389', 'tblTempUsageDetail_20' ) end [2024-12-30 06:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:31:21] Production.INFO: ==24638== Releasing lock... [2024-12-30 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:31:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 06:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:32:04 [end_date_ymd] => 2024-12-30 06:32:04 [RateCDR] => 1 ) [2024-12-30 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-30 03:32:04' and `end` < '2024-12-30 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-30 06:32:17] Production.INFO: count ==25 [2024-12-30 06:32:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:32:04 - End Time 2024-12-30 06:32:04 [2024-12-30 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134394', 'tblTempUsageDetail_20' ) start [2024-12-30 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134394', 'tblTempUsageDetail_20' ) end [2024-12-30 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134394', 'tblTempVendorCDR_20' ) start [2024-12-30 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134394', 'tblTempVendorCDR_20' ) end [2024-12-30 06:32:17] Production.INFO: ProcessCDR(1,14134394,1,1,2) [2024-12-30 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134394', 'tblTempUsageDetail_20' ) start [2024-12-30 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134394', 'tblTempUsageDetail_20' ) end [2024-12-30 06:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:32:20] Production.INFO: ==24709== Releasing lock... [2024-12-30 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:32:20] Production.INFO: 28 MB #Memory Used# [2024-12-30 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:33:05 [end_date_ymd] => 2024-12-30 06:33:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:33:05' and `end` < '2024-12-30 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-30 06:33:17] Production.INFO: count ==25 [2024-12-30 06:33:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:33:05 - End Time 2024-12-30 06:33:05 [2024-12-30 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134399', 'tblTempUsageDetail_20' ) start [2024-12-30 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134399', 'tblTempUsageDetail_20' ) end [2024-12-30 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134399', 'tblTempVendorCDR_20' ) start [2024-12-30 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134399', 'tblTempVendorCDR_20' ) end [2024-12-30 06:33:17] Production.INFO: ProcessCDR(1,14134399,1,1,2) [2024-12-30 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134399', 'tblTempUsageDetail_20' ) start [2024-12-30 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134399', 'tblTempUsageDetail_20' ) end [2024-12-30 06:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:33:20] Production.INFO: ==24778== Releasing lock... [2024-12-30 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:33:20] Production.INFO: 28 MB #Memory Used# [2024-12-30 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:34:05 [end_date_ymd] => 2024-12-30 06:34:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:34:05' and `end` < '2024-12-30 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-30 06:34:18] Production.INFO: count ==25 [2024-12-30 06:34:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:34:05 - End Time 2024-12-30 06:34:05 [2024-12-30 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134404', 'tblTempUsageDetail_20' ) start [2024-12-30 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134404', 'tblTempUsageDetail_20' ) end [2024-12-30 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134404', 'tblTempVendorCDR_20' ) start [2024-12-30 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134404', 'tblTempVendorCDR_20' ) end [2024-12-30 06:34:18] Production.INFO: ProcessCDR(1,14134404,1,1,2) [2024-12-30 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134404', 'tblTempUsageDetail_20' ) start [2024-12-30 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134404', 'tblTempUsageDetail_20' ) end [2024-12-30 06:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:34:21] Production.INFO: ==24851== Releasing lock... [2024-12-30 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:34:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:35:05 [end_date_ymd] => 2024-12-30 06:35:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:35:05' and `end` < '2024-12-30 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-30 06:35:18] Production.INFO: count ==25 [2024-12-30 06:35:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:35:05 - End Time 2024-12-30 06:35:05 [2024-12-30 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134409', 'tblTempUsageDetail_20' ) start [2024-12-30 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134409', 'tblTempUsageDetail_20' ) end [2024-12-30 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134409', 'tblTempVendorCDR_20' ) start [2024-12-30 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134409', 'tblTempVendorCDR_20' ) end [2024-12-30 06:35:18] Production.INFO: ProcessCDR(1,14134409,1,1,2) [2024-12-30 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134409', 'tblTempUsageDetail_20' ) start [2024-12-30 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134409', 'tblTempUsageDetail_20' ) end [2024-12-30 06:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:35:21] Production.INFO: ==24923== Releasing lock... [2024-12-30 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:35:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 06:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:36:04 [end_date_ymd] => 2024-12-30 06:36:04 [RateCDR] => 1 ) [2024-12-30 06: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-30 03:36:04' and `end` < '2024-12-30 06: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-30 06:36:17] Production.INFO: count ==25 [2024-12-30 06:36:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:36:04 - End Time 2024-12-30 06:36:04 [2024-12-30 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134414', 'tblTempUsageDetail_20' ) start [2024-12-30 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134414', 'tblTempUsageDetail_20' ) end [2024-12-30 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134414', 'tblTempVendorCDR_20' ) start [2024-12-30 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134414', 'tblTempVendorCDR_20' ) end [2024-12-30 06:36:17] Production.INFO: ProcessCDR(1,14134414,1,1,2) [2024-12-30 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134414', 'tblTempUsageDetail_20' ) start [2024-12-30 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134414', 'tblTempUsageDetail_20' ) end [2024-12-30 06:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:36:20] Production.INFO: ==24996== Releasing lock... [2024-12-30 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:36:20] Production.INFO: 28 MB #Memory Used# [2024-12-30 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:37:05 [end_date_ymd] => 2024-12-30 06:37:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:37:05' and `end` < '2024-12-30 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-30 06:37:18] Production.INFO: count ==25 [2024-12-30 06:37:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:37:05 - End Time 2024-12-30 06:37:05 [2024-12-30 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134419', 'tblTempUsageDetail_20' ) start [2024-12-30 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134419', 'tblTempUsageDetail_20' ) end [2024-12-30 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134419', 'tblTempVendorCDR_20' ) start [2024-12-30 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134419', 'tblTempVendorCDR_20' ) end [2024-12-30 06:37:18] Production.INFO: ProcessCDR(1,14134419,1,1,2) [2024-12-30 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134419', 'tblTempUsageDetail_20' ) start [2024-12-30 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134419', 'tblTempUsageDetail_20' ) end [2024-12-30 06:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:37:21] Production.INFO: ==25069== Releasing lock... [2024-12-30 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:37:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:38:05 [end_date_ymd] => 2024-12-30 06:38:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:38:05' and `end` < '2024-12-30 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-30 06:38:19] Production.INFO: count ==25 [2024-12-30 06:38:19] Production.ERROR: pbx CDR StartTime 2024-12-30 03:38:05 - End Time 2024-12-30 06:38:05 [2024-12-30 06:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134424', 'tblTempUsageDetail_20' ) start [2024-12-30 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134424', 'tblTempUsageDetail_20' ) end [2024-12-30 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134424', 'tblTempVendorCDR_20' ) start [2024-12-30 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134424', 'tblTempVendorCDR_20' ) end [2024-12-30 06:38:19] Production.INFO: ProcessCDR(1,14134424,1,1,2) [2024-12-30 06:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134424', 'tblTempUsageDetail_20' ) start [2024-12-30 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134424', 'tblTempUsageDetail_20' ) end [2024-12-30 06:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:38:22] Production.INFO: ==25141== Releasing lock... [2024-12-30 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:38:22] Production.INFO: 28 MB #Memory Used# [2024-12-30 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:39:05 [end_date_ymd] => 2024-12-30 06:39:05 [RateCDR] => 1 ) [2024-12-30 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 03:39:05' and `end` < '2024-12-30 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 06:39:18] Production.INFO: count ==25 [2024-12-30 06:39:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:39:05 - End Time 2024-12-30 06:39:05 [2024-12-30 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134429', 'tblTempUsageDetail_20' ) start [2024-12-30 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134429', 'tblTempUsageDetail_20' ) end [2024-12-30 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134429', 'tblTempVendorCDR_20' ) start [2024-12-30 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134429', 'tblTempVendorCDR_20' ) end [2024-12-30 06:39:18] Production.INFO: ProcessCDR(1,14134429,1,1,2) [2024-12-30 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134429', 'tblTempUsageDetail_20' ) start [2024-12-30 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134429', 'tblTempUsageDetail_20' ) end [2024-12-30 06:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:39:21] Production.INFO: ==25211== Releasing lock... [2024-12-30 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:39:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:40:06 [end_date_ymd] => 2024-12-30 06:40:06 [RateCDR] => 1 ) [2024-12-30 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-30 03:40:06' and `end` < '2024-12-30 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-30 06:40:19] Production.INFO: count ==25 [2024-12-30 06:40:19] Production.ERROR: pbx CDR StartTime 2024-12-30 03:40:06 - End Time 2024-12-30 06:40:06 [2024-12-30 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134434', 'tblTempUsageDetail_20' ) start [2024-12-30 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134434', 'tblTempUsageDetail_20' ) end [2024-12-30 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134434', 'tblTempVendorCDR_20' ) start [2024-12-30 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134434', 'tblTempVendorCDR_20' ) end [2024-12-30 06:40:19] Production.INFO: ProcessCDR(1,14134434,1,1,2) [2024-12-30 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134434', 'tblTempUsageDetail_20' ) start [2024-12-30 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134434', 'tblTempUsageDetail_20' ) end [2024-12-30 06:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:40:22] Production.INFO: ==25285== Releasing lock... [2024-12-30 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:40:22] Production.INFO: 28 MB #Memory Used# [2024-12-30 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:41:05 [end_date_ymd] => 2024-12-30 06:41:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:41:05' and `end` < '2024-12-30 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-30 06:41:18] Production.INFO: count ==25 [2024-12-30 06:41:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:41:05 - End Time 2024-12-30 06:41:05 [2024-12-30 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134440', 'tblTempUsageDetail_20' ) start [2024-12-30 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134440', 'tblTempUsageDetail_20' ) end [2024-12-30 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134440', 'tblTempVendorCDR_20' ) start [2024-12-30 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134440', 'tblTempVendorCDR_20' ) end [2024-12-30 06:41:18] Production.INFO: ProcessCDR(1,14134440,1,1,2) [2024-12-30 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134440', 'tblTempUsageDetail_20' ) start [2024-12-30 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134440', 'tblTempUsageDetail_20' ) end [2024-12-30 06:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:41:21] Production.INFO: ==25358== Releasing lock... [2024-12-30 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:41:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:42:05 [end_date_ymd] => 2024-12-30 06:42:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:42:05' and `end` < '2024-12-30 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-30 06:42:18] Production.INFO: count ==24 [2024-12-30 06:42:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:42:05 - End Time 2024-12-30 06:42:05 [2024-12-30 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134445', 'tblTempUsageDetail_20' ) start [2024-12-30 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134445', 'tblTempUsageDetail_20' ) end [2024-12-30 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134445', 'tblTempVendorCDR_20' ) start [2024-12-30 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134445', 'tblTempVendorCDR_20' ) end [2024-12-30 06:42:18] Production.INFO: ProcessCDR(1,14134445,1,1,2) [2024-12-30 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134445', 'tblTempUsageDetail_20' ) start [2024-12-30 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134445', 'tblTempUsageDetail_20' ) end [2024-12-30 06:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:42:21] Production.INFO: ==25430== Releasing lock... [2024-12-30 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:42:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:43:05 [end_date_ymd] => 2024-12-30 06:43:05 [RateCDR] => 1 ) [2024-12-30 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 03:43:05' and `end` < '2024-12-30 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 06:43:18] Production.INFO: count ==24 [2024-12-30 06:43:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:43:05 - End Time 2024-12-30 06:43:05 [2024-12-30 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134450', 'tblTempUsageDetail_20' ) start [2024-12-30 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134450', 'tblTempUsageDetail_20' ) end [2024-12-30 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134450', 'tblTempVendorCDR_20' ) start [2024-12-30 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134450', 'tblTempVendorCDR_20' ) end [2024-12-30 06:43:18] Production.INFO: ProcessCDR(1,14134450,1,1,2) [2024-12-30 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134450', 'tblTempUsageDetail_20' ) start [2024-12-30 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134450', 'tblTempUsageDetail_20' ) end [2024-12-30 06:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:43:21] Production.INFO: ==25505== Releasing lock... [2024-12-30 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:43:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:44:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:44:06 [end_date_ymd] => 2024-12-30 06:44:06 [RateCDR] => 1 ) [2024-12-30 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-30 03:44:06' and `end` < '2024-12-30 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-30 06:44:19] Production.INFO: count ==24 [2024-12-30 06:44:19] Production.ERROR: pbx CDR StartTime 2024-12-30 03:44:06 - End Time 2024-12-30 06:44:06 [2024-12-30 06:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134455', 'tblTempUsageDetail_20' ) start [2024-12-30 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134455', 'tblTempUsageDetail_20' ) end [2024-12-30 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134455', 'tblTempVendorCDR_20' ) start [2024-12-30 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134455', 'tblTempVendorCDR_20' ) end [2024-12-30 06:44:19] Production.INFO: ProcessCDR(1,14134455,1,1,2) [2024-12-30 06:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134455', 'tblTempUsageDetail_20' ) start [2024-12-30 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134455', 'tblTempUsageDetail_20' ) end [2024-12-30 06:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:44:22] Production.INFO: ==25576== Releasing lock... [2024-12-30 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:44:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:45:05 [end_date_ymd] => 2024-12-30 06:45:05 [RateCDR] => 1 ) [2024-12-30 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 03:45:05' and `end` < '2024-12-30 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 06:45:18] Production.INFO: count ==24 [2024-12-30 06:45:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:45:05 - End Time 2024-12-30 06:45:05 [2024-12-30 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134460', 'tblTempUsageDetail_20' ) start [2024-12-30 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134460', 'tblTempUsageDetail_20' ) end [2024-12-30 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134460', 'tblTempVendorCDR_20' ) start [2024-12-30 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134460', 'tblTempVendorCDR_20' ) end [2024-12-30 06:45:18] Production.INFO: ProcessCDR(1,14134460,1,1,2) [2024-12-30 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134460', 'tblTempUsageDetail_20' ) start [2024-12-30 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134460', 'tblTempUsageDetail_20' ) end [2024-12-30 06:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:45:21] Production.INFO: ==25646== Releasing lock... [2024-12-30 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:45:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:46:04 [end_date_ymd] => 2024-12-30 06:46:04 [RateCDR] => 1 ) [2024-12-30 06:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 03:46:04' and `end` < '2024-12-30 06:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 06:46:17] Production.INFO: count ==24 [2024-12-30 06:46:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:46:04 - End Time 2024-12-30 06:46:04 [2024-12-30 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134465', 'tblTempUsageDetail_20' ) start [2024-12-30 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134465', 'tblTempUsageDetail_20' ) end [2024-12-30 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134465', 'tblTempVendorCDR_20' ) start [2024-12-30 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134465', 'tblTempVendorCDR_20' ) end [2024-12-30 06:46:17] Production.INFO: ProcessCDR(1,14134465,1,1,2) [2024-12-30 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134465', 'tblTempUsageDetail_20' ) start [2024-12-30 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134465', 'tblTempUsageDetail_20' ) end [2024-12-30 06:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:46:20] Production.INFO: ==25717== Releasing lock... [2024-12-30 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:46:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:47:05 [end_date_ymd] => 2024-12-30 06:47:05 [RateCDR] => 1 ) [2024-12-30 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 03:47:05' and `end` < '2024-12-30 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 06:47:18] Production.INFO: count ==24 [2024-12-30 06:47:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:47:05 - End Time 2024-12-30 06:47:05 [2024-12-30 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134470', 'tblTempUsageDetail_20' ) start [2024-12-30 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134470', 'tblTempUsageDetail_20' ) end [2024-12-30 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134470', 'tblTempVendorCDR_20' ) start [2024-12-30 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134470', 'tblTempVendorCDR_20' ) end [2024-12-30 06:47:18] Production.INFO: ProcessCDR(1,14134470,1,1,2) [2024-12-30 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134470', 'tblTempUsageDetail_20' ) start [2024-12-30 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134470', 'tblTempUsageDetail_20' ) end [2024-12-30 06:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:47:21] Production.INFO: ==25831== Releasing lock... [2024-12-30 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:47:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:48:05 [end_date_ymd] => 2024-12-30 06:48:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:48:05' and `end` < '2024-12-30 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-30 06:48:17] Production.INFO: count ==24 [2024-12-30 06:48:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:48:05 - End Time 2024-12-30 06:48:05 [2024-12-30 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134475', 'tblTempUsageDetail_20' ) start [2024-12-30 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134475', 'tblTempUsageDetail_20' ) end [2024-12-30 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134475', 'tblTempVendorCDR_20' ) start [2024-12-30 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134475', 'tblTempVendorCDR_20' ) end [2024-12-30 06:48:17] Production.INFO: ProcessCDR(1,14134475,1,1,2) [2024-12-30 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134475', 'tblTempUsageDetail_20' ) start [2024-12-30 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134475', 'tblTempUsageDetail_20' ) end [2024-12-30 06:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:48:20] Production.INFO: ==25900== Releasing lock... [2024-12-30 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:48:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:49:05 [end_date_ymd] => 2024-12-30 06:49:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:49:05' and `end` < '2024-12-30 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-30 06:49:18] Production.INFO: count ==24 [2024-12-30 06:49:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:49:05 - End Time 2024-12-30 06:49:05 [2024-12-30 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134480', 'tblTempUsageDetail_20' ) start [2024-12-30 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134480', 'tblTempUsageDetail_20' ) end [2024-12-30 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134480', 'tblTempVendorCDR_20' ) start [2024-12-30 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134480', 'tblTempVendorCDR_20' ) end [2024-12-30 06:49:18] Production.INFO: ProcessCDR(1,14134480,1,1,2) [2024-12-30 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134480', 'tblTempUsageDetail_20' ) start [2024-12-30 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134480', 'tblTempUsageDetail_20' ) end [2024-12-30 06:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:49:21] Production.INFO: ==25973== Releasing lock... [2024-12-30 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:49:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:50:05 [end_date_ymd] => 2024-12-30 06:50:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:50:05' and `end` < '2024-12-30 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-30 06:50:17] Production.INFO: count ==24 [2024-12-30 06:50:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:50:05 - End Time 2024-12-30 06:50:05 [2024-12-30 06:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134486', 'tblTempUsageDetail_20' ) start [2024-12-30 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134486', 'tblTempUsageDetail_20' ) end [2024-12-30 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134486', 'tblTempVendorCDR_20' ) start [2024-12-30 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134486', 'tblTempVendorCDR_20' ) end [2024-12-30 06:50:17] Production.INFO: ProcessCDR(1,14134486,1,1,2) [2024-12-30 06:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134486', 'tblTempUsageDetail_20' ) start [2024-12-30 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134486', 'tblTempUsageDetail_20' ) end [2024-12-30 06:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:50:21] Production.INFO: ==26059== Releasing lock... [2024-12-30 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:50:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:51:05 [end_date_ymd] => 2024-12-30 06:51:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:51:05' and `end` < '2024-12-30 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-30 06:51:18] Production.INFO: count ==24 [2024-12-30 06:51:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:51:05 - End Time 2024-12-30 06:51:05 [2024-12-30 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134491', 'tblTempUsageDetail_20' ) start [2024-12-30 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134491', 'tblTempUsageDetail_20' ) end [2024-12-30 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134491', 'tblTempVendorCDR_20' ) start [2024-12-30 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134491', 'tblTempVendorCDR_20' ) end [2024-12-30 06:51:18] Production.INFO: ProcessCDR(1,14134491,1,1,2) [2024-12-30 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134491', 'tblTempUsageDetail_20' ) start [2024-12-30 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134491', 'tblTempUsageDetail_20' ) end [2024-12-30 06:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:51:21] Production.INFO: ==26138== Releasing lock... [2024-12-30 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:51:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:52:04 [end_date_ymd] => 2024-12-30 06:52:04 [RateCDR] => 1 ) [2024-12-30 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-30 03:52:04' and `end` < '2024-12-30 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-30 06:52:17] Production.INFO: count ==24 [2024-12-30 06:52:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:52:04 - End Time 2024-12-30 06:52:04 [2024-12-30 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134496', 'tblTempUsageDetail_20' ) start [2024-12-30 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134496', 'tblTempUsageDetail_20' ) end [2024-12-30 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134496', 'tblTempVendorCDR_20' ) start [2024-12-30 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134496', 'tblTempVendorCDR_20' ) end [2024-12-30 06:52:18] Production.INFO: ProcessCDR(1,14134496,1,1,2) [2024-12-30 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134496', 'tblTempUsageDetail_20' ) start [2024-12-30 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134496', 'tblTempUsageDetail_20' ) end [2024-12-30 06:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:52:21] Production.INFO: ==26228== Releasing lock... [2024-12-30 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:52:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:53:05 [end_date_ymd] => 2024-12-30 06:53:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:53:05' and `end` < '2024-12-30 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-30 06:53:18] Production.INFO: count ==24 [2024-12-30 06:53:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:53:05 - End Time 2024-12-30 06:53:05 [2024-12-30 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134501', 'tblTempUsageDetail_20' ) start [2024-12-30 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134501', 'tblTempUsageDetail_20' ) end [2024-12-30 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134501', 'tblTempVendorCDR_20' ) start [2024-12-30 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134501', 'tblTempVendorCDR_20' ) end [2024-12-30 06:53:18] Production.INFO: ProcessCDR(1,14134501,1,1,2) [2024-12-30 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134501', 'tblTempUsageDetail_20' ) start [2024-12-30 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134501', 'tblTempUsageDetail_20' ) end [2024-12-30 06:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:53:21] Production.INFO: ==26319== Releasing lock... [2024-12-30 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:53:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:54:04 [end_date_ymd] => 2024-12-30 06:54:04 [RateCDR] => 1 ) [2024-12-30 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-30 03:54:04' and `end` < '2024-12-30 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-30 06:54:18] Production.INFO: count ==24 [2024-12-30 06:54:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:54:04 - End Time 2024-12-30 06:54:04 [2024-12-30 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134506', 'tblTempUsageDetail_20' ) start [2024-12-30 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134506', 'tblTempUsageDetail_20' ) end [2024-12-30 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134506', 'tblTempVendorCDR_20' ) start [2024-12-30 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134506', 'tblTempVendorCDR_20' ) end [2024-12-30 06:54:18] Production.INFO: ProcessCDR(1,14134506,1,1,2) [2024-12-30 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134506', 'tblTempUsageDetail_20' ) start [2024-12-30 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134506', 'tblTempUsageDetail_20' ) end [2024-12-30 06:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:54:21] Production.INFO: ==26414== Releasing lock... [2024-12-30 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:54:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:55:05 [end_date_ymd] => 2024-12-30 06:55:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:55:05' and `end` < '2024-12-30 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-30 06:55:17] Production.INFO: count ==24 [2024-12-30 06:55:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:55:05 - End Time 2024-12-30 06:55:05 [2024-12-30 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134511', 'tblTempUsageDetail_20' ) start [2024-12-30 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134511', 'tblTempUsageDetail_20' ) end [2024-12-30 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134511', 'tblTempVendorCDR_20' ) start [2024-12-30 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134511', 'tblTempVendorCDR_20' ) end [2024-12-30 06:55:17] Production.INFO: ProcessCDR(1,14134511,1,1,2) [2024-12-30 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134511', 'tblTempUsageDetail_20' ) start [2024-12-30 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134511', 'tblTempUsageDetail_20' ) end [2024-12-30 06:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:55:20] Production.INFO: ==26503== Releasing lock... [2024-12-30 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:55:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:56:05 [end_date_ymd] => 2024-12-30 06:56:05 [RateCDR] => 1 ) [2024-12-30 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 03:56:05' and `end` < '2024-12-30 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 06:56:18] Production.INFO: count ==24 [2024-12-30 06:56:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:56:05 - End Time 2024-12-30 06:56:05 [2024-12-30 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134516', 'tblTempUsageDetail_20' ) start [2024-12-30 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134516', 'tblTempUsageDetail_20' ) end [2024-12-30 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134516', 'tblTempVendorCDR_20' ) start [2024-12-30 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134516', 'tblTempVendorCDR_20' ) end [2024-12-30 06:56:18] Production.INFO: ProcessCDR(1,14134516,1,1,2) [2024-12-30 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134516', 'tblTempUsageDetail_20' ) start [2024-12-30 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134516', 'tblTempUsageDetail_20' ) end [2024-12-30 06:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:56:21] Production.INFO: ==26597== Releasing lock... [2024-12-30 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:56:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:57:05 [end_date_ymd] => 2024-12-30 06:57:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:57:05' and `end` < '2024-12-30 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-30 06:57:18] Production.INFO: count ==24 [2024-12-30 06:57:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:57:05 - End Time 2024-12-30 06:57:05 [2024-12-30 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134521', 'tblTempUsageDetail_20' ) start [2024-12-30 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134521', 'tblTempUsageDetail_20' ) end [2024-12-30 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134521', 'tblTempVendorCDR_20' ) start [2024-12-30 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134521', 'tblTempVendorCDR_20' ) end [2024-12-30 06:57:18] Production.INFO: ProcessCDR(1,14134521,1,1,2) [2024-12-30 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134521', 'tblTempUsageDetail_20' ) start [2024-12-30 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134521', 'tblTempUsageDetail_20' ) end [2024-12-30 06:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:57:21] Production.INFO: ==26697== Releasing lock... [2024-12-30 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:57:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:58:04 [end_date_ymd] => 2024-12-30 06:58:04 [RateCDR] => 1 ) [2024-12-30 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-30 03:58:04' and `end` < '2024-12-30 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-30 06:58:17] Production.INFO: count ==24 [2024-12-30 06:58:17] Production.ERROR: pbx CDR StartTime 2024-12-30 03:58:04 - End Time 2024-12-30 06:58:04 [2024-12-30 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134526', 'tblTempUsageDetail_20' ) start [2024-12-30 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134526', 'tblTempUsageDetail_20' ) end [2024-12-30 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134526', 'tblTempVendorCDR_20' ) start [2024-12-30 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134526', 'tblTempVendorCDR_20' ) end [2024-12-30 06:58:17] Production.INFO: ProcessCDR(1,14134526,1,1,2) [2024-12-30 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134526', 'tblTempUsageDetail_20' ) start [2024-12-30 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134526', 'tblTempUsageDetail_20' ) end [2024-12-30 06:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:58:20] Production.INFO: ==26791== Releasing lock... [2024-12-30 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:58:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 03:59:05 [end_date_ymd] => 2024-12-30 06:59:05 [RateCDR] => 1 ) [2024-12-30 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-30 03:59:05' and `end` < '2024-12-30 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 06:59:18] Production.INFO: count ==24 [2024-12-30 06:59:18] Production.ERROR: pbx CDR StartTime 2024-12-30 03:59:05 - End Time 2024-12-30 06:59:05 [2024-12-30 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134531', 'tblTempUsageDetail_20' ) start [2024-12-30 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134531', 'tblTempUsageDetail_20' ) end [2024-12-30 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134531', 'tblTempVendorCDR_20' ) start [2024-12-30 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134531', 'tblTempVendorCDR_20' ) end [2024-12-30 06:59:18] Production.INFO: ProcessCDR(1,14134531,1,1,2) [2024-12-30 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134531', 'tblTempUsageDetail_20' ) start [2024-12-30 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134531', 'tblTempUsageDetail_20' ) end [2024-12-30 06:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 06:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 06:59:21] Production.INFO: ==26877== Releasing lock... [2024-12-30 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 06:59:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:00:05 [end_date_ymd] => 2024-12-30 07:00:05 [RateCDR] => 1 ) [2024-12-30 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 04:00:05' and `end` < '2024-12-30 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 07:00:17] Production.INFO: count ==24 [2024-12-30 07:00:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:00:05 - End Time 2024-12-30 07:00:05 [2024-12-30 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134537', 'tblTempUsageDetail_20' ) start [2024-12-30 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134537', 'tblTempUsageDetail_20' ) end [2024-12-30 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134537', 'tblTempVendorCDR_20' ) start [2024-12-30 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134537', 'tblTempVendorCDR_20' ) end [2024-12-30 07:00:17] Production.INFO: ProcessCDR(1,14134537,1,1,2) [2024-12-30 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134537', 'tblTempUsageDetail_20' ) start [2024-12-30 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134537', 'tblTempUsageDetail_20' ) end [2024-12-30 07:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:00:21] Production.INFO: ==26972== Releasing lock... [2024-12-30 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:00:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:01:05 [end_date_ymd] => 2024-12-30 07:01:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:01:05' and `end` < '2024-12-30 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-30 07:01:20] Production.INFO: count ==24 [2024-12-30 07:01:20] Production.ERROR: pbx CDR StartTime 2024-12-30 04:01:05 - End Time 2024-12-30 07:01:05 [2024-12-30 07:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134542', 'tblTempUsageDetail_20' ) start [2024-12-30 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134542', 'tblTempUsageDetail_20' ) end [2024-12-30 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134542', 'tblTempVendorCDR_20' ) start [2024-12-30 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134542', 'tblTempVendorCDR_20' ) end [2024-12-30 07:01:20] Production.INFO: ProcessCDR(1,14134542,1,1,2) [2024-12-30 07:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134542', 'tblTempUsageDetail_20' ) start [2024-12-30 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134542', 'tblTempUsageDetail_20' ) end [2024-12-30 07:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:01:23] Production.INFO: ==27075== Releasing lock... [2024-12-30 07:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:01:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:02:05 [end_date_ymd] => 2024-12-30 07:02:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:02:05' and `end` < '2024-12-30 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-30 07:02:19] Production.INFO: count ==24 [2024-12-30 07:02:19] Production.ERROR: pbx CDR StartTime 2024-12-30 04:02:05 - End Time 2024-12-30 07:02:05 [2024-12-30 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134547', 'tblTempUsageDetail_20' ) start [2024-12-30 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134547', 'tblTempUsageDetail_20' ) end [2024-12-30 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134547', 'tblTempVendorCDR_20' ) start [2024-12-30 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134547', 'tblTempVendorCDR_20' ) end [2024-12-30 07:02:19] Production.INFO: ProcessCDR(1,14134547,1,1,2) [2024-12-30 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134547', 'tblTempUsageDetail_20' ) start [2024-12-30 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134547', 'tblTempUsageDetail_20' ) end [2024-12-30 07:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:02:22] Production.INFO: ==27235== Releasing lock... [2024-12-30 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:02:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:03:05 [end_date_ymd] => 2024-12-30 07:03:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:03:05' and `end` < '2024-12-30 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-30 07:03:18] Production.INFO: count ==24 [2024-12-30 07:03:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:03:05 - End Time 2024-12-30 07:03:05 [2024-12-30 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134552', 'tblTempUsageDetail_20' ) start [2024-12-30 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134552', 'tblTempUsageDetail_20' ) end [2024-12-30 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134552', 'tblTempVendorCDR_20' ) start [2024-12-30 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134552', 'tblTempVendorCDR_20' ) end [2024-12-30 07:03:18] Production.INFO: ProcessCDR(1,14134552,1,1,2) [2024-12-30 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134552', 'tblTempUsageDetail_20' ) start [2024-12-30 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134552', 'tblTempUsageDetail_20' ) end [2024-12-30 07:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:03:21] Production.INFO: ==27357== Releasing lock... [2024-12-30 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:03:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:04:05 [end_date_ymd] => 2024-12-30 07:04:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:04:05' and `end` < '2024-12-30 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-30 07:04:18] Production.INFO: count ==24 [2024-12-30 07:04:19] Production.ERROR: pbx CDR StartTime 2024-12-30 04:04:05 - End Time 2024-12-30 07:04:05 [2024-12-30 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134557', 'tblTempUsageDetail_20' ) start [2024-12-30 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134557', 'tblTempUsageDetail_20' ) end [2024-12-30 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134557', 'tblTempVendorCDR_20' ) start [2024-12-30 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134557', 'tblTempVendorCDR_20' ) end [2024-12-30 07:04:19] Production.INFO: ProcessCDR(1,14134557,1,1,2) [2024-12-30 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134557', 'tblTempUsageDetail_20' ) start [2024-12-30 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134557', 'tblTempUsageDetail_20' ) end [2024-12-30 07:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:04:22] Production.INFO: ==27441== Releasing lock... [2024-12-30 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:04:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 07:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:05:04 [end_date_ymd] => 2024-12-30 07:05:04 [RateCDR] => 1 ) [2024-12-30 07: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-30 04:05:04' and `end` < '2024-12-30 07: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-30 07:05:18] Production.INFO: count ==24 [2024-12-30 07:05:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:05:04 - End Time 2024-12-30 07:05:04 [2024-12-30 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134562', 'tblTempUsageDetail_20' ) start [2024-12-30 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134562', 'tblTempUsageDetail_20' ) end [2024-12-30 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134562', 'tblTempVendorCDR_20' ) start [2024-12-30 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134562', 'tblTempVendorCDR_20' ) end [2024-12-30 07:05:18] Production.INFO: ProcessCDR(1,14134562,1,1,2) [2024-12-30 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134562', 'tblTempUsageDetail_20' ) start [2024-12-30 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134562', 'tblTempUsageDetail_20' ) end [2024-12-30 07:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:05:21] Production.INFO: ==27602== Releasing lock... [2024-12-30 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:05:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:06:06 [end_date_ymd] => 2024-12-30 07:06:06 [RateCDR] => 1 ) [2024-12-30 07:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 04:06:06' and `end` < '2024-12-30 07:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 07:06:19] Production.INFO: count ==30 [2024-12-30 07:06:19] Production.ERROR: pbx CDR StartTime 2024-12-30 04:06:06 - End Time 2024-12-30 07:06:06 [2024-12-30 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134567', 'tblTempUsageDetail_20' ) start [2024-12-30 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134567', 'tblTempUsageDetail_20' ) end [2024-12-30 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134567', 'tblTempVendorCDR_20' ) start [2024-12-30 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134567', 'tblTempVendorCDR_20' ) end [2024-12-30 07:06:19] Production.INFO: ProcessCDR(1,14134567,1,1,2) [2024-12-30 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134567', 'tblTempUsageDetail_20' ) start [2024-12-30 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134567', 'tblTempUsageDetail_20' ) end [2024-12-30 07:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:06:23] Production.INFO: ==27687== Releasing lock... [2024-12-30 07:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:06:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:07:05 [end_date_ymd] => 2024-12-30 07:07:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:07:05' and `end` < '2024-12-30 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-30 07:07:19] Production.INFO: count ==30 [2024-12-30 07:07:19] Production.ERROR: pbx CDR StartTime 2024-12-30 04:07:05 - End Time 2024-12-30 07:07:05 [2024-12-30 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134572', 'tblTempUsageDetail_20' ) start [2024-12-30 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134572', 'tblTempUsageDetail_20' ) end [2024-12-30 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134572', 'tblTempVendorCDR_20' ) start [2024-12-30 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134572', 'tblTempVendorCDR_20' ) end [2024-12-30 07:07:19] Production.INFO: ProcessCDR(1,14134572,1,1,2) [2024-12-30 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134572', 'tblTempUsageDetail_20' ) start [2024-12-30 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134572', 'tblTempUsageDetail_20' ) end [2024-12-30 07:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:07:22] Production.INFO: ==27771== Releasing lock... [2024-12-30 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:07:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:08:05 [end_date_ymd] => 2024-12-30 07:08:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:08:05' and `end` < '2024-12-30 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-30 07:08:20] Production.INFO: count ==30 [2024-12-30 07:08:20] Production.ERROR: pbx CDR StartTime 2024-12-30 04:08:05 - End Time 2024-12-30 07:08:05 [2024-12-30 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134577', 'tblTempUsageDetail_20' ) start [2024-12-30 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134577', 'tblTempUsageDetail_20' ) end [2024-12-30 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134577', 'tblTempVendorCDR_20' ) start [2024-12-30 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134577', 'tblTempVendorCDR_20' ) end [2024-12-30 07:08:20] Production.INFO: ProcessCDR(1,14134577,1,1,2) [2024-12-30 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134577', 'tblTempUsageDetail_20' ) start [2024-12-30 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134577', 'tblTempUsageDetail_20' ) end [2024-12-30 07:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:08:23] Production.INFO: ==27850== Releasing lock... [2024-12-30 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:08:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 07:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:09:04 [end_date_ymd] => 2024-12-30 07:09:04 [RateCDR] => 1 ) [2024-12-30 07: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-30 04:09:04' and `end` < '2024-12-30 07: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-30 07:09:19] Production.INFO: count ==30 [2024-12-30 07:09:19] Production.ERROR: pbx CDR StartTime 2024-12-30 04:09:04 - End Time 2024-12-30 07:09:04 [2024-12-30 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134582', 'tblTempUsageDetail_20' ) start [2024-12-30 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134582', 'tblTempUsageDetail_20' ) end [2024-12-30 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134582', 'tblTempVendorCDR_20' ) start [2024-12-30 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134582', 'tblTempVendorCDR_20' ) end [2024-12-30 07:09:19] Production.INFO: ProcessCDR(1,14134582,1,1,2) [2024-12-30 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134582', 'tblTempUsageDetail_20' ) start [2024-12-30 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134582', 'tblTempUsageDetail_20' ) end [2024-12-30 07:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:09:22] Production.INFO: ==28014== Releasing lock... [2024-12-30 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:09:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:10:06 [end_date_ymd] => 2024-12-30 07:10:06 [RateCDR] => 1 ) [2024-12-30 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-30 04:10:06' and `end` < '2024-12-30 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-30 07:10:20] Production.INFO: count ==22 [2024-12-30 07:10:20] Production.ERROR: pbx CDR StartTime 2024-12-30 04:10:06 - End Time 2024-12-30 07:10:06 [2024-12-30 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134587', 'tblTempUsageDetail_20' ) start [2024-12-30 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134587', 'tblTempUsageDetail_20' ) end [2024-12-30 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134587', 'tblTempVendorCDR_20' ) start [2024-12-30 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134587', 'tblTempVendorCDR_20' ) end [2024-12-30 07:10:20] Production.INFO: ProcessCDR(1,14134587,1,1,2) [2024-12-30 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134587', 'tblTempUsageDetail_20' ) start [2024-12-30 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134587', 'tblTempUsageDetail_20' ) end [2024-12-30 07:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:10:23] Production.INFO: ==28096== Releasing lock... [2024-12-30 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:10:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:11:05 [end_date_ymd] => 2024-12-30 07:11:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:11:05' and `end` < '2024-12-30 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-30 07:11:18] Production.INFO: count ==22 [2024-12-30 07:11:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:11:05 - End Time 2024-12-30 07:11:05 [2024-12-30 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134593', 'tblTempUsageDetail_20' ) start [2024-12-30 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134593', 'tblTempUsageDetail_20' ) end [2024-12-30 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134593', 'tblTempVendorCDR_20' ) start [2024-12-30 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134593', 'tblTempVendorCDR_20' ) end [2024-12-30 07:11:18] Production.INFO: ProcessCDR(1,14134593,1,1,2) [2024-12-30 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134593', 'tblTempUsageDetail_20' ) start [2024-12-30 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134593', 'tblTempUsageDetail_20' ) end [2024-12-30 07:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:11:21] Production.INFO: ==28176== Releasing lock... [2024-12-30 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:11:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:12:05 [end_date_ymd] => 2024-12-30 07:12:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:12:05' and `end` < '2024-12-30 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-30 07:12:18] Production.INFO: count ==22 [2024-12-30 07:12:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:12:05 - End Time 2024-12-30 07:12:05 [2024-12-30 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134598', 'tblTempUsageDetail_20' ) start [2024-12-30 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134598', 'tblTempUsageDetail_20' ) end [2024-12-30 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134598', 'tblTempVendorCDR_20' ) start [2024-12-30 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134598', 'tblTempVendorCDR_20' ) end [2024-12-30 07:12:18] Production.INFO: ProcessCDR(1,14134598,1,1,2) [2024-12-30 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134598', 'tblTempUsageDetail_20' ) start [2024-12-30 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134598', 'tblTempUsageDetail_20' ) end [2024-12-30 07:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:12:21] Production.INFO: ==28336== Releasing lock... [2024-12-30 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:12:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:13:05 [end_date_ymd] => 2024-12-30 07:13:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:13:05' and `end` < '2024-12-30 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-30 07:13:18] Production.INFO: count ==22 [2024-12-30 07:13:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:13:05 - End Time 2024-12-30 07:13:05 [2024-12-30 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134603', 'tblTempUsageDetail_20' ) start [2024-12-30 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134603', 'tblTempUsageDetail_20' ) end [2024-12-30 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134603', 'tblTempVendorCDR_20' ) start [2024-12-30 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134603', 'tblTempVendorCDR_20' ) end [2024-12-30 07:13:18] Production.INFO: ProcessCDR(1,14134603,1,1,2) [2024-12-30 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134603', 'tblTempUsageDetail_20' ) start [2024-12-30 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134603', 'tblTempUsageDetail_20' ) end [2024-12-30 07:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:13:21] Production.INFO: ==28413== Releasing lock... [2024-12-30 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:13:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-30 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:14:05 [end_date_ymd] => 2024-12-30 07:14:05 [RateCDR] => 1 ) [2024-12-30 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 04:14:05' and `end` < '2024-12-30 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 07:14:21] Production.INFO: count ==29 [2024-12-30 07:14:21] Production.ERROR: pbx CDR StartTime 2024-12-30 04:14:05 - End Time 2024-12-30 07:14:05 [2024-12-30 07:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134608', 'tblTempUsageDetail_20' ) start [2024-12-30 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134608', 'tblTempUsageDetail_20' ) end [2024-12-30 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134608', 'tblTempVendorCDR_20' ) start [2024-12-30 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134608', 'tblTempVendorCDR_20' ) end [2024-12-30 07:14:21] Production.INFO: ProcessCDR(1,14134608,1,1,2) [2024-12-30 07:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134608', 'tblTempUsageDetail_20' ) start [2024-12-30 07:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134608', 'tblTempUsageDetail_20' ) end [2024-12-30 07:14:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:14:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:14:26] Production.INFO: ==28491== Releasing lock... [2024-12-30 07:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:14:26] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:15:05 [end_date_ymd] => 2024-12-30 07:15:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:15:05' and `end` < '2024-12-30 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-30 07:15:18] Production.INFO: count ==29 [2024-12-30 07:15:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:15:05 - End Time 2024-12-30 07:15:05 [2024-12-30 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134613', 'tblTempUsageDetail_20' ) start [2024-12-30 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134613', 'tblTempUsageDetail_20' ) end [2024-12-30 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134613', 'tblTempVendorCDR_20' ) start [2024-12-30 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134613', 'tblTempVendorCDR_20' ) end [2024-12-30 07:15:18] Production.INFO: ProcessCDR(1,14134613,1,1,2) [2024-12-30 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134613', 'tblTempUsageDetail_20' ) start [2024-12-30 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134613', 'tblTempUsageDetail_20' ) end [2024-12-30 07:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:15:21] Production.INFO: ==28566== Releasing lock... [2024-12-30 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:15:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:16:05 [end_date_ymd] => 2024-12-30 07:16:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:16:05' and `end` < '2024-12-30 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-30 07:16:19] Production.INFO: count ==30 [2024-12-30 07:16:19] Production.ERROR: pbx CDR StartTime 2024-12-30 04:16:05 - End Time 2024-12-30 07:16:05 [2024-12-30 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134618', 'tblTempUsageDetail_20' ) start [2024-12-30 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134618', 'tblTempUsageDetail_20' ) end [2024-12-30 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134618', 'tblTempVendorCDR_20' ) start [2024-12-30 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134618', 'tblTempVendorCDR_20' ) end [2024-12-30 07:16:19] Production.INFO: ProcessCDR(1,14134618,1,1,2) [2024-12-30 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134618', 'tblTempUsageDetail_20' ) start [2024-12-30 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134618', 'tblTempUsageDetail_20' ) end [2024-12-30 07:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:16:22] Production.INFO: ==28718== Releasing lock... [2024-12-30 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:16:22] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:17:05 [end_date_ymd] => 2024-12-30 07:17:05 [RateCDR] => 1 ) [2024-12-30 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 04:17:05' and `end` < '2024-12-30 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 07:17:20] Production.INFO: count ==30 [2024-12-30 07:17:20] Production.ERROR: pbx CDR StartTime 2024-12-30 04:17:05 - End Time 2024-12-30 07:17:05 [2024-12-30 07:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134623', 'tblTempUsageDetail_20' ) start [2024-12-30 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134623', 'tblTempUsageDetail_20' ) end [2024-12-30 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134623', 'tblTempVendorCDR_20' ) start [2024-12-30 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134623', 'tblTempVendorCDR_20' ) end [2024-12-30 07:17:20] Production.INFO: ProcessCDR(1,14134623,1,1,2) [2024-12-30 07:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134623', 'tblTempUsageDetail_20' ) start [2024-12-30 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134623', 'tblTempUsageDetail_20' ) end [2024-12-30 07:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:17:23] Production.INFO: ==28786== Releasing lock... [2024-12-30 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:17:23] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:18:05 [end_date_ymd] => 2024-12-30 07:18:05 [RateCDR] => 1 ) [2024-12-30 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 04:18:05' and `end` < '2024-12-30 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 07:18:18] Production.INFO: count ==35 [2024-12-30 07:18:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:18:05 - End Time 2024-12-30 07:18:05 [2024-12-30 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134628', 'tblTempUsageDetail_20' ) start [2024-12-30 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134628', 'tblTempUsageDetail_20' ) end [2024-12-30 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134628', 'tblTempVendorCDR_20' ) start [2024-12-30 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134628', 'tblTempVendorCDR_20' ) end [2024-12-30 07:18:18] Production.INFO: ProcessCDR(1,14134628,1,1,2) [2024-12-30 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134628', 'tblTempUsageDetail_20' ) start [2024-12-30 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134628', 'tblTempUsageDetail_20' ) end [2024-12-30 07:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:18:22] Production.INFO: ==28895== Releasing lock... [2024-12-30 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:18:22] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:19:04 [end_date_ymd] => 2024-12-30 07:19:04 [RateCDR] => 1 ) [2024-12-30 07: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-30 04:19:04' and `end` < '2024-12-30 07: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-30 07:19:18] Production.INFO: count ==35 [2024-12-30 07:19:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:19:04 - End Time 2024-12-30 07:19:04 [2024-12-30 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134633', 'tblTempUsageDetail_20' ) start [2024-12-30 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134633', 'tblTempUsageDetail_20' ) end [2024-12-30 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134633', 'tblTempVendorCDR_20' ) start [2024-12-30 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134633', 'tblTempVendorCDR_20' ) end [2024-12-30 07:19:18] Production.INFO: ProcessCDR(1,14134633,1,1,2) [2024-12-30 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134633', 'tblTempUsageDetail_20' ) start [2024-12-30 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134633', 'tblTempUsageDetail_20' ) end [2024-12-30 07:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:19:21] Production.INFO: ==28982== Releasing lock... [2024-12-30 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:19:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:20:05 [end_date_ymd] => 2024-12-30 07:20:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:20:05' and `end` < '2024-12-30 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-30 07:20:18] Production.INFO: count ==35 [2024-12-30 07:20:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:20:05 - End Time 2024-12-30 07:20:05 [2024-12-30 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134639', 'tblTempUsageDetail_20' ) start [2024-12-30 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134639', 'tblTempUsageDetail_20' ) end [2024-12-30 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134639', 'tblTempVendorCDR_20' ) start [2024-12-30 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134639', 'tblTempVendorCDR_20' ) end [2024-12-30 07:20:18] Production.INFO: ProcessCDR(1,14134639,1,1,2) [2024-12-30 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134639', 'tblTempUsageDetail_20' ) start [2024-12-30 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134639', 'tblTempUsageDetail_20' ) end [2024-12-30 07:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:20:21] Production.INFO: ==29059== Releasing lock... [2024-12-30 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:20:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:21:05 [end_date_ymd] => 2024-12-30 07:21:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:21:05' and `end` < '2024-12-30 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-30 07:21:42] Production.INFO: count ==35 [2024-12-30 07:21:42] Production.ERROR: pbx CDR StartTime 2024-12-30 04:21:05 - End Time 2024-12-30 07:21:05 [2024-12-30 07:21:42] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:21:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134644', 'tblTempUsageDetail_20' ) start [2024-12-30 07:21:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134644', 'tblTempUsageDetail_20' ) end [2024-12-30 07:21:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134644', 'tblTempVendorCDR_20' ) start [2024-12-30 07:21:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134644', 'tblTempVendorCDR_20' ) end [2024-12-30 07:21:43] Production.INFO: ProcessCDR(1,14134644,1,1,2) [2024-12-30 07:21:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:21:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:21:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:21:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:21:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134644', 'tblTempUsageDetail_20' ) start [2024-12-30 07:21:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134644', 'tblTempUsageDetail_20' ) end [2024-12-30 07:21:46] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:21:46] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:21:46] Production.INFO: ==29132== Releasing lock... [2024-12-30 07:21:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:21:46] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:22:05 [end_date_ymd] => 2024-12-30 07:22:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:22:05' and `end` < '2024-12-30 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-30 07:22:17] Production.INFO: count ==35 [2024-12-30 07:22:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:22:05 - End Time 2024-12-30 07:22:05 [2024-12-30 07:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134649', 'tblTempUsageDetail_20' ) start [2024-12-30 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134649', 'tblTempUsageDetail_20' ) end [2024-12-30 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134649', 'tblTempVendorCDR_20' ) start [2024-12-30 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134649', 'tblTempVendorCDR_20' ) end [2024-12-30 07:22:17] Production.INFO: ProcessCDR(1,14134649,1,1,2) [2024-12-30 07:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134649', 'tblTempUsageDetail_20' ) start [2024-12-30 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134649', 'tblTempUsageDetail_20' ) end [2024-12-30 07:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:22:20] Production.INFO: ==29202== Releasing lock... [2024-12-30 07:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:22:20] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:23:05 [end_date_ymd] => 2024-12-30 07:23:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:23:05' and `end` < '2024-12-30 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 07:23:19] Production.INFO: count ==35 [2024-12-30 07:23:19] Production.ERROR: pbx CDR StartTime 2024-12-30 04:23:05 - End Time 2024-12-30 07:23:05 [2024-12-30 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134654', 'tblTempUsageDetail_20' ) start [2024-12-30 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134654', 'tblTempUsageDetail_20' ) end [2024-12-30 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134654', 'tblTempVendorCDR_20' ) start [2024-12-30 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134654', 'tblTempVendorCDR_20' ) end [2024-12-30 07:23:19] Production.INFO: ProcessCDR(1,14134654,1,1,2) [2024-12-30 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134654', 'tblTempUsageDetail_20' ) start [2024-12-30 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134654', 'tblTempUsageDetail_20' ) end [2024-12-30 07:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:23:22] Production.INFO: ==29273== Releasing lock... [2024-12-30 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:23:22] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:24:05 [end_date_ymd] => 2024-12-30 07:24:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:24:05' and `end` < '2024-12-30 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-30 07:24:17] Production.INFO: count ==35 [2024-12-30 07:24:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:24:05 - End Time 2024-12-30 07:24:05 [2024-12-30 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134659', 'tblTempUsageDetail_20' ) start [2024-12-30 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134659', 'tblTempUsageDetail_20' ) end [2024-12-30 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134659', 'tblTempVendorCDR_20' ) start [2024-12-30 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134659', 'tblTempVendorCDR_20' ) end [2024-12-30 07:24:17] Production.INFO: ProcessCDR(1,14134659,1,1,2) [2024-12-30 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134659', 'tblTempUsageDetail_20' ) start [2024-12-30 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134659', 'tblTempUsageDetail_20' ) end [2024-12-30 07:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:24:20] Production.INFO: ==29346== Releasing lock... [2024-12-30 07:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:24:20] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:25:05 [end_date_ymd] => 2024-12-30 07:25:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:25:05' and `end` < '2024-12-30 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-30 07:25:17] Production.INFO: count ==35 [2024-12-30 07:25:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:25:05 - End Time 2024-12-30 07:25:05 [2024-12-30 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134664', 'tblTempUsageDetail_20' ) start [2024-12-30 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134664', 'tblTempUsageDetail_20' ) end [2024-12-30 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134664', 'tblTempVendorCDR_20' ) start [2024-12-30 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134664', 'tblTempVendorCDR_20' ) end [2024-12-30 07:25:17] Production.INFO: ProcessCDR(1,14134664,1,1,2) [2024-12-30 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134664', 'tblTempUsageDetail_20' ) start [2024-12-30 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134664', 'tblTempUsageDetail_20' ) end [2024-12-30 07:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:25:21] Production.INFO: ==29418== Releasing lock... [2024-12-30 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:25:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:26:05 [end_date_ymd] => 2024-12-30 07:26:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:26:05' and `end` < '2024-12-30 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-30 07:26:17] Production.INFO: count ==35 [2024-12-30 07:26:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:26:05 - End Time 2024-12-30 07:26:05 [2024-12-30 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134669', 'tblTempUsageDetail_20' ) start [2024-12-30 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134669', 'tblTempUsageDetail_20' ) end [2024-12-30 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134669', 'tblTempVendorCDR_20' ) start [2024-12-30 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134669', 'tblTempVendorCDR_20' ) end [2024-12-30 07:26:17] Production.INFO: ProcessCDR(1,14134669,1,1,2) [2024-12-30 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134669', 'tblTempUsageDetail_20' ) start [2024-12-30 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134669', 'tblTempUsageDetail_20' ) end [2024-12-30 07:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:26:20] Production.INFO: ==29487== Releasing lock... [2024-12-30 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:26:20] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:27:04 [end_date_ymd] => 2024-12-30 07:27:04 [RateCDR] => 1 ) [2024-12-30 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-30 04:27:04' and `end` < '2024-12-30 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-30 07:27:18] Production.INFO: count ==35 [2024-12-30 07:27:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:27:04 - End Time 2024-12-30 07:27:04 [2024-12-30 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134674', 'tblTempUsageDetail_20' ) start [2024-12-30 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134674', 'tblTempUsageDetail_20' ) end [2024-12-30 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134674', 'tblTempVendorCDR_20' ) start [2024-12-30 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134674', 'tblTempVendorCDR_20' ) end [2024-12-30 07:27:18] Production.INFO: ProcessCDR(1,14134674,1,1,2) [2024-12-30 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134674', 'tblTempUsageDetail_20' ) start [2024-12-30 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134674', 'tblTempUsageDetail_20' ) end [2024-12-30 07:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:27:21] Production.INFO: ==29557== Releasing lock... [2024-12-30 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:27:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:28:05 [end_date_ymd] => 2024-12-30 07:28:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:28:05' and `end` < '2024-12-30 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-30 07:28:18] Production.INFO: count ==35 [2024-12-30 07:28:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:28:05 - End Time 2024-12-30 07:28:05 [2024-12-30 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134679', 'tblTempUsageDetail_20' ) start [2024-12-30 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134679', 'tblTempUsageDetail_20' ) end [2024-12-30 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134679', 'tblTempVendorCDR_20' ) start [2024-12-30 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134679', 'tblTempVendorCDR_20' ) end [2024-12-30 07:28:18] Production.INFO: ProcessCDR(1,14134679,1,1,2) [2024-12-30 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134679', 'tblTempUsageDetail_20' ) start [2024-12-30 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134679', 'tblTempUsageDetail_20' ) end [2024-12-30 07:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:28:21] Production.INFO: ==29635== Releasing lock... [2024-12-30 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:28:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:29:05 [end_date_ymd] => 2024-12-30 07:29:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:29:05' and `end` < '2024-12-30 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-30 07:29:18] Production.INFO: count ==35 [2024-12-30 07:29:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:29:05 - End Time 2024-12-30 07:29:05 [2024-12-30 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134684', 'tblTempUsageDetail_20' ) start [2024-12-30 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134684', 'tblTempUsageDetail_20' ) end [2024-12-30 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134684', 'tblTempVendorCDR_20' ) start [2024-12-30 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134684', 'tblTempVendorCDR_20' ) end [2024-12-30 07:29:18] Production.INFO: ProcessCDR(1,14134684,1,1,2) [2024-12-30 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134684', 'tblTempUsageDetail_20' ) start [2024-12-30 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134684', 'tblTempUsageDetail_20' ) end [2024-12-30 07:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:29:21] Production.INFO: ==29706== Releasing lock... [2024-12-30 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:29:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:30:05 [end_date_ymd] => 2024-12-30 07:30:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:30:05' and `end` < '2024-12-30 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-30 07:30:18] Production.INFO: count ==30 [2024-12-30 07:30:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:30:05 - End Time 2024-12-30 07:30:05 [2024-12-30 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134689', 'tblTempUsageDetail_20' ) start [2024-12-30 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134689', 'tblTempUsageDetail_20' ) end [2024-12-30 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134689', 'tblTempVendorCDR_20' ) start [2024-12-30 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134689', 'tblTempVendorCDR_20' ) end [2024-12-30 07:30:18] Production.INFO: ProcessCDR(1,14134689,1,1,2) [2024-12-30 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134689', 'tblTempUsageDetail_20' ) start [2024-12-30 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134689', 'tblTempUsageDetail_20' ) end [2024-12-30 07:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:30:21] Production.INFO: ==29779== Releasing lock... [2024-12-30 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:30:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:31:05 [end_date_ymd] => 2024-12-30 07:31:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:31:05' and `end` < '2024-12-30 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-30 07:31:17] Production.INFO: count ==30 [2024-12-30 07:31:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:31:05 - End Time 2024-12-30 07:31:05 [2024-12-30 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134695', 'tblTempUsageDetail_20' ) start [2024-12-30 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134695', 'tblTempUsageDetail_20' ) end [2024-12-30 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134695', 'tblTempVendorCDR_20' ) start [2024-12-30 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134695', 'tblTempVendorCDR_20' ) end [2024-12-30 07:31:17] Production.INFO: ProcessCDR(1,14134695,1,1,2) [2024-12-30 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134695', 'tblTempUsageDetail_20' ) start [2024-12-30 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134695', 'tblTempUsageDetail_20' ) end [2024-12-30 07:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:31:20] Production.INFO: ==29856== Releasing lock... [2024-12-30 07:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:31:20] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:32:05 [end_date_ymd] => 2024-12-30 07:32:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:32:05' and `end` < '2024-12-30 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-30 07:32:20] Production.INFO: count ==36 [2024-12-30 07:32:20] Production.ERROR: pbx CDR StartTime 2024-12-30 04:32:05 - End Time 2024-12-30 07:32:05 [2024-12-30 07:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134700', 'tblTempUsageDetail_20' ) start [2024-12-30 07:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134700', 'tblTempUsageDetail_20' ) end [2024-12-30 07:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134700', 'tblTempVendorCDR_20' ) start [2024-12-30 07:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134700', 'tblTempVendorCDR_20' ) end [2024-12-30 07:32:20] Production.INFO: ProcessCDR(1,14134700,1,1,2) [2024-12-30 07:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134700', 'tblTempUsageDetail_20' ) start [2024-12-30 07:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134700', 'tblTempUsageDetail_20' ) end [2024-12-30 07:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:32:23] Production.INFO: ==29926== Releasing lock... [2024-12-30 07:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:32:23] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:33:04 [end_date_ymd] => 2024-12-30 07:33:04 [RateCDR] => 1 ) [2024-12-30 07: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-30 04:33:04' and `end` < '2024-12-30 07: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-30 07:33:17] Production.INFO: count ==36 [2024-12-30 07:33:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:33:04 - End Time 2024-12-30 07:33:04 [2024-12-30 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134704', 'tblTempUsageDetail_20' ) start [2024-12-30 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134704', 'tblTempUsageDetail_20' ) end [2024-12-30 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134704', 'tblTempVendorCDR_20' ) start [2024-12-30 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134704', 'tblTempVendorCDR_20' ) end [2024-12-30 07:33:17] Production.INFO: ProcessCDR(1,14134704,1,1,2) [2024-12-30 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134704', 'tblTempUsageDetail_20' ) start [2024-12-30 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134704', 'tblTempUsageDetail_20' ) end [2024-12-30 07:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:33:20] Production.INFO: ==29997== Releasing lock... [2024-12-30 07:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:33:20] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:34:05 [end_date_ymd] => 2024-12-30 07:34:05 [RateCDR] => 1 ) [2024-12-30 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 04:34:05' and `end` < '2024-12-30 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 07:34:17] Production.INFO: count ==37 [2024-12-30 07:34:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:34:05 - End Time 2024-12-30 07:34:05 [2024-12-30 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134710', 'tblTempUsageDetail_20' ) start [2024-12-30 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134710', 'tblTempUsageDetail_20' ) end [2024-12-30 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134710', 'tblTempVendorCDR_20' ) start [2024-12-30 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134710', 'tblTempVendorCDR_20' ) end [2024-12-30 07:34:17] Production.INFO: ProcessCDR(1,14134710,1,1,2) [2024-12-30 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134710', 'tblTempUsageDetail_20' ) start [2024-12-30 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134710', 'tblTempUsageDetail_20' ) end [2024-12-30 07:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:34:20] Production.INFO: ==30107== Releasing lock... [2024-12-30 07:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:34:20] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:35:06 [end_date_ymd] => 2024-12-30 07:35:06 [RateCDR] => 1 ) [2024-12-30 07:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 04:35:06' and `end` < '2024-12-30 07:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 07:35:20] Production.INFO: count ==42 [2024-12-30 07:35:20] Production.ERROR: pbx CDR StartTime 2024-12-30 04:35:06 - End Time 2024-12-30 07:35:06 [2024-12-30 07:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134715', 'tblTempUsageDetail_20' ) start [2024-12-30 07:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134715', 'tblTempUsageDetail_20' ) end [2024-12-30 07:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134715', 'tblTempVendorCDR_20' ) start [2024-12-30 07:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134715', 'tblTempVendorCDR_20' ) end [2024-12-30 07:35:20] Production.INFO: ProcessCDR(1,14134715,1,1,2) [2024-12-30 07:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134715', 'tblTempUsageDetail_20' ) start [2024-12-30 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134715', 'tblTempUsageDetail_20' ) end [2024-12-30 07:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:35:23] Production.INFO: ==30179== Releasing lock... [2024-12-30 07:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:35:23] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:36:05 [end_date_ymd] => 2024-12-30 07:36:05 [RateCDR] => 1 ) [2024-12-30 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 04:36:05' and `end` < '2024-12-30 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 07:36:18] Production.INFO: count ==42 [2024-12-30 07:36:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:36:05 - End Time 2024-12-30 07:36:05 [2024-12-30 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134720', 'tblTempUsageDetail_20' ) start [2024-12-30 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134720', 'tblTempUsageDetail_20' ) end [2024-12-30 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134720', 'tblTempVendorCDR_20' ) start [2024-12-30 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134720', 'tblTempVendorCDR_20' ) end [2024-12-30 07:36:18] Production.INFO: ProcessCDR(1,14134720,1,1,2) [2024-12-30 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134720', 'tblTempUsageDetail_20' ) start [2024-12-30 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134720', 'tblTempUsageDetail_20' ) end [2024-12-30 07:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:36:21] Production.INFO: ==30252== Releasing lock... [2024-12-30 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:36:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:37:05 [end_date_ymd] => 2024-12-30 07:37:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:37:05' and `end` < '2024-12-30 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-30 07:37:17] Production.INFO: count ==42 [2024-12-30 07:37:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:37:05 - End Time 2024-12-30 07:37:05 [2024-12-30 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134725', 'tblTempUsageDetail_20' ) start [2024-12-30 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134725', 'tblTempUsageDetail_20' ) end [2024-12-30 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134725', 'tblTempVendorCDR_20' ) start [2024-12-30 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134725', 'tblTempVendorCDR_20' ) end [2024-12-30 07:37:17] Production.INFO: ProcessCDR(1,14134725,1,1,2) [2024-12-30 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134725', 'tblTempUsageDetail_20' ) start [2024-12-30 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134725', 'tblTempUsageDetail_20' ) end [2024-12-30 07:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:37:21] Production.INFO: ==30322== Releasing lock... [2024-12-30 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:37:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:38:05 [end_date_ymd] => 2024-12-30 07:38:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:38:05' and `end` < '2024-12-30 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-30 07:38:18] Production.INFO: count ==42 [2024-12-30 07:38:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:38:05 - End Time 2024-12-30 07:38:05 [2024-12-30 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134730', 'tblTempUsageDetail_20' ) start [2024-12-30 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134730', 'tblTempUsageDetail_20' ) end [2024-12-30 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134730', 'tblTempVendorCDR_20' ) start [2024-12-30 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134730', 'tblTempVendorCDR_20' ) end [2024-12-30 07:38:18] Production.INFO: ProcessCDR(1,14134730,1,1,2) [2024-12-30 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134730', 'tblTempUsageDetail_20' ) start [2024-12-30 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134730', 'tblTempUsageDetail_20' ) end [2024-12-30 07:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:38:21] Production.INFO: ==30395== Releasing lock... [2024-12-30 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:38:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:39:04 [end_date_ymd] => 2024-12-30 07:39:04 [RateCDR] => 1 ) [2024-12-30 07: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-30 04:39:04' and `end` < '2024-12-30 07: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-30 07:39:17] Production.INFO: count ==42 [2024-12-30 07:39:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:39:04 - End Time 2024-12-30 07:39:04 [2024-12-30 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134735', 'tblTempUsageDetail_20' ) start [2024-12-30 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134735', 'tblTempUsageDetail_20' ) end [2024-12-30 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134735', 'tblTempVendorCDR_20' ) start [2024-12-30 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134735', 'tblTempVendorCDR_20' ) end [2024-12-30 07:39:17] Production.INFO: ProcessCDR(1,14134735,1,1,2) [2024-12-30 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134735', 'tblTempUsageDetail_20' ) start [2024-12-30 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134735', 'tblTempUsageDetail_20' ) end [2024-12-30 07:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:39:20] Production.INFO: ==30464== Releasing lock... [2024-12-30 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:39:20] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:40:06 [end_date_ymd] => 2024-12-30 07:40:06 [RateCDR] => 1 ) [2024-12-30 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 04:40:06' and `end` < '2024-12-30 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 07:40:18] Production.INFO: count ==42 [2024-12-30 07:40:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:40:06 - End Time 2024-12-30 07:40:06 [2024-12-30 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134741', 'tblTempUsageDetail_20' ) start [2024-12-30 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134741', 'tblTempUsageDetail_20' ) end [2024-12-30 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134741', 'tblTempVendorCDR_20' ) start [2024-12-30 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134741', 'tblTempVendorCDR_20' ) end [2024-12-30 07:40:18] Production.INFO: ProcessCDR(1,14134741,1,1,2) [2024-12-30 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134741', 'tblTempUsageDetail_20' ) start [2024-12-30 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134741', 'tblTempUsageDetail_20' ) end [2024-12-30 07:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:40:21] Production.INFO: ==30536== Releasing lock... [2024-12-30 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:40:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:41:04 [end_date_ymd] => 2024-12-30 07:41:04 [RateCDR] => 1 ) [2024-12-30 07: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-30 04:41:04' and `end` < '2024-12-30 07: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-30 07:41:17] Production.INFO: count ==43 [2024-12-30 07:41:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:41:04 - End Time 2024-12-30 07:41:04 [2024-12-30 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134746', 'tblTempUsageDetail_20' ) start [2024-12-30 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134746', 'tblTempUsageDetail_20' ) end [2024-12-30 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134746', 'tblTempVendorCDR_20' ) start [2024-12-30 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134746', 'tblTempVendorCDR_20' ) end [2024-12-30 07:41:17] Production.INFO: ProcessCDR(1,14134746,1,1,2) [2024-12-30 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134746', 'tblTempUsageDetail_20' ) start [2024-12-30 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134746', 'tblTempUsageDetail_20' ) end [2024-12-30 07:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:41:21] Production.INFO: ==30612== Releasing lock... [2024-12-30 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:41:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:42:05 [end_date_ymd] => 2024-12-30 07:42:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:42:05' and `end` < '2024-12-30 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-30 07:42:18] Production.INFO: count ==43 [2024-12-30 07:42:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:42:05 - End Time 2024-12-30 07:42:05 [2024-12-30 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134751', 'tblTempUsageDetail_20' ) start [2024-12-30 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134751', 'tblTempUsageDetail_20' ) end [2024-12-30 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134751', 'tblTempVendorCDR_20' ) start [2024-12-30 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134751', 'tblTempVendorCDR_20' ) end [2024-12-30 07:42:18] Production.INFO: ProcessCDR(1,14134751,1,1,2) [2024-12-30 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134751', 'tblTempUsageDetail_20' ) start [2024-12-30 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134751', 'tblTempUsageDetail_20' ) end [2024-12-30 07:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:42:21] Production.INFO: ==30683== Releasing lock... [2024-12-30 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:42:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:43:04 [end_date_ymd] => 2024-12-30 07:43:04 [RateCDR] => 1 ) [2024-12-30 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-30 04:43:04' and `end` < '2024-12-30 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-30 07:43:18] Production.INFO: count ==43 [2024-12-30 07:43:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:43:04 - End Time 2024-12-30 07:43:04 [2024-12-30 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134756', 'tblTempUsageDetail_20' ) start [2024-12-30 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134756', 'tblTempUsageDetail_20' ) end [2024-12-30 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134756', 'tblTempVendorCDR_20' ) start [2024-12-30 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134756', 'tblTempVendorCDR_20' ) end [2024-12-30 07:43:18] Production.INFO: ProcessCDR(1,14134756,1,1,2) [2024-12-30 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134756', 'tblTempUsageDetail_20' ) start [2024-12-30 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134756', 'tblTempUsageDetail_20' ) end [2024-12-30 07:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:43:21] Production.INFO: ==30756== Releasing lock... [2024-12-30 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:43:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:44:04 [end_date_ymd] => 2024-12-30 07:44:04 [RateCDR] => 1 ) [2024-12-30 07: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-30 04:44:04' and `end` < '2024-12-30 07: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-30 07:44:18] Production.INFO: count ==48 [2024-12-30 07:44:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:44:04 - End Time 2024-12-30 07:44:04 [2024-12-30 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134761', 'tblTempUsageDetail_20' ) start [2024-12-30 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134761', 'tblTempUsageDetail_20' ) end [2024-12-30 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134761', 'tblTempVendorCDR_20' ) start [2024-12-30 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134761', 'tblTempVendorCDR_20' ) end [2024-12-30 07:44:18] Production.INFO: ProcessCDR(1,14134761,1,1,2) [2024-12-30 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134761', 'tblTempUsageDetail_20' ) start [2024-12-30 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134761', 'tblTempUsageDetail_20' ) end [2024-12-30 07:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:44:21] Production.INFO: ==30825== Releasing lock... [2024-12-30 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:44:21] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:45:05 [end_date_ymd] => 2024-12-30 07:45:05 [RateCDR] => 1 ) [2024-12-30 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 04:45:05' and `end` < '2024-12-30 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 07:45:17] Production.INFO: count ==49 [2024-12-30 07:45:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:45:05 - End Time 2024-12-30 07:45:05 [2024-12-30 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134766', 'tblTempUsageDetail_20' ) start [2024-12-30 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134766', 'tblTempUsageDetail_20' ) end [2024-12-30 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134766', 'tblTempVendorCDR_20' ) start [2024-12-30 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134766', 'tblTempVendorCDR_20' ) end [2024-12-30 07:45:17] Production.INFO: ProcessCDR(1,14134766,1,1,2) [2024-12-30 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134766', 'tblTempUsageDetail_20' ) start [2024-12-30 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134766', 'tblTempUsageDetail_20' ) end [2024-12-30 07:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:45:20] Production.INFO: ==30896== Releasing lock... [2024-12-30 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:45:20] Production.INFO: 28 MB #Memory Used# [2024-12-30 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:46:05 [end_date_ymd] => 2024-12-30 07:46:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:46:05' and `end` < '2024-12-30 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-30 07:46:17] Production.INFO: count ==54 [2024-12-30 07:46:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:46:05 - End Time 2024-12-30 07:46:05 [2024-12-30 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134771', 'tblTempUsageDetail_20' ) start [2024-12-30 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134771', 'tblTempUsageDetail_20' ) end [2024-12-30 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134771', 'tblTempVendorCDR_20' ) start [2024-12-30 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134771', 'tblTempVendorCDR_20' ) end [2024-12-30 07:46:17] Production.INFO: ProcessCDR(1,14134771,1,1,2) [2024-12-30 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134771', 'tblTempUsageDetail_20' ) start [2024-12-30 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134771', 'tblTempUsageDetail_20' ) end [2024-12-30 07:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:46:20] Production.INFO: ==30969== Releasing lock... [2024-12-30 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:46:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:47:05 [end_date_ymd] => 2024-12-30 07:47:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:47:05' and `end` < '2024-12-30 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-30 07:47:19] Production.INFO: count ==54 [2024-12-30 07:47:19] Production.ERROR: pbx CDR StartTime 2024-12-30 04:47:05 - End Time 2024-12-30 07:47:05 [2024-12-30 07:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134776', 'tblTempUsageDetail_20' ) start [2024-12-30 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134776', 'tblTempUsageDetail_20' ) end [2024-12-30 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134776', 'tblTempVendorCDR_20' ) start [2024-12-30 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134776', 'tblTempVendorCDR_20' ) end [2024-12-30 07:47:19] Production.INFO: ProcessCDR(1,14134776,1,1,2) [2024-12-30 07:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134776', 'tblTempUsageDetail_20' ) start [2024-12-30 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134776', 'tblTempUsageDetail_20' ) end [2024-12-30 07:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:47:22] Production.INFO: ==31042== Releasing lock... [2024-12-30 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:47:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:48:05 [end_date_ymd] => 2024-12-30 07:48:05 [RateCDR] => 1 ) [2024-12-30 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 04:48:05' and `end` < '2024-12-30 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 07:48:18] Production.INFO: count ==54 [2024-12-30 07:48:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:48:05 - End Time 2024-12-30 07:48:05 [2024-12-30 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134781', 'tblTempUsageDetail_20' ) start [2024-12-30 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134781', 'tblTempUsageDetail_20' ) end [2024-12-30 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134781', 'tblTempVendorCDR_20' ) start [2024-12-30 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134781', 'tblTempVendorCDR_20' ) end [2024-12-30 07:48:18] Production.INFO: ProcessCDR(1,14134781,1,1,2) [2024-12-30 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134781', 'tblTempUsageDetail_20' ) start [2024-12-30 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134781', 'tblTempUsageDetail_20' ) end [2024-12-30 07:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:48:21] Production.INFO: ==31113== Releasing lock... [2024-12-30 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:48:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 07:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:49:04 [end_date_ymd] => 2024-12-30 07:49:04 [RateCDR] => 1 ) [2024-12-30 07: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-30 04:49:04' and `end` < '2024-12-30 07: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-30 07:49:17] Production.INFO: count ==55 [2024-12-30 07:49:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:49:04 - End Time 2024-12-30 07:49:04 [2024-12-30 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134783', 'tblTempUsageDetail_20' ) start [2024-12-30 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134783', 'tblTempUsageDetail_20' ) end [2024-12-30 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134783', 'tblTempVendorCDR_20' ) start [2024-12-30 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134783', 'tblTempVendorCDR_20' ) end [2024-12-30 07:49:17] Production.INFO: ProcessCDR(1,14134783,1,1,2) [2024-12-30 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134783', 'tblTempUsageDetail_20' ) start [2024-12-30 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134783', 'tblTempUsageDetail_20' ) end [2024-12-30 07:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:49:20] Production.INFO: ==31183== Releasing lock... [2024-12-30 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:49:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:50:05 [end_date_ymd] => 2024-12-30 07:50:05 [RateCDR] => 1 ) [2024-12-30 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 04:50:05' and `end` < '2024-12-30 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 07:50:22] Production.INFO: count ==61 [2024-12-30 07:50:22] Production.ERROR: pbx CDR StartTime 2024-12-30 04:50:05 - End Time 2024-12-30 07:50:05 [2024-12-30 07:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134792', 'tblTempUsageDetail_20' ) start [2024-12-30 07:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134792', 'tblTempUsageDetail_20' ) end [2024-12-30 07:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134792', 'tblTempVendorCDR_20' ) start [2024-12-30 07:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134792', 'tblTempVendorCDR_20' ) end [2024-12-30 07:50:22] Production.INFO: ProcessCDR(1,14134792,1,1,2) [2024-12-30 07:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134792', 'tblTempUsageDetail_20' ) start [2024-12-30 07:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134792', 'tblTempUsageDetail_20' ) end [2024-12-30 07:50:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:50:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:50:26] Production.INFO: ==31295== Releasing lock... [2024-12-30 07:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:50:26] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:51:05 [end_date_ymd] => 2024-12-30 07:51:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:51:05' and `end` < '2024-12-30 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-30 07:51:17] Production.INFO: count ==63 [2024-12-30 07:51:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:51:05 - End Time 2024-12-30 07:51:05 [2024-12-30 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134797', 'tblTempUsageDetail_20' ) start [2024-12-30 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134797', 'tblTempUsageDetail_20' ) end [2024-12-30 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134797', 'tblTempVendorCDR_20' ) start [2024-12-30 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134797', 'tblTempVendorCDR_20' ) end [2024-12-30 07:51:17] Production.INFO: ProcessCDR(1,14134797,1,1,2) [2024-12-30 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134797', 'tblTempUsageDetail_20' ) start [2024-12-30 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134797', 'tblTempUsageDetail_20' ) end [2024-12-30 07:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:51:20] Production.INFO: ==31369== Releasing lock... [2024-12-30 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:51:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:52:05 [end_date_ymd] => 2024-12-30 07:52:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:52:05' and `end` < '2024-12-30 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-30 07:52:18] Production.INFO: count ==63 [2024-12-30 07:52:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:52:05 - End Time 2024-12-30 07:52:05 [2024-12-30 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134802', 'tblTempUsageDetail_20' ) start [2024-12-30 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134802', 'tblTempUsageDetail_20' ) end [2024-12-30 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134802', 'tblTempVendorCDR_20' ) start [2024-12-30 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134802', 'tblTempVendorCDR_20' ) end [2024-12-30 07:52:18] Production.INFO: ProcessCDR(1,14134802,1,1,2) [2024-12-30 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134802', 'tblTempUsageDetail_20' ) start [2024-12-30 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134802', 'tblTempUsageDetail_20' ) end [2024-12-30 07:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:52:22] Production.INFO: ==31443== Releasing lock... [2024-12-30 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:52:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:53:05 [end_date_ymd] => 2024-12-30 07:53:05 [RateCDR] => 1 ) [2024-12-30 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 04:53:05' and `end` < '2024-12-30 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 07:53:17] Production.INFO: count ==68 [2024-12-30 07:53:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:53:05 - End Time 2024-12-30 07:53:05 [2024-12-30 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134807', 'tblTempUsageDetail_20' ) start [2024-12-30 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134807', 'tblTempUsageDetail_20' ) end [2024-12-30 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134807', 'tblTempVendorCDR_20' ) start [2024-12-30 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134807', 'tblTempVendorCDR_20' ) end [2024-12-30 07:53:17] Production.INFO: ProcessCDR(1,14134807,1,1,2) [2024-12-30 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134807', 'tblTempUsageDetail_20' ) start [2024-12-30 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134807', 'tblTempUsageDetail_20' ) end [2024-12-30 07:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:53:20] Production.INFO: ==31515== Releasing lock... [2024-12-30 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:53:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:54:05 [end_date_ymd] => 2024-12-30 07:54:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:54:05' and `end` < '2024-12-30 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-30 07:54:17] Production.INFO: count ==68 [2024-12-30 07:54:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:54:05 - End Time 2024-12-30 07:54:05 [2024-12-30 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134812', 'tblTempUsageDetail_20' ) start [2024-12-30 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134812', 'tblTempUsageDetail_20' ) end [2024-12-30 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134812', 'tblTempVendorCDR_20' ) start [2024-12-30 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134812', 'tblTempVendorCDR_20' ) end [2024-12-30 07:54:17] Production.INFO: ProcessCDR(1,14134812,1,1,2) [2024-12-30 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134812', 'tblTempUsageDetail_20' ) start [2024-12-30 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134812', 'tblTempUsageDetail_20' ) end [2024-12-30 07:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:54:20] Production.INFO: ==31588== Releasing lock... [2024-12-30 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:54:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:55:05 [end_date_ymd] => 2024-12-30 07:55:05 [RateCDR] => 1 ) [2024-12-30 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 04:55:05' and `end` < '2024-12-30 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 07:55:17] Production.INFO: count ==68 [2024-12-30 07:55:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:55:05 - End Time 2024-12-30 07:55:05 [2024-12-30 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134817', 'tblTempUsageDetail_20' ) start [2024-12-30 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134817', 'tblTempUsageDetail_20' ) end [2024-12-30 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134817', 'tblTempVendorCDR_20' ) start [2024-12-30 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134817', 'tblTempVendorCDR_20' ) end [2024-12-30 07:55:17] Production.INFO: ProcessCDR(1,14134817,1,1,2) [2024-12-30 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134817', 'tblTempUsageDetail_20' ) start [2024-12-30 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134817', 'tblTempUsageDetail_20' ) end [2024-12-30 07:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:55:20] Production.INFO: ==31658== Releasing lock... [2024-12-30 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:55:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:56:05 [end_date_ymd] => 2024-12-30 07:56:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:56:05' and `end` < '2024-12-30 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-30 07:56:18] Production.INFO: count ==68 [2024-12-30 07:56:18] Production.ERROR: pbx CDR StartTime 2024-12-30 04:56:05 - End Time 2024-12-30 07:56:05 [2024-12-30 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134822', 'tblTempUsageDetail_20' ) start [2024-12-30 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134822', 'tblTempUsageDetail_20' ) end [2024-12-30 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134822', 'tblTempVendorCDR_20' ) start [2024-12-30 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134822', 'tblTempVendorCDR_20' ) end [2024-12-30 07:56:18] Production.INFO: ProcessCDR(1,14134822,1,1,2) [2024-12-30 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134822', 'tblTempUsageDetail_20' ) start [2024-12-30 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134822', 'tblTempUsageDetail_20' ) end [2024-12-30 07:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:56:21] Production.INFO: ==31730== Releasing lock... [2024-12-30 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:56:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:57:05 [end_date_ymd] => 2024-12-30 07:57:05 [RateCDR] => 1 ) [2024-12-30 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-30 04:57:05' and `end` < '2024-12-30 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-30 07:57:17] Production.INFO: count ==69 [2024-12-30 07:57:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:57:05 - End Time 2024-12-30 07:57:05 [2024-12-30 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134827', 'tblTempUsageDetail_20' ) start [2024-12-30 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134827', 'tblTempUsageDetail_20' ) end [2024-12-30 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134827', 'tblTempVendorCDR_20' ) start [2024-12-30 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134827', 'tblTempVendorCDR_20' ) end [2024-12-30 07:57:17] Production.INFO: ProcessCDR(1,14134827,1,1,2) [2024-12-30 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134827', 'tblTempUsageDetail_20' ) start [2024-12-30 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134827', 'tblTempUsageDetail_20' ) end [2024-12-30 07:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:57:20] Production.INFO: ==31799== Releasing lock... [2024-12-30 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:57:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-30 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:58:05 [end_date_ymd] => 2024-12-30 07:58:05 [RateCDR] => 1 ) [2024-12-30 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 04:58:05' and `end` < '2024-12-30 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 07:58:20] Production.INFO: count ==70 [2024-12-30 07:58:20] Production.ERROR: pbx CDR StartTime 2024-12-30 04:58:05 - End Time 2024-12-30 07:58:05 [2024-12-30 07:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134832', 'tblTempUsageDetail_20' ) start [2024-12-30 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134832', 'tblTempUsageDetail_20' ) end [2024-12-30 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134832', 'tblTempVendorCDR_20' ) start [2024-12-30 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134832', 'tblTempVendorCDR_20' ) end [2024-12-30 07:58:20] Production.INFO: ProcessCDR(1,14134832,1,1,2) [2024-12-30 07:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134832', 'tblTempUsageDetail_20' ) start [2024-12-30 07:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134832', 'tblTempUsageDetail_20' ) end [2024-12-30 07:58:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:58:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:58:25] Production.INFO: ==31871== Releasing lock... [2024-12-30 07:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:58:25] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 07:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 04:59:04 [end_date_ymd] => 2024-12-30 07:59:04 [RateCDR] => 1 ) [2024-12-30 07: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-30 04:59:04' and `end` < '2024-12-30 07: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-30 07:59:17] Production.INFO: count ==70 [2024-12-30 07:59:17] Production.ERROR: pbx CDR StartTime 2024-12-30 04:59:04 - End Time 2024-12-30 07:59:04 [2024-12-30 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134837', 'tblTempUsageDetail_20' ) start [2024-12-30 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134837', 'tblTempUsageDetail_20' ) end [2024-12-30 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134837', 'tblTempVendorCDR_20' ) start [2024-12-30 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134837', 'tblTempVendorCDR_20' ) end [2024-12-30 07:59:17] Production.INFO: ProcessCDR(1,14134837,1,1,2) [2024-12-30 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134837', 'tblTempUsageDetail_20' ) start [2024-12-30 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134837', 'tblTempUsageDetail_20' ) end [2024-12-30 07:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 07:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 07:59:20] Production.INFO: ==31948== Releasing lock... [2024-12-30 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 07:59:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:00:06 [end_date_ymd] => 2024-12-30 08:00:06 [RateCDR] => 1 ) [2024-12-30 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 05:00:06' and `end` < '2024-12-30 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 08:00:18] Production.INFO: count ==78 [2024-12-30 08:00:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:00:06 - End Time 2024-12-30 08:00:06 [2024-12-30 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134842', 'tblTempUsageDetail_20' ) start [2024-12-30 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134842', 'tblTempUsageDetail_20' ) end [2024-12-30 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134842', 'tblTempVendorCDR_20' ) start [2024-12-30 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134842', 'tblTempVendorCDR_20' ) end [2024-12-30 08:00:18] Production.INFO: ProcessCDR(1,14134842,1,1,2) [2024-12-30 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134842', 'tblTempUsageDetail_20' ) start [2024-12-30 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134842', 'tblTempUsageDetail_20' ) end [2024-12-30 08:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:00:21] Production.INFO: ==32020== Releasing lock... [2024-12-30 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:00:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 08:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:01:04 [end_date_ymd] => 2024-12-30 08:01:04 [RateCDR] => 1 ) [2024-12-30 08: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-30 05:01:04' and `end` < '2024-12-30 08: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-30 08:01:17] Production.INFO: count ==78 [2024-12-30 08:01:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:01:04 - End Time 2024-12-30 08:01:04 [2024-12-30 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134848', 'tblTempUsageDetail_20' ) start [2024-12-30 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134848', 'tblTempUsageDetail_20' ) end [2024-12-30 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134848', 'tblTempVendorCDR_20' ) start [2024-12-30 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134848', 'tblTempVendorCDR_20' ) end [2024-12-30 08:01:17] Production.INFO: ProcessCDR(1,14134848,1,1,2) [2024-12-30 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134848', 'tblTempUsageDetail_20' ) start [2024-12-30 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134848', 'tblTempUsageDetail_20' ) end [2024-12-30 08:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:01:20] Production.INFO: ==32105== Releasing lock... [2024-12-30 08:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:01:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:02:05 [end_date_ymd] => 2024-12-30 08:02:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:02:05' and `end` < '2024-12-30 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-30 08:02:18] Production.INFO: count ==84 [2024-12-30 08:02:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:02:05 - End Time 2024-12-30 08:02:05 [2024-12-30 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134853', 'tblTempUsageDetail_20' ) start [2024-12-30 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134853', 'tblTempUsageDetail_20' ) end [2024-12-30 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134853', 'tblTempVendorCDR_20' ) start [2024-12-30 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134853', 'tblTempVendorCDR_20' ) end [2024-12-30 08:02:18] Production.INFO: ProcessCDR(1,14134853,1,1,2) [2024-12-30 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134853', 'tblTempUsageDetail_20' ) start [2024-12-30 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134853', 'tblTempUsageDetail_20' ) end [2024-12-30 08:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:02:22] Production.INFO: ==32184== Releasing lock... [2024-12-30 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:02:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:03:05 [end_date_ymd] => 2024-12-30 08:03:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:03:05' and `end` < '2024-12-30 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-30 08:03:17] Production.INFO: count ==89 [2024-12-30 08:03:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:03:05 - End Time 2024-12-30 08:03:05 [2024-12-30 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134858', 'tblTempUsageDetail_20' ) start [2024-12-30 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134858', 'tblTempUsageDetail_20' ) end [2024-12-30 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134858', 'tblTempVendorCDR_20' ) start [2024-12-30 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134858', 'tblTempVendorCDR_20' ) end [2024-12-30 08:03:17] Production.INFO: ProcessCDR(1,14134858,1,1,2) [2024-12-30 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134858', 'tblTempUsageDetail_20' ) start [2024-12-30 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134858', 'tblTempUsageDetail_20' ) end [2024-12-30 08:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:03:22] Production.INFO: ==32255== Releasing lock... [2024-12-30 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:03:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-30 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:04:05 [end_date_ymd] => 2024-12-30 08:04:05 [RateCDR] => 1 ) [2024-12-30 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 05:04:05' and `end` < '2024-12-30 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 08:04:18] Production.INFO: count ==91 [2024-12-30 08:04:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:04:05 - End Time 2024-12-30 08:04:05 [2024-12-30 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134863', 'tblTempUsageDetail_20' ) start [2024-12-30 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134863', 'tblTempUsageDetail_20' ) end [2024-12-30 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134863', 'tblTempVendorCDR_20' ) start [2024-12-30 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134863', 'tblTempVendorCDR_20' ) end [2024-12-30 08:04:18] Production.INFO: ProcessCDR(1,14134863,1,1,2) [2024-12-30 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134863', 'tblTempUsageDetail_20' ) start [2024-12-30 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134863', 'tblTempUsageDetail_20' ) end [2024-12-30 08:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:04:21] Production.INFO: ==32339== Releasing lock... [2024-12-30 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:04:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-30 08:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:05:04 [end_date_ymd] => 2024-12-30 08:05:04 [RateCDR] => 1 ) [2024-12-30 08: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-30 05:05:04' and `end` < '2024-12-30 08: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-30 08:05:17] Production.INFO: count ==99 [2024-12-30 08:05:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:05:04 - End Time 2024-12-30 08:05:04 [2024-12-30 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134868', 'tblTempUsageDetail_20' ) start [2024-12-30 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134868', 'tblTempUsageDetail_20' ) end [2024-12-30 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134868', 'tblTempVendorCDR_20' ) start [2024-12-30 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134868', 'tblTempVendorCDR_20' ) end [2024-12-30 08:05:17] Production.INFO: ProcessCDR(1,14134868,1,1,2) [2024-12-30 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134868', 'tblTempUsageDetail_20' ) start [2024-12-30 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134868', 'tblTempUsageDetail_20' ) end [2024-12-30 08:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:05:21] Production.INFO: ==32486== Releasing lock... [2024-12-30 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:05:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-30 08:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:06:04 [end_date_ymd] => 2024-12-30 08:06:04 [RateCDR] => 1 ) [2024-12-30 08: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-30 05:06:04' and `end` < '2024-12-30 08: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-30 08:06:17] Production.INFO: count ==99 [2024-12-30 08:06:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:06:04 - End Time 2024-12-30 08:06:04 [2024-12-30 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134873', 'tblTempUsageDetail_20' ) start [2024-12-30 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134873', 'tblTempUsageDetail_20' ) end [2024-12-30 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134873', 'tblTempVendorCDR_20' ) start [2024-12-30 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134873', 'tblTempVendorCDR_20' ) end [2024-12-30 08:06:17] Production.INFO: ProcessCDR(1,14134873,1,1,2) [2024-12-30 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134873', 'tblTempUsageDetail_20' ) start [2024-12-30 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134873', 'tblTempUsageDetail_20' ) end [2024-12-30 08:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:06:20] Production.INFO: ==32595== Releasing lock... [2024-12-30 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:06:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-30 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:07:05 [end_date_ymd] => 2024-12-30 08:07:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:07:05' and `end` < '2024-12-30 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-30 08:07:19] Production.INFO: count ==100 [2024-12-30 08:07:19] Production.ERROR: pbx CDR StartTime 2024-12-30 05:07:05 - End Time 2024-12-30 08:07:05 [2024-12-30 08:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134878', 'tblTempUsageDetail_20' ) start [2024-12-30 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134878', 'tblTempUsageDetail_20' ) end [2024-12-30 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134878', 'tblTempVendorCDR_20' ) start [2024-12-30 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134878', 'tblTempVendorCDR_20' ) end [2024-12-30 08:07:19] Production.INFO: ProcessCDR(1,14134878,1,1,2) [2024-12-30 08:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134878', 'tblTempUsageDetail_20' ) start [2024-12-30 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134878', 'tblTempUsageDetail_20' ) end [2024-12-30 08:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:07:22] Production.INFO: ==32702== Releasing lock... [2024-12-30 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:07:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-30 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:08:05 [end_date_ymd] => 2024-12-30 08:08:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:08:05' and `end` < '2024-12-30 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-30 08:08:19] Production.INFO: count ==108 [2024-12-30 08:08:19] Production.ERROR: pbx CDR StartTime 2024-12-30 05:08:05 - End Time 2024-12-30 08:08:05 [2024-12-30 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134883', 'tblTempUsageDetail_20' ) start [2024-12-30 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134883', 'tblTempUsageDetail_20' ) end [2024-12-30 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134883', 'tblTempVendorCDR_20' ) start [2024-12-30 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134883', 'tblTempVendorCDR_20' ) end [2024-12-30 08:08:19] Production.INFO: ProcessCDR(1,14134883,1,1,2) [2024-12-30 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134883', 'tblTempUsageDetail_20' ) start [2024-12-30 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134883', 'tblTempUsageDetail_20' ) end [2024-12-30 08:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:08:22] Production.INFO: ==362== Releasing lock... [2024-12-30 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:08:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-30 08:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:09:04 [end_date_ymd] => 2024-12-30 08:09:04 [RateCDR] => 1 ) [2024-12-30 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-30 05:09:04' and `end` < '2024-12-30 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-30 08:09:17] Production.INFO: count ==126 [2024-12-30 08:09:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:09:04 - End Time 2024-12-30 08:09:04 [2024-12-30 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134888', 'tblTempUsageDetail_20' ) start [2024-12-30 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134888', 'tblTempUsageDetail_20' ) end [2024-12-30 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134888', 'tblTempVendorCDR_20' ) start [2024-12-30 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134888', 'tblTempVendorCDR_20' ) end [2024-12-30 08:09:17] Production.INFO: ProcessCDR(1,14134888,1,1,2) [2024-12-30 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134888', 'tblTempUsageDetail_20' ) start [2024-12-30 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134888', 'tblTempUsageDetail_20' ) end [2024-12-30 08:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:09:20] Production.INFO: ==472== Releasing lock... [2024-12-30 08:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:09:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-30 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:10:05 [end_date_ymd] => 2024-12-30 08:10:05 [RateCDR] => 1 ) [2024-12-30 08: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-30 05:10:05' and `end` < '2024-12-30 08: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-30 08:10:18] Production.INFO: count ==139 [2024-12-30 08:10:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:10:05 - End Time 2024-12-30 08:10:05 [2024-12-30 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134894', 'tblTempUsageDetail_20' ) start [2024-12-30 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134894', 'tblTempUsageDetail_20' ) end [2024-12-30 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134894', 'tblTempVendorCDR_20' ) start [2024-12-30 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134894', 'tblTempVendorCDR_20' ) end [2024-12-30 08:10:18] Production.INFO: ProcessCDR(1,14134894,1,1,2) [2024-12-30 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134894', 'tblTempUsageDetail_20' ) start [2024-12-30 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134894', 'tblTempUsageDetail_20' ) end [2024-12-30 08:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:10:23] Production.INFO: ==594== Releasing lock... [2024-12-30 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:10:23] Production.INFO: 29.5 MB #Memory Used# [2024-12-30 08:11:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:11:06 [end_date_ymd] => 2024-12-30 08:11:06 [RateCDR] => 1 ) [2024-12-30 08:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 05:11:06' and `end` < '2024-12-30 08:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 08:11:20] Production.INFO: count ==174 [2024-12-30 08:11:20] Production.ERROR: pbx CDR StartTime 2024-12-30 05:11:06 - End Time 2024-12-30 08:11:06 [2024-12-30 08:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134899', 'tblTempUsageDetail_20' ) start [2024-12-30 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134899', 'tblTempUsageDetail_20' ) end [2024-12-30 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134899', 'tblTempVendorCDR_20' ) start [2024-12-30 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134899', 'tblTempVendorCDR_20' ) end [2024-12-30 08:11:20] Production.INFO: ProcessCDR(1,14134899,1,1,2) [2024-12-30 08:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134899', 'tblTempUsageDetail_20' ) start [2024-12-30 08:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134899', 'tblTempUsageDetail_20' ) end [2024-12-30 08:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:11:24] Production.INFO: ==732== Releasing lock... [2024-12-30 08:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:11:24] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:12:05 [end_date_ymd] => 2024-12-30 08:12:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:12:05' and `end` < '2024-12-30 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-30 08:12:17] Production.INFO: count ==175 [2024-12-30 08:12:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:12:05 - End Time 2024-12-30 08:12:05 [2024-12-30 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134904', 'tblTempUsageDetail_20' ) start [2024-12-30 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134904', 'tblTempUsageDetail_20' ) end [2024-12-30 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134904', 'tblTempVendorCDR_20' ) start [2024-12-30 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134904', 'tblTempVendorCDR_20' ) end [2024-12-30 08:12:17] Production.INFO: ProcessCDR(1,14134904,1,1,2) [2024-12-30 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134904', 'tblTempUsageDetail_20' ) start [2024-12-30 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134904', 'tblTempUsageDetail_20' ) end [2024-12-30 08:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:12:20] Production.INFO: ==851== Releasing lock... [2024-12-30 08:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:12:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-30 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:13:05 [end_date_ymd] => 2024-12-30 08:13:05 [RateCDR] => 1 ) [2024-12-30 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 05:13:05' and `end` < '2024-12-30 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 08:13:18] Production.INFO: count ==190 [2024-12-30 08:13:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:13:05 - End Time 2024-12-30 08:13:05 [2024-12-30 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134909', 'tblTempUsageDetail_20' ) start [2024-12-30 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134909', 'tblTempUsageDetail_20' ) end [2024-12-30 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134909', 'tblTempVendorCDR_20' ) start [2024-12-30 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134909', 'tblTempVendorCDR_20' ) end [2024-12-30 08:13:18] Production.INFO: ProcessCDR(1,14134909,1,1,2) [2024-12-30 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134909', 'tblTempUsageDetail_20' ) start [2024-12-30 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134909', 'tblTempUsageDetail_20' ) end [2024-12-30 08:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:13:23] Production.INFO: ==966== Releasing lock... [2024-12-30 08:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:13:23] Production.INFO: 30 MB #Memory Used# [2024-12-30 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:14:05 [end_date_ymd] => 2024-12-30 08:14:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:14:05' and `end` < '2024-12-30 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-30 08:14:18] Production.INFO: count ==202 [2024-12-30 08:14:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:14:05 - End Time 2024-12-30 08:14:05 [2024-12-30 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134914', 'tblTempUsageDetail_20' ) start [2024-12-30 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134914', 'tblTempUsageDetail_20' ) end [2024-12-30 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134914', 'tblTempVendorCDR_20' ) start [2024-12-30 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134914', 'tblTempVendorCDR_20' ) end [2024-12-30 08:14:18] Production.INFO: ProcessCDR(1,14134914,1,1,2) [2024-12-30 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134914', 'tblTempUsageDetail_20' ) start [2024-12-30 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134914', 'tblTempUsageDetail_20' ) end [2024-12-30 08:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:14:21] Production.INFO: ==1076== Releasing lock... [2024-12-30 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:14:21] Production.INFO: 30 MB #Memory Used# [2024-12-30 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:15:05 [end_date_ymd] => 2024-12-30 08:15:05 [RateCDR] => 1 ) [2024-12-30 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 05:15:05' and `end` < '2024-12-30 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 08:15:18] Production.INFO: count ==225 [2024-12-30 08:15:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:15:05 - End Time 2024-12-30 08:15:05 [2024-12-30 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134919', 'tblTempUsageDetail_20' ) start [2024-12-30 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134919', 'tblTempUsageDetail_20' ) end [2024-12-30 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134919', 'tblTempVendorCDR_20' ) start [2024-12-30 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134919', 'tblTempVendorCDR_20' ) end [2024-12-30 08:15:18] Production.INFO: ProcessCDR(1,14134919,1,1,2) [2024-12-30 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134919', 'tblTempUsageDetail_20' ) start [2024-12-30 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134919', 'tblTempUsageDetail_20' ) end [2024-12-30 08:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:15:23] Production.INFO: ==1198== Releasing lock... [2024-12-30 08:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:15:23] Production.INFO: 30.5 MB #Memory Used# [2024-12-30 08:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:16:04 [end_date_ymd] => 2024-12-30 08:16:04 [RateCDR] => 1 ) [2024-12-30 08: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-30 05:16:04' and `end` < '2024-12-30 08: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-30 08:16:17] Production.INFO: count ==231 [2024-12-30 08:16:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:16:04 - End Time 2024-12-30 08:16:04 [2024-12-30 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134924', 'tblTempUsageDetail_20' ) start [2024-12-30 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134924', 'tblTempUsageDetail_20' ) end [2024-12-30 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134924', 'tblTempVendorCDR_20' ) start [2024-12-30 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134924', 'tblTempVendorCDR_20' ) end [2024-12-30 08:16:17] Production.INFO: ProcessCDR(1,14134924,1,1,2) [2024-12-30 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134924', 'tblTempUsageDetail_20' ) start [2024-12-30 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134924', 'tblTempUsageDetail_20' ) end [2024-12-30 08:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:16:22] Production.INFO: ==1321== Releasing lock... [2024-12-30 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:16:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-30 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:17:05 [end_date_ymd] => 2024-12-30 08:17:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:17:05' and `end` < '2024-12-30 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-30 08:17:18] Production.INFO: count ==237 [2024-12-30 08:17:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:17:05 - End Time 2024-12-30 08:17:05 [2024-12-30 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134929', 'tblTempUsageDetail_20' ) start [2024-12-30 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134929', 'tblTempUsageDetail_20' ) end [2024-12-30 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134929', 'tblTempVendorCDR_20' ) start [2024-12-30 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134929', 'tblTempVendorCDR_20' ) end [2024-12-30 08:17:18] Production.INFO: ProcessCDR(1,14134929,1,1,2) [2024-12-30 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134929', 'tblTempUsageDetail_20' ) start [2024-12-30 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134929', 'tblTempUsageDetail_20' ) end [2024-12-30 08:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:17:21] Production.INFO: ==1441== Releasing lock... [2024-12-30 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:17:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-30 08:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:18:04 [end_date_ymd] => 2024-12-30 08:18:04 [RateCDR] => 1 ) [2024-12-30 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-30 05:18:04' and `end` < '2024-12-30 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-30 08:18:17] Production.INFO: count ==239 [2024-12-30 08:18:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:18:04 - End Time 2024-12-30 08:18:04 [2024-12-30 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134934', 'tblTempUsageDetail_20' ) start [2024-12-30 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134934', 'tblTempUsageDetail_20' ) end [2024-12-30 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134934', 'tblTempVendorCDR_20' ) start [2024-12-30 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134934', 'tblTempVendorCDR_20' ) end [2024-12-30 08:18:17] Production.INFO: ProcessCDR(1,14134934,1,1,2) [2024-12-30 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134934', 'tblTempUsageDetail_20' ) start [2024-12-30 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134934', 'tblTempUsageDetail_20' ) end [2024-12-30 08:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:18:22] Production.INFO: ==1544== Releasing lock... [2024-12-30 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:18:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-30 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:19:05 [end_date_ymd] => 2024-12-30 08:19:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:19:05' and `end` < '2024-12-30 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-30 08:19:17] Production.INFO: count ==239 [2024-12-30 08:19:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:19:05 - End Time 2024-12-30 08:19:05 [2024-12-30 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134939', 'tblTempUsageDetail_20' ) start [2024-12-30 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134939', 'tblTempUsageDetail_20' ) end [2024-12-30 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134939', 'tblTempVendorCDR_20' ) start [2024-12-30 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134939', 'tblTempVendorCDR_20' ) end [2024-12-30 08:19:17] Production.INFO: ProcessCDR(1,14134939,1,1,2) [2024-12-30 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134939', 'tblTempUsageDetail_20' ) start [2024-12-30 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134939', 'tblTempUsageDetail_20' ) end [2024-12-30 08:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:19:21] Production.INFO: ==1626== Releasing lock... [2024-12-30 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:19:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-30 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:20:06 [end_date_ymd] => 2024-12-30 08:20:06 [RateCDR] => 1 ) [2024-12-30 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 05:20:06' and `end` < '2024-12-30 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 08:20:19] Production.INFO: count ==257 [2024-12-30 08:20:19] Production.ERROR: pbx CDR StartTime 2024-12-30 05:20:06 - End Time 2024-12-30 08:20:06 [2024-12-30 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134944', 'tblTempUsageDetail_20' ) start [2024-12-30 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134944', 'tblTempUsageDetail_20' ) end [2024-12-30 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134944', 'tblTempVendorCDR_20' ) start [2024-12-30 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134944', 'tblTempVendorCDR_20' ) end [2024-12-30 08:20:19] Production.INFO: ProcessCDR(1,14134944,1,1,2) [2024-12-30 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134944', 'tblTempUsageDetail_20' ) start [2024-12-30 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134944', 'tblTempUsageDetail_20' ) end [2024-12-30 08:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:20:22] Production.INFO: ==1703== Releasing lock... [2024-12-30 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:20:22] Production.INFO: 30.5 MB #Memory Used# [2024-12-30 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:21:05 [end_date_ymd] => 2024-12-30 08:21:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:21:05' and `end` < '2024-12-30 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-30 08:21:18] Production.INFO: count ==264 [2024-12-30 08:21:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:21:05 - End Time 2024-12-30 08:21:05 [2024-12-30 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134950', 'tblTempUsageDetail_20' ) start [2024-12-30 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134950', 'tblTempUsageDetail_20' ) end [2024-12-30 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134950', 'tblTempVendorCDR_20' ) start [2024-12-30 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134950', 'tblTempVendorCDR_20' ) end [2024-12-30 08:21:18] Production.INFO: ProcessCDR(1,14134950,1,1,2) [2024-12-30 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134950', 'tblTempUsageDetail_20' ) start [2024-12-30 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134950', 'tblTempUsageDetail_20' ) end [2024-12-30 08:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:21:21] Production.INFO: ==1820== Releasing lock... [2024-12-30 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:21:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-30 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:22:05 [end_date_ymd] => 2024-12-30 08:22:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:22:05' and `end` < '2024-12-30 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-30 08:22:17] Production.INFO: count ==264 [2024-12-30 08:22:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:22:05 - End Time 2024-12-30 08:22:05 [2024-12-30 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134955', 'tblTempUsageDetail_20' ) start [2024-12-30 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134955', 'tblTempUsageDetail_20' ) end [2024-12-30 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134955', 'tblTempVendorCDR_20' ) start [2024-12-30 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134955', 'tblTempVendorCDR_20' ) end [2024-12-30 08:22:17] Production.INFO: ProcessCDR(1,14134955,1,1,2) [2024-12-30 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134955', 'tblTempUsageDetail_20' ) start [2024-12-30 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134955', 'tblTempUsageDetail_20' ) end [2024-12-30 08:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:22:21] Production.INFO: ==1899== Releasing lock... [2024-12-30 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:22:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-30 08:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:23:04 [end_date_ymd] => 2024-12-30 08:23:04 [RateCDR] => 1 ) [2024-12-30 08: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-30 05:23:04' and `end` < '2024-12-30 08: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-30 08:23:17] Production.INFO: count ==265 [2024-12-30 08:23:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:23:04 - End Time 2024-12-30 08:23:04 [2024-12-30 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134960', 'tblTempUsageDetail_20' ) start [2024-12-30 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134960', 'tblTempUsageDetail_20' ) end [2024-12-30 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134960', 'tblTempVendorCDR_20' ) start [2024-12-30 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134960', 'tblTempVendorCDR_20' ) end [2024-12-30 08:23:17] Production.INFO: ProcessCDR(1,14134960,1,1,2) [2024-12-30 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134960', 'tblTempUsageDetail_20' ) start [2024-12-30 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134960', 'tblTempUsageDetail_20' ) end [2024-12-30 08:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:23:20] Production.INFO: ==1978== Releasing lock... [2024-12-30 08:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:23:20] Production.INFO: 31 MB #Memory Used# [2024-12-30 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:24:05 [end_date_ymd] => 2024-12-30 08:24:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:24:05' and `end` < '2024-12-30 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-30 08:24:18] Production.INFO: count ==266 [2024-12-30 08:24:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:24:05 - End Time 2024-12-30 08:24:05 [2024-12-30 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134965', 'tblTempUsageDetail_20' ) start [2024-12-30 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134965', 'tblTempUsageDetail_20' ) end [2024-12-30 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134965', 'tblTempVendorCDR_20' ) start [2024-12-30 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134965', 'tblTempVendorCDR_20' ) end [2024-12-30 08:24:18] Production.INFO: ProcessCDR(1,14134965,1,1,2) [2024-12-30 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134965', 'tblTempUsageDetail_20' ) start [2024-12-30 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134965', 'tblTempUsageDetail_20' ) end [2024-12-30 08:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:24:21] Production.INFO: ==2054== Releasing lock... [2024-12-30 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:24:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-30 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:25:04 [end_date_ymd] => 2024-12-30 08:25:04 [RateCDR] => 1 ) [2024-12-30 08: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-30 05:25:04' and `end` < '2024-12-30 08: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-30 08:25:17] Production.INFO: count ==268 [2024-12-30 08:25:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:25:04 - End Time 2024-12-30 08:25:04 [2024-12-30 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134970', 'tblTempUsageDetail_20' ) start [2024-12-30 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134970', 'tblTempUsageDetail_20' ) end [2024-12-30 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134970', 'tblTempVendorCDR_20' ) start [2024-12-30 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134970', 'tblTempVendorCDR_20' ) end [2024-12-30 08:25:17] Production.INFO: ProcessCDR(1,14134970,1,1,2) [2024-12-30 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134970', 'tblTempUsageDetail_20' ) start [2024-12-30 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134970', 'tblTempUsageDetail_20' ) end [2024-12-30 08:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:25:21] Production.INFO: ==2128== Releasing lock... [2024-12-30 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:25:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-30 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:26:05 [end_date_ymd] => 2024-12-30 08:26:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:26:05' and `end` < '2024-12-30 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-30 08:26:17] Production.INFO: count ==276 [2024-12-30 08:26:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:26:05 - End Time 2024-12-30 08:26:05 [2024-12-30 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134975', 'tblTempUsageDetail_20' ) start [2024-12-30 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134975', 'tblTempUsageDetail_20' ) end [2024-12-30 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134975', 'tblTempVendorCDR_20' ) start [2024-12-30 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134975', 'tblTempVendorCDR_20' ) end [2024-12-30 08:26:17] Production.INFO: ProcessCDR(1,14134975,1,1,2) [2024-12-30 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134975', 'tblTempUsageDetail_20' ) start [2024-12-30 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134975', 'tblTempUsageDetail_20' ) end [2024-12-30 08:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:26:22] Production.INFO: ==2210== Releasing lock... [2024-12-30 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:26:22] Production.INFO: 30.5 MB #Memory Used# [2024-12-30 08:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:27:04 [end_date_ymd] => 2024-12-30 08:27:04 [RateCDR] => 1 ) [2024-12-30 08: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-30 05:27:04' and `end` < '2024-12-30 08: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-30 08:27:17] Production.INFO: count ==277 [2024-12-30 08:27:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:27:04 - End Time 2024-12-30 08:27:04 [2024-12-30 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134980', 'tblTempUsageDetail_20' ) start [2024-12-30 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134980', 'tblTempUsageDetail_20' ) end [2024-12-30 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134980', 'tblTempVendorCDR_20' ) start [2024-12-30 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134980', 'tblTempVendorCDR_20' ) end [2024-12-30 08:27:17] Production.INFO: ProcessCDR(1,14134980,1,1,2) [2024-12-30 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134980', 'tblTempUsageDetail_20' ) start [2024-12-30 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134980', 'tblTempUsageDetail_20' ) end [2024-12-30 08:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:27:20] Production.INFO: ==2289== Releasing lock... [2024-12-30 08:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:27:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-30 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:28:05 [end_date_ymd] => 2024-12-30 08:28:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:28:05' and `end` < '2024-12-30 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-30 08:28:19] Production.INFO: count ==284 [2024-12-30 08:28:19] Production.ERROR: pbx CDR StartTime 2024-12-30 05:28:05 - End Time 2024-12-30 08:28:05 [2024-12-30 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134985', 'tblTempUsageDetail_20' ) start [2024-12-30 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134985', 'tblTempUsageDetail_20' ) end [2024-12-30 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134985', 'tblTempVendorCDR_20' ) start [2024-12-30 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134985', 'tblTempVendorCDR_20' ) end [2024-12-30 08:28:19] Production.INFO: ProcessCDR(1,14134985,1,1,2) [2024-12-30 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134985', 'tblTempUsageDetail_20' ) start [2024-12-30 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134985', 'tblTempUsageDetail_20' ) end [2024-12-30 08:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:28:23] Production.INFO: ==2370== Releasing lock... [2024-12-30 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:28:23] Production.INFO: 30.5 MB #Memory Used# [2024-12-30 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:29:05 [end_date_ymd] => 2024-12-30 08:29:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:29:05' and `end` < '2024-12-30 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-30 08:29:18] Production.INFO: count ==289 [2024-12-30 08:29:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:29:05 - End Time 2024-12-30 08:29:05 [2024-12-30 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134990', 'tblTempUsageDetail_20' ) start [2024-12-30 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134990', 'tblTempUsageDetail_20' ) end [2024-12-30 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134990', 'tblTempVendorCDR_20' ) start [2024-12-30 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134990', 'tblTempVendorCDR_20' ) end [2024-12-30 08:29:18] Production.INFO: ProcessCDR(1,14134990,1,1,2) [2024-12-30 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134990', 'tblTempUsageDetail_20' ) start [2024-12-30 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134990', 'tblTempUsageDetail_20' ) end [2024-12-30 08:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:29:21] Production.INFO: ==2457== Releasing lock... [2024-12-30 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:29:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-30 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:30:05 [end_date_ymd] => 2024-12-30 08:30:05 [RateCDR] => 1 ) [2024-12-30 08: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-30 05:30:05' and `end` < '2024-12-30 08: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-30 08:30:18] Production.INFO: count ==305 [2024-12-30 08:30:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:30:05 - End Time 2024-12-30 08:30:05 [2024-12-30 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134996', 'tblTempUsageDetail_20' ) start [2024-12-30 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14134996', 'tblTempUsageDetail_20' ) end [2024-12-30 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134996', 'tblTempVendorCDR_20' ) start [2024-12-30 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14134996', 'tblTempVendorCDR_20' ) end [2024-12-30 08:30:18] Production.INFO: ProcessCDR(1,14134996,1,1,2) [2024-12-30 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14134996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14134996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14134996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14134996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134996', 'tblTempUsageDetail_20' ) start [2024-12-30 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14134996', 'tblTempUsageDetail_20' ) end [2024-12-30 08:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:30:22] Production.INFO: ==2540== Releasing lock... [2024-12-30 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:30:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-30 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:31:05 [end_date_ymd] => 2024-12-30 08:31:05 [RateCDR] => 1 ) [2024-12-30 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 05:31:05' and `end` < '2024-12-30 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 08:31:18] Production.INFO: count ==323 [2024-12-30 08:31:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:31:05 - End Time 2024-12-30 08:31:05 [2024-12-30 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135001', 'tblTempUsageDetail_20' ) start [2024-12-30 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135001', 'tblTempUsageDetail_20' ) end [2024-12-30 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135001', 'tblTempVendorCDR_20' ) start [2024-12-30 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135001', 'tblTempVendorCDR_20' ) end [2024-12-30 08:31:18] Production.INFO: ProcessCDR(1,14135001,1,1,2) [2024-12-30 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135001', 'tblTempUsageDetail_20' ) start [2024-12-30 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135001', 'tblTempUsageDetail_20' ) end [2024-12-30 08:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:31:22] Production.INFO: ==2621== Releasing lock... [2024-12-30 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:31:22] Production.INFO: 31 MB #Memory Used# [2024-12-30 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:32:05 [end_date_ymd] => 2024-12-30 08:32:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:32:05' and `end` < '2024-12-30 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-30 08:32:18] Production.INFO: count ==333 [2024-12-30 08:32:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:32:05 - End Time 2024-12-30 08:32:05 [2024-12-30 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135006', 'tblTempUsageDetail_20' ) start [2024-12-30 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135006', 'tblTempUsageDetail_20' ) end [2024-12-30 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135006', 'tblTempVendorCDR_20' ) start [2024-12-30 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135006', 'tblTempVendorCDR_20' ) end [2024-12-30 08:32:18] Production.INFO: ProcessCDR(1,14135006,1,1,2) [2024-12-30 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135006', 'tblTempUsageDetail_20' ) start [2024-12-30 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135006', 'tblTempUsageDetail_20' ) end [2024-12-30 08:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:32:23] Production.INFO: ==2694== Releasing lock... [2024-12-30 08:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:32:23] Production.INFO: 30.75 MB #Memory Used# [2024-12-30 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:33:05 [end_date_ymd] => 2024-12-30 08:33:05 [RateCDR] => 1 ) [2024-12-30 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 05:33:05' and `end` < '2024-12-30 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 08:33:17] Production.INFO: count ==343 [2024-12-30 08:33:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:33:05 - End Time 2024-12-30 08:33:05 [2024-12-30 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135011', 'tblTempUsageDetail_20' ) start [2024-12-30 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135011', 'tblTempUsageDetail_20' ) end [2024-12-30 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135011', 'tblTempVendorCDR_20' ) start [2024-12-30 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135011', 'tblTempVendorCDR_20' ) end [2024-12-30 08:33:18] Production.INFO: ProcessCDR(1,14135011,1,1,2) [2024-12-30 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135011', 'tblTempUsageDetail_20' ) start [2024-12-30 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135011', 'tblTempUsageDetail_20' ) end [2024-12-30 08:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:33:21] Production.INFO: ==2769== Releasing lock... [2024-12-30 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:33:21] Production.INFO: 31 MB #Memory Used# [2024-12-30 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:34:05 [end_date_ymd] => 2024-12-30 08:34:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:34:05' and `end` < '2024-12-30 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-30 08:34:19] Production.INFO: count ==350 [2024-12-30 08:34:19] Production.ERROR: pbx CDR StartTime 2024-12-30 05:34:05 - End Time 2024-12-30 08:34:05 [2024-12-30 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135016', 'tblTempUsageDetail_20' ) start [2024-12-30 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135016', 'tblTempUsageDetail_20' ) end [2024-12-30 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135016', 'tblTempVendorCDR_20' ) start [2024-12-30 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135016', 'tblTempVendorCDR_20' ) end [2024-12-30 08:34:19] Production.INFO: ProcessCDR(1,14135016,1,1,2) [2024-12-30 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135016', 'tblTempUsageDetail_20' ) start [2024-12-30 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135016', 'tblTempUsageDetail_20' ) end [2024-12-30 08:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:34:22] Production.INFO: ==2843== Releasing lock... [2024-12-30 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:34:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-30 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:35:05 [end_date_ymd] => 2024-12-30 08:35:05 [RateCDR] => 1 ) [2024-12-30 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 05:35:05' and `end` < '2024-12-30 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 08:35:17] Production.INFO: count ==357 [2024-12-30 08:35:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:35:05 - End Time 2024-12-30 08:35:05 [2024-12-30 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135021', 'tblTempUsageDetail_20' ) start [2024-12-30 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135021', 'tblTempUsageDetail_20' ) end [2024-12-30 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135021', 'tblTempVendorCDR_20' ) start [2024-12-30 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135021', 'tblTempVendorCDR_20' ) end [2024-12-30 08:35:18] Production.INFO: ProcessCDR(1,14135021,1,1,2) [2024-12-30 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135021', 'tblTempUsageDetail_20' ) start [2024-12-30 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135021', 'tblTempUsageDetail_20' ) end [2024-12-30 08:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:35:21] Production.INFO: ==2917== Releasing lock... [2024-12-30 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:35:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-30 08:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:36:04 [end_date_ymd] => 2024-12-30 08:36:04 [RateCDR] => 1 ) [2024-12-30 08: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-30 05:36:04' and `end` < '2024-12-30 08: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-30 08:36:17] Production.INFO: count ==369 [2024-12-30 08:36:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:36:04 - End Time 2024-12-30 08:36:04 [2024-12-30 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135026', 'tblTempUsageDetail_20' ) start [2024-12-30 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135026', 'tblTempUsageDetail_20' ) end [2024-12-30 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135026', 'tblTempVendorCDR_20' ) start [2024-12-30 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135026', 'tblTempVendorCDR_20' ) end [2024-12-30 08:36:17] Production.INFO: ProcessCDR(1,14135026,1,1,2) [2024-12-30 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135026', 'tblTempUsageDetail_20' ) start [2024-12-30 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135026', 'tblTempUsageDetail_20' ) end [2024-12-30 08:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:36:21] Production.INFO: ==2992== Releasing lock... [2024-12-30 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:36:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-30 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:37:05 [end_date_ymd] => 2024-12-30 08:37:05 [RateCDR] => 1 ) [2024-12-30 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 05:37:05' and `end` < '2024-12-30 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 08:37:19] Production.INFO: count ==374 [2024-12-30 08:37:19] Production.ERROR: pbx CDR StartTime 2024-12-30 05:37:05 - End Time 2024-12-30 08:37:05 [2024-12-30 08:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135031', 'tblTempUsageDetail_20' ) start [2024-12-30 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135031', 'tblTempUsageDetail_20' ) end [2024-12-30 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135031', 'tblTempVendorCDR_20' ) start [2024-12-30 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135031', 'tblTempVendorCDR_20' ) end [2024-12-30 08:37:19] Production.INFO: ProcessCDR(1,14135031,1,1,2) [2024-12-30 08:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135031', 'tblTempUsageDetail_20' ) start [2024-12-30 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135031', 'tblTempUsageDetail_20' ) end [2024-12-30 08:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:37:22] Production.INFO: ==3108== Releasing lock... [2024-12-30 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:37:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-30 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:38:05 [end_date_ymd] => 2024-12-30 08:38:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:38:05' and `end` < '2024-12-30 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-30 08:38:17] Production.INFO: count ==385 [2024-12-30 08:38:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:38:05 - End Time 2024-12-30 08:38:05 [2024-12-30 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135034', 'tblTempUsageDetail_20' ) start [2024-12-30 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135034', 'tblTempUsageDetail_20' ) end [2024-12-30 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135034', 'tblTempVendorCDR_20' ) start [2024-12-30 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135034', 'tblTempVendorCDR_20' ) end [2024-12-30 08:38:17] Production.INFO: ProcessCDR(1,14135034,1,1,2) [2024-12-30 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135034', 'tblTempUsageDetail_20' ) start [2024-12-30 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135034', 'tblTempUsageDetail_20' ) end [2024-12-30 08:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:38:21] Production.INFO: ==3180== Releasing lock... [2024-12-30 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:38:21] Production.INFO: 32 MB #Memory Used# [2024-12-30 08:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:39:04 [end_date_ymd] => 2024-12-30 08:39:04 [RateCDR] => 1 ) [2024-12-30 08: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-30 05:39:04' and `end` < '2024-12-30 08: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-30 08:39:18] Production.INFO: count ==392 [2024-12-30 08:39:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:39:04 - End Time 2024-12-30 08:39:04 [2024-12-30 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135041', 'tblTempUsageDetail_20' ) start [2024-12-30 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135041', 'tblTempUsageDetail_20' ) end [2024-12-30 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135041', 'tblTempVendorCDR_20' ) start [2024-12-30 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135041', 'tblTempVendorCDR_20' ) end [2024-12-30 08:39:18] Production.INFO: ProcessCDR(1,14135041,1,1,2) [2024-12-30 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135041', 'tblTempUsageDetail_20' ) start [2024-12-30 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135041', 'tblTempUsageDetail_20' ) end [2024-12-30 08:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:39:23] Production.INFO: ==3251== Releasing lock... [2024-12-30 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:39:23] Production.INFO: 32 MB #Memory Used# [2024-12-30 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:40:06 [end_date_ymd] => 2024-12-30 08:40:06 [RateCDR] => 1 ) [2024-12-30 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-30 05:40:06' and `end` < '2024-12-30 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-30 08:40:18] Production.INFO: count ==405 [2024-12-30 08:40:19] Production.ERROR: pbx CDR StartTime 2024-12-30 05:40:06 - End Time 2024-12-30 08:40:06 [2024-12-30 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135047', 'tblTempUsageDetail_20' ) start [2024-12-30 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135047', 'tblTempUsageDetail_20' ) end [2024-12-30 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135047', 'tblTempVendorCDR_20' ) start [2024-12-30 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135047', 'tblTempVendorCDR_20' ) end [2024-12-30 08:40:19] Production.INFO: ProcessCDR(1,14135047,1,1,2) [2024-12-30 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135047', 'tblTempUsageDetail_20' ) start [2024-12-30 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135047', 'tblTempUsageDetail_20' ) end [2024-12-30 08:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:40:22] Production.INFO: ==3325== Releasing lock... [2024-12-30 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:40:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-30 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:41:05 [end_date_ymd] => 2024-12-30 08:41:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:41:05' and `end` < '2024-12-30 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-30 08:41:17] Production.INFO: count ==423 [2024-12-30 08:41:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:41:05 - End Time 2024-12-30 08:41:05 [2024-12-30 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135052', 'tblTempUsageDetail_20' ) start [2024-12-30 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135052', 'tblTempUsageDetail_20' ) end [2024-12-30 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135052', 'tblTempVendorCDR_20' ) start [2024-12-30 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135052', 'tblTempVendorCDR_20' ) end [2024-12-30 08:41:17] Production.INFO: ProcessCDR(1,14135052,1,1,2) [2024-12-30 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135052', 'tblTempUsageDetail_20' ) start [2024-12-30 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135052', 'tblTempUsageDetail_20' ) end [2024-12-30 08:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:41:21] Production.INFO: ==3397== Releasing lock... [2024-12-30 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:41:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-30 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:42:05 [end_date_ymd] => 2024-12-30 08:42:05 [RateCDR] => 1 ) [2024-12-30 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 05:42:05' and `end` < '2024-12-30 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 08:42:19] Production.INFO: count ==426 [2024-12-30 08:42:19] Production.ERROR: pbx CDR StartTime 2024-12-30 05:42:05 - End Time 2024-12-30 08:42:05 [2024-12-30 08:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135057', 'tblTempUsageDetail_20' ) start [2024-12-30 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135057', 'tblTempUsageDetail_20' ) end [2024-12-30 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135057', 'tblTempVendorCDR_20' ) start [2024-12-30 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135057', 'tblTempVendorCDR_20' ) end [2024-12-30 08:42:19] Production.INFO: ProcessCDR(1,14135057,1,1,2) [2024-12-30 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135057', 'tblTempUsageDetail_20' ) start [2024-12-30 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135057', 'tblTempUsageDetail_20' ) end [2024-12-30 08:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:42:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:42:24] Production.INFO: ==3470== Releasing lock... [2024-12-30 08:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:42:24] Production.INFO: 31.75 MB #Memory Used# [2024-12-30 08:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:43:04 [end_date_ymd] => 2024-12-30 08:43:04 [RateCDR] => 1 ) [2024-12-30 08: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-30 05:43:04' and `end` < '2024-12-30 08: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-30 08:43:18] Production.INFO: count ==429 [2024-12-30 08:43:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:43:04 - End Time 2024-12-30 08:43:04 [2024-12-30 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135062', 'tblTempUsageDetail_20' ) start [2024-12-30 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135062', 'tblTempUsageDetail_20' ) end [2024-12-30 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135062', 'tblTempVendorCDR_20' ) start [2024-12-30 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135062', 'tblTempVendorCDR_20' ) end [2024-12-30 08:43:18] Production.INFO: ProcessCDR(1,14135062,1,1,2) [2024-12-30 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135062', 'tblTempUsageDetail_20' ) start [2024-12-30 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135062', 'tblTempUsageDetail_20' ) end [2024-12-30 08:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:43:23] Production.INFO: ==3540== Releasing lock... [2024-12-30 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:43:23] Production.INFO: 32.5 MB #Memory Used# [2024-12-30 08:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:44:04 [end_date_ymd] => 2024-12-30 08:44:04 [RateCDR] => 1 ) [2024-12-30 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-30 05:44:04' and `end` < '2024-12-30 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-30 08:44:20] Production.INFO: count ==445 [2024-12-30 08:44:20] Production.ERROR: pbx CDR StartTime 2024-12-30 05:44:04 - End Time 2024-12-30 08:44:04 [2024-12-30 08:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135067', 'tblTempUsageDetail_20' ) start [2024-12-30 08:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135067', 'tblTempUsageDetail_20' ) end [2024-12-30 08:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135067', 'tblTempVendorCDR_20' ) start [2024-12-30 08:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135067', 'tblTempVendorCDR_20' ) end [2024-12-30 08:44:20] Production.INFO: ProcessCDR(1,14135067,1,1,2) [2024-12-30 08:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135067', 'tblTempUsageDetail_20' ) start [2024-12-30 08:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135067', 'tblTempUsageDetail_20' ) end [2024-12-30 08:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:44:24] Production.INFO: ==3612== Releasing lock... [2024-12-30 08:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:44:24] Production.INFO: 31.75 MB #Memory Used# [2024-12-30 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:45:05 [end_date_ymd] => 2024-12-30 08:45:05 [RateCDR] => 1 ) [2024-12-30 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 05:45:05' and `end` < '2024-12-30 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 08:45:17] Production.INFO: count ==450 [2024-12-30 08:45:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:45:05 - End Time 2024-12-30 08:45:05 [2024-12-30 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135072', 'tblTempUsageDetail_20' ) start [2024-12-30 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135072', 'tblTempUsageDetail_20' ) end [2024-12-30 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135072', 'tblTempVendorCDR_20' ) start [2024-12-30 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135072', 'tblTempVendorCDR_20' ) end [2024-12-30 08:45:18] Production.INFO: ProcessCDR(1,14135072,1,1,2) [2024-12-30 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135072', 'tblTempUsageDetail_20' ) start [2024-12-30 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135072', 'tblTempUsageDetail_20' ) end [2024-12-30 08:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:45:22] Production.INFO: ==3687== Releasing lock... [2024-12-30 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:45:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:46:05 [end_date_ymd] => 2024-12-30 08:46:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:46:05' and `end` < '2024-12-30 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-30 08:46:17] Production.INFO: count ==457 [2024-12-30 08:46:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:46:05 - End Time 2024-12-30 08:46:05 [2024-12-30 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135077', 'tblTempUsageDetail_20' ) start [2024-12-30 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135077', 'tblTempUsageDetail_20' ) end [2024-12-30 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135077', 'tblTempVendorCDR_20' ) start [2024-12-30 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135077', 'tblTempVendorCDR_20' ) end [2024-12-30 08:46:17] Production.INFO: ProcessCDR(1,14135077,1,1,2) [2024-12-30 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135077', 'tblTempUsageDetail_20' ) start [2024-12-30 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135077', 'tblTempUsageDetail_20' ) end [2024-12-30 08:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:46:22] Production.INFO: ==3760== Releasing lock... [2024-12-30 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:46:22] Production.INFO: 32 MB #Memory Used# [2024-12-30 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:47:05 [end_date_ymd] => 2024-12-30 08:47:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:47:05' and `end` < '2024-12-30 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-30 08:47:18] Production.INFO: count ==482 [2024-12-30 08:47:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:47:05 - End Time 2024-12-30 08:47:05 [2024-12-30 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135082', 'tblTempUsageDetail_20' ) start [2024-12-30 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135082', 'tblTempUsageDetail_20' ) end [2024-12-30 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135082', 'tblTempVendorCDR_20' ) start [2024-12-30 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135082', 'tblTempVendorCDR_20' ) end [2024-12-30 08:47:18] Production.INFO: ProcessCDR(1,14135082,1,1,2) [2024-12-30 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135082', 'tblTempUsageDetail_20' ) start [2024-12-30 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135082', 'tblTempUsageDetail_20' ) end [2024-12-30 08:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:47:22] Production.INFO: ==3835== Releasing lock... [2024-12-30 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:47:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 08:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:48:04 [end_date_ymd] => 2024-12-30 08:48:04 [RateCDR] => 1 ) [2024-12-30 08: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-30 05:48:04' and `end` < '2024-12-30 08: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-30 08:48:17] Production.INFO: count ==491 [2024-12-30 08:48:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:48:04 - End Time 2024-12-30 08:48:04 [2024-12-30 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135087', 'tblTempUsageDetail_20' ) start [2024-12-30 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135087', 'tblTempUsageDetail_20' ) end [2024-12-30 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135087', 'tblTempVendorCDR_20' ) start [2024-12-30 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135087', 'tblTempVendorCDR_20' ) end [2024-12-30 08:48:17] Production.INFO: ProcessCDR(1,14135087,1,1,2) [2024-12-30 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135087', 'tblTempUsageDetail_20' ) start [2024-12-30 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135087', 'tblTempUsageDetail_20' ) end [2024-12-30 08:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:48:20] Production.INFO: ==3912== Releasing lock... [2024-12-30 08:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:48:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-30 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:49:05 [end_date_ymd] => 2024-12-30 08:49:05 [RateCDR] => 1 ) [2024-12-30 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 05:49:05' and `end` < '2024-12-30 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 08:49:17] Production.INFO: count ==510 [2024-12-30 08:49:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:49:05 - End Time 2024-12-30 08:49:05 [2024-12-30 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135092', 'tblTempUsageDetail_20' ) start [2024-12-30 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135092', 'tblTempUsageDetail_20' ) end [2024-12-30 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135092', 'tblTempVendorCDR_20' ) start [2024-12-30 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135092', 'tblTempVendorCDR_20' ) end [2024-12-30 08:49:18] Production.INFO: ProcessCDR(1,14135092,1,1,2) [2024-12-30 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135092', 'tblTempUsageDetail_20' ) start [2024-12-30 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135092', 'tblTempUsageDetail_20' ) end [2024-12-30 08:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:49:21] Production.INFO: ==3988== Releasing lock... [2024-12-30 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:49:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-30 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:50:06 [end_date_ymd] => 2024-12-30 08:50:06 [RateCDR] => 1 ) [2024-12-30 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-30 05:50:06' and `end` < '2024-12-30 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-30 08:50:19] Production.INFO: count ==563 [2024-12-30 08:50:19] Production.ERROR: pbx CDR StartTime 2024-12-30 05:50:06 - End Time 2024-12-30 08:50:06 [2024-12-30 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135098', 'tblTempUsageDetail_20' ) start [2024-12-30 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135098', 'tblTempUsageDetail_20' ) end [2024-12-30 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135098', 'tblTempVendorCDR_20' ) start [2024-12-30 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135098', 'tblTempVendorCDR_20' ) end [2024-12-30 08:50:19] Production.INFO: ProcessCDR(1,14135098,1,1,2) [2024-12-30 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135098', 'tblTempUsageDetail_20' ) start [2024-12-30 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135098', 'tblTempUsageDetail_20' ) end [2024-12-30 08:50:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:50:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:50:24] Production.INFO: ==4071== Releasing lock... [2024-12-30 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:50:24] Production.INFO: 32.5 MB #Memory Used# [2024-12-30 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:51:05 [end_date_ymd] => 2024-12-30 08:51:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:51:05' and `end` < '2024-12-30 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-30 08:51:17] Production.INFO: count ==612 [2024-12-30 08:51:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:51:05 - End Time 2024-12-30 08:51:05 [2024-12-30 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135103', 'tblTempUsageDetail_20' ) start [2024-12-30 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135103', 'tblTempUsageDetail_20' ) end [2024-12-30 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135103', 'tblTempVendorCDR_20' ) start [2024-12-30 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135103', 'tblTempVendorCDR_20' ) end [2024-12-30 08:51:17] Production.INFO: ProcessCDR(1,14135103,1,1,2) [2024-12-30 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135103', 'tblTempUsageDetail_20' ) start [2024-12-30 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135103', 'tblTempUsageDetail_20' ) end [2024-12-30 08:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:51:22] Production.INFO: ==4152== Releasing lock... [2024-12-30 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:51:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-30 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:52:05 [end_date_ymd] => 2024-12-30 08:52:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:52:05' and `end` < '2024-12-30 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-30 08:52:20] Production.INFO: count ==617 [2024-12-30 08:52:20] Production.ERROR: pbx CDR StartTime 2024-12-30 05:52:05 - End Time 2024-12-30 08:52:05 [2024-12-30 08:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135108', 'tblTempUsageDetail_20' ) start [2024-12-30 08:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135108', 'tblTempUsageDetail_20' ) end [2024-12-30 08:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135108', 'tblTempVendorCDR_20' ) start [2024-12-30 08:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135108', 'tblTempVendorCDR_20' ) end [2024-12-30 08:52:20] Production.INFO: ProcessCDR(1,14135108,1,1,2) [2024-12-30 08:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135108', 'tblTempUsageDetail_20' ) start [2024-12-30 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135108', 'tblTempUsageDetail_20' ) end [2024-12-30 08:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:52:23] Production.INFO: ==4273== Releasing lock... [2024-12-30 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:52:23] Production.INFO: 33.25 MB #Memory Used# [2024-12-30 08:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:53:04 [end_date_ymd] => 2024-12-30 08:53:04 [RateCDR] => 1 ) [2024-12-30 08: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-30 05:53:04' and `end` < '2024-12-30 08: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-30 08:53:17] Production.INFO: count ==618 [2024-12-30 08:53:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:53:04 - End Time 2024-12-30 08:53:04 [2024-12-30 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135113', 'tblTempUsageDetail_20' ) start [2024-12-30 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135113', 'tblTempUsageDetail_20' ) end [2024-12-30 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135113', 'tblTempVendorCDR_20' ) start [2024-12-30 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135113', 'tblTempVendorCDR_20' ) end [2024-12-30 08:53:17] Production.INFO: ProcessCDR(1,14135113,1,1,2) [2024-12-30 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135113', 'tblTempUsageDetail_20' ) start [2024-12-30 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135113', 'tblTempUsageDetail_20' ) end [2024-12-30 08:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:53:20] Production.INFO: ==4354== Releasing lock... [2024-12-30 08:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:53:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:54:05 [end_date_ymd] => 2024-12-30 08:54:05 [RateCDR] => 1 ) [2024-12-30 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 05:54:05' and `end` < '2024-12-30 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 08:54:18] Production.INFO: count ==626 [2024-12-30 08:54:18] Production.ERROR: pbx CDR StartTime 2024-12-30 05:54:05 - End Time 2024-12-30 08:54:05 [2024-12-30 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135118', 'tblTempUsageDetail_20' ) start [2024-12-30 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135118', 'tblTempUsageDetail_20' ) end [2024-12-30 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135118', 'tblTempVendorCDR_20' ) start [2024-12-30 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135118', 'tblTempVendorCDR_20' ) end [2024-12-30 08:54:18] Production.INFO: ProcessCDR(1,14135118,1,1,2) [2024-12-30 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135118', 'tblTempUsageDetail_20' ) start [2024-12-30 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135118', 'tblTempUsageDetail_20' ) end [2024-12-30 08:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:54:22] Production.INFO: ==4434== Releasing lock... [2024-12-30 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:54:22] Production.INFO: 33 MB #Memory Used# [2024-12-30 08:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:55:04 [end_date_ymd] => 2024-12-30 08:55:04 [RateCDR] => 1 ) [2024-12-30 08: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-30 05:55:04' and `end` < '2024-12-30 08: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-30 08:55:17] Production.INFO: count ==634 [2024-12-30 08:55:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:55:04 - End Time 2024-12-30 08:55:04 [2024-12-30 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135123', 'tblTempUsageDetail_20' ) start [2024-12-30 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135123', 'tblTempUsageDetail_20' ) end [2024-12-30 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135123', 'tblTempVendorCDR_20' ) start [2024-12-30 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135123', 'tblTempVendorCDR_20' ) end [2024-12-30 08:55:17] Production.INFO: ProcessCDR(1,14135123,1,1,2) [2024-12-30 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135123', 'tblTempUsageDetail_20' ) start [2024-12-30 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135123', 'tblTempUsageDetail_20' ) end [2024-12-30 08:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:55:21] Production.INFO: ==4517== Releasing lock... [2024-12-30 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:55:21] Production.INFO: 34 MB #Memory Used# [2024-12-30 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:56:05 [end_date_ymd] => 2024-12-30 08:56:05 [RateCDR] => 1 ) [2024-12-30 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 05:56:05' and `end` < '2024-12-30 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 08:56:20] Production.INFO: count ==639 [2024-12-30 08:56:20] Production.ERROR: pbx CDR StartTime 2024-12-30 05:56:05 - End Time 2024-12-30 08:56:05 [2024-12-30 08:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135128', 'tblTempUsageDetail_20' ) start [2024-12-30 08:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135128', 'tblTempUsageDetail_20' ) end [2024-12-30 08:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135128', 'tblTempVendorCDR_20' ) start [2024-12-30 08:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135128', 'tblTempVendorCDR_20' ) end [2024-12-30 08:56:20] Production.INFO: ProcessCDR(1,14135128,1,1,2) [2024-12-30 08:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135128', 'tblTempUsageDetail_20' ) start [2024-12-30 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135128', 'tblTempUsageDetail_20' ) end [2024-12-30 08:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:56:23] Production.INFO: ==4605== Releasing lock... [2024-12-30 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:56:23] Production.INFO: 33 MB #Memory Used# [2024-12-30 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:57:05 [end_date_ymd] => 2024-12-30 08:57:05 [RateCDR] => 1 ) [2024-12-30 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 05:57:05' and `end` < '2024-12-30 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 08:57:17] Production.INFO: count ==655 [2024-12-30 08:57:17] Production.ERROR: pbx CDR StartTime 2024-12-30 05:57:05 - End Time 2024-12-30 08:57:05 [2024-12-30 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135133', 'tblTempUsageDetail_20' ) start [2024-12-30 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135133', 'tblTempUsageDetail_20' ) end [2024-12-30 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135133', 'tblTempVendorCDR_20' ) start [2024-12-30 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135133', 'tblTempVendorCDR_20' ) end [2024-12-30 08:57:17] Production.INFO: ProcessCDR(1,14135133,1,1,2) [2024-12-30 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135133', 'tblTempUsageDetail_20' ) start [2024-12-30 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135133', 'tblTempUsageDetail_20' ) end [2024-12-30 08:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:57:22] Production.INFO: ==4688== Releasing lock... [2024-12-30 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:57:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-30 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:58:05 [end_date_ymd] => 2024-12-30 08:58:05 [RateCDR] => 1 ) [2024-12-30 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 05:58:05' and `end` < '2024-12-30 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 08:58:19] Production.INFO: count ==656 [2024-12-30 08:58:19] Production.ERROR: pbx CDR StartTime 2024-12-30 05:58:05 - End Time 2024-12-30 08:58:05 [2024-12-30 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135138', 'tblTempUsageDetail_20' ) start [2024-12-30 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135138', 'tblTempUsageDetail_20' ) end [2024-12-30 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135138', 'tblTempVendorCDR_20' ) start [2024-12-30 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135138', 'tblTempVendorCDR_20' ) end [2024-12-30 08:58:19] Production.INFO: ProcessCDR(1,14135138,1,1,2) [2024-12-30 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135138', 'tblTempUsageDetail_20' ) start [2024-12-30 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135138', 'tblTempUsageDetail_20' ) end [2024-12-30 08:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:58:23] Production.INFO: ==4770== Releasing lock... [2024-12-30 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:58:23] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 05:59:05 [end_date_ymd] => 2024-12-30 08:59:05 [RateCDR] => 1 ) [2024-12-30 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-30 05:59:05' and `end` < '2024-12-30 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-30 08:59:19] Production.INFO: count ==662 [2024-12-30 08:59:19] Production.ERROR: pbx CDR StartTime 2024-12-30 05:59:05 - End Time 2024-12-30 08:59:05 [2024-12-30 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135143', 'tblTempUsageDetail_20' ) start [2024-12-30 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135143', 'tblTempUsageDetail_20' ) end [2024-12-30 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135143', 'tblTempVendorCDR_20' ) start [2024-12-30 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135143', 'tblTempVendorCDR_20' ) end [2024-12-30 08:59:19] Production.INFO: ProcessCDR(1,14135143,1,1,2) [2024-12-30 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135143', 'tblTempUsageDetail_20' ) start [2024-12-30 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135143', 'tblTempUsageDetail_20' ) end [2024-12-30 08:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 08:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 08:59:22] Production.INFO: ==4851== Releasing lock... [2024-12-30 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 08:59:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-30 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:00:05 [end_date_ymd] => 2024-12-30 09:00:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:00:05' and `end` < '2024-12-30 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-30 09:00:18] Production.INFO: count ==677 [2024-12-30 09:00:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:00:05 - End Time 2024-12-30 09:00:05 [2024-12-30 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135149', 'tblTempUsageDetail_20' ) start [2024-12-30 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135149', 'tblTempUsageDetail_20' ) end [2024-12-30 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135149', 'tblTempVendorCDR_20' ) start [2024-12-30 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135149', 'tblTempVendorCDR_20' ) end [2024-12-30 09:00:19] Production.INFO: ProcessCDR(1,14135149,1,1,2) [2024-12-30 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135149', 'tblTempUsageDetail_20' ) start [2024-12-30 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135149', 'tblTempUsageDetail_20' ) end [2024-12-30 09:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:00:23] Production.INFO: ==4934== Releasing lock... [2024-12-30 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:00:23] Production.INFO: 33.75 MB #Memory Used# [2024-12-30 09:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:01:04 [end_date_ymd] => 2024-12-30 09:01:04 [RateCDR] => 1 ) [2024-12-30 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-30 06:01:04' and `end` < '2024-12-30 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-30 09:01:18] Production.INFO: count ==707 [2024-12-30 09:01:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:01:04 - End Time 2024-12-30 09:01:04 [2024-12-30 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135154', 'tblTempUsageDetail_20' ) start [2024-12-30 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135154', 'tblTempUsageDetail_20' ) end [2024-12-30 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135154', 'tblTempVendorCDR_20' ) start [2024-12-30 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135154', 'tblTempVendorCDR_20' ) end [2024-12-30 09:01:19] Production.INFO: ProcessCDR(1,14135154,1,1,2) [2024-12-30 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135154', 'tblTempUsageDetail_20' ) start [2024-12-30 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135154', 'tblTempUsageDetail_20' ) end [2024-12-30 09:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:01:22] Production.INFO: ==5033== Releasing lock... [2024-12-30 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:01:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:02:05 [end_date_ymd] => 2024-12-30 09:02:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:02:05' and `end` < '2024-12-30 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-30 09:02:17] Production.INFO: count ==730 [2024-12-30 09:02:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:02:05 - End Time 2024-12-30 09:02:05 [2024-12-30 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135159', 'tblTempUsageDetail_20' ) start [2024-12-30 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135159', 'tblTempUsageDetail_20' ) end [2024-12-30 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135159', 'tblTempVendorCDR_20' ) start [2024-12-30 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135159', 'tblTempVendorCDR_20' ) end [2024-12-30 09:02:18] Production.INFO: ProcessCDR(1,14135159,1,1,2) [2024-12-30 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135159', 'tblTempUsageDetail_20' ) start [2024-12-30 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135159', 'tblTempUsageDetail_20' ) end [2024-12-30 09:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:02:21] Production.INFO: ==5117== Releasing lock... [2024-12-30 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:02:21] Production.INFO: 34 MB #Memory Used# [2024-12-30 09:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:03:04 [end_date_ymd] => 2024-12-30 09:03:04 [RateCDR] => 1 ) [2024-12-30 09: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-30 06:03:04' and `end` < '2024-12-30 09: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-30 09:03:17] Production.INFO: count ==759 [2024-12-30 09:03:17] Production.ERROR: pbx CDR StartTime 2024-12-30 06:03:04 - End Time 2024-12-30 09:03:04 [2024-12-30 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135164', 'tblTempUsageDetail_20' ) start [2024-12-30 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135164', 'tblTempUsageDetail_20' ) end [2024-12-30 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135164', 'tblTempVendorCDR_20' ) start [2024-12-30 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135164', 'tblTempVendorCDR_20' ) end [2024-12-30 09:03:17] Production.INFO: ProcessCDR(1,14135164,1,1,2) [2024-12-30 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135164', 'tblTempUsageDetail_20' ) start [2024-12-30 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135164', 'tblTempUsageDetail_20' ) end [2024-12-30 09:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:03:22] Production.INFO: ==5200== Releasing lock... [2024-12-30 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:03:22] Production.INFO: 34 MB #Memory Used# [2024-12-30 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:04:05 [end_date_ymd] => 2024-12-30 09:04:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:04:05' and `end` < '2024-12-30 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-30 09:04:18] Production.INFO: count ==785 [2024-12-30 09:04:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:04:05 - End Time 2024-12-30 09:04:05 [2024-12-30 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135169', 'tblTempUsageDetail_20' ) start [2024-12-30 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135169', 'tblTempUsageDetail_20' ) end [2024-12-30 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135169', 'tblTempVendorCDR_20' ) start [2024-12-30 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135169', 'tblTempVendorCDR_20' ) end [2024-12-30 09:04:18] Production.INFO: ProcessCDR(1,14135169,1,1,2) [2024-12-30 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135169', 'tblTempUsageDetail_20' ) start [2024-12-30 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135169', 'tblTempUsageDetail_20' ) end [2024-12-30 09:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:04:23] Production.INFO: ==5283== Releasing lock... [2024-12-30 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:04:23] Production.INFO: 34.75 MB #Memory Used# [2024-12-30 09:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:05:04 [end_date_ymd] => 2024-12-30 09:05:04 [RateCDR] => 1 ) [2024-12-30 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-30 06:05:04' and `end` < '2024-12-30 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-30 09:05:17] Production.INFO: count ==800 [2024-12-30 09:05:17] Production.ERROR: pbx CDR StartTime 2024-12-30 06:05:04 - End Time 2024-12-30 09:05:04 [2024-12-30 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135174', 'tblTempUsageDetail_20' ) start [2024-12-30 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135174', 'tblTempUsageDetail_20' ) end [2024-12-30 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135174', 'tblTempVendorCDR_20' ) start [2024-12-30 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135174', 'tblTempVendorCDR_20' ) end [2024-12-30 09:05:17] Production.INFO: ProcessCDR(1,14135174,1,1,2) [2024-12-30 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135174', 'tblTempUsageDetail_20' ) start [2024-12-30 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135174', 'tblTempUsageDetail_20' ) end [2024-12-30 09:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:05:22] Production.INFO: ==5366== Releasing lock... [2024-12-30 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:05:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-30 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:06:05 [end_date_ymd] => 2024-12-30 09:06:05 [RateCDR] => 1 ) [2024-12-30 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 06:06:05' and `end` < '2024-12-30 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:06:18] Production.INFO: count ==845 [2024-12-30 09:06:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:06:05 - End Time 2024-12-30 09:06:05 [2024-12-30 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135179', 'tblTempUsageDetail_20' ) start [2024-12-30 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135179', 'tblTempUsageDetail_20' ) end [2024-12-30 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135179', 'tblTempVendorCDR_20' ) start [2024-12-30 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135179', 'tblTempVendorCDR_20' ) end [2024-12-30 09:06:18] Production.INFO: ProcessCDR(1,14135179,1,1,2) [2024-12-30 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135179', 'tblTempUsageDetail_20' ) start [2024-12-30 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135179', 'tblTempUsageDetail_20' ) end [2024-12-30 09:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:06:23] Production.INFO: ==5447== Releasing lock... [2024-12-30 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:06:23] Production.INFO: 34.75 MB #Memory Used# [2024-12-30 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:07:05 [end_date_ymd] => 2024-12-30 09:07:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:07:05' and `end` < '2024-12-30 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-30 09:07:19] Production.INFO: count ==867 [2024-12-30 09:07:20] Production.ERROR: pbx CDR StartTime 2024-12-30 06:07:05 - End Time 2024-12-30 09:07:05 [2024-12-30 09:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135184', 'tblTempUsageDetail_20' ) start [2024-12-30 09:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135184', 'tblTempUsageDetail_20' ) end [2024-12-30 09:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135184', 'tblTempVendorCDR_20' ) start [2024-12-30 09:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135184', 'tblTempVendorCDR_20' ) end [2024-12-30 09:07:20] Production.INFO: ProcessCDR(1,14135184,1,1,2) [2024-12-30 09:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135184', 'tblTempUsageDetail_20' ) start [2024-12-30 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135184', 'tblTempUsageDetail_20' ) end [2024-12-30 09:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:07:24] Production.INFO: ==5531== Releasing lock... [2024-12-30 09:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:07:24] Production.INFO: 35 MB #Memory Used# [2024-12-30 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:08:05 [end_date_ymd] => 2024-12-30 09:08:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:08:05' and `end` < '2024-12-30 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-30 09:08:18] Production.INFO: count ==897 [2024-12-30 09:08:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:08:05 - End Time 2024-12-30 09:08:05 [2024-12-30 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135189', 'tblTempUsageDetail_20' ) start [2024-12-30 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135189', 'tblTempUsageDetail_20' ) end [2024-12-30 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135189', 'tblTempVendorCDR_20' ) start [2024-12-30 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135189', 'tblTempVendorCDR_20' ) end [2024-12-30 09:08:18] Production.INFO: ProcessCDR(1,14135189,1,1,2) [2024-12-30 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135189', 'tblTempUsageDetail_20' ) start [2024-12-30 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135189', 'tblTempUsageDetail_20' ) end [2024-12-30 09:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:08:23] Production.INFO: ==5650== Releasing lock... [2024-12-30 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:08:23] Production.INFO: 35.25 MB #Memory Used# [2024-12-30 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:09:05 [end_date_ymd] => 2024-12-30 09:09:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:09:05' and `end` < '2024-12-30 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-30 09:09:19] Production.INFO: count ==931 [2024-12-30 09:09:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:09:05 - End Time 2024-12-30 09:09:05 [2024-12-30 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135194', 'tblTempUsageDetail_20' ) start [2024-12-30 09:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135194', 'tblTempUsageDetail_20' ) end [2024-12-30 09:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135194', 'tblTempVendorCDR_20' ) start [2024-12-30 09:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135194', 'tblTempVendorCDR_20' ) end [2024-12-30 09:09:20] Production.INFO: ProcessCDR(1,14135194,1,1,2) [2024-12-30 09:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135194', 'tblTempUsageDetail_20' ) start [2024-12-30 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135194', 'tblTempUsageDetail_20' ) end [2024-12-30 09:09:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:09:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:09:24] Production.INFO: ==5732== Releasing lock... [2024-12-30 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:09:24] Production.INFO: 35.5 MB #Memory Used# [2024-12-30 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:10:05 [end_date_ymd] => 2024-12-30 09:10:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:10:05' and `end` < '2024-12-30 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-30 09:10:18] Production.INFO: count ==941 [2024-12-30 09:10:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:10:05 - End Time 2024-12-30 09:10:05 [2024-12-30 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135200', 'tblTempUsageDetail_20' ) start [2024-12-30 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135200', 'tblTempUsageDetail_20' ) end [2024-12-30 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135200', 'tblTempVendorCDR_20' ) start [2024-12-30 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135200', 'tblTempVendorCDR_20' ) end [2024-12-30 09:10:19] Production.INFO: ProcessCDR(1,14135200,1,1,2) [2024-12-30 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135200', 'tblTempUsageDetail_20' ) start [2024-12-30 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135200', 'tblTempUsageDetail_20' ) end [2024-12-30 09:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:10:23] Production.INFO: ==5815== Releasing lock... [2024-12-30 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:10:23] Production.INFO: 35 MB #Memory Used# [2024-12-30 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:11:05 [end_date_ymd] => 2024-12-30 09:11:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:11:05' and `end` < '2024-12-30 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-30 09:11:18] Production.INFO: count ==993 [2024-12-30 09:11:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:11:05 - End Time 2024-12-30 09:11:05 [2024-12-30 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135205', 'tblTempUsageDetail_20' ) start [2024-12-30 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135205', 'tblTempUsageDetail_20' ) end [2024-12-30 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135205', 'tblTempVendorCDR_20' ) start [2024-12-30 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135205', 'tblTempVendorCDR_20' ) end [2024-12-30 09:11:18] Production.INFO: ProcessCDR(1,14135205,1,1,2) [2024-12-30 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135205', 'tblTempUsageDetail_20' ) start [2024-12-30 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135205', 'tblTempUsageDetail_20' ) end [2024-12-30 09:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:11:22] Production.INFO: ==5900== Releasing lock... [2024-12-30 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:11:22] Production.INFO: 36 MB #Memory Used# [2024-12-30 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:12:05 [end_date_ymd] => 2024-12-30 09:12:05 [RateCDR] => 1 ) [2024-12-30 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 06:12:05' and `end` < '2024-12-30 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:12:18] Production.INFO: count ==1024 [2024-12-30 09:12:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:12:05 - End Time 2024-12-30 09:12:05 [2024-12-30 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135210', 'tblTempUsageDetail_20' ) start [2024-12-30 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135210', 'tblTempUsageDetail_20' ) end [2024-12-30 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135210', 'tblTempVendorCDR_20' ) start [2024-12-30 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135210', 'tblTempVendorCDR_20' ) end [2024-12-30 09:12:18] Production.INFO: ProcessCDR(1,14135210,1,1,2) [2024-12-30 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135210', 'tblTempUsageDetail_20' ) start [2024-12-30 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135210', 'tblTempUsageDetail_20' ) end [2024-12-30 09:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:12:23] Production.INFO: ==5974== Releasing lock... [2024-12-30 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:12:23] Production.INFO: 36.25 MB #Memory Used# [2024-12-30 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:13:05 [end_date_ymd] => 2024-12-30 09:13:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:13:05' and `end` < '2024-12-30 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-30 09:13:18] Production.INFO: count ==1036 [2024-12-30 09:13:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:13:05 - End Time 2024-12-30 09:13:05 [2024-12-30 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135215', 'tblTempUsageDetail_20' ) start [2024-12-30 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135215', 'tblTempUsageDetail_20' ) end [2024-12-30 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135215', 'tblTempVendorCDR_20' ) start [2024-12-30 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135215', 'tblTempVendorCDR_20' ) end [2024-12-30 09:13:19] Production.INFO: ProcessCDR(1,14135215,1,1,2) [2024-12-30 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135215', 'tblTempUsageDetail_20' ) start [2024-12-30 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135215', 'tblTempUsageDetail_20' ) end [2024-12-30 09:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:13:23] Production.INFO: ==6050== Releasing lock... [2024-12-30 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:13:23] Production.INFO: 36 MB #Memory Used# [2024-12-30 09:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:14:04 [end_date_ymd] => 2024-12-30 09:14:04 [RateCDR] => 1 ) [2024-12-30 09: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-30 06:14:04' and `end` < '2024-12-30 09: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-30 09:14:19] Production.INFO: count ==1045 [2024-12-30 09:14:20] Production.ERROR: pbx CDR StartTime 2024-12-30 06:14:04 - End Time 2024-12-30 09:14:04 [2024-12-30 09:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135220', 'tblTempUsageDetail_20' ) start [2024-12-30 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135220', 'tblTempUsageDetail_20' ) end [2024-12-30 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135220', 'tblTempVendorCDR_20' ) start [2024-12-30 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135220', 'tblTempVendorCDR_20' ) end [2024-12-30 09:14:20] Production.INFO: ProcessCDR(1,14135220,1,1,2) [2024-12-30 09:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135220', 'tblTempUsageDetail_20' ) start [2024-12-30 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135220', 'tblTempUsageDetail_20' ) end [2024-12-30 09:14:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:14:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:14:24] Production.INFO: ==6127== Releasing lock... [2024-12-30 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:14:24] Production.INFO: 36.25 MB #Memory Used# [2024-12-30 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:15:05 [end_date_ymd] => 2024-12-30 09:15:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:15:05' and `end` < '2024-12-30 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-30 09:15:17] Production.INFO: count ==1053 [2024-12-30 09:15:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:15:05 - End Time 2024-12-30 09:15:05 [2024-12-30 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135225', 'tblTempUsageDetail_20' ) start [2024-12-30 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135225', 'tblTempUsageDetail_20' ) end [2024-12-30 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135225', 'tblTempVendorCDR_20' ) start [2024-12-30 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135225', 'tblTempVendorCDR_20' ) end [2024-12-30 09:15:18] Production.INFO: ProcessCDR(1,14135225,1,1,2) [2024-12-30 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135225', 'tblTempUsageDetail_20' ) start [2024-12-30 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135225', 'tblTempUsageDetail_20' ) end [2024-12-30 09:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:15:22] Production.INFO: ==6198== Releasing lock... [2024-12-30 09:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:15:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-30 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:16:05 [end_date_ymd] => 2024-12-30 09:16:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:16:05' and `end` < '2024-12-30 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-30 09:16:17] Production.INFO: count ==1077 [2024-12-30 09:16:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:16:05 - End Time 2024-12-30 09:16:05 [2024-12-30 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135230', 'tblTempUsageDetail_20' ) start [2024-12-30 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135230', 'tblTempUsageDetail_20' ) end [2024-12-30 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135230', 'tblTempVendorCDR_20' ) start [2024-12-30 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135230', 'tblTempVendorCDR_20' ) end [2024-12-30 09:16:18] Production.INFO: ProcessCDR(1,14135230,1,1,2) [2024-12-30 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135230', 'tblTempUsageDetail_20' ) start [2024-12-30 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135230', 'tblTempUsageDetail_20' ) end [2024-12-30 09:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:16:22] Production.INFO: ==6272== Releasing lock... [2024-12-30 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:16:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-30 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:17:05 [end_date_ymd] => 2024-12-30 09:17:05 [RateCDR] => 1 ) [2024-12-30 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 06:17:05' and `end` < '2024-12-30 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:17:19] Production.INFO: count ==1090 [2024-12-30 09:17:20] Production.ERROR: pbx CDR StartTime 2024-12-30 06:17:05 - End Time 2024-12-30 09:17:05 [2024-12-30 09:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135235', 'tblTempUsageDetail_20' ) start [2024-12-30 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135235', 'tblTempUsageDetail_20' ) end [2024-12-30 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135235', 'tblTempVendorCDR_20' ) start [2024-12-30 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135235', 'tblTempVendorCDR_20' ) end [2024-12-30 09:17:20] Production.INFO: ProcessCDR(1,14135235,1,1,2) [2024-12-30 09:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135235', 'tblTempUsageDetail_20' ) start [2024-12-30 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135235', 'tblTempUsageDetail_20' ) end [2024-12-30 09:17:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:17:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:17:24] Production.INFO: ==6348== Releasing lock... [2024-12-30 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:17:24] Production.INFO: 36.25 MB #Memory Used# [2024-12-30 09:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:18:04 [end_date_ymd] => 2024-12-30 09:18:04 [RateCDR] => 1 ) [2024-12-30 09: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-30 06:18:04' and `end` < '2024-12-30 09: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-30 09:18:17] Production.INFO: count ==1098 [2024-12-30 09:18:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:18:04 - End Time 2024-12-30 09:18:04 [2024-12-30 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135240', 'tblTempUsageDetail_20' ) start [2024-12-30 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135240', 'tblTempUsageDetail_20' ) end [2024-12-30 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135240', 'tblTempVendorCDR_20' ) start [2024-12-30 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135240', 'tblTempVendorCDR_20' ) end [2024-12-30 09:18:18] Production.INFO: ProcessCDR(1,14135240,1,1,2) [2024-12-30 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135240', 'tblTempUsageDetail_20' ) start [2024-12-30 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135240', 'tblTempUsageDetail_20' ) end [2024-12-30 09:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:18:23] Production.INFO: ==6420== Releasing lock... [2024-12-30 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:18:23] Production.INFO: 36.5 MB #Memory Used# [2024-12-30 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:19:05 [end_date_ymd] => 2024-12-30 09:19:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:19:05' and `end` < '2024-12-30 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-30 09:19:18] Production.INFO: count ==1102 [2024-12-30 09:19:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:19:05 - End Time 2024-12-30 09:19:05 [2024-12-30 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135245', 'tblTempUsageDetail_20' ) start [2024-12-30 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135245', 'tblTempUsageDetail_20' ) end [2024-12-30 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135245', 'tblTempVendorCDR_20' ) start [2024-12-30 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135245', 'tblTempVendorCDR_20' ) end [2024-12-30 09:19:18] Production.INFO: ProcessCDR(1,14135245,1,1,2) [2024-12-30 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135245', 'tblTempUsageDetail_20' ) start [2024-12-30 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135245', 'tblTempUsageDetail_20' ) end [2024-12-30 09:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:19:23] Production.INFO: ==6492== Releasing lock... [2024-12-30 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:19:23] Production.INFO: 36.25 MB #Memory Used# [2024-12-30 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:20:05 [end_date_ymd] => 2024-12-30 09:20:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:20:05' and `end` < '2024-12-30 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-30 09:20:18] Production.INFO: count ==1143 [2024-12-30 09:20:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:20:05 - End Time 2024-12-30 09:20:05 [2024-12-30 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135251', 'tblTempUsageDetail_20' ) start [2024-12-30 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135251', 'tblTempUsageDetail_20' ) end [2024-12-30 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135251', 'tblTempVendorCDR_20' ) start [2024-12-30 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135251', 'tblTempVendorCDR_20' ) end [2024-12-30 09:20:19] Production.INFO: ProcessCDR(1,14135251,1,1,2) [2024-12-30 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135251', 'tblTempUsageDetail_20' ) start [2024-12-30 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135251', 'tblTempUsageDetail_20' ) end [2024-12-30 09:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:20:23] Production.INFO: ==6570== Releasing lock... [2024-12-30 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:20:23] Production.INFO: 37 MB #Memory Used# [2024-12-30 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:21:05 [end_date_ymd] => 2024-12-30 09:21:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:21:05' and `end` < '2024-12-30 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-30 09:21:18] Production.INFO: count ==1192 [2024-12-30 09:21:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:21:05 - End Time 2024-12-30 09:21:05 [2024-12-30 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135256', 'tblTempUsageDetail_20' ) start [2024-12-30 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135256', 'tblTempUsageDetail_20' ) end [2024-12-30 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135256', 'tblTempVendorCDR_20' ) start [2024-12-30 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135256', 'tblTempVendorCDR_20' ) end [2024-12-30 09:21:18] Production.INFO: ProcessCDR(1,14135256,1,1,2) [2024-12-30 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135256', 'tblTempUsageDetail_20' ) start [2024-12-30 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135256', 'tblTempUsageDetail_20' ) end [2024-12-30 09:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:21:23] Production.INFO: ==6645== Releasing lock... [2024-12-30 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:21:23] Production.INFO: 37 MB #Memory Used# [2024-12-30 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:22:05 [end_date_ymd] => 2024-12-30 09:22:05 [RateCDR] => 1 ) [2024-12-30 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 06:22:05' and `end` < '2024-12-30 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:22:18] Production.INFO: count ==1204 [2024-12-30 09:22:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:22:05 - End Time 2024-12-30 09:22:05 [2024-12-30 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135261', 'tblTempUsageDetail_20' ) start [2024-12-30 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135261', 'tblTempUsageDetail_20' ) end [2024-12-30 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135261', 'tblTempVendorCDR_20' ) start [2024-12-30 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135261', 'tblTempVendorCDR_20' ) end [2024-12-30 09:22:19] Production.INFO: ProcessCDR(1,14135261,1,1,2) [2024-12-30 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135261', 'tblTempUsageDetail_20' ) start [2024-12-30 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135261', 'tblTempUsageDetail_20' ) end [2024-12-30 09:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:22:23] Production.INFO: ==6720== Releasing lock... [2024-12-30 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:22:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-30 09:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:23:04 [end_date_ymd] => 2024-12-30 09:23:04 [RateCDR] => 1 ) [2024-12-30 09:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 06:23:04' and `end` < '2024-12-30 09:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:23:19] Production.INFO: count ==1221 [2024-12-30 09:23:20] Production.ERROR: pbx CDR StartTime 2024-12-30 06:23:04 - End Time 2024-12-30 09:23:04 [2024-12-30 09:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135266', 'tblTempUsageDetail_20' ) start [2024-12-30 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135266', 'tblTempUsageDetail_20' ) end [2024-12-30 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135266', 'tblTempVendorCDR_20' ) start [2024-12-30 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135266', 'tblTempVendorCDR_20' ) end [2024-12-30 09:23:20] Production.INFO: ProcessCDR(1,14135266,1,1,2) [2024-12-30 09:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135266', 'tblTempUsageDetail_20' ) start [2024-12-30 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135266', 'tblTempUsageDetail_20' ) end [2024-12-30 09:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:23:24] Production.INFO: ==6792== Releasing lock... [2024-12-30 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:23:24] Production.INFO: 37.25 MB #Memory Used# [2024-12-30 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:24:05 [end_date_ymd] => 2024-12-30 09:24:05 [RateCDR] => 1 ) [2024-12-30 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 06:24:05' and `end` < '2024-12-30 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:24:18] Production.INFO: count ==1229 [2024-12-30 09:24:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:24:05 - End Time 2024-12-30 09:24:05 [2024-12-30 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135271', 'tblTempUsageDetail_20' ) start [2024-12-30 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135271', 'tblTempUsageDetail_20' ) end [2024-12-30 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135271', 'tblTempVendorCDR_20' ) start [2024-12-30 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135271', 'tblTempVendorCDR_20' ) end [2024-12-30 09:24:19] Production.INFO: ProcessCDR(1,14135271,1,1,2) [2024-12-30 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135271', 'tblTempUsageDetail_20' ) start [2024-12-30 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135271', 'tblTempUsageDetail_20' ) end [2024-12-30 09:24:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:24:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:24:24] Production.INFO: ==6905== Releasing lock... [2024-12-30 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:24:24] Production.INFO: 37.25 MB #Memory Used# [2024-12-30 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:25:04 [end_date_ymd] => 2024-12-30 09:25:04 [RateCDR] => 1 ) [2024-12-30 09:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 06:25:04' and `end` < '2024-12-30 09:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:25:17] Production.INFO: count ==1249 [2024-12-30 09:25:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:25:04 - End Time 2024-12-30 09:25:04 [2024-12-30 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135276', 'tblTempUsageDetail_20' ) start [2024-12-30 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135276', 'tblTempUsageDetail_20' ) end [2024-12-30 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135276', 'tblTempVendorCDR_20' ) start [2024-12-30 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135276', 'tblTempVendorCDR_20' ) end [2024-12-30 09:25:18] Production.INFO: ProcessCDR(1,14135276,1,1,2) [2024-12-30 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135276', 'tblTempUsageDetail_20' ) start [2024-12-30 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135276', 'tblTempUsageDetail_20' ) end [2024-12-30 09:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:25:23] Production.INFO: ==6977== Releasing lock... [2024-12-30 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:25:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-30 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:26:05 [end_date_ymd] => 2024-12-30 09:26:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:26:05' and `end` < '2024-12-30 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-30 09:26:19] Production.INFO: count ==1262 [2024-12-30 09:26:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:26:05 - End Time 2024-12-30 09:26:05 [2024-12-30 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135281', 'tblTempUsageDetail_20' ) start [2024-12-30 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135281', 'tblTempUsageDetail_20' ) end [2024-12-30 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135281', 'tblTempVendorCDR_20' ) start [2024-12-30 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135281', 'tblTempVendorCDR_20' ) end [2024-12-30 09:26:20] Production.INFO: ProcessCDR(1,14135281,1,1,2) [2024-12-30 09:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135281', 'tblTempUsageDetail_20' ) start [2024-12-30 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135281', 'tblTempUsageDetail_20' ) end [2024-12-30 09:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:26:23] Production.INFO: ==7051== Releasing lock... [2024-12-30 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:26:23] Production.INFO: 37.75 MB #Memory Used# [2024-12-30 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:27:05 [end_date_ymd] => 2024-12-30 09:27:05 [RateCDR] => 1 ) [2024-12-30 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 06:27:05' and `end` < '2024-12-30 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:27:20] Production.INFO: count ==1269 [2024-12-30 09:27:20] Production.ERROR: pbx CDR StartTime 2024-12-30 06:27:05 - End Time 2024-12-30 09:27:05 [2024-12-30 09:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135286', 'tblTempUsageDetail_20' ) start [2024-12-30 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135286', 'tblTempUsageDetail_20' ) end [2024-12-30 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135286', 'tblTempVendorCDR_20' ) start [2024-12-30 09:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135286', 'tblTempVendorCDR_20' ) end [2024-12-30 09:27:20] Production.INFO: ProcessCDR(1,14135286,1,1,2) [2024-12-30 09:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135286', 'tblTempUsageDetail_20' ) start [2024-12-30 09:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135286', 'tblTempUsageDetail_20' ) end [2024-12-30 09:27:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:27:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:27:25] Production.INFO: ==7126== Releasing lock... [2024-12-30 09:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:27:25] Production.INFO: 37.5 MB #Memory Used# [2024-12-30 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:28:05 [end_date_ymd] => 2024-12-30 09:28:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:28:05' and `end` < '2024-12-30 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-30 09:28:18] Production.INFO: count ==1279 [2024-12-30 09:28:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:28:05 - End Time 2024-12-30 09:28:05 [2024-12-30 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135291', 'tblTempUsageDetail_20' ) start [2024-12-30 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135291', 'tblTempUsageDetail_20' ) end [2024-12-30 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135291', 'tblTempVendorCDR_20' ) start [2024-12-30 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135291', 'tblTempVendorCDR_20' ) end [2024-12-30 09:28:19] Production.INFO: ProcessCDR(1,14135291,1,1,2) [2024-12-30 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135291', 'tblTempUsageDetail_20' ) start [2024-12-30 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135291', 'tblTempUsageDetail_20' ) end [2024-12-30 09:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:28:23] Production.INFO: ==7198== Releasing lock... [2024-12-30 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:28:23] Production.INFO: 37.75 MB #Memory Used# [2024-12-30 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:29:05 [end_date_ymd] => 2024-12-30 09:29:05 [RateCDR] => 1 ) [2024-12-30 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 06:29:05' and `end` < '2024-12-30 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:29:20] Production.INFO: count ==1284 [2024-12-30 09:29:21] Production.ERROR: pbx CDR StartTime 2024-12-30 06:29:05 - End Time 2024-12-30 09:29:05 [2024-12-30 09:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135296', 'tblTempUsageDetail_20' ) start [2024-12-30 09:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135296', 'tblTempUsageDetail_20' ) end [2024-12-30 09:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135296', 'tblTempVendorCDR_20' ) start [2024-12-30 09:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135296', 'tblTempVendorCDR_20' ) end [2024-12-30 09:29:21] Production.INFO: ProcessCDR(1,14135296,1,1,2) [2024-12-30 09:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135296', 'tblTempUsageDetail_20' ) start [2024-12-30 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135296', 'tblTempUsageDetail_20' ) end [2024-12-30 09:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:29:24] Production.INFO: ==7274== Releasing lock... [2024-12-30 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:29:24] Production.INFO: 37.75 MB #Memory Used# [2024-12-30 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:30:05 [end_date_ymd] => 2024-12-30 09:30:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:30:05' and `end` < '2024-12-30 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-30 09:30:19] Production.INFO: count ==1298 [2024-12-30 09:30:20] Production.ERROR: pbx CDR StartTime 2024-12-30 06:30:05 - End Time 2024-12-30 09:30:05 [2024-12-30 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135302', 'tblTempUsageDetail_20' ) start [2024-12-30 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135302', 'tblTempUsageDetail_20' ) end [2024-12-30 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135302', 'tblTempVendorCDR_20' ) start [2024-12-30 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135302', 'tblTempVendorCDR_20' ) end [2024-12-30 09:30:20] Production.INFO: ProcessCDR(1,14135302,1,1,2) [2024-12-30 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135302', 'tblTempUsageDetail_20' ) start [2024-12-30 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135302', 'tblTempUsageDetail_20' ) end [2024-12-30 09:30:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:30:24] Production.INFO: ==7349== Releasing lock... [2024-12-30 09:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:30:24] Production.INFO: 38 MB #Memory Used# [2024-12-30 09:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:31:04 [end_date_ymd] => 2024-12-30 09:31:04 [RateCDR] => 1 ) [2024-12-30 09:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 06:31:04' and `end` < '2024-12-30 09:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:31:17] Production.INFO: count ==1353 [2024-12-30 09:31:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:31:04 - End Time 2024-12-30 09:31:04 [2024-12-30 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135307', 'tblTempUsageDetail_20' ) start [2024-12-30 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135307', 'tblTempUsageDetail_20' ) end [2024-12-30 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135307', 'tblTempVendorCDR_20' ) start [2024-12-30 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135307', 'tblTempVendorCDR_20' ) end [2024-12-30 09:31:18] Production.INFO: ProcessCDR(1,14135307,1,1,2) [2024-12-30 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135307', 'tblTempUsageDetail_20' ) start [2024-12-30 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135307', 'tblTempUsageDetail_20' ) end [2024-12-30 09:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:31:22] Production.INFO: ==7422== Releasing lock... [2024-12-30 09:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:31:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-30 09:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:32:04 [end_date_ymd] => 2024-12-30 09:32:04 [RateCDR] => 1 ) [2024-12-30 09: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-30 06:32:04' and `end` < '2024-12-30 09: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-30 09:32:17] Production.INFO: count ==1370 [2024-12-30 09:32:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:32:04 - End Time 2024-12-30 09:32:04 [2024-12-30 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135312', 'tblTempUsageDetail_20' ) start [2024-12-30 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135312', 'tblTempUsageDetail_20' ) end [2024-12-30 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135312', 'tblTempVendorCDR_20' ) start [2024-12-30 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135312', 'tblTempVendorCDR_20' ) end [2024-12-30 09:32:18] Production.INFO: ProcessCDR(1,14135312,1,1,2) [2024-12-30 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135312', 'tblTempUsageDetail_20' ) start [2024-12-30 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135312', 'tblTempUsageDetail_20' ) end [2024-12-30 09:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:32:23] Production.INFO: ==7501== Releasing lock... [2024-12-30 09:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:32:23] Production.INFO: 38.25 MB #Memory Used# [2024-12-30 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:33:05 [end_date_ymd] => 2024-12-30 09:33:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:33:05' and `end` < '2024-12-30 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-30 09:33:20] Production.INFO: count ==1418 [2024-12-30 09:33:20] Production.ERROR: pbx CDR StartTime 2024-12-30 06:33:05 - End Time 2024-12-30 09:33:05 [2024-12-30 09:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135317', 'tblTempUsageDetail_20' ) start [2024-12-30 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135317', 'tblTempUsageDetail_20' ) end [2024-12-30 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135317', 'tblTempVendorCDR_20' ) start [2024-12-30 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135317', 'tblTempVendorCDR_20' ) end [2024-12-30 09:33:20] Production.INFO: ProcessCDR(1,14135317,1,1,2) [2024-12-30 09:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135317', 'tblTempUsageDetail_20' ) start [2024-12-30 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135317', 'tblTempUsageDetail_20' ) end [2024-12-30 09:33:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:33:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:33:25] Production.INFO: ==7585== Releasing lock... [2024-12-30 09:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:33:25] Production.INFO: 39 MB #Memory Used# [2024-12-30 09:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:34:04 [end_date_ymd] => 2024-12-30 09:34:04 [RateCDR] => 1 ) [2024-12-30 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-30 06:34:04' and `end` < '2024-12-30 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-30 09:34:17] Production.INFO: count ==1427 [2024-12-30 09:34:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:34:04 - End Time 2024-12-30 09:34:04 [2024-12-30 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135322', 'tblTempUsageDetail_20' ) start [2024-12-30 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135322', 'tblTempUsageDetail_20' ) end [2024-12-30 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135322', 'tblTempVendorCDR_20' ) start [2024-12-30 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135322', 'tblTempVendorCDR_20' ) end [2024-12-30 09:34:18] Production.INFO: ProcessCDR(1,14135322,1,1,2) [2024-12-30 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135322', 'tblTempUsageDetail_20' ) start [2024-12-30 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135322', 'tblTempUsageDetail_20' ) end [2024-12-30 09:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:34:23] Production.INFO: ==7662== Releasing lock... [2024-12-30 09:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:34:23] Production.INFO: 39 MB #Memory Used# [2024-12-30 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:35:05 [end_date_ymd] => 2024-12-30 09:35:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:35:05' and `end` < '2024-12-30 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-30 09:35:18] Production.INFO: count ==1468 [2024-12-30 09:35:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:35:05 - End Time 2024-12-30 09:35:05 [2024-12-30 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135327', 'tblTempUsageDetail_20' ) start [2024-12-30 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135327', 'tblTempUsageDetail_20' ) end [2024-12-30 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135327', 'tblTempVendorCDR_20' ) start [2024-12-30 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135327', 'tblTempVendorCDR_20' ) end [2024-12-30 09:35:18] Production.INFO: ProcessCDR(1,14135327,1,1,2) [2024-12-30 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135327', 'tblTempUsageDetail_20' ) start [2024-12-30 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135327', 'tblTempUsageDetail_20' ) end [2024-12-30 09:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:35:23] Production.INFO: ==7742== Releasing lock... [2024-12-30 09:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:35:23] Production.INFO: 39 MB #Memory Used# [2024-12-30 09:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:36:04 [end_date_ymd] => 2024-12-30 09:36:04 [RateCDR] => 1 ) [2024-12-30 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-30 06:36:04' and `end` < '2024-12-30 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-30 09:36:21] Production.INFO: count ==1487 [2024-12-30 09:36:22] Production.ERROR: pbx CDR StartTime 2024-12-30 06:36:04 - End Time 2024-12-30 09:36:04 [2024-12-30 09:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135332', 'tblTempUsageDetail_20' ) start [2024-12-30 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135332', 'tblTempUsageDetail_20' ) end [2024-12-30 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135332', 'tblTempVendorCDR_20' ) start [2024-12-30 09:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135332', 'tblTempVendorCDR_20' ) end [2024-12-30 09:36:22] Production.INFO: ProcessCDR(1,14135332,1,1,2) [2024-12-30 09:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135332', 'tblTempUsageDetail_20' ) start [2024-12-30 09:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135332', 'tblTempUsageDetail_20' ) end [2024-12-30 09:36:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:36:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:36:26] Production.INFO: ==7820== Releasing lock... [2024-12-30 09:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:36:26] Production.INFO: 39.25 MB #Memory Used# [2024-12-30 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:37:05 [end_date_ymd] => 2024-12-30 09:37:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:37:05' and `end` < '2024-12-30 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-30 09:37:18] Production.INFO: count ==1505 [2024-12-30 09:37:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:37:05 - End Time 2024-12-30 09:37:05 [2024-12-30 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135337', 'tblTempUsageDetail_20' ) start [2024-12-30 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135337', 'tblTempUsageDetail_20' ) end [2024-12-30 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135337', 'tblTempVendorCDR_20' ) start [2024-12-30 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135337', 'tblTempVendorCDR_20' ) end [2024-12-30 09:37:19] Production.INFO: ProcessCDR(1,14135337,1,1,2) [2024-12-30 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135337', 'tblTempUsageDetail_20' ) start [2024-12-30 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135337', 'tblTempUsageDetail_20' ) end [2024-12-30 09:37:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:37:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:37:24] Production.INFO: ==7900== Releasing lock... [2024-12-30 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:37:24] Production.INFO: 39.25 MB #Memory Used# [2024-12-30 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:38:06 [end_date_ymd] => 2024-12-30 09:38:06 [RateCDR] => 1 ) [2024-12-30 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-30 06:38:06' and `end` < '2024-12-30 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-30 09:38:20] Production.INFO: count ==1518 [2024-12-30 09:38:20] Production.ERROR: pbx CDR StartTime 2024-12-30 06:38:06 - End Time 2024-12-30 09:38:06 [2024-12-30 09:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135342', 'tblTempUsageDetail_20' ) start [2024-12-30 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135342', 'tblTempUsageDetail_20' ) end [2024-12-30 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135342', 'tblTempVendorCDR_20' ) start [2024-12-30 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135342', 'tblTempVendorCDR_20' ) end [2024-12-30 09:38:20] Production.INFO: ProcessCDR(1,14135342,1,1,2) [2024-12-30 09:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135342', 'tblTempUsageDetail_20' ) start [2024-12-30 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135342', 'tblTempUsageDetail_20' ) end [2024-12-30 09:38:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:38:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:38:25] Production.INFO: ==7980== Releasing lock... [2024-12-30 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:38:25] Production.INFO: 39.5 MB #Memory Used# [2024-12-30 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:39:05 [end_date_ymd] => 2024-12-30 09:39:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:39:05' and `end` < '2024-12-30 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-30 09:39:18] Production.INFO: count ==1524 [2024-12-30 09:39:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:39:05 - End Time 2024-12-30 09:39:05 [2024-12-30 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135347', 'tblTempUsageDetail_20' ) start [2024-12-30 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135347', 'tblTempUsageDetail_20' ) end [2024-12-30 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135347', 'tblTempVendorCDR_20' ) start [2024-12-30 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135347', 'tblTempVendorCDR_20' ) end [2024-12-30 09:39:19] Production.INFO: ProcessCDR(1,14135347,1,1,2) [2024-12-30 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135347', 'tblTempUsageDetail_20' ) start [2024-12-30 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135347', 'tblTempUsageDetail_20' ) end [2024-12-30 09:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:39:23] Production.INFO: ==8142== Releasing lock... [2024-12-30 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:39:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-30 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:40:06 [end_date_ymd] => 2024-12-30 09:40:06 [RateCDR] => 1 ) [2024-12-30 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 06:40:06' and `end` < '2024-12-30 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:40:21] Production.INFO: count ==1548 [2024-12-30 09:40:22] Production.ERROR: pbx CDR StartTime 2024-12-30 06:40:06 - End Time 2024-12-30 09:40:06 [2024-12-30 09:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135352', 'tblTempUsageDetail_20' ) start [2024-12-30 09:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135352', 'tblTempUsageDetail_20' ) end [2024-12-30 09:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135352', 'tblTempVendorCDR_20' ) start [2024-12-30 09:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135352', 'tblTempVendorCDR_20' ) end [2024-12-30 09:40:22] Production.INFO: ProcessCDR(1,14135352,1,1,2) [2024-12-30 09:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135352', 'tblTempUsageDetail_20' ) start [2024-12-30 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135352', 'tblTempUsageDetail_20' ) end [2024-12-30 09:40:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:40:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:40:26] Production.INFO: ==8259== Releasing lock... [2024-12-30 09:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:40:26] Production.INFO: 39.75 MB #Memory Used# [2024-12-30 09:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:41:04 [end_date_ymd] => 2024-12-30 09:41:04 [RateCDR] => 1 ) [2024-12-30 09: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-30 06:41:04' and `end` < '2024-12-30 09: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-30 09:41:18] Production.INFO: count ==1590 [2024-12-30 09:41:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:41:04 - End Time 2024-12-30 09:41:04 [2024-12-30 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135358', 'tblTempUsageDetail_20' ) start [2024-12-30 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135358', 'tblTempUsageDetail_20' ) end [2024-12-30 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135358', 'tblTempVendorCDR_20' ) start [2024-12-30 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135358', 'tblTempVendorCDR_20' ) end [2024-12-30 09:41:19] Production.INFO: ProcessCDR(1,14135358,1,1,2) [2024-12-30 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135358', 'tblTempUsageDetail_20' ) start [2024-12-30 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135358', 'tblTempUsageDetail_20' ) end [2024-12-30 09:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:41:22] Production.INFO: ==8340== Releasing lock... [2024-12-30 09:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:41:22] Production.INFO: 40 MB #Memory Used# [2024-12-30 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:42:05 [end_date_ymd] => 2024-12-30 09:42:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:42:05' and `end` < '2024-12-30 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-30 09:42:19] Production.INFO: count ==1611 [2024-12-30 09:42:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:42:05 - End Time 2024-12-30 09:42:05 [2024-12-30 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135363', 'tblTempUsageDetail_20' ) start [2024-12-30 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135363', 'tblTempUsageDetail_20' ) end [2024-12-30 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135363', 'tblTempVendorCDR_20' ) start [2024-12-30 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135363', 'tblTempVendorCDR_20' ) end [2024-12-30 09:42:19] Production.INFO: ProcessCDR(1,14135363,1,1,2) [2024-12-30 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135363', 'tblTempUsageDetail_20' ) start [2024-12-30 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135363', 'tblTempUsageDetail_20' ) end [2024-12-30 09:42:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:42:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:42:24] Production.INFO: ==8425== Releasing lock... [2024-12-30 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:42:24] Production.INFO: 40.25 MB #Memory Used# [2024-12-30 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:43:05 [end_date_ymd] => 2024-12-30 09:43:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:43:05' and `end` < '2024-12-30 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-30 09:43:19] Production.INFO: count ==1615 [2024-12-30 09:43:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:43:05 - End Time 2024-12-30 09:43:05 [2024-12-30 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135368', 'tblTempUsageDetail_20' ) start [2024-12-30 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135368', 'tblTempUsageDetail_20' ) end [2024-12-30 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135368', 'tblTempVendorCDR_20' ) start [2024-12-30 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135368', 'tblTempVendorCDR_20' ) end [2024-12-30 09:43:19] Production.INFO: ProcessCDR(1,14135368,1,1,2) [2024-12-30 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135368', 'tblTempUsageDetail_20' ) start [2024-12-30 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135368', 'tblTempUsageDetail_20' ) end [2024-12-30 09:43:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:43:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:43:24] Production.INFO: ==8501== Releasing lock... [2024-12-30 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:43:24] Production.INFO: 40.25 MB #Memory Used# [2024-12-30 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:44:05 [end_date_ymd] => 2024-12-30 09:44:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:44:05' and `end` < '2024-12-30 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-30 09:44:26] Production.INFO: count ==1642 [2024-12-30 09:44:27] Production.ERROR: pbx CDR StartTime 2024-12-30 06:44:05 - End Time 2024-12-30 09:44:05 [2024-12-30 09:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135373', 'tblTempUsageDetail_20' ) start [2024-12-30 09:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135373', 'tblTempUsageDetail_20' ) end [2024-12-30 09:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135373', 'tblTempVendorCDR_20' ) start [2024-12-30 09:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135373', 'tblTempVendorCDR_20' ) end [2024-12-30 09:44:27] Production.INFO: ProcessCDR(1,14135373,1,1,2) [2024-12-30 09:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135373', 'tblTempUsageDetail_20' ) start [2024-12-30 09:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135373', 'tblTempUsageDetail_20' ) end [2024-12-30 09:44:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:44:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:44:32] Production.INFO: ==8586== Releasing lock... [2024-12-30 09:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:44:32] Production.INFO: 40.25 MB #Memory Used# [2024-12-30 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:45:05 [end_date_ymd] => 2024-12-30 09:45:05 [RateCDR] => 1 ) [2024-12-30 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 06:45:05' and `end` < '2024-12-30 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:45:18] Production.INFO: count ==1659 [2024-12-30 09:45:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:45:05 - End Time 2024-12-30 09:45:05 [2024-12-30 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135378', 'tblTempUsageDetail_20' ) start [2024-12-30 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135378', 'tblTempUsageDetail_20' ) end [2024-12-30 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135378', 'tblTempVendorCDR_20' ) start [2024-12-30 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135378', 'tblTempVendorCDR_20' ) end [2024-12-30 09:45:19] Production.INFO: ProcessCDR(1,14135378,1,1,2) [2024-12-30 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135378', 'tblTempUsageDetail_20' ) start [2024-12-30 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135378', 'tblTempUsageDetail_20' ) end [2024-12-30 09:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:45:22] Production.INFO: ==8664== Releasing lock... [2024-12-30 09:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:45:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-30 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:46:05 [end_date_ymd] => 2024-12-30 09:46:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:46:05' and `end` < '2024-12-30 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-30 09:46:17] Production.INFO: count ==1665 [2024-12-30 09:46:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:46:05 - End Time 2024-12-30 09:46:05 [2024-12-30 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135383', 'tblTempUsageDetail_20' ) start [2024-12-30 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135383', 'tblTempUsageDetail_20' ) end [2024-12-30 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135383', 'tblTempVendorCDR_20' ) start [2024-12-30 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135383', 'tblTempVendorCDR_20' ) end [2024-12-30 09:46:18] Production.INFO: ProcessCDR(1,14135383,1,1,2) [2024-12-30 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135383', 'tblTempUsageDetail_20' ) start [2024-12-30 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135383', 'tblTempUsageDetail_20' ) end [2024-12-30 09:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:46:23] Production.INFO: ==8748== Releasing lock... [2024-12-30 09:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:46:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-30 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:47:05 [end_date_ymd] => 2024-12-30 09:47:05 [RateCDR] => 1 ) [2024-12-30 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 06:47:05' and `end` < '2024-12-30 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:47:19] Production.INFO: count ==1670 [2024-12-30 09:47:20] Production.ERROR: pbx CDR StartTime 2024-12-30 06:47:05 - End Time 2024-12-30 09:47:05 [2024-12-30 09:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135388', 'tblTempUsageDetail_20' ) start [2024-12-30 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135388', 'tblTempUsageDetail_20' ) end [2024-12-30 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135388', 'tblTempVendorCDR_20' ) start [2024-12-30 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135388', 'tblTempVendorCDR_20' ) end [2024-12-30 09:47:20] Production.INFO: ProcessCDR(1,14135388,1,1,2) [2024-12-30 09:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135388', 'tblTempUsageDetail_20' ) start [2024-12-30 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135388', 'tblTempUsageDetail_20' ) end [2024-12-30 09:47:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:47:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:47:25] Production.INFO: ==8832== Releasing lock... [2024-12-30 09:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:47:25] Production.INFO: 40.5 MB #Memory Used# [2024-12-30 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:48:05 [end_date_ymd] => 2024-12-30 09:48:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:48:05' and `end` < '2024-12-30 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-30 09:48:19] Production.INFO: count ==1688 [2024-12-30 09:48:20] Production.ERROR: pbx CDR StartTime 2024-12-30 06:48:05 - End Time 2024-12-30 09:48:05 [2024-12-30 09:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135393', 'tblTempUsageDetail_20' ) start [2024-12-30 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135393', 'tblTempUsageDetail_20' ) end [2024-12-30 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135393', 'tblTempVendorCDR_20' ) start [2024-12-30 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135393', 'tblTempVendorCDR_20' ) end [2024-12-30 09:48:20] Production.INFO: ProcessCDR(1,14135393,1,1,2) [2024-12-30 09:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135393', 'tblTempUsageDetail_20' ) start [2024-12-30 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135393', 'tblTempUsageDetail_20' ) end [2024-12-30 09:48:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:48:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:48:25] Production.INFO: ==8911== Releasing lock... [2024-12-30 09:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:48:25] Production.INFO: 40.75 MB #Memory Used# [2024-12-30 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:49:05 [end_date_ymd] => 2024-12-30 09:49:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:49:05' and `end` < '2024-12-30 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:49:18] Production.INFO: count ==1703 [2024-12-30 09:49:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:49:05 - End Time 2024-12-30 09:49:05 [2024-12-30 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135396', 'tblTempUsageDetail_20' ) start [2024-12-30 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135396', 'tblTempUsageDetail_20' ) end [2024-12-30 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135396', 'tblTempVendorCDR_20' ) start [2024-12-30 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135396', 'tblTempVendorCDR_20' ) end [2024-12-30 09:49:19] Production.INFO: ProcessCDR(1,14135396,1,1,2) [2024-12-30 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135396', 'tblTempUsageDetail_20' ) start [2024-12-30 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135396', 'tblTempUsageDetail_20' ) end [2024-12-30 09:49:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:49:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:49:24] Production.INFO: ==8993== Releasing lock... [2024-12-30 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:49:24] Production.INFO: 40.75 MB #Memory Used# [2024-12-30 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:50:06 [end_date_ymd] => 2024-12-30 09:50:06 [RateCDR] => 1 ) [2024-12-30 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 06:50:06' and `end` < '2024-12-30 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:50:19] Production.INFO: count ==1719 [2024-12-30 09:50:20] Production.ERROR: pbx CDR StartTime 2024-12-30 06:50:06 - End Time 2024-12-30 09:50:06 [2024-12-30 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135404', 'tblTempUsageDetail_20' ) start [2024-12-30 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135404', 'tblTempUsageDetail_20' ) end [2024-12-30 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135404', 'tblTempVendorCDR_20' ) start [2024-12-30 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135404', 'tblTempVendorCDR_20' ) end [2024-12-30 09:50:20] Production.INFO: ProcessCDR(1,14135404,1,1,2) [2024-12-30 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135404', 'tblTempUsageDetail_20' ) start [2024-12-30 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135404', 'tblTempUsageDetail_20' ) end [2024-12-30 09:50:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:50:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:50:24] Production.INFO: ==9071== Releasing lock... [2024-12-30 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:50:24] Production.INFO: 41 MB #Memory Used# [2024-12-30 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:51:05 [end_date_ymd] => 2024-12-30 09:51:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:51:05' and `end` < '2024-12-30 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-30 09:51:18] Production.INFO: count ==1752 [2024-12-30 09:51:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:51:05 - End Time 2024-12-30 09:51:05 [2024-12-30 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135409', 'tblTempUsageDetail_20' ) start [2024-12-30 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135409', 'tblTempUsageDetail_20' ) end [2024-12-30 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135409', 'tblTempVendorCDR_20' ) start [2024-12-30 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135409', 'tblTempVendorCDR_20' ) end [2024-12-30 09:51:19] Production.INFO: ProcessCDR(1,14135409,1,1,2) [2024-12-30 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135409', 'tblTempUsageDetail_20' ) start [2024-12-30 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135409', 'tblTempUsageDetail_20' ) end [2024-12-30 09:51:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:51:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:51:24] Production.INFO: ==9153== Releasing lock... [2024-12-30 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:51:24] Production.INFO: 41.5 MB #Memory Used# [2024-12-30 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:52:05 [end_date_ymd] => 2024-12-30 09:52:05 [RateCDR] => 1 ) [2024-12-30 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 06:52:05' and `end` < '2024-12-30 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:52:18] Production.INFO: count ==1774 [2024-12-30 09:52:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:52:05 - End Time 2024-12-30 09:52:05 [2024-12-30 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135414', 'tblTempUsageDetail_20' ) start [2024-12-30 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135414', 'tblTempUsageDetail_20' ) end [2024-12-30 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135414', 'tblTempVendorCDR_20' ) start [2024-12-30 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135414', 'tblTempVendorCDR_20' ) end [2024-12-30 09:52:18] Production.INFO: ProcessCDR(1,14135414,1,1,2) [2024-12-30 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135414', 'tblTempUsageDetail_20' ) start [2024-12-30 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135414', 'tblTempUsageDetail_20' ) end [2024-12-30 09:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:52:23] Production.INFO: ==9237== Releasing lock... [2024-12-30 09:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:52:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-30 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:53:05 [end_date_ymd] => 2024-12-30 09:53:05 [RateCDR] => 1 ) [2024-12-30 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 06:53:05' and `end` < '2024-12-30 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:53:18] Production.INFO: count ==1799 [2024-12-30 09:53:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:53:05 - End Time 2024-12-30 09:53:05 [2024-12-30 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135419', 'tblTempUsageDetail_20' ) start [2024-12-30 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135419', 'tblTempUsageDetail_20' ) end [2024-12-30 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135419', 'tblTempVendorCDR_20' ) start [2024-12-30 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135419', 'tblTempVendorCDR_20' ) end [2024-12-30 09:53:19] Production.INFO: ProcessCDR(1,14135419,1,1,2) [2024-12-30 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135419', 'tblTempUsageDetail_20' ) start [2024-12-30 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135419', 'tblTempUsageDetail_20' ) end [2024-12-30 09:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:53:23] Production.INFO: ==9316== Releasing lock... [2024-12-30 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:53:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-30 09:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:54:04 [end_date_ymd] => 2024-12-30 09:54:04 [RateCDR] => 1 ) [2024-12-30 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-30 06:54:04' and `end` < '2024-12-30 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-30 09:54:17] Production.INFO: count ==1811 [2024-12-30 09:54:18] Production.ERROR: pbx CDR StartTime 2024-12-30 06:54:04 - End Time 2024-12-30 09:54:04 [2024-12-30 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135424', 'tblTempUsageDetail_20' ) start [2024-12-30 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135424', 'tblTempUsageDetail_20' ) end [2024-12-30 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135424', 'tblTempVendorCDR_20' ) start [2024-12-30 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135424', 'tblTempVendorCDR_20' ) end [2024-12-30 09:54:18] Production.INFO: ProcessCDR(1,14135424,1,1,2) [2024-12-30 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135424', 'tblTempUsageDetail_20' ) start [2024-12-30 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135424', 'tblTempUsageDetail_20' ) end [2024-12-30 09:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:54:22] Production.INFO: ==9394== Releasing lock... [2024-12-30 09:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:54:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-30 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:55:05 [end_date_ymd] => 2024-12-30 09:55:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:55:05' and `end` < '2024-12-30 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-30 09:55:18] Production.INFO: count ==1838 [2024-12-30 09:55:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:55:05 - End Time 2024-12-30 09:55:05 [2024-12-30 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135429', 'tblTempUsageDetail_20' ) start [2024-12-30 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135429', 'tblTempUsageDetail_20' ) end [2024-12-30 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135429', 'tblTempVendorCDR_20' ) start [2024-12-30 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135429', 'tblTempVendorCDR_20' ) end [2024-12-30 09:55:19] Production.INFO: ProcessCDR(1,14135429,1,1,2) [2024-12-30 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135429', 'tblTempUsageDetail_20' ) start [2024-12-30 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135429', 'tblTempUsageDetail_20' ) end [2024-12-30 09:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:55:22] Production.INFO: ==9507== Releasing lock... [2024-12-30 09:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:55:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-30 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:56:06 [end_date_ymd] => 2024-12-30 09:56:06 [RateCDR] => 1 ) [2024-12-30 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 06:56:06' and `end` < '2024-12-30 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:56:19] Production.INFO: count ==1840 [2024-12-30 09:56:20] Production.ERROR: pbx CDR StartTime 2024-12-30 06:56:06 - End Time 2024-12-30 09:56:06 [2024-12-30 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135434', 'tblTempUsageDetail_20' ) start [2024-12-30 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135434', 'tblTempUsageDetail_20' ) end [2024-12-30 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135434', 'tblTempVendorCDR_20' ) start [2024-12-30 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135434', 'tblTempVendorCDR_20' ) end [2024-12-30 09:56:20] Production.INFO: ProcessCDR(1,14135434,1,1,2) [2024-12-30 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135434', 'tblTempUsageDetail_20' ) start [2024-12-30 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135434', 'tblTempUsageDetail_20' ) end [2024-12-30 09:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:56:24] Production.INFO: ==9587== Releasing lock... [2024-12-30 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:56:24] Production.INFO: 41.75 MB #Memory Used# [2024-12-30 09:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:57:04 [end_date_ymd] => 2024-12-30 09:57:04 [RateCDR] => 1 ) [2024-12-30 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-30 06:57:04' and `end` < '2024-12-30 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-30 09:57:19] Production.INFO: count ==1880 [2024-12-30 09:57:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:57:04 - End Time 2024-12-30 09:57:04 [2024-12-30 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135439', 'tblTempUsageDetail_20' ) start [2024-12-30 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135439', 'tblTempUsageDetail_20' ) end [2024-12-30 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135439', 'tblTempVendorCDR_20' ) start [2024-12-30 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135439', 'tblTempVendorCDR_20' ) end [2024-12-30 09:57:19] Production.INFO: ProcessCDR(1,14135439,1,1,2) [2024-12-30 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135439', 'tblTempUsageDetail_20' ) start [2024-12-30 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135439', 'tblTempUsageDetail_20' ) end [2024-12-30 09:57:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:57:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:57:24] Production.INFO: ==9665== Releasing lock... [2024-12-30 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:57:24] Production.INFO: 42.25 MB #Memory Used# [2024-12-30 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:58:05 [end_date_ymd] => 2024-12-30 09:58:05 [RateCDR] => 1 ) [2024-12-30 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-30 06:58:05' and `end` < '2024-12-30 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-30 09:58:18] Production.INFO: count ==1887 [2024-12-30 09:58:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:58:05 - End Time 2024-12-30 09:58:05 [2024-12-30 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135444', 'tblTempUsageDetail_20' ) start [2024-12-30 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135444', 'tblTempUsageDetail_20' ) end [2024-12-30 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135444', 'tblTempVendorCDR_20' ) start [2024-12-30 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135444', 'tblTempVendorCDR_20' ) end [2024-12-30 09:58:19] Production.INFO: ProcessCDR(1,14135444,1,1,2) [2024-12-30 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135444', 'tblTempUsageDetail_20' ) start [2024-12-30 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135444', 'tblTempUsageDetail_20' ) end [2024-12-30 09:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:58:23] Production.INFO: ==9748== Releasing lock... [2024-12-30 09:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:58:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-30 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 06:59:05 [end_date_ymd] => 2024-12-30 09:59:05 [RateCDR] => 1 ) [2024-12-30 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 06:59:05' and `end` < '2024-12-30 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 09:59:18] Production.INFO: count ==1903 [2024-12-30 09:59:19] Production.ERROR: pbx CDR StartTime 2024-12-30 06:59:05 - End Time 2024-12-30 09:59:05 [2024-12-30 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135449', 'tblTempUsageDetail_20' ) start [2024-12-30 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135449', 'tblTempUsageDetail_20' ) end [2024-12-30 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135449', 'tblTempVendorCDR_20' ) start [2024-12-30 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135449', 'tblTempVendorCDR_20' ) end [2024-12-30 09:59:19] Production.INFO: ProcessCDR(1,14135449,1,1,2) [2024-12-30 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135449', 'tblTempUsageDetail_20' ) start [2024-12-30 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135449', 'tblTempUsageDetail_20' ) end [2024-12-30 09:59:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 09:59:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 09:59:24] Production.INFO: ==9820== Releasing lock... [2024-12-30 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 09:59:24] Production.INFO: 42.5 MB #Memory Used# [2024-12-30 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:00:06 [end_date_ymd] => 2024-12-30 10:00:06 [RateCDR] => 1 ) [2024-12-30 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-30 07:00:06' and `end` < '2024-12-30 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-30 10:00:21] Production.INFO: count ==1925 [2024-12-30 10:00:21] Production.ERROR: pbx CDR StartTime 2024-12-30 07:00:06 - End Time 2024-12-30 10:00:06 [2024-12-30 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135455', 'tblTempUsageDetail_20' ) start [2024-12-30 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135455', 'tblTempUsageDetail_20' ) end [2024-12-30 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135455', 'tblTempVendorCDR_20' ) start [2024-12-30 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135455', 'tblTempVendorCDR_20' ) end [2024-12-30 10:00:21] Production.INFO: ProcessCDR(1,14135455,1,1,2) [2024-12-30 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135455', 'tblTempUsageDetail_20' ) start [2024-12-30 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135455', 'tblTempUsageDetail_20' ) end [2024-12-30 10:00:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:00:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:00:26] Production.INFO: ==9896== Releasing lock... [2024-12-30 10:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:00:26] Production.INFO: 42.75 MB #Memory Used# [2024-12-30 10:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:01:04 [end_date_ymd] => 2024-12-30 10:01:04 [RateCDR] => 1 ) [2024-12-30 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-30 07:01:04' and `end` < '2024-12-30 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-30 10:01:18] Production.INFO: count ==2007 [2024-12-30 10:01:19] Production.ERROR: pbx CDR StartTime 2024-12-30 07:01:04 - End Time 2024-12-30 10:01:04 [2024-12-30 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135460', 'tblTempUsageDetail_20' ) start [2024-12-30 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135460', 'tblTempUsageDetail_20' ) end [2024-12-30 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135460', 'tblTempVendorCDR_20' ) start [2024-12-30 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135460', 'tblTempVendorCDR_20' ) end [2024-12-30 10:01:19] Production.INFO: ProcessCDR(1,14135460,1,1,2) [2024-12-30 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135460', 'tblTempUsageDetail_20' ) start [2024-12-30 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135460', 'tblTempUsageDetail_20' ) end [2024-12-30 10:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:01:24] Production.INFO: ==9984== Releasing lock... [2024-12-30 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:01:24] Production.INFO: 43 MB #Memory Used# [2024-12-30 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:02:05 [end_date_ymd] => 2024-12-30 10:02:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:02:05' and `end` < '2024-12-30 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-30 10:02:20] Production.INFO: count ==2025 [2024-12-30 10:02:21] Production.ERROR: pbx CDR StartTime 2024-12-30 07:02:05 - End Time 2024-12-30 10:02:05 [2024-12-30 10:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135465', 'tblTempUsageDetail_20' ) start [2024-12-30 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135465', 'tblTempUsageDetail_20' ) end [2024-12-30 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135465', 'tblTempVendorCDR_20' ) start [2024-12-30 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135465', 'tblTempVendorCDR_20' ) end [2024-12-30 10:02:21] Production.INFO: ProcessCDR(1,14135465,1,1,2) [2024-12-30 10:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135465', 'tblTempUsageDetail_20' ) start [2024-12-30 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135465', 'tblTempUsageDetail_20' ) end [2024-12-30 10:02:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:02:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:02:26] Production.INFO: ==10055== Releasing lock... [2024-12-30 10:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:02:26] Production.INFO: 43.25 MB #Memory Used# [2024-12-30 10:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:03:04 [end_date_ymd] => 2024-12-30 10:03:04 [RateCDR] => 1 ) [2024-12-30 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-30 07:03:04' and `end` < '2024-12-30 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-30 10:03:21] Production.INFO: count ==2079 [2024-12-30 10:03:21] Production.ERROR: pbx CDR StartTime 2024-12-30 07:03:04 - End Time 2024-12-30 10:03:04 [2024-12-30 10:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135470', 'tblTempUsageDetail_20' ) start [2024-12-30 10:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135470', 'tblTempUsageDetail_20' ) end [2024-12-30 10:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135470', 'tblTempVendorCDR_20' ) start [2024-12-30 10:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135470', 'tblTempVendorCDR_20' ) end [2024-12-30 10:03:22] Production.INFO: ProcessCDR(1,14135470,1,1,2) [2024-12-30 10:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135470', 'tblTempUsageDetail_20' ) start [2024-12-30 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135470', 'tblTempUsageDetail_20' ) end [2024-12-30 10:03:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:03:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:03:26] Production.INFO: ==10132== Releasing lock... [2024-12-30 10:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:03:26] Production.INFO: 43.75 MB #Memory Used# [2024-12-30 10:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:04:04 [end_date_ymd] => 2024-12-30 10:04:04 [RateCDR] => 1 ) [2024-12-30 10: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-30 07:04:04' and `end` < '2024-12-30 10: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-30 10:04:23] Production.INFO: count ==2115 [2024-12-30 10:04:24] Production.ERROR: pbx CDR StartTime 2024-12-30 07:04:04 - End Time 2024-12-30 10:04:04 [2024-12-30 10:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135475', 'tblTempUsageDetail_20' ) start [2024-12-30 10:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135475', 'tblTempUsageDetail_20' ) end [2024-12-30 10:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135475', 'tblTempVendorCDR_20' ) start [2024-12-30 10:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135475', 'tblTempVendorCDR_20' ) end [2024-12-30 10:04:24] Production.INFO: ProcessCDR(1,14135475,1,1,2) [2024-12-30 10:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135475', 'tblTempUsageDetail_20' ) start [2024-12-30 10:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135475', 'tblTempUsageDetail_20' ) end [2024-12-30 10:04:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:04:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:04:29] Production.INFO: ==10207== Releasing lock... [2024-12-30 10:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:04:29] Production.INFO: 44 MB #Memory Used# [2024-12-30 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:05:05 [end_date_ymd] => 2024-12-30 10:05:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:05:05' and `end` < '2024-12-30 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-30 10:05:27] Production.INFO: count ==2134 [2024-12-30 10:05:27] Production.ERROR: pbx CDR StartTime 2024-12-30 07:05:05 - End Time 2024-12-30 10:05:05 [2024-12-30 10:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135480', 'tblTempUsageDetail_20' ) start [2024-12-30 10:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135480', 'tblTempUsageDetail_20' ) end [2024-12-30 10:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135480', 'tblTempVendorCDR_20' ) start [2024-12-30 10:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135480', 'tblTempVendorCDR_20' ) end [2024-12-30 10:05:28] Production.INFO: ProcessCDR(1,14135480,1,1,2) [2024-12-30 10:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135480', 'tblTempUsageDetail_20' ) start [2024-12-30 10:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135480', 'tblTempUsageDetail_20' ) end [2024-12-30 10:05:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:05:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:05:32] Production.INFO: ==10282== Releasing lock... [2024-12-30 10:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:05:32] Production.INFO: 44 MB #Memory Used# [2024-12-30 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:06:05 [end_date_ymd] => 2024-12-30 10:06:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:06:05' and `end` < '2024-12-30 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-30 10:06:25] Production.INFO: count ==2152 [2024-12-30 10:06:25] Production.ERROR: pbx CDR StartTime 2024-12-30 07:06:05 - End Time 2024-12-30 10:06:05 [2024-12-30 10:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135485', 'tblTempUsageDetail_20' ) start [2024-12-30 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135485', 'tblTempUsageDetail_20' ) end [2024-12-30 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135485', 'tblTempVendorCDR_20' ) start [2024-12-30 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135485', 'tblTempVendorCDR_20' ) end [2024-12-30 10:06:25] Production.INFO: ProcessCDR(1,14135485,1,1,2) [2024-12-30 10:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135485', 'tblTempUsageDetail_20' ) start [2024-12-30 10:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135485', 'tblTempUsageDetail_20' ) end [2024-12-30 10:06:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:06:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:06:30] Production.INFO: ==10353== Releasing lock... [2024-12-30 10:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:06:30] Production.INFO: 44.25 MB #Memory Used# [2024-12-30 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:07:05 [end_date_ymd] => 2024-12-30 10:07:05 [RateCDR] => 1 ) [2024-12-30 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 07:07:05' and `end` < '2024-12-30 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 10:07:22] Production.INFO: count ==2200 [2024-12-30 10:07:23] Production.ERROR: pbx CDR StartTime 2024-12-30 07:07:05 - End Time 2024-12-30 10:07:05 [2024-12-30 10:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135490', 'tblTempUsageDetail_20' ) start [2024-12-30 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135490', 'tblTempUsageDetail_20' ) end [2024-12-30 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135490', 'tblTempVendorCDR_20' ) start [2024-12-30 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135490', 'tblTempVendorCDR_20' ) end [2024-12-30 10:07:23] Production.INFO: ProcessCDR(1,14135490,1,1,2) [2024-12-30 10:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135490', 'tblTempUsageDetail_20' ) start [2024-12-30 10:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135490', 'tblTempUsageDetail_20' ) end [2024-12-30 10:07:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:07:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:07:28] Production.INFO: ==10444== Releasing lock... [2024-12-30 10:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:07:28] Production.INFO: 44.5 MB #Memory Used# [2024-12-30 10:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:08:04 [end_date_ymd] => 2024-12-30 10:08:04 [RateCDR] => 1 ) [2024-12-30 10: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-30 07:08:04' and `end` < '2024-12-30 10: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-30 10:08:22] Production.INFO: count ==2249 [2024-12-30 10:08:23] Production.ERROR: pbx CDR StartTime 2024-12-30 07:08:04 - End Time 2024-12-30 10:08:04 [2024-12-30 10:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135495', 'tblTempUsageDetail_20' ) start [2024-12-30 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135495', 'tblTempUsageDetail_20' ) end [2024-12-30 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135495', 'tblTempVendorCDR_20' ) start [2024-12-30 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135495', 'tblTempVendorCDR_20' ) end [2024-12-30 10:08:23] Production.INFO: ProcessCDR(1,14135495,1,1,2) [2024-12-30 10:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135495', 'tblTempUsageDetail_20' ) start [2024-12-30 10:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135495', 'tblTempUsageDetail_20' ) end [2024-12-30 10:08:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:08:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:08:28] Production.INFO: ==10556== Releasing lock... [2024-12-30 10:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:08:28] Production.INFO: 45 MB #Memory Used# [2024-12-30 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:09:05 [end_date_ymd] => 2024-12-30 10:09:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:09:05' and `end` < '2024-12-30 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-30 10:09:27] Production.INFO: count ==2266 [2024-12-30 10:09:28] Production.ERROR: pbx CDR StartTime 2024-12-30 07:09:05 - End Time 2024-12-30 10:09:05 [2024-12-30 10:09:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135500', 'tblTempUsageDetail_20' ) start [2024-12-30 10:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135500', 'tblTempUsageDetail_20' ) end [2024-12-30 10:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135500', 'tblTempVendorCDR_20' ) start [2024-12-30 10:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135500', 'tblTempVendorCDR_20' ) end [2024-12-30 10:09:28] Production.INFO: ProcessCDR(1,14135500,1,1,2) [2024-12-30 10:09:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:09:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:09:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:09:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135500', 'tblTempUsageDetail_20' ) start [2024-12-30 10:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135500', 'tblTempUsageDetail_20' ) end [2024-12-30 10:09:33] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:09:33] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:09:33] Production.INFO: ==10649== Releasing lock... [2024-12-30 10:09:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:09:33] Production.INFO: 45 MB #Memory Used# [2024-12-30 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:10:06 [end_date_ymd] => 2024-12-30 10:10:06 [RateCDR] => 1 ) [2024-12-30 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 07:10:06' and `end` < '2024-12-30 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 10:10:20] Production.INFO: count ==2293 [2024-12-30 10:10:21] Production.ERROR: pbx CDR StartTime 2024-12-30 07:10:06 - End Time 2024-12-30 10:10:06 [2024-12-30 10:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135505', 'tblTempUsageDetail_20' ) start [2024-12-30 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135505', 'tblTempUsageDetail_20' ) end [2024-12-30 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135505', 'tblTempVendorCDR_20' ) start [2024-12-30 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135505', 'tblTempVendorCDR_20' ) end [2024-12-30 10:10:21] Production.INFO: ProcessCDR(1,14135505,1,1,2) [2024-12-30 10:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135505', 'tblTempUsageDetail_20' ) start [2024-12-30 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135505', 'tblTempUsageDetail_20' ) end [2024-12-30 10:10:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:10:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:10:25] Production.INFO: ==10722== Releasing lock... [2024-12-30 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:10:25] Production.INFO: 45.25 MB #Memory Used# [2024-12-30 10:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:11:04 [end_date_ymd] => 2024-12-30 10:11:04 [RateCDR] => 1 ) [2024-12-30 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-30 07:11:04' and `end` < '2024-12-30 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-30 10:11:20] Production.INFO: count ==2389 [2024-12-30 10:11:21] Production.ERROR: pbx CDR StartTime 2024-12-30 07:11:04 - End Time 2024-12-30 10:11:04 [2024-12-30 10:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135511', 'tblTempUsageDetail_20' ) start [2024-12-30 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135511', 'tblTempUsageDetail_20' ) end [2024-12-30 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135511', 'tblTempVendorCDR_20' ) start [2024-12-30 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135511', 'tblTempVendorCDR_20' ) end [2024-12-30 10:11:21] Production.INFO: ProcessCDR(1,14135511,1,1,2) [2024-12-30 10:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135511', 'tblTempUsageDetail_20' ) start [2024-12-30 10:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135511', 'tblTempUsageDetail_20' ) end [2024-12-30 10:11:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:11:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:11:26] Production.INFO: ==10835== Releasing lock... [2024-12-30 10:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:11:26] Production.INFO: 46 MB #Memory Used# [2024-12-30 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:12:05 [end_date_ymd] => 2024-12-30 10:12:05 [RateCDR] => 1 ) [2024-12-30 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 07:12:05' and `end` < '2024-12-30 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 10:12:23] Production.INFO: count ==2394 [2024-12-30 10:12:24] Production.ERROR: pbx CDR StartTime 2024-12-30 07:12:05 - End Time 2024-12-30 10:12:05 [2024-12-30 10:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135516', 'tblTempUsageDetail_20' ) start [2024-12-30 10:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135516', 'tblTempUsageDetail_20' ) end [2024-12-30 10:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135516', 'tblTempVendorCDR_20' ) start [2024-12-30 10:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135516', 'tblTempVendorCDR_20' ) end [2024-12-30 10:12:24] Production.INFO: ProcessCDR(1,14135516,1,1,2) [2024-12-30 10:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135516', 'tblTempUsageDetail_20' ) start [2024-12-30 10:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135516', 'tblTempUsageDetail_20' ) end [2024-12-30 10:12:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:12:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:12:28] Production.INFO: ==10909== Releasing lock... [2024-12-30 10:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:12:28] Production.INFO: 46 MB #Memory Used# [2024-12-30 10:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:13:04 [end_date_ymd] => 2024-12-30 10:13:04 [RateCDR] => 1 ) [2024-12-30 10: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-30 07:13:04' and `end` < '2024-12-30 10: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-30 10:13:28] Production.INFO: count ==2407 [2024-12-30 10:13:28] Production.ERROR: pbx CDR StartTime 2024-12-30 07:13:04 - End Time 2024-12-30 10:13:04 [2024-12-30 10:13:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135521', 'tblTempUsageDetail_20' ) start [2024-12-30 10:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135521', 'tblTempUsageDetail_20' ) end [2024-12-30 10:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135521', 'tblTempVendorCDR_20' ) start [2024-12-30 10:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135521', 'tblTempVendorCDR_20' ) end [2024-12-30 10:13:29] Production.INFO: ProcessCDR(1,14135521,1,1,2) [2024-12-30 10:13:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135521', 'tblTempUsageDetail_20' ) start [2024-12-30 10:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135521', 'tblTempUsageDetail_20' ) end [2024-12-30 10:13:33] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:13:33] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:13:33] Production.INFO: ==10979== Releasing lock... [2024-12-30 10:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:13:33] Production.INFO: 46.25 MB #Memory Used# [2024-12-30 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:14:05 [end_date_ymd] => 2024-12-30 10:14:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:14:05' and `end` < '2024-12-30 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-30 10:14:18] Production.INFO: count ==2431 [2024-12-30 10:14:19] Production.ERROR: pbx CDR StartTime 2024-12-30 07:14:05 - End Time 2024-12-30 10:14:05 [2024-12-30 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135526', 'tblTempUsageDetail_20' ) start [2024-12-30 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135526', 'tblTempUsageDetail_20' ) end [2024-12-30 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135526', 'tblTempVendorCDR_20' ) start [2024-12-30 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135526', 'tblTempVendorCDR_20' ) end [2024-12-30 10:14:19] Production.INFO: ProcessCDR(1,14135526,1,1,2) [2024-12-30 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135526', 'tblTempUsageDetail_20' ) start [2024-12-30 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135526', 'tblTempUsageDetail_20' ) end [2024-12-30 10:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:14:23] Production.INFO: ==11051== Releasing lock... [2024-12-30 10:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:14:23] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 10:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:15:04 [end_date_ymd] => 2024-12-30 10:15:04 [RateCDR] => 1 ) [2024-12-30 10: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-30 07:15:04' and `end` < '2024-12-30 10: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-30 10:15:23] Production.INFO: count ==2447 [2024-12-30 10:15:24] Production.ERROR: pbx CDR StartTime 2024-12-30 07:15:04 - End Time 2024-12-30 10:15:04 [2024-12-30 10:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135531', 'tblTempUsageDetail_20' ) start [2024-12-30 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135531', 'tblTempUsageDetail_20' ) end [2024-12-30 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135531', 'tblTempVendorCDR_20' ) start [2024-12-30 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135531', 'tblTempVendorCDR_20' ) end [2024-12-30 10:15:24] Production.INFO: ProcessCDR(1,14135531,1,1,2) [2024-12-30 10:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135531', 'tblTempUsageDetail_20' ) start [2024-12-30 10:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135531', 'tblTempUsageDetail_20' ) end [2024-12-30 10:15:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:15:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:15:28] Production.INFO: ==11119== Releasing lock... [2024-12-30 10:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:15:28] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:16:05 [end_date_ymd] => 2024-12-30 10:16:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:16:05' and `end` < '2024-12-30 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 10:16:18] Production.INFO: count ==2471 [2024-12-30 10:16:19] Production.ERROR: pbx CDR StartTime 2024-12-30 07:16:05 - End Time 2024-12-30 10:16:05 [2024-12-30 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135536', 'tblTempUsageDetail_20' ) start [2024-12-30 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135536', 'tblTempUsageDetail_20' ) end [2024-12-30 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135536', 'tblTempVendorCDR_20' ) start [2024-12-30 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135536', 'tblTempVendorCDR_20' ) end [2024-12-30 10:16:19] Production.INFO: ProcessCDR(1,14135536,1,1,2) [2024-12-30 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135536', 'tblTempUsageDetail_20' ) start [2024-12-30 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135536', 'tblTempUsageDetail_20' ) end [2024-12-30 10:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:16:24] Production.INFO: ==11190== Releasing lock... [2024-12-30 10:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:16:24] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:17:05 [end_date_ymd] => 2024-12-30 10:17:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:17:05' and `end` < '2024-12-30 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-30 10:17:24] Production.INFO: count ==2491 [2024-12-30 10:17:25] Production.ERROR: pbx CDR StartTime 2024-12-30 07:17:05 - End Time 2024-12-30 10:17:05 [2024-12-30 10:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135540', 'tblTempUsageDetail_20' ) start [2024-12-30 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135540', 'tblTempUsageDetail_20' ) end [2024-12-30 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135540', 'tblTempVendorCDR_20' ) start [2024-12-30 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135540', 'tblTempVendorCDR_20' ) end [2024-12-30 10:17:25] Production.INFO: ProcessCDR(1,14135540,1,1,2) [2024-12-30 10:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135540', 'tblTempUsageDetail_20' ) start [2024-12-30 10:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135540', 'tblTempUsageDetail_20' ) end [2024-12-30 10:17:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:17:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:17:30] Production.INFO: ==11265== Releasing lock... [2024-12-30 10:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:17:30] Production.INFO: 47 MB #Memory Used# [2024-12-30 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:18:05 [end_date_ymd] => 2024-12-30 10:18:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:18:05' and `end` < '2024-12-30 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-30 10:18:22] Production.INFO: count ==2492 [2024-12-30 10:18:23] Production.ERROR: pbx CDR StartTime 2024-12-30 07:18:05 - End Time 2024-12-30 10:18:05 [2024-12-30 10:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135546', 'tblTempUsageDetail_20' ) start [2024-12-30 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135546', 'tblTempUsageDetail_20' ) end [2024-12-30 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135546', 'tblTempVendorCDR_20' ) start [2024-12-30 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135546', 'tblTempVendorCDR_20' ) end [2024-12-30 10:18:24] Production.INFO: ProcessCDR(1,14135546,1,1,2) [2024-12-30 10:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135546', 'tblTempUsageDetail_20' ) start [2024-12-30 10:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135546', 'tblTempUsageDetail_20' ) end [2024-12-30 10:18:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:18:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:18:28] Production.INFO: ==11336== Releasing lock... [2024-12-30 10:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:18:28] Production.INFO: 47 MB #Memory Used# [2024-12-30 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:19:05 [end_date_ymd] => 2024-12-30 10:19:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:19:05' and `end` < '2024-12-30 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-30 10:19:19] Production.INFO: count ==2504 [2024-12-30 10:19:20] Production.ERROR: pbx CDR StartTime 2024-12-30 07:19:05 - End Time 2024-12-30 10:19:05 [2024-12-30 10:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135551', 'tblTempUsageDetail_20' ) start [2024-12-30 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135551', 'tblTempUsageDetail_20' ) end [2024-12-30 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135551', 'tblTempVendorCDR_20' ) start [2024-12-30 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135551', 'tblTempVendorCDR_20' ) end [2024-12-30 10:19:20] Production.INFO: ProcessCDR(1,14135551,1,1,2) [2024-12-30 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135551', 'tblTempUsageDetail_20' ) start [2024-12-30 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135551', 'tblTempUsageDetail_20' ) end [2024-12-30 10:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:19:24] Production.INFO: ==11409== Releasing lock... [2024-12-30 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:19:24] Production.INFO: 47.25 MB #Memory Used# [2024-12-30 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:20:06 [end_date_ymd] => 2024-12-30 10:20:06 [RateCDR] => 1 ) [2024-12-30 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-30 07:20:06' and `end` < '2024-12-30 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-30 10:20:19] Production.INFO: count ==2526 [2024-12-30 10:20:20] Production.ERROR: pbx CDR StartTime 2024-12-30 07:20:06 - End Time 2024-12-30 10:20:06 [2024-12-30 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135557', 'tblTempUsageDetail_20' ) start [2024-12-30 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135557', 'tblTempUsageDetail_20' ) end [2024-12-30 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135557', 'tblTempVendorCDR_20' ) start [2024-12-30 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135557', 'tblTempVendorCDR_20' ) end [2024-12-30 10:20:20] Production.INFO: ProcessCDR(1,14135557,1,1,2) [2024-12-30 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135557', 'tblTempUsageDetail_20' ) start [2024-12-30 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135557', 'tblTempUsageDetail_20' ) end [2024-12-30 10:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:20:25] Production.INFO: ==11481== Releasing lock... [2024-12-30 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:20:25] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 10:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:21:04 [end_date_ymd] => 2024-12-30 10:21:04 [RateCDR] => 1 ) [2024-12-30 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-30 07:21:04' and `end` < '2024-12-30 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-30 10:21:18] Production.INFO: count ==2605 [2024-12-30 10:21:19] Production.ERROR: pbx CDR StartTime 2024-12-30 07:21:04 - End Time 2024-12-30 10:21:04 [2024-12-30 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135562', 'tblTempUsageDetail_20' ) start [2024-12-30 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135562', 'tblTempUsageDetail_20' ) end [2024-12-30 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135562', 'tblTempVendorCDR_20' ) start [2024-12-30 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135562', 'tblTempVendorCDR_20' ) end [2024-12-30 10:21:19] Production.INFO: ProcessCDR(1,14135562,1,1,2) [2024-12-30 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135562', 'tblTempUsageDetail_20' ) start [2024-12-30 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135562', 'tblTempUsageDetail_20' ) end [2024-12-30 10:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:21:23] Production.INFO: ==11555== Releasing lock... [2024-12-30 10:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:21:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-30 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:22:06 [end_date_ymd] => 2024-12-30 10:22:06 [RateCDR] => 1 ) [2024-12-30 10:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 07:22:06' and `end` < '2024-12-30 10:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 10:22:19] Production.INFO: count ==2650 [2024-12-30 10:22:20] Production.ERROR: pbx CDR StartTime 2024-12-30 07:22:06 - End Time 2024-12-30 10:22:06 [2024-12-30 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135567', 'tblTempUsageDetail_20' ) start [2024-12-30 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135567', 'tblTempUsageDetail_20' ) end [2024-12-30 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135567', 'tblTempVendorCDR_20' ) start [2024-12-30 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135567', 'tblTempVendorCDR_20' ) end [2024-12-30 10:22:20] Production.INFO: ProcessCDR(1,14135567,1,1,2) [2024-12-30 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135567', 'tblTempUsageDetail_20' ) start [2024-12-30 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135567', 'tblTempUsageDetail_20' ) end [2024-12-30 10:22:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:22:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:22:25] Production.INFO: ==11627== Releasing lock... [2024-12-30 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:22:25] Production.INFO: 48.25 MB #Memory Used# [2024-12-30 10:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:23:04 [end_date_ymd] => 2024-12-30 10:23:04 [RateCDR] => 1 ) [2024-12-30 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-30 07:23:04' and `end` < '2024-12-30 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-30 10:23:18] Production.INFO: count ==2655 [2024-12-30 10:23:19] Production.ERROR: pbx CDR StartTime 2024-12-30 07:23:04 - End Time 2024-12-30 10:23:04 [2024-12-30 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135572', 'tblTempUsageDetail_20' ) start [2024-12-30 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135572', 'tblTempUsageDetail_20' ) end [2024-12-30 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135572', 'tblTempVendorCDR_20' ) start [2024-12-30 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135572', 'tblTempVendorCDR_20' ) end [2024-12-30 10:23:19] Production.INFO: ProcessCDR(1,14135572,1,1,2) [2024-12-30 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135572', 'tblTempUsageDetail_20' ) start [2024-12-30 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135572', 'tblTempUsageDetail_20' ) end [2024-12-30 10:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:23:24] Production.INFO: ==11696== Releasing lock... [2024-12-30 10:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:23:24] Production.INFO: 48.25 MB #Memory Used# [2024-12-30 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:24:05 [end_date_ymd] => 2024-12-30 10:24:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:24:05' and `end` < '2024-12-30 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-30 10:24:19] Production.INFO: count ==2696 [2024-12-30 10:24:20] Production.ERROR: pbx CDR StartTime 2024-12-30 07:24:05 - End Time 2024-12-30 10:24:05 [2024-12-30 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135577', 'tblTempUsageDetail_20' ) start [2024-12-30 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135577', 'tblTempUsageDetail_20' ) end [2024-12-30 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135577', 'tblTempVendorCDR_20' ) start [2024-12-30 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135577', 'tblTempVendorCDR_20' ) end [2024-12-30 10:24:20] Production.INFO: ProcessCDR(1,14135577,1,1,2) [2024-12-30 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135577', 'tblTempUsageDetail_20' ) start [2024-12-30 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135577', 'tblTempUsageDetail_20' ) end [2024-12-30 10:24:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:24:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:24:24] Production.INFO: ==11770== Releasing lock... [2024-12-30 10:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:24:24] Production.INFO: 48.75 MB #Memory Used# [2024-12-30 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:25:04 [end_date_ymd] => 2024-12-30 10:25:04 [RateCDR] => 1 ) [2024-12-30 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-30 07:25:04' and `end` < '2024-12-30 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-30 10:25:28] Production.INFO: count ==2728 [2024-12-30 10:25:29] Production.ERROR: pbx CDR StartTime 2024-12-30 07:25:04 - End Time 2024-12-30 10:25:04 [2024-12-30 10:25:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135582', 'tblTempUsageDetail_20' ) start [2024-12-30 10:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135582', 'tblTempUsageDetail_20' ) end [2024-12-30 10:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135582', 'tblTempVendorCDR_20' ) start [2024-12-30 10:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135582', 'tblTempVendorCDR_20' ) end [2024-12-30 10:25:29] Production.INFO: ProcessCDR(1,14135582,1,1,2) [2024-12-30 10:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135582', 'tblTempUsageDetail_20' ) start [2024-12-30 10:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135582', 'tblTempUsageDetail_20' ) end [2024-12-30 10:25:33] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:25:33] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:25:33] Production.INFO: ==11841== Releasing lock... [2024-12-30 10:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:25:33] Production.INFO: 48.5 MB #Memory Used# [2024-12-30 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:26:05 [end_date_ymd] => 2024-12-30 10:26:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:26:05' and `end` < '2024-12-30 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-30 10:26:28] Production.INFO: count ==2764 [2024-12-30 10:26:29] Production.ERROR: pbx CDR StartTime 2024-12-30 07:26:05 - End Time 2024-12-30 10:26:05 [2024-12-30 10:26:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135587', 'tblTempUsageDetail_20' ) start [2024-12-30 10:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135587', 'tblTempUsageDetail_20' ) end [2024-12-30 10:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135587', 'tblTempVendorCDR_20' ) start [2024-12-30 10:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135587', 'tblTempVendorCDR_20' ) end [2024-12-30 10:26:30] Production.INFO: ProcessCDR(1,14135587,1,1,2) [2024-12-30 10:26:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:26:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:26:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:26:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135587', 'tblTempUsageDetail_20' ) start [2024-12-30 10:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135587', 'tblTempUsageDetail_20' ) end [2024-12-30 10:26:34] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:26:34] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:26:34] Production.INFO: ==11953== Releasing lock... [2024-12-30 10:26:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:26:34] Production.INFO: 49.25 MB #Memory Used# [2024-12-30 10:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:27:04 [end_date_ymd] => 2024-12-30 10:27:04 [RateCDR] => 1 ) [2024-12-30 10: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-30 07:27:04' and `end` < '2024-12-30 10: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-30 10:27:25] Production.INFO: count ==2782 [2024-12-30 10:27:26] Production.ERROR: pbx CDR StartTime 2024-12-30 07:27:04 - End Time 2024-12-30 10:27:04 [2024-12-30 10:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135592', 'tblTempUsageDetail_20' ) start [2024-12-30 10:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135592', 'tblTempUsageDetail_20' ) end [2024-12-30 10:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135592', 'tblTempVendorCDR_20' ) start [2024-12-30 10:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135592', 'tblTempVendorCDR_20' ) end [2024-12-30 10:27:26] Production.INFO: ProcessCDR(1,14135592,1,1,2) [2024-12-30 10:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135592', 'tblTempUsageDetail_20' ) start [2024-12-30 10:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135592', 'tblTempUsageDetail_20' ) end [2024-12-30 10:27:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:27:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:27:29] Production.INFO: ==12023== Releasing lock... [2024-12-30 10:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:27:29] Production.INFO: 49.25 MB #Memory Used# [2024-12-30 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:28:05 [end_date_ymd] => 2024-12-30 10:28:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:28:05' and `end` < '2024-12-30 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-30 10:28:22] Production.INFO: count ==2802 [2024-12-30 10:28:23] Production.ERROR: pbx CDR StartTime 2024-12-30 07:28:05 - End Time 2024-12-30 10:28:05 [2024-12-30 10:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135597', 'tblTempUsageDetail_20' ) start [2024-12-30 10:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135597', 'tblTempUsageDetail_20' ) end [2024-12-30 10:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135597', 'tblTempVendorCDR_20' ) start [2024-12-30 10:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135597', 'tblTempVendorCDR_20' ) end [2024-12-30 10:28:23] Production.INFO: ProcessCDR(1,14135597,1,1,2) [2024-12-30 10:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135597', 'tblTempUsageDetail_20' ) start [2024-12-30 10:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135597', 'tblTempUsageDetail_20' ) end [2024-12-30 10:28:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:28:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:28:28] Production.INFO: ==12093== Releasing lock... [2024-12-30 10:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:28:28] Production.INFO: 49.25 MB #Memory Used# [2024-12-30 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:29:05 [end_date_ymd] => 2024-12-30 10:29:05 [RateCDR] => 1 ) [2024-12-30 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 07:29:05' and `end` < '2024-12-30 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-30 10:29:23] Production.INFO: count ==2832 [2024-12-30 10:29:24] Production.ERROR: pbx CDR StartTime 2024-12-30 07:29:05 - End Time 2024-12-30 10:29:05 [2024-12-30 10:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135602', 'tblTempUsageDetail_20' ) start [2024-12-30 10:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135602', 'tblTempUsageDetail_20' ) end [2024-12-30 10:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135602', 'tblTempVendorCDR_20' ) start [2024-12-30 10:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135602', 'tblTempVendorCDR_20' ) end [2024-12-30 10:29:24] Production.INFO: ProcessCDR(1,14135602,1,1,2) [2024-12-30 10:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135602', 'tblTempUsageDetail_20' ) start [2024-12-30 10:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135602', 'tblTempUsageDetail_20' ) end [2024-12-30 10:29:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:29:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:29:29] Production.INFO: ==12164== Releasing lock... [2024-12-30 10:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:29:29] Production.INFO: 49.25 MB #Memory Used# [2024-12-30 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:30:05 [end_date_ymd] => 2024-12-30 10:30:05 [RateCDR] => 1 ) [2024-12-30 10: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-30 07:30:05' and `end` < '2024-12-30 10: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-30 10:30:28] Production.INFO: count ==2842 [2024-12-30 10:30:29] Production.ERROR: pbx CDR StartTime 2024-12-30 07:30:05 - End Time 2024-12-30 10:30:05 [2024-12-30 10:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135608', 'tblTempUsageDetail_20' ) start [2024-12-30 10:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135608', 'tblTempUsageDetail_20' ) end [2024-12-30 10:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135608', 'tblTempVendorCDR_20' ) start [2024-12-30 10:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135608', 'tblTempVendorCDR_20' ) end [2024-12-30 10:30:29] Production.INFO: ProcessCDR(1,14135608,1,1,2) [2024-12-30 10:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:30:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:30:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:30:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135608', 'tblTempUsageDetail_20' ) start [2024-12-30 10:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135608', 'tblTempUsageDetail_20' ) end [2024-12-30 10:30:34] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:30:34] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:30:34] Production.INFO: ==12239== Releasing lock... [2024-12-30 10:30:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:30:34] Production.INFO: 49.5 MB #Memory Used# [2024-12-30 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:31:05 [end_date_ymd] => 2024-12-30 10:31:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:31:05' and `end` < '2024-12-30 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-30 10:31:23] Production.INFO: count ==2921 [2024-12-30 10:31:24] Production.ERROR: pbx CDR StartTime 2024-12-30 07:31:05 - End Time 2024-12-30 10:31:05 [2024-12-30 10:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135613', 'tblTempUsageDetail_20' ) start [2024-12-30 10:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135613', 'tblTempUsageDetail_20' ) end [2024-12-30 10:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135613', 'tblTempVendorCDR_20' ) start [2024-12-30 10:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135613', 'tblTempVendorCDR_20' ) end [2024-12-30 10:31:24] Production.INFO: ProcessCDR(1,14135613,1,1,2) [2024-12-30 10:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135613', 'tblTempUsageDetail_20' ) start [2024-12-30 10:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135613', 'tblTempUsageDetail_20' ) end [2024-12-30 10:31:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:31:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:31:29] Production.INFO: ==12310== Releasing lock... [2024-12-30 10:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:31:29] Production.INFO: 49.5 MB #Memory Used# [2024-12-30 10:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:32:04 [end_date_ymd] => 2024-12-30 10:32:04 [RateCDR] => 1 ) [2024-12-30 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-30 07:32:04' and `end` < '2024-12-30 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-30 10:32:18] Production.INFO: count ==2918 [2024-12-30 10:32:19] Production.ERROR: pbx CDR StartTime 2024-12-30 07:32:04 - End Time 2024-12-30 10:32:04 [2024-12-30 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135618', 'tblTempUsageDetail_20' ) start [2024-12-30 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135618', 'tblTempUsageDetail_20' ) end [2024-12-30 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135618', 'tblTempVendorCDR_20' ) start [2024-12-30 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135618', 'tblTempVendorCDR_20' ) end [2024-12-30 10:32:19] Production.INFO: ProcessCDR(1,14135618,1,1,2) [2024-12-30 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135618', 'tblTempUsageDetail_20' ) start [2024-12-30 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135618', 'tblTempUsageDetail_20' ) end [2024-12-30 10:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:32:22] Production.INFO: ==12379== Releasing lock... [2024-12-30 10:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:32:22] Production.INFO: 50 MB #Memory Used# [2024-12-30 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:33:05 [end_date_ymd] => 2024-12-30 10:33:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:33:05' and `end` < '2024-12-30 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-30 10:33:18] Production.INFO: count ==2947 [2024-12-30 10:33:20] Production.ERROR: pbx CDR StartTime 2024-12-30 07:33:05 - End Time 2024-12-30 10:33:05 [2024-12-30 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135623', 'tblTempUsageDetail_20' ) start [2024-12-30 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135623', 'tblTempUsageDetail_20' ) end [2024-12-30 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135623', 'tblTempVendorCDR_20' ) start [2024-12-30 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135623', 'tblTempVendorCDR_20' ) end [2024-12-30 10:33:20] Production.INFO: ProcessCDR(1,14135623,1,1,2) [2024-12-30 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135623', 'tblTempUsageDetail_20' ) start [2024-12-30 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135623', 'tblTempUsageDetail_20' ) end [2024-12-30 10:33:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:33:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:33:24] Production.INFO: ==12454== Releasing lock... [2024-12-30 10:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:33:24] Production.INFO: 50.25 MB #Memory Used# [2024-12-30 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:34:05 [end_date_ymd] => 2024-12-30 10:34:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:34:05' and `end` < '2024-12-30 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-30 10:34:22] Production.INFO: count ==2964 [2024-12-30 10:34:23] Production.ERROR: pbx CDR StartTime 2024-12-30 07:34:05 - End Time 2024-12-30 10:34:05 [2024-12-30 10:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135628', 'tblTempUsageDetail_20' ) start [2024-12-30 10:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135628', 'tblTempUsageDetail_20' ) end [2024-12-30 10:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135628', 'tblTempVendorCDR_20' ) start [2024-12-30 10:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135628', 'tblTempVendorCDR_20' ) end [2024-12-30 10:34:23] Production.INFO: ProcessCDR(1,14135628,1,1,2) [2024-12-30 10:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135628', 'tblTempUsageDetail_20' ) start [2024-12-30 10:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135628', 'tblTempUsageDetail_20' ) end [2024-12-30 10:34:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:34:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:34:28] Production.INFO: ==12525== Releasing lock... [2024-12-30 10:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:34:28] Production.INFO: 50.25 MB #Memory Used# [2024-12-30 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:35:05 [end_date_ymd] => 2024-12-30 10:35:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:35:05' and `end` < '2024-12-30 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-30 10:35:35] Production.INFO: count ==2986 [2024-12-30 10:35:37] Production.ERROR: pbx CDR StartTime 2024-12-30 07:35:05 - End Time 2024-12-30 10:35:05 [2024-12-30 10:35:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:35:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135633', 'tblTempUsageDetail_20' ) start [2024-12-30 10:35:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135633', 'tblTempUsageDetail_20' ) end [2024-12-30 10:35:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135633', 'tblTempVendorCDR_20' ) start [2024-12-30 10:35:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135633', 'tblTempVendorCDR_20' ) end [2024-12-30 10:35:37] Production.INFO: ProcessCDR(1,14135633,1,1,2) [2024-12-30 10:35:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:35:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:35:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:35:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:35:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135633', 'tblTempUsageDetail_20' ) start [2024-12-30 10:35:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135633', 'tblTempUsageDetail_20' ) end [2024-12-30 10:35:41] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:35:41] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:35:41] Production.INFO: ==12595== Releasing lock... [2024-12-30 10:35:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:35:41] Production.INFO: 50.5 MB #Memory Used# [2024-12-30 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:36:05 [end_date_ymd] => 2024-12-30 10:36:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:36:05' and `end` < '2024-12-30 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-30 10:36:28] Production.INFO: count ==2996 [2024-12-30 10:36:30] Production.ERROR: pbx CDR StartTime 2024-12-30 07:36:05 - End Time 2024-12-30 10:36:05 [2024-12-30 10:36:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135638', 'tblTempUsageDetail_20' ) start [2024-12-30 10:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135638', 'tblTempUsageDetail_20' ) end [2024-12-30 10:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135638', 'tblTempVendorCDR_20' ) start [2024-12-30 10:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135638', 'tblTempVendorCDR_20' ) end [2024-12-30 10:36:30] Production.INFO: ProcessCDR(1,14135638,1,1,2) [2024-12-30 10:36:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:36:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:36:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:36:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135638', 'tblTempUsageDetail_20' ) start [2024-12-30 10:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135638', 'tblTempUsageDetail_20' ) end [2024-12-30 10:36:34] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:36:34] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:36:34] Production.INFO: ==12669== Releasing lock... [2024-12-30 10:36:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:36:34] Production.INFO: 50.25 MB #Memory Used# [2024-12-30 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:37:05 [end_date_ymd] => 2024-12-30 10:37:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:37:05' and `end` < '2024-12-30 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-30 10:37:31] Production.INFO: count ==3042 [2024-12-30 10:37:32] Production.ERROR: pbx CDR StartTime 2024-12-30 07:37:05 - End Time 2024-12-30 10:37:05 [2024-12-30 10:37:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135643', 'tblTempUsageDetail_20' ) start [2024-12-30 10:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135643', 'tblTempUsageDetail_20' ) end [2024-12-30 10:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135643', 'tblTempVendorCDR_20' ) start [2024-12-30 10:37:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135643', 'tblTempVendorCDR_20' ) end [2024-12-30 10:37:32] Production.INFO: ProcessCDR(1,14135643,1,1,2) [2024-12-30 10:37:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:37:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:37:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:37:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:37:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135643', 'tblTempUsageDetail_20' ) start [2024-12-30 10:37:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135643', 'tblTempUsageDetail_20' ) end [2024-12-30 10:37:37] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:37:37] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:37:37] Production.INFO: ==12740== Releasing lock... [2024-12-30 10:37:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:37:37] Production.INFO: 51 MB #Memory Used# [2024-12-30 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:38:05 [end_date_ymd] => 2024-12-30 10:38:05 [RateCDR] => 1 ) [2024-12-30 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 07:38:05' and `end` < '2024-12-30 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 10:38:24] Production.INFO: count ==3056 [2024-12-30 10:38:25] Production.ERROR: pbx CDR StartTime 2024-12-30 07:38:05 - End Time 2024-12-30 10:38:05 [2024-12-30 10:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135648', 'tblTempUsageDetail_20' ) start [2024-12-30 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135648', 'tblTempUsageDetail_20' ) end [2024-12-30 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135648', 'tblTempVendorCDR_20' ) start [2024-12-30 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135648', 'tblTempVendorCDR_20' ) end [2024-12-30 10:38:25] Production.INFO: ProcessCDR(1,14135648,1,1,2) [2024-12-30 10:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135648', 'tblTempUsageDetail_20' ) start [2024-12-30 10:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135648', 'tblTempUsageDetail_20' ) end [2024-12-30 10:38:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:38:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:38:30] Production.INFO: ==12811== Releasing lock... [2024-12-30 10:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:38:30] Production.INFO: 51.25 MB #Memory Used# [2024-12-30 10:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:39:04 [end_date_ymd] => 2024-12-30 10:39:04 [RateCDR] => 1 ) [2024-12-30 10: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-30 07:39:04' and `end` < '2024-12-30 10: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-30 10:39:23] Production.INFO: count ==3083 [2024-12-30 10:39:24] Production.ERROR: pbx CDR StartTime 2024-12-30 07:39:04 - End Time 2024-12-30 10:39:04 [2024-12-30 10:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135653', 'tblTempUsageDetail_20' ) start [2024-12-30 10:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135653', 'tblTempUsageDetail_20' ) end [2024-12-30 10:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135653', 'tblTempVendorCDR_20' ) start [2024-12-30 10:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135653', 'tblTempVendorCDR_20' ) end [2024-12-30 10:39:25] Production.INFO: ProcessCDR(1,14135653,1,1,2) [2024-12-30 10:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135653', 'tblTempUsageDetail_20' ) start [2024-12-30 10:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135653', 'tblTempUsageDetail_20' ) end [2024-12-30 10:39:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:39:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:39:29] Production.INFO: ==12882== Releasing lock... [2024-12-30 10:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:39:29] Production.INFO: 51 MB #Memory Used# [2024-12-30 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:40:05 [end_date_ymd] => 2024-12-30 10:40:05 [RateCDR] => 1 ) [2024-12-30 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 07:40:05' and `end` < '2024-12-30 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 10:40:24] Production.INFO: count ==3115 [2024-12-30 10:40:26] Production.ERROR: pbx CDR StartTime 2024-12-30 07:40:05 - End Time 2024-12-30 10:40:05 [2024-12-30 10:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135658', 'tblTempUsageDetail_20' ) start [2024-12-30 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135658', 'tblTempUsageDetail_20' ) end [2024-12-30 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135658', 'tblTempVendorCDR_20' ) start [2024-12-30 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135658', 'tblTempVendorCDR_20' ) end [2024-12-30 10:40:26] Production.INFO: ProcessCDR(1,14135658,1,1,2) [2024-12-30 10:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135658', 'tblTempUsageDetail_20' ) start [2024-12-30 10:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135658', 'tblTempUsageDetail_20' ) end [2024-12-30 10:40:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:40:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:40:30] Production.INFO: ==12957== Releasing lock... [2024-12-30 10:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:40:30] Production.INFO: 51.5 MB #Memory Used# [2024-12-30 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:41:05 [end_date_ymd] => 2024-12-30 10:41:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:41:05' and `end` < '2024-12-30 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-30 10:41:18] Production.INFO: count ==3175 [2024-12-30 10:41:20] Production.ERROR: pbx CDR StartTime 2024-12-30 07:41:05 - End Time 2024-12-30 10:41:05 [2024-12-30 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135664', 'tblTempUsageDetail_20' ) start [2024-12-30 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135664', 'tblTempUsageDetail_20' ) end [2024-12-30 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135664', 'tblTempVendorCDR_20' ) start [2024-12-30 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135664', 'tblTempVendorCDR_20' ) end [2024-12-30 10:41:20] Production.INFO: ProcessCDR(1,14135664,1,1,2) [2024-12-30 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135664', 'tblTempUsageDetail_20' ) start [2024-12-30 10:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135664', 'tblTempUsageDetail_20' ) end [2024-12-30 10:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:41:23] Production.INFO: ==13030== Releasing lock... [2024-12-30 10:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:41:23] Production.INFO: 52.75 MB #Memory Used# [2024-12-30 10:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:42:04 [end_date_ymd] => 2024-12-30 10:42:04 [RateCDR] => 1 ) [2024-12-30 10: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-30 07:42:04' and `end` < '2024-12-30 10: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-30 10:42:18] Production.INFO: count ==3183 [2024-12-30 10:42:19] Production.ERROR: pbx CDR StartTime 2024-12-30 07:42:04 - End Time 2024-12-30 10:42:04 [2024-12-30 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135669', 'tblTempUsageDetail_20' ) start [2024-12-30 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135669', 'tblTempUsageDetail_20' ) end [2024-12-30 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135669', 'tblTempVendorCDR_20' ) start [2024-12-30 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135669', 'tblTempVendorCDR_20' ) end [2024-12-30 10:42:19] Production.INFO: ProcessCDR(1,14135669,1,1,2) [2024-12-30 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135669', 'tblTempUsageDetail_20' ) start [2024-12-30 10:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135669', 'tblTempUsageDetail_20' ) end [2024-12-30 10:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:42:23] Production.INFO: ==13143== Releasing lock... [2024-12-30 10:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:42:23] Production.INFO: 52.75 MB #Memory Used# [2024-12-30 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:43:05 [end_date_ymd] => 2024-12-30 10:43:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:43:05' and `end` < '2024-12-30 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-30 10:43:20] Production.INFO: count ==3205 [2024-12-30 10:43:22] Production.ERROR: pbx CDR StartTime 2024-12-30 07:43:05 - End Time 2024-12-30 10:43:05 [2024-12-30 10:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135674', 'tblTempUsageDetail_20' ) start [2024-12-30 10:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135674', 'tblTempUsageDetail_20' ) end [2024-12-30 10:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135674', 'tblTempVendorCDR_20' ) start [2024-12-30 10:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135674', 'tblTempVendorCDR_20' ) end [2024-12-30 10:43:22] Production.INFO: ProcessCDR(1,14135674,1,1,2) [2024-12-30 10:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135674', 'tblTempUsageDetail_20' ) start [2024-12-30 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135674', 'tblTempUsageDetail_20' ) end [2024-12-30 10:43:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:43:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:43:26] Production.INFO: ==13218== Releasing lock... [2024-12-30 10:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:43:26] Production.INFO: 52 MB #Memory Used# [2024-12-30 10:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:44:04 [end_date_ymd] => 2024-12-30 10:44:04 [RateCDR] => 1 ) [2024-12-30 10: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-30 07:44:04' and `end` < '2024-12-30 10: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-30 10:44:32] Production.INFO: count ==3224 [2024-12-30 10:44:33] Production.ERROR: pbx CDR StartTime 2024-12-30 07:44:04 - End Time 2024-12-30 10:44:04 [2024-12-30 10:44:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135679', 'tblTempUsageDetail_20' ) start [2024-12-30 10:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135679', 'tblTempUsageDetail_20' ) end [2024-12-30 10:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135679', 'tblTempVendorCDR_20' ) start [2024-12-30 10:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135679', 'tblTempVendorCDR_20' ) end [2024-12-30 10:44:34] Production.INFO: ProcessCDR(1,14135679,1,1,2) [2024-12-30 10:44:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:44:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:44:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:44:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:44:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135679', 'tblTempUsageDetail_20' ) start [2024-12-30 10:44:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135679', 'tblTempUsageDetail_20' ) end [2024-12-30 10:44:38] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:44:38] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:44:38] Production.INFO: ==13288== Releasing lock... [2024-12-30 10:44:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:44:38] Production.INFO: 52.75 MB #Memory Used# [2024-12-30 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:45:05 [end_date_ymd] => 2024-12-30 10:45:05 [RateCDR] => 1 ) [2024-12-30 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 07:45:05' and `end` < '2024-12-30 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 10:45:29] Production.INFO: count ==3238 [2024-12-30 10:45:30] Production.ERROR: pbx CDR StartTime 2024-12-30 07:45:05 - End Time 2024-12-30 10:45:05 [2024-12-30 10:45:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135684', 'tblTempUsageDetail_20' ) start [2024-12-30 10:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135684', 'tblTempUsageDetail_20' ) end [2024-12-30 10:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135684', 'tblTempVendorCDR_20' ) start [2024-12-30 10:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135684', 'tblTempVendorCDR_20' ) end [2024-12-30 10:45:30] Production.INFO: ProcessCDR(1,14135684,1,1,2) [2024-12-30 10:45:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:45:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:45:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:45:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135684', 'tblTempUsageDetail_20' ) start [2024-12-30 10:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135684', 'tblTempUsageDetail_20' ) end [2024-12-30 10:45:35] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:45:35] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:45:35] Production.INFO: ==13359== Releasing lock... [2024-12-30 10:45:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:45:35] Production.INFO: 52.25 MB #Memory Used# [2024-12-30 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:46:05 [end_date_ymd] => 2024-12-30 10:46:05 [RateCDR] => 1 ) [2024-12-30 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 07:46:05' and `end` < '2024-12-30 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 10:46:24] Production.INFO: count ==3262 [2024-12-30 10:46:25] Production.ERROR: pbx CDR StartTime 2024-12-30 07:46:05 - End Time 2024-12-30 10:46:05 [2024-12-30 10:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135689', 'tblTempUsageDetail_20' ) start [2024-12-30 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135689', 'tblTempUsageDetail_20' ) end [2024-12-30 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135689', 'tblTempVendorCDR_20' ) start [2024-12-30 10:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135689', 'tblTempVendorCDR_20' ) end [2024-12-30 10:46:26] Production.INFO: ProcessCDR(1,14135689,1,1,2) [2024-12-30 10:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135689', 'tblTempUsageDetail_20' ) start [2024-12-30 10:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135689', 'tblTempUsageDetail_20' ) end [2024-12-30 10:46:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:46:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:46:30] Production.INFO: ==13429== Releasing lock... [2024-12-30 10:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:46:30] Production.INFO: 52.25 MB #Memory Used# [2024-12-30 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:47:05 [end_date_ymd] => 2024-12-30 10:47:05 [RateCDR] => 1 ) [2024-12-30 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 07:47:05' and `end` < '2024-12-30 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 10:47:21] Production.INFO: count ==3282 [2024-12-30 10:47:23] Production.ERROR: pbx CDR StartTime 2024-12-30 07:47:05 - End Time 2024-12-30 10:47:05 [2024-12-30 10:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135694', 'tblTempUsageDetail_20' ) start [2024-12-30 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135694', 'tblTempUsageDetail_20' ) end [2024-12-30 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135694', 'tblTempVendorCDR_20' ) start [2024-12-30 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135694', 'tblTempVendorCDR_20' ) end [2024-12-30 10:47:23] Production.INFO: ProcessCDR(1,14135694,1,1,2) [2024-12-30 10:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135694', 'tblTempUsageDetail_20' ) start [2024-12-30 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135694', 'tblTempUsageDetail_20' ) end [2024-12-30 10:47:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:47:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:47:26] Production.INFO: ==13502== Releasing lock... [2024-12-30 10:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:47:26] Production.INFO: 52.5 MB #Memory Used# [2024-12-30 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:48:05 [end_date_ymd] => 2024-12-30 10:48:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:48:05' and `end` < '2024-12-30 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-30 10:48:18] Production.INFO: count ==3303 [2024-12-30 10:48:19] Production.ERROR: pbx CDR StartTime 2024-12-30 07:48:05 - End Time 2024-12-30 10:48:05 [2024-12-30 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135699', 'tblTempUsageDetail_20' ) start [2024-12-30 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135699', 'tblTempUsageDetail_20' ) end [2024-12-30 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135699', 'tblTempVendorCDR_20' ) start [2024-12-30 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135699', 'tblTempVendorCDR_20' ) end [2024-12-30 10:48:19] Production.INFO: ProcessCDR(1,14135699,1,1,2) [2024-12-30 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135699', 'tblTempUsageDetail_20' ) start [2024-12-30 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135699', 'tblTempUsageDetail_20' ) end [2024-12-30 10:48:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:48:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:48:24] Production.INFO: ==13571== Releasing lock... [2024-12-30 10:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:48:24] Production.INFO: 52.75 MB #Memory Used# [2024-12-30 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:49:05 [end_date_ymd] => 2024-12-30 10:49:05 [RateCDR] => 1 ) [2024-12-30 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 07:49:05' and `end` < '2024-12-30 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 10:49:21] Production.INFO: count ==3307 [2024-12-30 10:49:22] Production.ERROR: pbx CDR StartTime 2024-12-30 07:49:05 - End Time 2024-12-30 10:49:05 [2024-12-30 10:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135704', 'tblTempUsageDetail_20' ) start [2024-12-30 10:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135704', 'tblTempUsageDetail_20' ) end [2024-12-30 10:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135704', 'tblTempVendorCDR_20' ) start [2024-12-30 10:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135704', 'tblTempVendorCDR_20' ) end [2024-12-30 10:49:22] Production.INFO: ProcessCDR(1,14135704,1,1,2) [2024-12-30 10:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135704', 'tblTempUsageDetail_20' ) start [2024-12-30 10:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135704', 'tblTempUsageDetail_20' ) end [2024-12-30 10:49:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:49:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:49:27] Production.INFO: ==13650== Releasing lock... [2024-12-30 10:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:49:27] Production.INFO: 53.25 MB #Memory Used# [2024-12-30 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:50:05 [end_date_ymd] => 2024-12-30 10:50:05 [RateCDR] => 1 ) [2024-12-30 10: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-30 07:50:05' and `end` < '2024-12-30 10: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-30 10:50:21] Production.INFO: count ==3309 [2024-12-30 10:50:22] Production.ERROR: pbx CDR StartTime 2024-12-30 07:50:05 - End Time 2024-12-30 10:50:05 [2024-12-30 10:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135710', 'tblTempUsageDetail_20' ) start [2024-12-30 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135710', 'tblTempUsageDetail_20' ) end [2024-12-30 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135710', 'tblTempVendorCDR_20' ) start [2024-12-30 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135710', 'tblTempVendorCDR_20' ) end [2024-12-30 10:50:22] Production.INFO: ProcessCDR(1,14135710,1,1,2) [2024-12-30 10:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135710', 'tblTempUsageDetail_20' ) start [2024-12-30 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135710', 'tblTempUsageDetail_20' ) end [2024-12-30 10:50:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:50:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:50:27] Production.INFO: ==13725== Releasing lock... [2024-12-30 10:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:50:27] Production.INFO: 52.75 MB #Memory Used# [2024-12-30 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:51:05 [end_date_ymd] => 2024-12-30 10:51:05 [RateCDR] => 1 ) [2024-12-30 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 07:51:05' and `end` < '2024-12-30 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 10:51:22] Production.INFO: count ==3413 [2024-12-30 10:51:23] Production.ERROR: pbx CDR StartTime 2024-12-30 07:51:05 - End Time 2024-12-30 10:51:05 [2024-12-30 10:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135715', 'tblTempUsageDetail_20' ) start [2024-12-30 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135715', 'tblTempUsageDetail_20' ) end [2024-12-30 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135715', 'tblTempVendorCDR_20' ) start [2024-12-30 10:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135715', 'tblTempVendorCDR_20' ) end [2024-12-30 10:51:23] Production.INFO: ProcessCDR(1,14135715,1,1,2) [2024-12-30 10:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135715', 'tblTempUsageDetail_20' ) start [2024-12-30 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135715', 'tblTempUsageDetail_20' ) end [2024-12-30 10:51:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:51:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:51:28] Production.INFO: ==13798== Releasing lock... [2024-12-30 10:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:51:28] Production.INFO: 54 MB #Memory Used# [2024-12-30 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:52:05 [end_date_ymd] => 2024-12-30 10:52:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:52:05' and `end` < '2024-12-30 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-30 10:52:20] Production.INFO: count ==3434 [2024-12-30 10:52:21] Production.ERROR: pbx CDR StartTime 2024-12-30 07:52:05 - End Time 2024-12-30 10:52:05 [2024-12-30 10:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135720', 'tblTempUsageDetail_20' ) start [2024-12-30 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135720', 'tblTempUsageDetail_20' ) end [2024-12-30 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135720', 'tblTempVendorCDR_20' ) start [2024-12-30 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135720', 'tblTempVendorCDR_20' ) end [2024-12-30 10:52:21] Production.INFO: ProcessCDR(1,14135720,1,1,2) [2024-12-30 10:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135720', 'tblTempUsageDetail_20' ) start [2024-12-30 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135720', 'tblTempUsageDetail_20' ) end [2024-12-30 10:52:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:52:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:52:26] Production.INFO: ==13868== Releasing lock... [2024-12-30 10:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:52:26] Production.INFO: 53.75 MB #Memory Used# [2024-12-30 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:53:05 [end_date_ymd] => 2024-12-30 10:53:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:53:05' and `end` < '2024-12-30 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-30 10:53:25] Production.INFO: count ==3474 [2024-12-30 10:53:26] Production.ERROR: pbx CDR StartTime 2024-12-30 07:53:05 - End Time 2024-12-30 10:53:05 [2024-12-30 10:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135724', 'tblTempUsageDetail_20' ) start [2024-12-30 10:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135724', 'tblTempUsageDetail_20' ) end [2024-12-30 10:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135724', 'tblTempVendorCDR_20' ) start [2024-12-30 10:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135724', 'tblTempVendorCDR_20' ) end [2024-12-30 10:53:27] Production.INFO: ProcessCDR(1,14135724,1,1,2) [2024-12-30 10:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135724', 'tblTempUsageDetail_20' ) start [2024-12-30 10:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135724', 'tblTempUsageDetail_20' ) end [2024-12-30 10:53:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:53:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:53:32] Production.INFO: ==13941== Releasing lock... [2024-12-30 10:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:53:32] Production.INFO: 54.5 MB #Memory Used# [2024-12-30 10:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:54:04 [end_date_ymd] => 2024-12-30 10:54:04 [RateCDR] => 1 ) [2024-12-30 10: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-30 07:54:04' and `end` < '2024-12-30 10: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-30 10:54:22] Production.INFO: count ==3514 [2024-12-30 10:54:24] Production.ERROR: pbx CDR StartTime 2024-12-30 07:54:04 - End Time 2024-12-30 10:54:04 [2024-12-30 10:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135730', 'tblTempUsageDetail_20' ) start [2024-12-30 10:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135730', 'tblTempUsageDetail_20' ) end [2024-12-30 10:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135730', 'tblTempVendorCDR_20' ) start [2024-12-30 10:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135730', 'tblTempVendorCDR_20' ) end [2024-12-30 10:54:24] Production.INFO: ProcessCDR(1,14135730,1,1,2) [2024-12-30 10:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135730', 'tblTempUsageDetail_20' ) start [2024-12-30 10:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135730', 'tblTempUsageDetail_20' ) end [2024-12-30 10:54:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:54:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:54:29] Production.INFO: ==14013== Releasing lock... [2024-12-30 10:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:54:29] Production.INFO: 54.5 MB #Memory Used# [2024-12-30 10:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:55:04 [end_date_ymd] => 2024-12-30 10:55:04 [RateCDR] => 1 ) [2024-12-30 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-30 07:55:04' and `end` < '2024-12-30 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-30 10:55:18] Production.INFO: count ==3525 [2024-12-30 10:55:20] Production.ERROR: pbx CDR StartTime 2024-12-30 07:55:04 - End Time 2024-12-30 10:55:04 [2024-12-30 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135735', 'tblTempUsageDetail_20' ) start [2024-12-30 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135735', 'tblTempUsageDetail_20' ) end [2024-12-30 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135735', 'tblTempVendorCDR_20' ) start [2024-12-30 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135735', 'tblTempVendorCDR_20' ) end [2024-12-30 10:55:20] Production.INFO: ProcessCDR(1,14135735,1,1,2) [2024-12-30 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135735', 'tblTempUsageDetail_20' ) start [2024-12-30 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135735', 'tblTempUsageDetail_20' ) end [2024-12-30 10:55:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:55:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:55:25] Production.INFO: ==14089== Releasing lock... [2024-12-30 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:55:25] Production.INFO: 54.75 MB #Memory Used# [2024-12-30 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:56:06 [end_date_ymd] => 2024-12-30 10:56:06 [RateCDR] => 1 ) [2024-12-30 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 07:56:06' and `end` < '2024-12-30 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 10:56:19] Production.INFO: count ==3545 [2024-12-30 10:56:21] Production.ERROR: pbx CDR StartTime 2024-12-30 07:56:06 - End Time 2024-12-30 10:56:06 [2024-12-30 10:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135740', 'tblTempUsageDetail_20' ) start [2024-12-30 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135740', 'tblTempUsageDetail_20' ) end [2024-12-30 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135740', 'tblTempVendorCDR_20' ) start [2024-12-30 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135740', 'tblTempVendorCDR_20' ) end [2024-12-30 10:56:21] Production.INFO: ProcessCDR(1,14135740,1,1,2) [2024-12-30 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135740', 'tblTempUsageDetail_20' ) start [2024-12-30 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135740', 'tblTempUsageDetail_20' ) end [2024-12-30 10:56:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:56:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:56:25] Production.INFO: ==14168== Releasing lock... [2024-12-30 10:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:56:25] Production.INFO: 55 MB #Memory Used# [2024-12-30 10:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:57:04 [end_date_ymd] => 2024-12-30 10:57:04 [RateCDR] => 1 ) [2024-12-30 10: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-30 07:57:04' and `end` < '2024-12-30 10: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-30 10:57:22] Production.INFO: count ==3565 [2024-12-30 10:57:24] Production.ERROR: pbx CDR StartTime 2024-12-30 07:57:04 - End Time 2024-12-30 10:57:04 [2024-12-30 10:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135745', 'tblTempUsageDetail_20' ) start [2024-12-30 10:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135745', 'tblTempUsageDetail_20' ) end [2024-12-30 10:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135745', 'tblTempVendorCDR_20' ) start [2024-12-30 10:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135745', 'tblTempVendorCDR_20' ) end [2024-12-30 10:57:24] Production.INFO: ProcessCDR(1,14135745,1,1,2) [2024-12-30 10:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135745', 'tblTempUsageDetail_20' ) start [2024-12-30 10:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135745', 'tblTempUsageDetail_20' ) end [2024-12-30 10:57:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:57:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:57:28] Production.INFO: ==14242== Releasing lock... [2024-12-30 10:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:57:28] Production.INFO: 55.25 MB #Memory Used# [2024-12-30 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:58:05 [end_date_ymd] => 2024-12-30 10:58:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:58:05' and `end` < '2024-12-30 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 10:58:28] Production.INFO: count ==3597 [2024-12-30 10:58:29] Production.ERROR: pbx CDR StartTime 2024-12-30 07:58:05 - End Time 2024-12-30 10:58:05 [2024-12-30 10:58:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135750', 'tblTempUsageDetail_20' ) start [2024-12-30 10:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135750', 'tblTempUsageDetail_20' ) end [2024-12-30 10:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135750', 'tblTempVendorCDR_20' ) start [2024-12-30 10:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135750', 'tblTempVendorCDR_20' ) end [2024-12-30 10:58:29] Production.INFO: ProcessCDR(1,14135750,1,1,2) [2024-12-30 10:58:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:58:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:58:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:58:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135750', 'tblTempUsageDetail_20' ) start [2024-12-30 10:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135750', 'tblTempUsageDetail_20' ) end [2024-12-30 10:58:34] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:58:34] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:58:34] Production.INFO: ==14362== Releasing lock... [2024-12-30 10:58:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:58:34] Production.INFO: 55.25 MB #Memory Used# [2024-12-30 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 07:59:05 [end_date_ymd] => 2024-12-30 10:59:05 [RateCDR] => 1 ) [2024-12-30 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-30 07:59:05' and `end` < '2024-12-30 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-30 10:59:23] Production.INFO: count ==3625 [2024-12-30 10:59:25] Production.ERROR: pbx CDR StartTime 2024-12-30 07:59:05 - End Time 2024-12-30 10:59:05 [2024-12-30 10:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135755', 'tblTempUsageDetail_20' ) start [2024-12-30 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135755', 'tblTempUsageDetail_20' ) end [2024-12-30 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135755', 'tblTempVendorCDR_20' ) start [2024-12-30 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135755', 'tblTempVendorCDR_20' ) end [2024-12-30 10:59:25] Production.INFO: ProcessCDR(1,14135755,1,1,2) [2024-12-30 10:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 10:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 10:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135755', 'tblTempUsageDetail_20' ) start [2024-12-30 10:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135755', 'tblTempUsageDetail_20' ) end [2024-12-30 10:59:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 10:59:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 10:59:29] Production.INFO: ==14438== Releasing lock... [2024-12-30 10:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 10:59:29] Production.INFO: 56 MB #Memory Used# [2024-12-30 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:00:06 [end_date_ymd] => 2024-12-30 11:00:06 [RateCDR] => 1 ) [2024-12-30 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:00:06' and `end` < '2024-12-30 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:00:25] Production.INFO: count ==3628 [2024-12-30 11:00:26] Production.ERROR: pbx CDR StartTime 2024-12-30 08:00:06 - End Time 2024-12-30 11:00:06 [2024-12-30 11:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135761', 'tblTempUsageDetail_20' ) start [2024-12-30 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135761', 'tblTempUsageDetail_20' ) end [2024-12-30 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135761', 'tblTempVendorCDR_20' ) start [2024-12-30 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135761', 'tblTempVendorCDR_20' ) end [2024-12-30 11:00:26] Production.INFO: ProcessCDR(1,14135761,1,1,2) [2024-12-30 11:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135761', 'tblTempUsageDetail_20' ) start [2024-12-30 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135761', 'tblTempUsageDetail_20' ) end [2024-12-30 11:00:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:00:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:00:29] Production.INFO: ==14524== Releasing lock... [2024-12-30 11:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:00:29] Production.INFO: 55.5 MB #Memory Used# [2024-12-30 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:01:05 [end_date_ymd] => 2024-12-30 11:01:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:01:05' and `end` < '2024-12-30 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-30 11:01:20] Production.INFO: count ==3710 [2024-12-30 11:01:22] Production.ERROR: pbx CDR StartTime 2024-12-30 08:01:05 - End Time 2024-12-30 11:01:05 [2024-12-30 11:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135766', 'tblTempUsageDetail_20' ) start [2024-12-30 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135766', 'tblTempUsageDetail_20' ) end [2024-12-30 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135766', 'tblTempVendorCDR_20' ) start [2024-12-30 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135766', 'tblTempVendorCDR_20' ) end [2024-12-30 11:01:22] Production.INFO: ProcessCDR(1,14135766,1,1,2) [2024-12-30 11:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135766', 'tblTempUsageDetail_20' ) start [2024-12-30 11:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135766', 'tblTempUsageDetail_20' ) end [2024-12-30 11:01:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:01:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:01:27] Production.INFO: ==14658== Releasing lock... [2024-12-30 11:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:01:27] Production.INFO: 56.25 MB #Memory Used# [2024-12-30 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:02:05 [end_date_ymd] => 2024-12-30 11:02:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:02:05' and `end` < '2024-12-30 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-30 11:02:22] Production.INFO: count ==3732 [2024-12-30 11:02:23] Production.ERROR: pbx CDR StartTime 2024-12-30 08:02:05 - End Time 2024-12-30 11:02:05 [2024-12-30 11:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135771', 'tblTempUsageDetail_20' ) start [2024-12-30 11:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135771', 'tblTempUsageDetail_20' ) end [2024-12-30 11:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135771', 'tblTempVendorCDR_20' ) start [2024-12-30 11:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135771', 'tblTempVendorCDR_20' ) end [2024-12-30 11:02:23] Production.INFO: ProcessCDR(1,14135771,1,1,2) [2024-12-30 11:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135771', 'tblTempUsageDetail_20' ) start [2024-12-30 11:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135771', 'tblTempUsageDetail_20' ) end [2024-12-30 11:02:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:02:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:02:28] Production.INFO: ==14778== Releasing lock... [2024-12-30 11:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:02:28] Production.INFO: 56 MB #Memory Used# [2024-12-30 11:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:03:04 [end_date_ymd] => 2024-12-30 11:03:04 [RateCDR] => 1 ) [2024-12-30 11: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-30 08:03:04' and `end` < '2024-12-30 11: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-30 11:03:17] Production.INFO: count ==3732 [2024-12-30 11:03:19] Production.ERROR: pbx CDR StartTime 2024-12-30 08:03:04 - End Time 2024-12-30 11:03:04 [2024-12-30 11:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135776', 'tblTempUsageDetail_20' ) start [2024-12-30 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135776', 'tblTempUsageDetail_20' ) end [2024-12-30 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135776', 'tblTempVendorCDR_20' ) start [2024-12-30 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135776', 'tblTempVendorCDR_20' ) end [2024-12-30 11:03:19] Production.INFO: ProcessCDR(1,14135776,1,1,2) [2024-12-30 11:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135776', 'tblTempUsageDetail_20' ) start [2024-12-30 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135776', 'tblTempUsageDetail_20' ) end [2024-12-30 11:03:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:03:24] Production.INFO: ==14856== Releasing lock... [2024-12-30 11:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:03:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-30 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:04:05 [end_date_ymd] => 2024-12-30 11:04:05 [RateCDR] => 1 ) [2024-12-30 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:04:05' and `end` < '2024-12-30 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:04:18] Production.INFO: count ==3736 [2024-12-30 11:04:20] Production.ERROR: pbx CDR StartTime 2024-12-30 08:04:05 - End Time 2024-12-30 11:04:05 [2024-12-30 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135781', 'tblTempUsageDetail_20' ) start [2024-12-30 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135781', 'tblTempUsageDetail_20' ) end [2024-12-30 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135781', 'tblTempVendorCDR_20' ) start [2024-12-30 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135781', 'tblTempVendorCDR_20' ) end [2024-12-30 11:04:20] Production.INFO: ProcessCDR(1,14135781,1,1,2) [2024-12-30 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135781', 'tblTempUsageDetail_20' ) start [2024-12-30 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135781', 'tblTempUsageDetail_20' ) end [2024-12-30 11:04:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:04:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:04:24] Production.INFO: ==14937== Releasing lock... [2024-12-30 11:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:04:24] Production.INFO: 56 MB #Memory Used# [2024-12-30 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:05:05 [end_date_ymd] => 2024-12-30 11:05:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:05:05' and `end` < '2024-12-30 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-30 11:05:19] Production.INFO: count ==3742 [2024-12-30 11:05:20] Production.ERROR: pbx CDR StartTime 2024-12-30 08:05:05 - End Time 2024-12-30 11:05:05 [2024-12-30 11:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135786', 'tblTempUsageDetail_20' ) start [2024-12-30 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135786', 'tblTempUsageDetail_20' ) end [2024-12-30 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135786', 'tblTempVendorCDR_20' ) start [2024-12-30 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135786', 'tblTempVendorCDR_20' ) end [2024-12-30 11:05:21] Production.INFO: ProcessCDR(1,14135786,1,1,2) [2024-12-30 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135786', 'tblTempUsageDetail_20' ) start [2024-12-30 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135786', 'tblTempUsageDetail_20' ) end [2024-12-30 11:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:05:25] Production.INFO: ==15096== Releasing lock... [2024-12-30 11:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:05:25] Production.INFO: 56 MB #Memory Used# [2024-12-30 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:06:05 [end_date_ymd] => 2024-12-30 11:06:05 [RateCDR] => 1 ) [2024-12-30 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:06:05' and `end` < '2024-12-30 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:06:18] Production.INFO: count ==3749 [2024-12-30 11:06:20] Production.ERROR: pbx CDR StartTime 2024-12-30 08:06:05 - End Time 2024-12-30 11:06:05 [2024-12-30 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135791', 'tblTempUsageDetail_20' ) start [2024-12-30 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135791', 'tblTempUsageDetail_20' ) end [2024-12-30 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135791', 'tblTempVendorCDR_20' ) start [2024-12-30 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135791', 'tblTempVendorCDR_20' ) end [2024-12-30 11:06:20] Production.INFO: ProcessCDR(1,14135791,1,1,2) [2024-12-30 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135791', 'tblTempUsageDetail_20' ) start [2024-12-30 11:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135791', 'tblTempUsageDetail_20' ) end [2024-12-30 11:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:06:23] Production.INFO: ==15173== Releasing lock... [2024-12-30 11:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:06:23] Production.INFO: 56 MB #Memory Used# [2024-12-30 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:07:05 [end_date_ymd] => 2024-12-30 11:07:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:07:05' and `end` < '2024-12-30 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-30 11:07:22] Production.INFO: count ==3762 [2024-12-30 11:07:24] Production.ERROR: pbx CDR StartTime 2024-12-30 08:07:05 - End Time 2024-12-30 11:07:05 [2024-12-30 11:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135796', 'tblTempUsageDetail_20' ) start [2024-12-30 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135796', 'tblTempUsageDetail_20' ) end [2024-12-30 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135796', 'tblTempVendorCDR_20' ) start [2024-12-30 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135796', 'tblTempVendorCDR_20' ) end [2024-12-30 11:07:24] Production.INFO: ProcessCDR(1,14135796,1,1,2) [2024-12-30 11:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135796', 'tblTempUsageDetail_20' ) start [2024-12-30 11:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135796', 'tblTempUsageDetail_20' ) end [2024-12-30 11:07:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:07:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:07:29] Production.INFO: ==15253== Releasing lock... [2024-12-30 11:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:07:29] Production.INFO: 56.25 MB #Memory Used# [2024-12-30 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:08:05 [end_date_ymd] => 2024-12-30 11:08:05 [RateCDR] => 1 ) [2024-12-30 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:08:05' and `end` < '2024-12-30 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:08:21] Production.INFO: count ==3752 [2024-12-30 11:08:22] Production.ERROR: pbx CDR StartTime 2024-12-30 08:08:05 - End Time 2024-12-30 11:08:05 [2024-12-30 11:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135801', 'tblTempUsageDetail_20' ) start [2024-12-30 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135801', 'tblTempUsageDetail_20' ) end [2024-12-30 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135801', 'tblTempVendorCDR_20' ) start [2024-12-30 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135801', 'tblTempVendorCDR_20' ) end [2024-12-30 11:08:22] Production.INFO: ProcessCDR(1,14135801,1,1,2) [2024-12-30 11:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135801', 'tblTempUsageDetail_20' ) start [2024-12-30 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135801', 'tblTempUsageDetail_20' ) end [2024-12-30 11:08:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:08:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:08:26] Production.INFO: ==15413== Releasing lock... [2024-12-30 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:08:26] Production.INFO: 56 MB #Memory Used# [2024-12-30 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:09:05 [end_date_ymd] => 2024-12-30 11:09:05 [RateCDR] => 1 ) [2024-12-30 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:09:05' and `end` < '2024-12-30 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:09:38] Production.INFO: count ==3745 [2024-12-30 11:09:40] Production.ERROR: pbx CDR StartTime 2024-12-30 08:09:05 - End Time 2024-12-30 11:09:05 [2024-12-30 11:09:40] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:09:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135806', 'tblTempUsageDetail_20' ) start [2024-12-30 11:09:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135806', 'tblTempUsageDetail_20' ) end [2024-12-30 11:09:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135806', 'tblTempVendorCDR_20' ) start [2024-12-30 11:09:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135806', 'tblTempVendorCDR_20' ) end [2024-12-30 11:09:40] Production.INFO: ProcessCDR(1,14135806,1,1,2) [2024-12-30 11:09:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:09:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:09:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:09:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:09:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135806', 'tblTempUsageDetail_20' ) start [2024-12-30 11:09:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135806', 'tblTempUsageDetail_20' ) end [2024-12-30 11:09:44] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:09:44] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:09:44] Production.INFO: ==15492== Releasing lock... [2024-12-30 11:09:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:09:44] Production.INFO: 56 MB #Memory Used# [2024-12-30 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:10:05 [end_date_ymd] => 2024-12-30 11:10:05 [RateCDR] => 1 ) [2024-12-30 11:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:10:05' and `end` < '2024-12-30 11:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:10:30] Production.INFO: count ==3737 [2024-12-30 11:10:32] Production.ERROR: pbx CDR StartTime 2024-12-30 08:10:05 - End Time 2024-12-30 11:10:05 [2024-12-30 11:10:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135811', 'tblTempUsageDetail_20' ) start [2024-12-30 11:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135811', 'tblTempUsageDetail_20' ) end [2024-12-30 11:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135811', 'tblTempVendorCDR_20' ) start [2024-12-30 11:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135811', 'tblTempVendorCDR_20' ) end [2024-12-30 11:10:32] Production.INFO: ProcessCDR(1,14135811,1,1,2) [2024-12-30 11:10:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:10:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:10:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:10:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135811', 'tblTempUsageDetail_20' ) start [2024-12-30 11:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135811', 'tblTempUsageDetail_20' ) end [2024-12-30 11:10:35] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:10:35] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:10:35] Production.INFO: ==15571== Releasing lock... [2024-12-30 11:10:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:10:35] Production.INFO: 56 MB #Memory Used# [2024-12-30 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:11:05 [end_date_ymd] => 2024-12-30 11:11:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:11:05' and `end` < '2024-12-30 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-30 11:11:23] Production.INFO: count ==3802 [2024-12-30 11:11:24] Production.ERROR: pbx CDR StartTime 2024-12-30 08:11:05 - End Time 2024-12-30 11:11:05 [2024-12-30 11:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135817', 'tblTempUsageDetail_20' ) start [2024-12-30 11:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135817', 'tblTempUsageDetail_20' ) end [2024-12-30 11:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135817', 'tblTempVendorCDR_20' ) start [2024-12-30 11:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135817', 'tblTempVendorCDR_20' ) end [2024-12-30 11:11:24] Production.INFO: ProcessCDR(1,14135817,1,1,2) [2024-12-30 11:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135817', 'tblTempUsageDetail_20' ) start [2024-12-30 11:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135817', 'tblTempUsageDetail_20' ) end [2024-12-30 11:11:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:11:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:11:29] Production.INFO: ==15655== Releasing lock... [2024-12-30 11:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:11:29] Production.INFO: 56.5 MB #Memory Used# [2024-12-30 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:12:05 [end_date_ymd] => 2024-12-30 11:12:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:12:05' and `end` < '2024-12-30 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-30 11:12:20] Production.INFO: count ==3804 [2024-12-30 11:12:22] Production.ERROR: pbx CDR StartTime 2024-12-30 08:12:05 - End Time 2024-12-30 11:12:05 [2024-12-30 11:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135822', 'tblTempUsageDetail_20' ) start [2024-12-30 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135822', 'tblTempUsageDetail_20' ) end [2024-12-30 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135822', 'tblTempVendorCDR_20' ) start [2024-12-30 11:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135822', 'tblTempVendorCDR_20' ) end [2024-12-30 11:12:22] Production.INFO: ProcessCDR(1,14135822,1,1,2) [2024-12-30 11:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135822', 'tblTempUsageDetail_20' ) start [2024-12-30 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135822', 'tblTempUsageDetail_20' ) end [2024-12-30 11:12:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:12:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:12:25] Production.INFO: ==15810== Releasing lock... [2024-12-30 11:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:12:25] Production.INFO: 56.5 MB #Memory Used# [2024-12-30 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:13:05 [end_date_ymd] => 2024-12-30 11:13:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:13:05' and `end` < '2024-12-30 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-30 11:13:21] Production.INFO: count ==3792 [2024-12-30 11:13:22] Production.ERROR: pbx CDR StartTime 2024-12-30 08:13:05 - End Time 2024-12-30 11:13:05 [2024-12-30 11:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135827', 'tblTempUsageDetail_20' ) start [2024-12-30 11:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135827', 'tblTempUsageDetail_20' ) end [2024-12-30 11:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135827', 'tblTempVendorCDR_20' ) start [2024-12-30 11:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135827', 'tblTempVendorCDR_20' ) end [2024-12-30 11:13:23] Production.INFO: ProcessCDR(1,14135827,1,1,2) [2024-12-30 11:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135827', 'tblTempUsageDetail_20' ) start [2024-12-30 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135827', 'tblTempUsageDetail_20' ) end [2024-12-30 11:13:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:13:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:13:27] Production.INFO: ==15929== Releasing lock... [2024-12-30 11:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:13:27] Production.INFO: 56.25 MB #Memory Used# [2024-12-30 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:14:06 [end_date_ymd] => 2024-12-30 11:14:06 [RateCDR] => 1 ) [2024-12-30 11:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:14:06' and `end` < '2024-12-30 11:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:14:22] Production.INFO: count ==3796 [2024-12-30 11:14:23] Production.ERROR: pbx CDR StartTime 2024-12-30 08:14:06 - End Time 2024-12-30 11:14:06 [2024-12-30 11:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135832', 'tblTempUsageDetail_20' ) start [2024-12-30 11:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135832', 'tblTempUsageDetail_20' ) end [2024-12-30 11:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135832', 'tblTempVendorCDR_20' ) start [2024-12-30 11:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135832', 'tblTempVendorCDR_20' ) end [2024-12-30 11:14:24] Production.INFO: ProcessCDR(1,14135832,1,1,2) [2024-12-30 11:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135832', 'tblTempUsageDetail_20' ) start [2024-12-30 11:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135832', 'tblTempUsageDetail_20' ) end [2024-12-30 11:14:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:14:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:14:28] Production.INFO: ==16009== Releasing lock... [2024-12-30 11:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:14:28] Production.INFO: 56.25 MB #Memory Used# [2024-12-30 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:15:05 [end_date_ymd] => 2024-12-30 11:15:05 [RateCDR] => 1 ) [2024-12-30 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:15:05' and `end` < '2024-12-30 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:15:19] Production.INFO: count ==3784 [2024-12-30 11:15:21] Production.ERROR: pbx CDR StartTime 2024-12-30 08:15:05 - End Time 2024-12-30 11:15:05 [2024-12-30 11:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135837', 'tblTempUsageDetail_20' ) start [2024-12-30 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135837', 'tblTempUsageDetail_20' ) end [2024-12-30 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135837', 'tblTempVendorCDR_20' ) start [2024-12-30 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135837', 'tblTempVendorCDR_20' ) end [2024-12-30 11:15:21] Production.INFO: ProcessCDR(1,14135837,1,1,2) [2024-12-30 11:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135837', 'tblTempUsageDetail_20' ) start [2024-12-30 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135837', 'tblTempUsageDetail_20' ) end [2024-12-30 11:15:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:15:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:15:25] Production.INFO: ==16171== Releasing lock... [2024-12-30 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:15:25] Production.INFO: 56.25 MB #Memory Used# [2024-12-30 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:16:05 [end_date_ymd] => 2024-12-30 11:16:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:16:05' and `end` < '2024-12-30 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-30 11:16:18] Production.INFO: count ==3792 [2024-12-30 11:16:20] Production.ERROR: pbx CDR StartTime 2024-12-30 08:16:05 - End Time 2024-12-30 11:16:05 [2024-12-30 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135842', 'tblTempUsageDetail_20' ) start [2024-12-30 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135842', 'tblTempUsageDetail_20' ) end [2024-12-30 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135842', 'tblTempVendorCDR_20' ) start [2024-12-30 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135842', 'tblTempVendorCDR_20' ) end [2024-12-30 11:16:20] Production.INFO: ProcessCDR(1,14135842,1,1,2) [2024-12-30 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135842', 'tblTempUsageDetail_20' ) start [2024-12-30 11:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135842', 'tblTempUsageDetail_20' ) end [2024-12-30 11:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:16:24] Production.INFO: ==16254== Releasing lock... [2024-12-30 11:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:16:24] Production.INFO: 56.5 MB #Memory Used# [2024-12-30 11:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:17:04 [end_date_ymd] => 2024-12-30 11:17:04 [RateCDR] => 1 ) [2024-12-30 11: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-30 08:17:04' and `end` < '2024-12-30 11: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-30 11:17:22] Production.INFO: count ==3793 [2024-12-30 11:17:24] Production.ERROR: pbx CDR StartTime 2024-12-30 08:17:04 - End Time 2024-12-30 11:17:04 [2024-12-30 11:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135847', 'tblTempUsageDetail_20' ) start [2024-12-30 11:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135847', 'tblTempUsageDetail_20' ) end [2024-12-30 11:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135847', 'tblTempVendorCDR_20' ) start [2024-12-30 11:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135847', 'tblTempVendorCDR_20' ) end [2024-12-30 11:17:24] Production.INFO: ProcessCDR(1,14135847,1,1,2) [2024-12-30 11:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135847', 'tblTempUsageDetail_20' ) start [2024-12-30 11:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135847', 'tblTempUsageDetail_20' ) end [2024-12-30 11:17:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:17:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:17:28] Production.INFO: ==16332== Releasing lock... [2024-12-30 11:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:17:28] Production.INFO: 56.25 MB #Memory Used# [2024-12-30 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:18:05 [end_date_ymd] => 2024-12-30 11:18:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:18:05' and `end` < '2024-12-30 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-30 11:18:24] Production.INFO: count ==3810 [2024-12-30 11:18:25] Production.ERROR: pbx CDR StartTime 2024-12-30 08:18:05 - End Time 2024-12-30 11:18:05 [2024-12-30 11:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135852', 'tblTempUsageDetail_20' ) start [2024-12-30 11:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135852', 'tblTempUsageDetail_20' ) end [2024-12-30 11:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135852', 'tblTempVendorCDR_20' ) start [2024-12-30 11:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135852', 'tblTempVendorCDR_20' ) end [2024-12-30 11:18:26] Production.INFO: ProcessCDR(1,14135852,1,1,2) [2024-12-30 11:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135852', 'tblTempUsageDetail_20' ) start [2024-12-30 11:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135852', 'tblTempUsageDetail_20' ) end [2024-12-30 11:18:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:18:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:18:30] Production.INFO: ==16411== Releasing lock... [2024-12-30 11:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:18:30] Production.INFO: 56.5 MB #Memory Used# [2024-12-30 11:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:19:04 [end_date_ymd] => 2024-12-30 11:19:04 [RateCDR] => 1 ) [2024-12-30 11: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-30 08:19:04' and `end` < '2024-12-30 11: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-30 11:19:30] Production.INFO: count ==3824 [2024-12-30 11:19:32] Production.ERROR: pbx CDR StartTime 2024-12-30 08:19:04 - End Time 2024-12-30 11:19:04 [2024-12-30 11:19:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135857', 'tblTempUsageDetail_20' ) start [2024-12-30 11:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135857', 'tblTempUsageDetail_20' ) end [2024-12-30 11:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135857', 'tblTempVendorCDR_20' ) start [2024-12-30 11:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135857', 'tblTempVendorCDR_20' ) end [2024-12-30 11:19:32] Production.INFO: ProcessCDR(1,14135857,1,1,2) [2024-12-30 11:19:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:19:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:19:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:19:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:19:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135857', 'tblTempUsageDetail_20' ) start [2024-12-30 11:19:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135857', 'tblTempUsageDetail_20' ) end [2024-12-30 11:19:37] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:19:37] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:19:37] Production.INFO: ==16487== Releasing lock... [2024-12-30 11:19:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:19:37] Production.INFO: 56.5 MB #Memory Used# [2024-12-30 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:20:06 [end_date_ymd] => 2024-12-30 11:20:06 [RateCDR] => 1 ) [2024-12-30 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:20:06' and `end` < '2024-12-30 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:20:26] Production.INFO: count ==3846 [2024-12-30 11:20:28] Production.ERROR: pbx CDR StartTime 2024-12-30 08:20:06 - End Time 2024-12-30 11:20:06 [2024-12-30 11:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135863', 'tblTempUsageDetail_20' ) start [2024-12-30 11:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135863', 'tblTempUsageDetail_20' ) end [2024-12-30 11:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135863', 'tblTempVendorCDR_20' ) start [2024-12-30 11:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135863', 'tblTempVendorCDR_20' ) end [2024-12-30 11:20:28] Production.INFO: ProcessCDR(1,14135863,1,1,2) [2024-12-30 11:20:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135863', 'tblTempUsageDetail_20' ) start [2024-12-30 11:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135863', 'tblTempUsageDetail_20' ) end [2024-12-30 11:20:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:20:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:20:32] Production.INFO: ==16568== Releasing lock... [2024-12-30 11:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:20:32] Production.INFO: 56.75 MB #Memory Used# [2024-12-30 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:21:06 [end_date_ymd] => 2024-12-30 11:21:06 [RateCDR] => 1 ) [2024-12-30 11:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:21:06' and `end` < '2024-12-30 11:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:21:30] Production.INFO: count ==3928 [2024-12-30 11:21:31] Production.ERROR: pbx CDR StartTime 2024-12-30 08:21:06 - End Time 2024-12-30 11:21:06 [2024-12-30 11:21:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135868', 'tblTempUsageDetail_20' ) start [2024-12-30 11:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135868', 'tblTempUsageDetail_20' ) end [2024-12-30 11:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135868', 'tblTempVendorCDR_20' ) start [2024-12-30 11:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135868', 'tblTempVendorCDR_20' ) end [2024-12-30 11:21:31] Production.INFO: ProcessCDR(1,14135868,1,1,2) [2024-12-30 11:21:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:21:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:21:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:21:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135868', 'tblTempUsageDetail_20' ) start [2024-12-30 11:21:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135868', 'tblTempUsageDetail_20' ) end [2024-12-30 11:21:36] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:21:36] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:21:36] Production.INFO: ==16657== Releasing lock... [2024-12-30 11:21:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:21:36] Production.INFO: 57.25 MB #Memory Used# [2024-12-30 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:22:05 [end_date_ymd] => 2024-12-30 11:22:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:22:05' and `end` < '2024-12-30 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-30 11:22:23] Production.INFO: count ==3943 [2024-12-30 11:22:24] Production.ERROR: pbx CDR StartTime 2024-12-30 08:22:05 - End Time 2024-12-30 11:22:05 [2024-12-30 11:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135873', 'tblTempUsageDetail_20' ) start [2024-12-30 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135873', 'tblTempUsageDetail_20' ) end [2024-12-30 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135873', 'tblTempVendorCDR_20' ) start [2024-12-30 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135873', 'tblTempVendorCDR_20' ) end [2024-12-30 11:22:25] Production.INFO: ProcessCDR(1,14135873,1,1,2) [2024-12-30 11:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135873', 'tblTempUsageDetail_20' ) start [2024-12-30 11:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135873', 'tblTempUsageDetail_20' ) end [2024-12-30 11:22:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:22:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:22:29] Production.INFO: ==16732== Releasing lock... [2024-12-30 11:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:22:29] Production.INFO: 57.5 MB #Memory Used# [2024-12-30 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:23:05 [end_date_ymd] => 2024-12-30 11:23:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:23:05' and `end` < '2024-12-30 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-30 11:23:18] Production.INFO: count ==3949 [2024-12-30 11:23:20] Production.ERROR: pbx CDR StartTime 2024-12-30 08:23:05 - End Time 2024-12-30 11:23:05 [2024-12-30 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135878', 'tblTempUsageDetail_20' ) start [2024-12-30 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135878', 'tblTempUsageDetail_20' ) end [2024-12-30 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135878', 'tblTempVendorCDR_20' ) start [2024-12-30 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135878', 'tblTempVendorCDR_20' ) end [2024-12-30 11:23:20] Production.INFO: ProcessCDR(1,14135878,1,1,2) [2024-12-30 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135878', 'tblTempUsageDetail_20' ) start [2024-12-30 11:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135878', 'tblTempUsageDetail_20' ) end [2024-12-30 11:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:23:24] Production.INFO: ==16812== Releasing lock... [2024-12-30 11:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:23:24] Production.INFO: 57.5 MB #Memory Used# [2024-12-30 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:24:05 [end_date_ymd] => 2024-12-30 11:24:05 [RateCDR] => 1 ) [2024-12-30 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:24:05' and `end` < '2024-12-30 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:24:32] Production.INFO: count ==3976 [2024-12-30 11:24:34] Production.ERROR: pbx CDR StartTime 2024-12-30 08:24:05 - End Time 2024-12-30 11:24:05 [2024-12-30 11:24:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135883', 'tblTempUsageDetail_20' ) start [2024-12-30 11:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135883', 'tblTempUsageDetail_20' ) end [2024-12-30 11:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135883', 'tblTempVendorCDR_20' ) start [2024-12-30 11:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135883', 'tblTempVendorCDR_20' ) end [2024-12-30 11:24:34] Production.INFO: ProcessCDR(1,14135883,1,1,2) [2024-12-30 11:24:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:24:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:24:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:24:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:24:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135883', 'tblTempUsageDetail_20' ) start [2024-12-30 11:24:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135883', 'tblTempUsageDetail_20' ) end [2024-12-30 11:24:39] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:24:39] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:24:39] Production.INFO: ==16887== Releasing lock... [2024-12-30 11:24:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:24:39] Production.INFO: 57.75 MB #Memory Used# [2024-12-30 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:25:05 [end_date_ymd] => 2024-12-30 11:25:05 [RateCDR] => 1 ) [2024-12-30 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:25:05' and `end` < '2024-12-30 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:25:30] Production.INFO: count ==4009 [2024-12-30 11:25:32] Production.ERROR: pbx CDR StartTime 2024-12-30 08:25:05 - End Time 2024-12-30 11:25:05 [2024-12-30 11:25:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135888', 'tblTempUsageDetail_20' ) start [2024-12-30 11:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135888', 'tblTempUsageDetail_20' ) end [2024-12-30 11:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135888', 'tblTempVendorCDR_20' ) start [2024-12-30 11:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135888', 'tblTempVendorCDR_20' ) end [2024-12-30 11:25:32] Production.INFO: ProcessCDR(1,14135888,1,1,2) [2024-12-30 11:25:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:25:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:25:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135888', 'tblTempUsageDetail_20' ) start [2024-12-30 11:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135888', 'tblTempUsageDetail_20' ) end [2024-12-30 11:25:37] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:25:37] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:25:37] Production.INFO: ==16961== Releasing lock... [2024-12-30 11:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:25:37] Production.INFO: 58 MB #Memory Used# [2024-12-30 11:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:26:04 [end_date_ymd] => 2024-12-30 11:26:04 [RateCDR] => 1 ) [2024-12-30 11: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-30 08:26:04' and `end` < '2024-12-30 11: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-30 11:26:26] Production.INFO: count ==4008 [2024-12-30 11:26:28] Production.ERROR: pbx CDR StartTime 2024-12-30 08:26:04 - End Time 2024-12-30 11:26:04 [2024-12-30 11:26:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135893', 'tblTempUsageDetail_20' ) start [2024-12-30 11:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135893', 'tblTempUsageDetail_20' ) end [2024-12-30 11:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135893', 'tblTempVendorCDR_20' ) start [2024-12-30 11:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135893', 'tblTempVendorCDR_20' ) end [2024-12-30 11:26:28] Production.INFO: ProcessCDR(1,14135893,1,1,2) [2024-12-30 11:26:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:26:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:26:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135893', 'tblTempUsageDetail_20' ) start [2024-12-30 11:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135893', 'tblTempUsageDetail_20' ) end [2024-12-30 11:26:33] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:26:33] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:26:33] Production.INFO: ==17039== Releasing lock... [2024-12-30 11:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:26:33] Production.INFO: 58 MB #Memory Used# [2024-12-30 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:27:05 [end_date_ymd] => 2024-12-30 11:27:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:27:05' and `end` < '2024-12-30 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-30 11:27:22] Production.INFO: count ==4014 [2024-12-30 11:27:24] Production.ERROR: pbx CDR StartTime 2024-12-30 08:27:05 - End Time 2024-12-30 11:27:05 [2024-12-30 11:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135898', 'tblTempUsageDetail_20' ) start [2024-12-30 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135898', 'tblTempUsageDetail_20' ) end [2024-12-30 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135898', 'tblTempVendorCDR_20' ) start [2024-12-30 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135898', 'tblTempVendorCDR_20' ) end [2024-12-30 11:27:24] Production.INFO: ProcessCDR(1,14135898,1,1,2) [2024-12-30 11:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135898', 'tblTempUsageDetail_20' ) start [2024-12-30 11:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135898', 'tblTempUsageDetail_20' ) end [2024-12-30 11:27:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:27:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:27:29] Production.INFO: ==17124== Releasing lock... [2024-12-30 11:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:27:29] Production.INFO: 58 MB #Memory Used# [2024-12-30 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:28:05 [end_date_ymd] => 2024-12-30 11:28:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:28:05' and `end` < '2024-12-30 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-30 11:28:23] Production.INFO: count ==4020 [2024-12-30 11:28:24] Production.ERROR: pbx CDR StartTime 2024-12-30 08:28:05 - End Time 2024-12-30 11:28:05 [2024-12-30 11:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135903', 'tblTempUsageDetail_20' ) start [2024-12-30 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135903', 'tblTempUsageDetail_20' ) end [2024-12-30 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135903', 'tblTempVendorCDR_20' ) start [2024-12-30 11:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135903', 'tblTempVendorCDR_20' ) end [2024-12-30 11:28:25] Production.INFO: ProcessCDR(1,14135903,1,1,2) [2024-12-30 11:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135903', 'tblTempUsageDetail_20' ) start [2024-12-30 11:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135903', 'tblTempUsageDetail_20' ) end [2024-12-30 11:28:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:28:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:28:29] Production.INFO: ==17201== Releasing lock... [2024-12-30 11:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:28:29] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:29:05 [end_date_ymd] => 2024-12-30 11:29:05 [RateCDR] => 1 ) [2024-12-30 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:29:05' and `end` < '2024-12-30 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:29:22] Production.INFO: count ==4026 [2024-12-30 11:29:23] Production.ERROR: pbx CDR StartTime 2024-12-30 08:29:05 - End Time 2024-12-30 11:29:05 [2024-12-30 11:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135908', 'tblTempUsageDetail_20' ) start [2024-12-30 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135908', 'tblTempUsageDetail_20' ) end [2024-12-30 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135908', 'tblTempVendorCDR_20' ) start [2024-12-30 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135908', 'tblTempVendorCDR_20' ) end [2024-12-30 11:29:24] Production.INFO: ProcessCDR(1,14135908,1,1,2) [2024-12-30 11:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135908', 'tblTempUsageDetail_20' ) start [2024-12-30 11:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135908', 'tblTempUsageDetail_20' ) end [2024-12-30 11:29:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:29:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:29:28] Production.INFO: ==17326== Releasing lock... [2024-12-30 11:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:29:28] Production.INFO: 58 MB #Memory Used# [2024-12-30 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:30:06 [end_date_ymd] => 2024-12-30 11:30:06 [RateCDR] => 1 ) [2024-12-30 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:30:06' and `end` < '2024-12-30 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:30:23] Production.INFO: count ==4024 [2024-12-30 11:30:25] Production.ERROR: pbx CDR StartTime 2024-12-30 08:30:06 - End Time 2024-12-30 11:30:06 [2024-12-30 11:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135914', 'tblTempUsageDetail_20' ) start [2024-12-30 11:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135914', 'tblTempUsageDetail_20' ) end [2024-12-30 11:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135914', 'tblTempVendorCDR_20' ) start [2024-12-30 11:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135914', 'tblTempVendorCDR_20' ) end [2024-12-30 11:30:25] Production.INFO: ProcessCDR(1,14135914,1,1,2) [2024-12-30 11:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135914', 'tblTempUsageDetail_20' ) start [2024-12-30 11:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135914', 'tblTempUsageDetail_20' ) end [2024-12-30 11:30:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:30:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:30:30] Production.INFO: ==17417== Releasing lock... [2024-12-30 11:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:30:30] Production.INFO: 58 MB #Memory Used# [2024-12-30 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:31:05 [end_date_ymd] => 2024-12-30 11:31:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:31:05' and `end` < '2024-12-30 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-30 11:31:19] Production.INFO: count ==4054 [2024-12-30 11:31:21] Production.ERROR: pbx CDR StartTime 2024-12-30 08:31:05 - End Time 2024-12-30 11:31:05 [2024-12-30 11:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135919', 'tblTempUsageDetail_20' ) start [2024-12-30 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135919', 'tblTempUsageDetail_20' ) end [2024-12-30 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135919', 'tblTempVendorCDR_20' ) start [2024-12-30 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135919', 'tblTempVendorCDR_20' ) end [2024-12-30 11:31:21] Production.INFO: ProcessCDR(1,14135919,1,1,2) [2024-12-30 11:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135919', 'tblTempUsageDetail_20' ) start [2024-12-30 11:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135919', 'tblTempUsageDetail_20' ) end [2024-12-30 11:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:31:24] Production.INFO: ==17501== Releasing lock... [2024-12-30 11:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:31:24] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:32:05 [end_date_ymd] => 2024-12-30 11:32:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:32:05' and `end` < '2024-12-30 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-30 11:32:24] Production.INFO: count ==4055 [2024-12-30 11:32:26] Production.ERROR: pbx CDR StartTime 2024-12-30 08:32:05 - End Time 2024-12-30 11:32:05 [2024-12-30 11:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135924', 'tblTempUsageDetail_20' ) start [2024-12-30 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135924', 'tblTempUsageDetail_20' ) end [2024-12-30 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135924', 'tblTempVendorCDR_20' ) start [2024-12-30 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135924', 'tblTempVendorCDR_20' ) end [2024-12-30 11:32:26] Production.INFO: ProcessCDR(1,14135924,1,1,2) [2024-12-30 11:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135924', 'tblTempUsageDetail_20' ) start [2024-12-30 11:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135924', 'tblTempUsageDetail_20' ) end [2024-12-30 11:32:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:32:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:32:30] Production.INFO: ==17584== Releasing lock... [2024-12-30 11:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:32:30] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:33:05 [end_date_ymd] => 2024-12-30 11:33:05 [RateCDR] => 1 ) [2024-12-30 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:33:05' and `end` < '2024-12-30 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:33:19] Production.INFO: count ==4058 [2024-12-30 11:33:21] Production.ERROR: pbx CDR StartTime 2024-12-30 08:33:05 - End Time 2024-12-30 11:33:05 [2024-12-30 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135929', 'tblTempUsageDetail_20' ) start [2024-12-30 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135929', 'tblTempUsageDetail_20' ) end [2024-12-30 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135929', 'tblTempVendorCDR_20' ) start [2024-12-30 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135929', 'tblTempVendorCDR_20' ) end [2024-12-30 11:33:21] Production.INFO: ProcessCDR(1,14135929,1,1,2) [2024-12-30 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135929', 'tblTempUsageDetail_20' ) start [2024-12-30 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135929', 'tblTempUsageDetail_20' ) end [2024-12-30 11:33:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:33:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:33:26] Production.INFO: ==17666== Releasing lock... [2024-12-30 11:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:33:26] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:34:04 [end_date_ymd] => 2024-12-30 11:34:04 [RateCDR] => 1 ) [2024-12-30 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-30 08:34:04' and `end` < '2024-12-30 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-30 11:34:20] Production.INFO: count ==4077 [2024-12-30 11:34:22] Production.ERROR: pbx CDR StartTime 2024-12-30 08:34:04 - End Time 2024-12-30 11:34:04 [2024-12-30 11:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135934', 'tblTempUsageDetail_20' ) start [2024-12-30 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135934', 'tblTempUsageDetail_20' ) end [2024-12-30 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135934', 'tblTempVendorCDR_20' ) start [2024-12-30 11:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135934', 'tblTempVendorCDR_20' ) end [2024-12-30 11:34:22] Production.INFO: ProcessCDR(1,14135934,1,1,2) [2024-12-30 11:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135934', 'tblTempUsageDetail_20' ) start [2024-12-30 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135934', 'tblTempUsageDetail_20' ) end [2024-12-30 11:34:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:34:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:34:27] Production.INFO: ==17750== Releasing lock... [2024-12-30 11:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:34:27] Production.INFO: 58.5 MB #Memory Used# [2024-12-30 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:35:05 [end_date_ymd] => 2024-12-30 11:35:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:35:05' and `end` < '2024-12-30 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-30 11:35:24] Production.INFO: count ==4088 [2024-12-30 11:35:26] Production.ERROR: pbx CDR StartTime 2024-12-30 08:35:05 - End Time 2024-12-30 11:35:05 [2024-12-30 11:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135939', 'tblTempUsageDetail_20' ) start [2024-12-30 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135939', 'tblTempUsageDetail_20' ) end [2024-12-30 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135939', 'tblTempVendorCDR_20' ) start [2024-12-30 11:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135939', 'tblTempVendorCDR_20' ) end [2024-12-30 11:35:26] Production.INFO: ProcessCDR(1,14135939,1,1,2) [2024-12-30 11:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135939', 'tblTempUsageDetail_20' ) start [2024-12-30 11:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135939', 'tblTempUsageDetail_20' ) end [2024-12-30 11:35:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:35:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:35:31] Production.INFO: ==17833== Releasing lock... [2024-12-30 11:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:35:31] Production.INFO: 58.5 MB #Memory Used# [2024-12-30 11:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:36:04 [end_date_ymd] => 2024-12-30 11:36:04 [RateCDR] => 1 ) [2024-12-30 11: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-30 08:36:04' and `end` < '2024-12-30 11: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-30 11:36:23] Production.INFO: count ==4098 [2024-12-30 11:36:25] Production.ERROR: pbx CDR StartTime 2024-12-30 08:36:04 - End Time 2024-12-30 11:36:04 [2024-12-30 11:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135944', 'tblTempUsageDetail_20' ) start [2024-12-30 11:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135944', 'tblTempUsageDetail_20' ) end [2024-12-30 11:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135944', 'tblTempVendorCDR_20' ) start [2024-12-30 11:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135944', 'tblTempVendorCDR_20' ) end [2024-12-30 11:36:25] Production.INFO: ProcessCDR(1,14135944,1,1,2) [2024-12-30 11:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135944', 'tblTempUsageDetail_20' ) start [2024-12-30 11:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135944', 'tblTempUsageDetail_20' ) end [2024-12-30 11:36:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:36:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:36:30] Production.INFO: ==17914== Releasing lock... [2024-12-30 11:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:36:30] Production.INFO: 58.75 MB #Memory Used# [2024-12-30 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:37:05 [end_date_ymd] => 2024-12-30 11:37:05 [RateCDR] => 1 ) [2024-12-30 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:37:05' and `end` < '2024-12-30 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:37:27] Production.INFO: count ==4107 [2024-12-30 11:37:29] Production.ERROR: pbx CDR StartTime 2024-12-30 08:37:05 - End Time 2024-12-30 11:37:05 [2024-12-30 11:37:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135949', 'tblTempUsageDetail_20' ) start [2024-12-30 11:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135949', 'tblTempUsageDetail_20' ) end [2024-12-30 11:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135949', 'tblTempVendorCDR_20' ) start [2024-12-30 11:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135949', 'tblTempVendorCDR_20' ) end [2024-12-30 11:37:29] Production.INFO: ProcessCDR(1,14135949,1,1,2) [2024-12-30 11:37:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135949', 'tblTempUsageDetail_20' ) start [2024-12-30 11:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135949', 'tblTempUsageDetail_20' ) end [2024-12-30 11:37:33] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:37:33] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:37:33] Production.INFO: ==17997== Releasing lock... [2024-12-30 11:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:37:33] Production.INFO: 58.75 MB #Memory Used# [2024-12-30 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:38:05 [end_date_ymd] => 2024-12-30 11:38:05 [RateCDR] => 1 ) [2024-12-30 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:38:05' and `end` < '2024-12-30 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:38:25] Production.INFO: count ==4123 [2024-12-30 11:38:27] Production.ERROR: pbx CDR StartTime 2024-12-30 08:38:05 - End Time 2024-12-30 11:38:05 [2024-12-30 11:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135954', 'tblTempUsageDetail_20' ) start [2024-12-30 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135954', 'tblTempUsageDetail_20' ) end [2024-12-30 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135954', 'tblTempVendorCDR_20' ) start [2024-12-30 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135954', 'tblTempVendorCDR_20' ) end [2024-12-30 11:38:27] Production.INFO: ProcessCDR(1,14135954,1,1,2) [2024-12-30 11:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135954', 'tblTempUsageDetail_20' ) start [2024-12-30 11:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135954', 'tblTempUsageDetail_20' ) end [2024-12-30 11:38:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:38:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:38:32] Production.INFO: ==18075== Releasing lock... [2024-12-30 11:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:38:32] Production.INFO: 58.75 MB #Memory Used# [2024-12-30 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:39:05 [end_date_ymd] => 2024-12-30 11:39:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:39:05' and `end` < '2024-12-30 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-30 11:39:28] Production.INFO: count ==4136 [2024-12-30 11:39:30] Production.ERROR: pbx CDR StartTime 2024-12-30 08:39:05 - End Time 2024-12-30 11:39:05 [2024-12-30 11:39:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135959', 'tblTempUsageDetail_20' ) start [2024-12-30 11:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135959', 'tblTempUsageDetail_20' ) end [2024-12-30 11:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135959', 'tblTempVendorCDR_20' ) start [2024-12-30 11:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135959', 'tblTempVendorCDR_20' ) end [2024-12-30 11:39:30] Production.INFO: ProcessCDR(1,14135959,1,1,2) [2024-12-30 11:39:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:39:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:39:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:39:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135959', 'tblTempUsageDetail_20' ) start [2024-12-30 11:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135959', 'tblTempUsageDetail_20' ) end [2024-12-30 11:39:34] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:39:35] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:39:35] Production.INFO: ==18159== Releasing lock... [2024-12-30 11:39:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:39:35] Production.INFO: 59 MB #Memory Used# [2024-12-30 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:40:05 [end_date_ymd] => 2024-12-30 11:40:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:40:05' and `end` < '2024-12-30 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-30 11:40:26] Production.INFO: count ==4148 [2024-12-30 11:40:27] Production.ERROR: pbx CDR StartTime 2024-12-30 08:40:05 - End Time 2024-12-30 11:40:05 [2024-12-30 11:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135965', 'tblTempUsageDetail_20' ) start [2024-12-30 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135965', 'tblTempUsageDetail_20' ) end [2024-12-30 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135965', 'tblTempVendorCDR_20' ) start [2024-12-30 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135965', 'tblTempVendorCDR_20' ) end [2024-12-30 11:40:27] Production.INFO: ProcessCDR(1,14135965,1,1,2) [2024-12-30 11:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135965', 'tblTempUsageDetail_20' ) start [2024-12-30 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135965', 'tblTempUsageDetail_20' ) end [2024-12-30 11:40:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:40:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:40:32] Production.INFO: ==18243== Releasing lock... [2024-12-30 11:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:40:32] Production.INFO: 59 MB #Memory Used# [2024-12-30 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:41:05 [end_date_ymd] => 2024-12-30 11:41:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:41:05' and `end` < '2024-12-30 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-30 11:41:20] Production.INFO: count ==4192 [2024-12-30 11:41:22] Production.ERROR: pbx CDR StartTime 2024-12-30 08:41:05 - End Time 2024-12-30 11:41:05 [2024-12-30 11:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135970', 'tblTempUsageDetail_20' ) start [2024-12-30 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135970', 'tblTempUsageDetail_20' ) end [2024-12-30 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135970', 'tblTempVendorCDR_20' ) start [2024-12-30 11:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135970', 'tblTempVendorCDR_20' ) end [2024-12-30 11:41:22] Production.INFO: ProcessCDR(1,14135970,1,1,2) [2024-12-30 11:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135970', 'tblTempUsageDetail_20' ) start [2024-12-30 11:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135970', 'tblTempUsageDetail_20' ) end [2024-12-30 11:41:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:41:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:41:27] Production.INFO: ==18324== Releasing lock... [2024-12-30 11:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:41:27] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 11:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:42:04 [end_date_ymd] => 2024-12-30 11:42:04 [RateCDR] => 1 ) [2024-12-30 11: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-30 08:42:04' and `end` < '2024-12-30 11: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-30 11:42:19] Production.INFO: count ==4192 [2024-12-30 11:42:21] Production.ERROR: pbx CDR StartTime 2024-12-30 08:42:04 - End Time 2024-12-30 11:42:04 [2024-12-30 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135975', 'tblTempUsageDetail_20' ) start [2024-12-30 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135975', 'tblTempUsageDetail_20' ) end [2024-12-30 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135975', 'tblTempVendorCDR_20' ) start [2024-12-30 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135975', 'tblTempVendorCDR_20' ) end [2024-12-30 11:42:21] Production.INFO: ProcessCDR(1,14135975,1,1,2) [2024-12-30 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135975', 'tblTempUsageDetail_20' ) start [2024-12-30 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135975', 'tblTempUsageDetail_20' ) end [2024-12-30 11:42:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:42:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:42:26] Production.INFO: ==18407== Releasing lock... [2024-12-30 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:42:26] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 11:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:43:04 [end_date_ymd] => 2024-12-30 11:43:04 [RateCDR] => 1 ) [2024-12-30 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-30 08:43:04' and `end` < '2024-12-30 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-30 11:43:18] Production.INFO: count ==4198 [2024-12-30 11:43:19] Production.ERROR: pbx CDR StartTime 2024-12-30 08:43:04 - End Time 2024-12-30 11:43:04 [2024-12-30 11:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135980', 'tblTempUsageDetail_20' ) start [2024-12-30 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135980', 'tblTempUsageDetail_20' ) end [2024-12-30 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135980', 'tblTempVendorCDR_20' ) start [2024-12-30 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135980', 'tblTempVendorCDR_20' ) end [2024-12-30 11:43:19] Production.INFO: ProcessCDR(1,14135980,1,1,2) [2024-12-30 11:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135980', 'tblTempUsageDetail_20' ) start [2024-12-30 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135980', 'tblTempUsageDetail_20' ) end [2024-12-30 11:43:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:43:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:43:24] Production.INFO: ==18492== Releasing lock... [2024-12-30 11:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:43:24] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:44:05 [end_date_ymd] => 2024-12-30 11:44:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:44:05' and `end` < '2024-12-30 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-30 11:44:19] Production.INFO: count ==4196 [2024-12-30 11:44:20] Production.ERROR: pbx CDR StartTime 2024-12-30 08:44:05 - End Time 2024-12-30 11:44:05 [2024-12-30 11:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135985', 'tblTempUsageDetail_20' ) start [2024-12-30 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135985', 'tblTempUsageDetail_20' ) end [2024-12-30 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135985', 'tblTempVendorCDR_20' ) start [2024-12-30 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135985', 'tblTempVendorCDR_20' ) end [2024-12-30 11:44:20] Production.INFO: ProcessCDR(1,14135985,1,1,2) [2024-12-30 11:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135985', 'tblTempUsageDetail_20' ) start [2024-12-30 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135985', 'tblTempUsageDetail_20' ) end [2024-12-30 11:44:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:44:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:44:25] Production.INFO: ==18575== Releasing lock... [2024-12-30 11:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:44:25] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:45:05 [end_date_ymd] => 2024-12-30 11:45:05 [RateCDR] => 1 ) [2024-12-30 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:45:05' and `end` < '2024-12-30 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:45:18] Production.INFO: count ==4193 [2024-12-30 11:45:20] Production.ERROR: pbx CDR StartTime 2024-12-30 08:45:05 - End Time 2024-12-30 11:45:05 [2024-12-30 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135990', 'tblTempUsageDetail_20' ) start [2024-12-30 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135990', 'tblTempUsageDetail_20' ) end [2024-12-30 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135990', 'tblTempVendorCDR_20' ) start [2024-12-30 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135990', 'tblTempVendorCDR_20' ) end [2024-12-30 11:45:20] Production.INFO: ProcessCDR(1,14135990,1,1,2) [2024-12-30 11:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135990', 'tblTempUsageDetail_20' ) start [2024-12-30 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135990', 'tblTempUsageDetail_20' ) end [2024-12-30 11:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:45:23] Production.INFO: ==18694== Releasing lock... [2024-12-30 11:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:45:23] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 11:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:46:04 [end_date_ymd] => 2024-12-30 11:46:04 [RateCDR] => 1 ) [2024-12-30 11: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-30 08:46:04' and `end` < '2024-12-30 11: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-30 11:46:18] Production.INFO: count ==4185 [2024-12-30 11:46:20] Production.ERROR: pbx CDR StartTime 2024-12-30 08:46:04 - End Time 2024-12-30 11:46:04 [2024-12-30 11:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135995', 'tblTempUsageDetail_20' ) start [2024-12-30 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14135995', 'tblTempUsageDetail_20' ) end [2024-12-30 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135995', 'tblTempVendorCDR_20' ) start [2024-12-30 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14135995', 'tblTempVendorCDR_20' ) end [2024-12-30 11:46:20] Production.INFO: ProcessCDR(1,14135995,1,1,2) [2024-12-30 11:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14135995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14135995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14135995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14135995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135995', 'tblTempUsageDetail_20' ) start [2024-12-30 11:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14135995', 'tblTempUsageDetail_20' ) end [2024-12-30 11:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:46:24] Production.INFO: ==18780== Releasing lock... [2024-12-30 11:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:46:24] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:47:05 [end_date_ymd] => 2024-12-30 11:47:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:47:05' and `end` < '2024-12-30 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-30 11:47:29] Production.INFO: count ==4189 [2024-12-30 11:47:31] Production.ERROR: pbx CDR StartTime 2024-12-30 08:47:05 - End Time 2024-12-30 11:47:05 [2024-12-30 11:47:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136000', 'tblTempUsageDetail_20' ) start [2024-12-30 11:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136000', 'tblTempUsageDetail_20' ) end [2024-12-30 11:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136000', 'tblTempVendorCDR_20' ) start [2024-12-30 11:47:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136000', 'tblTempVendorCDR_20' ) end [2024-12-30 11:47:31] Production.INFO: ProcessCDR(1,14136000,1,1,2) [2024-12-30 11:47:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:47:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:47:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:47:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:47:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136000', 'tblTempUsageDetail_20' ) start [2024-12-30 11:47:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136000', 'tblTempUsageDetail_20' ) end [2024-12-30 11:47:35] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:47:35] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:47:35] Production.INFO: ==18863== Releasing lock... [2024-12-30 11:47:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:47:35] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 11:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:48:04 [end_date_ymd] => 2024-12-30 11:48:04 [RateCDR] => 1 ) [2024-12-30 11: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-30 08:48:04' and `end` < '2024-12-30 11: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-30 11:48:30] Production.INFO: count ==4190 [2024-12-30 11:48:32] Production.ERROR: pbx CDR StartTime 2024-12-30 08:48:04 - End Time 2024-12-30 11:48:04 [2024-12-30 11:48:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136005', 'tblTempUsageDetail_20' ) start [2024-12-30 11:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136005', 'tblTempUsageDetail_20' ) end [2024-12-30 11:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136005', 'tblTempVendorCDR_20' ) start [2024-12-30 11:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136005', 'tblTempVendorCDR_20' ) end [2024-12-30 11:48:32] Production.INFO: ProcessCDR(1,14136005,1,1,2) [2024-12-30 11:48:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:48:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:48:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:48:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:48:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136005', 'tblTempUsageDetail_20' ) start [2024-12-30 11:48:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136005', 'tblTempUsageDetail_20' ) end [2024-12-30 11:48:37] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:48:37] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:48:37] Production.INFO: ==18947== Releasing lock... [2024-12-30 11:48:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:48:37] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:49:05 [end_date_ymd] => 2024-12-30 11:49:05 [RateCDR] => 1 ) [2024-12-30 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:49:05' and `end` < '2024-12-30 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:49:21] Production.INFO: count ==4162 [2024-12-30 11:49:23] Production.ERROR: pbx CDR StartTime 2024-12-30 08:49:05 - End Time 2024-12-30 11:49:05 [2024-12-30 11:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136010', 'tblTempUsageDetail_20' ) start [2024-12-30 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136010', 'tblTempUsageDetail_20' ) end [2024-12-30 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136010', 'tblTempVendorCDR_20' ) start [2024-12-30 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136010', 'tblTempVendorCDR_20' ) end [2024-12-30 11:49:23] Production.INFO: ProcessCDR(1,14136010,1,1,2) [2024-12-30 11:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136010', 'tblTempUsageDetail_20' ) start [2024-12-30 11:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136010', 'tblTempUsageDetail_20' ) end [2024-12-30 11:49:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:49:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:49:28] Production.INFO: ==19028== Releasing lock... [2024-12-30 11:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:49:28] Production.INFO: 59 MB #Memory Used# [2024-12-30 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:50:06 [end_date_ymd] => 2024-12-30 11:50:06 [RateCDR] => 1 ) [2024-12-30 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:50:06' and `end` < '2024-12-30 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:50:25] Production.INFO: count ==4142 [2024-12-30 11:50:27] Production.ERROR: pbx CDR StartTime 2024-12-30 08:50:06 - End Time 2024-12-30 11:50:06 [2024-12-30 11:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136016', 'tblTempUsageDetail_20' ) start [2024-12-30 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136016', 'tblTempUsageDetail_20' ) end [2024-12-30 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136016', 'tblTempVendorCDR_20' ) start [2024-12-30 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136016', 'tblTempVendorCDR_20' ) end [2024-12-30 11:50:27] Production.INFO: ProcessCDR(1,14136016,1,1,2) [2024-12-30 11:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136016', 'tblTempUsageDetail_20' ) start [2024-12-30 11:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136016', 'tblTempUsageDetail_20' ) end [2024-12-30 11:50:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:50:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:50:32] Production.INFO: ==19109== Releasing lock... [2024-12-30 11:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:50:32] Production.INFO: 59 MB #Memory Used# [2024-12-30 11:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:51:04 [end_date_ymd] => 2024-12-30 11:51:04 [RateCDR] => 1 ) [2024-12-30 11: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-30 08:51:04' and `end` < '2024-12-30 11: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-30 11:51:28] Production.INFO: count ==4185 [2024-12-30 11:51:29] Production.ERROR: pbx CDR StartTime 2024-12-30 08:51:04 - End Time 2024-12-30 11:51:04 [2024-12-30 11:51:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136021', 'tblTempUsageDetail_20' ) start [2024-12-30 11:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136021', 'tblTempUsageDetail_20' ) end [2024-12-30 11:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136021', 'tblTempVendorCDR_20' ) start [2024-12-30 11:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136021', 'tblTempVendorCDR_20' ) end [2024-12-30 11:51:29] Production.INFO: ProcessCDR(1,14136021,1,1,2) [2024-12-30 11:51:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:51:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:51:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:51:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136021', 'tblTempUsageDetail_20' ) start [2024-12-30 11:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136021', 'tblTempUsageDetail_20' ) end [2024-12-30 11:51:34] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:51:34] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:51:34] Production.INFO: ==19191== Releasing lock... [2024-12-30 11:51:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:51:34] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:52:05 [end_date_ymd] => 2024-12-30 11:52:05 [RateCDR] => 1 ) [2024-12-30 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:52:05' and `end` < '2024-12-30 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:52:23] Production.INFO: count ==4201 [2024-12-30 11:52:25] Production.ERROR: pbx CDR StartTime 2024-12-30 08:52:05 - End Time 2024-12-30 11:52:05 [2024-12-30 11:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136026', 'tblTempUsageDetail_20' ) start [2024-12-30 11:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136026', 'tblTempUsageDetail_20' ) end [2024-12-30 11:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136026', 'tblTempVendorCDR_20' ) start [2024-12-30 11:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136026', 'tblTempVendorCDR_20' ) end [2024-12-30 11:52:25] Production.INFO: ProcessCDR(1,14136026,1,1,2) [2024-12-30 11:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136026', 'tblTempUsageDetail_20' ) start [2024-12-30 11:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136026', 'tblTempUsageDetail_20' ) end [2024-12-30 11:52:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:52:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:52:30] Production.INFO: ==19271== Releasing lock... [2024-12-30 11:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:52:30] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 11:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:53:04 [end_date_ymd] => 2024-12-30 11:53:04 [RateCDR] => 1 ) [2024-12-30 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-30 08:53:04' and `end` < '2024-12-30 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-30 11:53:18] Production.INFO: count ==4205 [2024-12-30 11:53:20] Production.ERROR: pbx CDR StartTime 2024-12-30 08:53:04 - End Time 2024-12-30 11:53:04 [2024-12-30 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136031', 'tblTempUsageDetail_20' ) start [2024-12-30 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136031', 'tblTempUsageDetail_20' ) end [2024-12-30 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136031', 'tblTempVendorCDR_20' ) start [2024-12-30 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136031', 'tblTempVendorCDR_20' ) end [2024-12-30 11:53:20] Production.INFO: ProcessCDR(1,14136031,1,1,2) [2024-12-30 11:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136031', 'tblTempUsageDetail_20' ) start [2024-12-30 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136031', 'tblTempUsageDetail_20' ) end [2024-12-30 11:53:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:53:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:53:25] Production.INFO: ==19350== Releasing lock... [2024-12-30 11:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:53:25] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:54:05 [end_date_ymd] => 2024-12-30 11:54:05 [RateCDR] => 1 ) [2024-12-30 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:54:05' and `end` < '2024-12-30 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:54:22] Production.INFO: count ==4191 [2024-12-30 11:54:24] Production.ERROR: pbx CDR StartTime 2024-12-30 08:54:05 - End Time 2024-12-30 11:54:05 [2024-12-30 11:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136036', 'tblTempUsageDetail_20' ) start [2024-12-30 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136036', 'tblTempUsageDetail_20' ) end [2024-12-30 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136036', 'tblTempVendorCDR_20' ) start [2024-12-30 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136036', 'tblTempVendorCDR_20' ) end [2024-12-30 11:54:24] Production.INFO: ProcessCDR(1,14136036,1,1,2) [2024-12-30 11:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136036', 'tblTempUsageDetail_20' ) start [2024-12-30 11:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136036', 'tblTempUsageDetail_20' ) end [2024-12-30 11:54:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:54:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:54:28] Production.INFO: ==19438== Releasing lock... [2024-12-30 11:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:54:28] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:55:05 [end_date_ymd] => 2024-12-30 11:55:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:55:05' and `end` < '2024-12-30 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-30 11:55:29] Production.INFO: count ==4189 [2024-12-30 11:55:30] Production.ERROR: pbx CDR StartTime 2024-12-30 08:55:05 - End Time 2024-12-30 11:55:05 [2024-12-30 11:55:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136041', 'tblTempUsageDetail_20' ) start [2024-12-30 11:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136041', 'tblTempUsageDetail_20' ) end [2024-12-30 11:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136041', 'tblTempVendorCDR_20' ) start [2024-12-30 11:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136041', 'tblTempVendorCDR_20' ) end [2024-12-30 11:55:30] Production.INFO: ProcessCDR(1,14136041,1,1,2) [2024-12-30 11:55:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:55:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:55:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:55:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136041', 'tblTempUsageDetail_20' ) start [2024-12-30 11:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136041', 'tblTempUsageDetail_20' ) end [2024-12-30 11:55:35] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:55:35] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:55:35] Production.INFO: ==19519== Releasing lock... [2024-12-30 11:55:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:55:35] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:56:05 [end_date_ymd] => 2024-12-30 11:56:05 [RateCDR] => 1 ) [2024-12-30 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 08:56:05' and `end` < '2024-12-30 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:56:22] Production.INFO: count ==4218 [2024-12-30 11:56:24] Production.ERROR: pbx CDR StartTime 2024-12-30 08:56:05 - End Time 2024-12-30 11:56:05 [2024-12-30 11:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136046', 'tblTempUsageDetail_20' ) start [2024-12-30 11:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136046', 'tblTempUsageDetail_20' ) end [2024-12-30 11:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136046', 'tblTempVendorCDR_20' ) start [2024-12-30 11:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136046', 'tblTempVendorCDR_20' ) end [2024-12-30 11:56:24] Production.INFO: ProcessCDR(1,14136046,1,1,2) [2024-12-30 11:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136046', 'tblTempUsageDetail_20' ) start [2024-12-30 11:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136046', 'tblTempUsageDetail_20' ) end [2024-12-30 11:56:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:56:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:56:28] Production.INFO: ==19613== Releasing lock... [2024-12-30 11:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:56:28] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:57:05 [end_date_ymd] => 2024-12-30 11:57:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:57:05' and `end` < '2024-12-30 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-30 11:57:23] Production.INFO: count ==4224 [2024-12-30 11:57:24] Production.ERROR: pbx CDR StartTime 2024-12-30 08:57:05 - End Time 2024-12-30 11:57:05 [2024-12-30 11:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136051', 'tblTempUsageDetail_20' ) start [2024-12-30 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136051', 'tblTempUsageDetail_20' ) end [2024-12-30 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136051', 'tblTempVendorCDR_20' ) start [2024-12-30 11:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136051', 'tblTempVendorCDR_20' ) end [2024-12-30 11:57:24] Production.INFO: ProcessCDR(1,14136051,1,1,2) [2024-12-30 11:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136051', 'tblTempUsageDetail_20' ) start [2024-12-30 11:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136051', 'tblTempUsageDetail_20' ) end [2024-12-30 11:57:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:57:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:57:29] Production.INFO: ==19710== Releasing lock... [2024-12-30 11:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:57:29] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 11:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:58:04 [end_date_ymd] => 2024-12-30 11:58:04 [RateCDR] => 1 ) [2024-12-30 11: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-30 08:58:04' and `end` < '2024-12-30 11: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-30 11:58:19] Production.INFO: count ==4238 [2024-12-30 11:58:21] Production.ERROR: pbx CDR StartTime 2024-12-30 08:58:04 - End Time 2024-12-30 11:58:04 [2024-12-30 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136056', 'tblTempUsageDetail_20' ) start [2024-12-30 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136056', 'tblTempUsageDetail_20' ) end [2024-12-30 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136056', 'tblTempVendorCDR_20' ) start [2024-12-30 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136056', 'tblTempVendorCDR_20' ) end [2024-12-30 11:58:21] Production.INFO: ProcessCDR(1,14136056,1,1,2) [2024-12-30 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136056', 'tblTempUsageDetail_20' ) start [2024-12-30 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136056', 'tblTempUsageDetail_20' ) end [2024-12-30 11:58:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:58:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:58:26] Production.INFO: ==19808== Releasing lock... [2024-12-30 11:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:58:26] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 08:59:05 [end_date_ymd] => 2024-12-30 11:59:05 [RateCDR] => 1 ) [2024-12-30 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-30 08:59:05' and `end` < '2024-12-30 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 11:59:19] Production.INFO: count ==4263 [2024-12-30 11:59:21] Production.ERROR: pbx CDR StartTime 2024-12-30 08:59:05 - End Time 2024-12-30 11:59:05 [2024-12-30 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136061', 'tblTempUsageDetail_20' ) start [2024-12-30 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136061', 'tblTempUsageDetail_20' ) end [2024-12-30 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136061', 'tblTempVendorCDR_20' ) start [2024-12-30 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136061', 'tblTempVendorCDR_20' ) end [2024-12-30 11:59:21] Production.INFO: ProcessCDR(1,14136061,1,1,2) [2024-12-30 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 11:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136061', 'tblTempUsageDetail_20' ) start [2024-12-30 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136061', 'tblTempUsageDetail_20' ) end [2024-12-30 11:59:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 11:59:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 11:59:25] Production.INFO: ==19927== Releasing lock... [2024-12-30 11:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 11:59:25] Production.INFO: 60 MB #Memory Used# [2024-12-30 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:00:05 [end_date_ymd] => 2024-12-30 12:00:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:00:05' and `end` < '2024-12-30 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-30 12:00:20] Production.INFO: count ==4308 [2024-12-30 12:00:22] Production.ERROR: pbx CDR StartTime 2024-12-30 09:00:05 - End Time 2024-12-30 12:00:05 [2024-12-30 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136066', 'tblTempUsageDetail_20' ) start [2024-12-30 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136066', 'tblTempUsageDetail_20' ) end [2024-12-30 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136066', 'tblTempVendorCDR_20' ) start [2024-12-30 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136066', 'tblTempVendorCDR_20' ) end [2024-12-30 12:00:22] Production.INFO: ProcessCDR(1,14136066,1,1,2) [2024-12-30 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136066', 'tblTempUsageDetail_20' ) start [2024-12-30 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136066', 'tblTempUsageDetail_20' ) end [2024-12-30 12:00:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:00:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:00:26] Production.INFO: ==20037== Releasing lock... [2024-12-30 12:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:00:26] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:01:04 [end_date_ymd] => 2024-12-30 12:01:04 [RateCDR] => 1 ) [2024-12-30 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-30 09:01:04' and `end` < '2024-12-30 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-30 12:01:22] Production.INFO: count ==4355 [2024-12-30 12:01:24] Production.ERROR: pbx CDR StartTime 2024-12-30 09:01:04 - End Time 2024-12-30 12:01:04 [2024-12-30 12:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136072', 'tblTempUsageDetail_20' ) start [2024-12-30 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136072', 'tblTempUsageDetail_20' ) end [2024-12-30 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136072', 'tblTempVendorCDR_20' ) start [2024-12-30 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136072', 'tblTempVendorCDR_20' ) end [2024-12-30 12:01:24] Production.INFO: ProcessCDR(1,14136072,1,1,2) [2024-12-30 12:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136072', 'tblTempUsageDetail_20' ) start [2024-12-30 12:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136072', 'tblTempUsageDetail_20' ) end [2024-12-30 12:01:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:01:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:01:29] Production.INFO: ==20199== Releasing lock... [2024-12-30 12:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:01:29] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 12:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:02:04 [end_date_ymd] => 2024-12-30 12:02:04 [RateCDR] => 1 ) [2024-12-30 12: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-30 09:02:04' and `end` < '2024-12-30 12: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-30 12:02:22] Production.INFO: count ==4365 [2024-12-30 12:02:24] Production.ERROR: pbx CDR StartTime 2024-12-30 09:02:04 - End Time 2024-12-30 12:02:04 [2024-12-30 12:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136077', 'tblTempUsageDetail_20' ) start [2024-12-30 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136077', 'tblTempUsageDetail_20' ) end [2024-12-30 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136077', 'tblTempVendorCDR_20' ) start [2024-12-30 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136077', 'tblTempVendorCDR_20' ) end [2024-12-30 12:02:24] Production.INFO: ProcessCDR(1,14136077,1,1,2) [2024-12-30 12:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136077', 'tblTempUsageDetail_20' ) start [2024-12-30 12:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136077', 'tblTempUsageDetail_20' ) end [2024-12-30 12:02:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:02:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:02:29] Production.INFO: ==20304== Releasing lock... [2024-12-30 12:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:02:29] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:03:05 [end_date_ymd] => 2024-12-30 12:03:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:03:05' and `end` < '2024-12-30 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 12:03:23] Production.INFO: count ==4329 [2024-12-30 12:03:25] Production.ERROR: pbx CDR StartTime 2024-12-30 09:03:05 - End Time 2024-12-30 12:03:05 [2024-12-30 12:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136082', 'tblTempUsageDetail_20' ) start [2024-12-30 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136082', 'tblTempUsageDetail_20' ) end [2024-12-30 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136082', 'tblTempVendorCDR_20' ) start [2024-12-30 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136082', 'tblTempVendorCDR_20' ) end [2024-12-30 12:03:25] Production.INFO: ProcessCDR(1,14136082,1,1,2) [2024-12-30 12:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136082', 'tblTempUsageDetail_20' ) start [2024-12-30 12:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136082', 'tblTempUsageDetail_20' ) end [2024-12-30 12:03:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:03:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:03:30] Production.INFO: ==20411== Releasing lock... [2024-12-30 12:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:03:30] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:04:05 [end_date_ymd] => 2024-12-30 12:04:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:04:05' and `end` < '2024-12-30 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-30 12:04:24] Production.INFO: count ==4331 [2024-12-30 12:04:25] Production.ERROR: pbx CDR StartTime 2024-12-30 09:04:05 - End Time 2024-12-30 12:04:05 [2024-12-30 12:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136087', 'tblTempUsageDetail_20' ) start [2024-12-30 12:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136087', 'tblTempUsageDetail_20' ) end [2024-12-30 12:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136087', 'tblTempVendorCDR_20' ) start [2024-12-30 12:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136087', 'tblTempVendorCDR_20' ) end [2024-12-30 12:04:25] Production.INFO: ProcessCDR(1,14136087,1,1,2) [2024-12-30 12:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136087', 'tblTempUsageDetail_20' ) start [2024-12-30 12:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136087', 'tblTempUsageDetail_20' ) end [2024-12-30 12:04:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:04:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:04:30] Production.INFO: ==20525== Releasing lock... [2024-12-30 12:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:04:30] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:05:05 [end_date_ymd] => 2024-12-30 12:05:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:05:05' and `end` < '2024-12-30 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-30 12:05:20] Production.INFO: count ==4328 [2024-12-30 12:05:22] Production.ERROR: pbx CDR StartTime 2024-12-30 09:05:05 - End Time 2024-12-30 12:05:05 [2024-12-30 12:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136092', 'tblTempUsageDetail_20' ) start [2024-12-30 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136092', 'tblTempUsageDetail_20' ) end [2024-12-30 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136092', 'tblTempVendorCDR_20' ) start [2024-12-30 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136092', 'tblTempVendorCDR_20' ) end [2024-12-30 12:05:22] Production.INFO: ProcessCDR(1,14136092,1,1,2) [2024-12-30 12:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136092', 'tblTempUsageDetail_20' ) start [2024-12-30 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136092', 'tblTempUsageDetail_20' ) end [2024-12-30 12:05:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:05:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:05:26] Production.INFO: ==20627== Releasing lock... [2024-12-30 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:05:26] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:06:05 [end_date_ymd] => 2024-12-30 12:06:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:06:05' and `end` < '2024-12-30 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-30 12:06:22] Production.INFO: count ==4305 [2024-12-30 12:06:23] Production.ERROR: pbx CDR StartTime 2024-12-30 09:06:05 - End Time 2024-12-30 12:06:05 [2024-12-30 12:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136097', 'tblTempUsageDetail_20' ) start [2024-12-30 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136097', 'tblTempUsageDetail_20' ) end [2024-12-30 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136097', 'tblTempVendorCDR_20' ) start [2024-12-30 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136097', 'tblTempVendorCDR_20' ) end [2024-12-30 12:06:24] Production.INFO: ProcessCDR(1,14136097,1,1,2) [2024-12-30 12:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136097', 'tblTempUsageDetail_20' ) start [2024-12-30 12:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136097', 'tblTempUsageDetail_20' ) end [2024-12-30 12:06:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:06:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:06:28] Production.INFO: ==20724== Releasing lock... [2024-12-30 12:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:06:28] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:07:04 [end_date_ymd] => 2024-12-30 12:07:04 [RateCDR] => 1 ) [2024-12-30 12: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-30 09:07:04' and `end` < '2024-12-30 12: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-30 12:07:20] Production.INFO: count ==4298 [2024-12-30 12:07:22] Production.ERROR: pbx CDR StartTime 2024-12-30 09:07:04 - End Time 2024-12-30 12:07:04 [2024-12-30 12:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136102', 'tblTempUsageDetail_20' ) start [2024-12-30 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136102', 'tblTempUsageDetail_20' ) end [2024-12-30 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136102', 'tblTempVendorCDR_20' ) start [2024-12-30 12:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136102', 'tblTempVendorCDR_20' ) end [2024-12-30 12:07:22] Production.INFO: ProcessCDR(1,14136102,1,1,2) [2024-12-30 12:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136102', 'tblTempUsageDetail_20' ) start [2024-12-30 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136102', 'tblTempUsageDetail_20' ) end [2024-12-30 12:07:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:07:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:07:27] Production.INFO: ==20820== Releasing lock... [2024-12-30 12:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:07:27] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:08:05 [end_date_ymd] => 2024-12-30 12:08:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:08:05' and `end` < '2024-12-30 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-30 12:08:21] Production.INFO: count ==4287 [2024-12-30 12:08:23] Production.ERROR: pbx CDR StartTime 2024-12-30 09:08:05 - End Time 2024-12-30 12:08:05 [2024-12-30 12:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136107', 'tblTempUsageDetail_20' ) start [2024-12-30 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136107', 'tblTempUsageDetail_20' ) end [2024-12-30 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136107', 'tblTempVendorCDR_20' ) start [2024-12-30 12:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136107', 'tblTempVendorCDR_20' ) end [2024-12-30 12:08:23] Production.INFO: ProcessCDR(1,14136107,1,1,2) [2024-12-30 12:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136107', 'tblTempUsageDetail_20' ) start [2024-12-30 12:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136107', 'tblTempUsageDetail_20' ) end [2024-12-30 12:08:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:08:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:08:28] Production.INFO: ==20919== Releasing lock... [2024-12-30 12:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:08:28] Production.INFO: 60 MB #Memory Used# [2024-12-30 12:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:09:04 [end_date_ymd] => 2024-12-30 12:09:04 [RateCDR] => 1 ) [2024-12-30 12: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-30 09:09:04' and `end` < '2024-12-30 12: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-30 12:09:18] Production.INFO: count ==4280 [2024-12-30 12:09:20] Production.ERROR: pbx CDR StartTime 2024-12-30 09:09:04 - End Time 2024-12-30 12:09:04 [2024-12-30 12:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136112', 'tblTempUsageDetail_20' ) start [2024-12-30 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136112', 'tblTempUsageDetail_20' ) end [2024-12-30 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136112', 'tblTempVendorCDR_20' ) start [2024-12-30 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136112', 'tblTempVendorCDR_20' ) end [2024-12-30 12:09:20] Production.INFO: ProcessCDR(1,14136112,1,1,2) [2024-12-30 12:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136112', 'tblTempUsageDetail_20' ) start [2024-12-30 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136112', 'tblTempUsageDetail_20' ) end [2024-12-30 12:09:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:09:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:09:25] Production.INFO: ==21014== Releasing lock... [2024-12-30 12:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:09:25] Production.INFO: 60 MB #Memory Used# [2024-12-30 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:10:05 [end_date_ymd] => 2024-12-30 12:10:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:10:05' and `end` < '2024-12-30 12:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 12:10:35] Production.INFO: count ==4298 [2024-12-30 12:10:37] Production.ERROR: pbx CDR StartTime 2024-12-30 09:10:05 - End Time 2024-12-30 12:10:05 [2024-12-30 12:10:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136118', 'tblTempUsageDetail_20' ) start [2024-12-30 12:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136118', 'tblTempUsageDetail_20' ) end [2024-12-30 12:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136118', 'tblTempVendorCDR_20' ) start [2024-12-30 12:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136118', 'tblTempVendorCDR_20' ) end [2024-12-30 12:10:37] Production.INFO: ProcessCDR(1,14136118,1,1,2) [2024-12-30 12:10:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:10:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:10:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:10:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:10:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136118', 'tblTempUsageDetail_20' ) start [2024-12-30 12:10:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136118', 'tblTempUsageDetail_20' ) end [2024-12-30 12:10:41] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:10:41] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:10:42] Production.INFO: ==21119== Releasing lock... [2024-12-30 12:10:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:10:42] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:11:05 [end_date_ymd] => 2024-12-30 12:11:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:11:05' and `end` < '2024-12-30 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-30 12:11:23] Production.INFO: count ==4314 [2024-12-30 12:11:25] Production.ERROR: pbx CDR StartTime 2024-12-30 09:11:05 - End Time 2024-12-30 12:11:05 [2024-12-30 12:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136123', 'tblTempUsageDetail_20' ) start [2024-12-30 12:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136123', 'tblTempUsageDetail_20' ) end [2024-12-30 12:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136123', 'tblTempVendorCDR_20' ) start [2024-12-30 12:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136123', 'tblTempVendorCDR_20' ) end [2024-12-30 12:11:25] Production.INFO: ProcessCDR(1,14136123,1,1,2) [2024-12-30 12:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136123', 'tblTempUsageDetail_20' ) start [2024-12-30 12:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136123', 'tblTempUsageDetail_20' ) end [2024-12-30 12:11:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:11:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:11:30] Production.INFO: ==21220== Releasing lock... [2024-12-30 12:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:11:30] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:12:05 [end_date_ymd] => 2024-12-30 12:12:05 [RateCDR] => 1 ) [2024-12-30 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 09:12:05' and `end` < '2024-12-30 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 12:12:23] Production.INFO: count ==4306 [2024-12-30 12:12:25] Production.ERROR: pbx CDR StartTime 2024-12-30 09:12:05 - End Time 2024-12-30 12:12:05 [2024-12-30 12:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136128', 'tblTempUsageDetail_20' ) start [2024-12-30 12:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136128', 'tblTempUsageDetail_20' ) end [2024-12-30 12:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136128', 'tblTempVendorCDR_20' ) start [2024-12-30 12:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136128', 'tblTempVendorCDR_20' ) end [2024-12-30 12:12:25] Production.INFO: ProcessCDR(1,14136128,1,1,2) [2024-12-30 12:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136128', 'tblTempUsageDetail_20' ) start [2024-12-30 12:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136128', 'tblTempUsageDetail_20' ) end [2024-12-30 12:12:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:12:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:12:30] Production.INFO: ==21315== Releasing lock... [2024-12-30 12:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:12:30] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:13:05 [end_date_ymd] => 2024-12-30 12:13:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:13:05' and `end` < '2024-12-30 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-30 12:13:18] Production.INFO: count ==4298 [2024-12-30 12:13:20] Production.ERROR: pbx CDR StartTime 2024-12-30 09:13:05 - End Time 2024-12-30 12:13:05 [2024-12-30 12:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136133', 'tblTempUsageDetail_20' ) start [2024-12-30 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136133', 'tblTempUsageDetail_20' ) end [2024-12-30 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136133', 'tblTempVendorCDR_20' ) start [2024-12-30 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136133', 'tblTempVendorCDR_20' ) end [2024-12-30 12:13:20] Production.INFO: ProcessCDR(1,14136133,1,1,2) [2024-12-30 12:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136133', 'tblTempUsageDetail_20' ) start [2024-12-30 12:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136133', 'tblTempUsageDetail_20' ) end [2024-12-30 12:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:13:23] Production.INFO: ==21412== Releasing lock... [2024-12-30 12:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:13:23] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:14:05 [end_date_ymd] => 2024-12-30 12:14:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:14:05' and `end` < '2024-12-30 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-30 12:14:19] Production.INFO: count ==4302 [2024-12-30 12:14:20] Production.ERROR: pbx CDR StartTime 2024-12-30 09:14:05 - End Time 2024-12-30 12:14:05 [2024-12-30 12:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136138', 'tblTempUsageDetail_20' ) start [2024-12-30 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136138', 'tblTempUsageDetail_20' ) end [2024-12-30 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136138', 'tblTempVendorCDR_20' ) start [2024-12-30 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136138', 'tblTempVendorCDR_20' ) end [2024-12-30 12:14:21] Production.INFO: ProcessCDR(1,14136138,1,1,2) [2024-12-30 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136138', 'tblTempUsageDetail_20' ) start [2024-12-30 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136138', 'tblTempUsageDetail_20' ) end [2024-12-30 12:14:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:14:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:14:25] Production.INFO: ==21493== Releasing lock... [2024-12-30 12:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:14:25] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:15:05 [end_date_ymd] => 2024-12-30 12:15:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:15:05' and `end` < '2024-12-30 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-30 12:15:18] Production.INFO: count ==4300 [2024-12-30 12:15:20] Production.ERROR: pbx CDR StartTime 2024-12-30 09:15:05 - End Time 2024-12-30 12:15:05 [2024-12-30 12:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136143', 'tblTempUsageDetail_20' ) start [2024-12-30 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136143', 'tblTempUsageDetail_20' ) end [2024-12-30 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136143', 'tblTempVendorCDR_20' ) start [2024-12-30 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136143', 'tblTempVendorCDR_20' ) end [2024-12-30 12:15:20] Production.INFO: ProcessCDR(1,14136143,1,1,2) [2024-12-30 12:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136143', 'tblTempUsageDetail_20' ) start [2024-12-30 12:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136143', 'tblTempUsageDetail_20' ) end [2024-12-30 12:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:15:23] Production.INFO: ==21575== Releasing lock... [2024-12-30 12:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:15:23] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:16:05 [end_date_ymd] => 2024-12-30 12:16:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:16:05' and `end` < '2024-12-30 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-30 12:16:20] Production.INFO: count ==4316 [2024-12-30 12:16:22] Production.ERROR: pbx CDR StartTime 2024-12-30 09:16:05 - End Time 2024-12-30 12:16:05 [2024-12-30 12:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136148', 'tblTempUsageDetail_20' ) start [2024-12-30 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136148', 'tblTempUsageDetail_20' ) end [2024-12-30 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136148', 'tblTempVendorCDR_20' ) start [2024-12-30 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136148', 'tblTempVendorCDR_20' ) end [2024-12-30 12:16:22] Production.INFO: ProcessCDR(1,14136148,1,1,2) [2024-12-30 12:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136148', 'tblTempUsageDetail_20' ) start [2024-12-30 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136148', 'tblTempUsageDetail_20' ) end [2024-12-30 12:16:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:16:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:16:27] Production.INFO: ==21691== Releasing lock... [2024-12-30 12:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:16:27] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:17:05 [end_date_ymd] => 2024-12-30 12:17:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:17:05' and `end` < '2024-12-30 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-30 12:17:24] Production.INFO: count ==4324 [2024-12-30 12:17:25] Production.ERROR: pbx CDR StartTime 2024-12-30 09:17:05 - End Time 2024-12-30 12:17:05 [2024-12-30 12:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136153', 'tblTempUsageDetail_20' ) start [2024-12-30 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136153', 'tblTempUsageDetail_20' ) end [2024-12-30 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136153', 'tblTempVendorCDR_20' ) start [2024-12-30 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136153', 'tblTempVendorCDR_20' ) end [2024-12-30 12:17:25] Production.INFO: ProcessCDR(1,14136153,1,1,2) [2024-12-30 12:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136153', 'tblTempUsageDetail_20' ) start [2024-12-30 12:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136153', 'tblTempUsageDetail_20' ) end [2024-12-30 12:17:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:17:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:17:30] Production.INFO: ==21778== Releasing lock... [2024-12-30 12:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:17:30] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:18:05 [end_date_ymd] => 2024-12-30 12:18:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:18:05' and `end` < '2024-12-30 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-30 12:18:27] Production.INFO: count ==4310 [2024-12-30 12:18:29] Production.ERROR: pbx CDR StartTime 2024-12-30 09:18:05 - End Time 2024-12-30 12:18:05 [2024-12-30 12:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136158', 'tblTempUsageDetail_20' ) start [2024-12-30 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136158', 'tblTempUsageDetail_20' ) end [2024-12-30 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136158', 'tblTempVendorCDR_20' ) start [2024-12-30 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136158', 'tblTempVendorCDR_20' ) end [2024-12-30 12:18:29] Production.INFO: ProcessCDR(1,14136158,1,1,2) [2024-12-30 12:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:18:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136158', 'tblTempUsageDetail_20' ) start [2024-12-30 12:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136158', 'tblTempUsageDetail_20' ) end [2024-12-30 12:18:34] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:18:34] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:18:34] Production.INFO: ==21863== Releasing lock... [2024-12-30 12:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:18:34] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:19:05 [end_date_ymd] => 2024-12-30 12:19:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:19:05' and `end` < '2024-12-30 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-30 12:19:31] Production.INFO: count ==4323 [2024-12-30 12:19:33] Production.ERROR: pbx CDR StartTime 2024-12-30 09:19:05 - End Time 2024-12-30 12:19:05 [2024-12-30 12:19:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136163', 'tblTempUsageDetail_20' ) start [2024-12-30 12:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136163', 'tblTempUsageDetail_20' ) end [2024-12-30 12:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136163', 'tblTempVendorCDR_20' ) start [2024-12-30 12:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136163', 'tblTempVendorCDR_20' ) end [2024-12-30 12:19:33] Production.INFO: ProcessCDR(1,14136163,1,1,2) [2024-12-30 12:19:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:19:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:19:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:19:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:19:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136163', 'tblTempUsageDetail_20' ) start [2024-12-30 12:19:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136163', 'tblTempUsageDetail_20' ) end [2024-12-30 12:19:38] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:19:38] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:19:38] Production.INFO: ==21945== Releasing lock... [2024-12-30 12:19:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:19:38] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:20:05 [end_date_ymd] => 2024-12-30 12:20:05 [RateCDR] => 1 ) [2024-12-30 12: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-30 09:20:05' and `end` < '2024-12-30 12: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-30 12:20:28] Production.INFO: count ==4305 [2024-12-30 12:20:29] Production.ERROR: pbx CDR StartTime 2024-12-30 09:20:05 - End Time 2024-12-30 12:20:05 [2024-12-30 12:20:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136169', 'tblTempUsageDetail_20' ) start [2024-12-30 12:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136169', 'tblTempUsageDetail_20' ) end [2024-12-30 12:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136169', 'tblTempVendorCDR_20' ) start [2024-12-30 12:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136169', 'tblTempVendorCDR_20' ) end [2024-12-30 12:20:30] Production.INFO: ProcessCDR(1,14136169,1,1,2) [2024-12-30 12:20:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:20:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:20:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136169', 'tblTempUsageDetail_20' ) start [2024-12-30 12:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136169', 'tblTempUsageDetail_20' ) end [2024-12-30 12:20:35] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:20:35] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:20:35] Production.INFO: ==22023== Releasing lock... [2024-12-30 12:20:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:20:35] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:21:05 [end_date_ymd] => 2024-12-30 12:21:05 [RateCDR] => 1 ) [2024-12-30 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 09:21:05' and `end` < '2024-12-30 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 12:21:23] Production.INFO: count ==4319 [2024-12-30 12:21:24] Production.ERROR: pbx CDR StartTime 2024-12-30 09:21:05 - End Time 2024-12-30 12:21:05 [2024-12-30 12:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136174', 'tblTempUsageDetail_20' ) start [2024-12-30 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136174', 'tblTempUsageDetail_20' ) end [2024-12-30 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136174', 'tblTempVendorCDR_20' ) start [2024-12-30 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136174', 'tblTempVendorCDR_20' ) end [2024-12-30 12:21:25] Production.INFO: ProcessCDR(1,14136174,1,1,2) [2024-12-30 12:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136174', 'tblTempUsageDetail_20' ) start [2024-12-30 12:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136174', 'tblTempUsageDetail_20' ) end [2024-12-30 12:21:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:21:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:21:29] Production.INFO: ==22110== Releasing lock... [2024-12-30 12:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:21:29] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:22:05 [end_date_ymd] => 2024-12-30 12:22:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:22:05' and `end` < '2024-12-30 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-30 12:22:24] Production.INFO: count ==4310 [2024-12-30 12:22:26] Production.ERROR: pbx CDR StartTime 2024-12-30 09:22:05 - End Time 2024-12-30 12:22:05 [2024-12-30 12:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136179', 'tblTempUsageDetail_20' ) start [2024-12-30 12:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136179', 'tblTempUsageDetail_20' ) end [2024-12-30 12:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136179', 'tblTempVendorCDR_20' ) start [2024-12-30 12:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136179', 'tblTempVendorCDR_20' ) end [2024-12-30 12:22:26] Production.INFO: ProcessCDR(1,14136179,1,1,2) [2024-12-30 12:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136179', 'tblTempUsageDetail_20' ) start [2024-12-30 12:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136179', 'tblTempUsageDetail_20' ) end [2024-12-30 12:22:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:22:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:22:29] Production.INFO: ==22201== Releasing lock... [2024-12-30 12:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:22:29] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:23:05 [end_date_ymd] => 2024-12-30 12:23:05 [RateCDR] => 1 ) [2024-12-30 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 09:23:05' and `end` < '2024-12-30 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 12:23:18] Production.INFO: count ==4313 [2024-12-30 12:23:20] Production.ERROR: pbx CDR StartTime 2024-12-30 09:23:05 - End Time 2024-12-30 12:23:05 [2024-12-30 12:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136184', 'tblTempUsageDetail_20' ) start [2024-12-30 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136184', 'tblTempUsageDetail_20' ) end [2024-12-30 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136184', 'tblTempVendorCDR_20' ) start [2024-12-30 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136184', 'tblTempVendorCDR_20' ) end [2024-12-30 12:23:20] Production.INFO: ProcessCDR(1,14136184,1,1,2) [2024-12-30 12:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136184', 'tblTempUsageDetail_20' ) start [2024-12-30 12:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136184', 'tblTempUsageDetail_20' ) end [2024-12-30 12:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:23:23] Production.INFO: ==22291== Releasing lock... [2024-12-30 12:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:23:23] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:24:05 [end_date_ymd] => 2024-12-30 12:24:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:24:05' and `end` < '2024-12-30 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-30 12:24:22] Production.INFO: count ==4307 [2024-12-30 12:24:23] Production.ERROR: pbx CDR StartTime 2024-12-30 09:24:05 - End Time 2024-12-30 12:24:05 [2024-12-30 12:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136189', 'tblTempUsageDetail_20' ) start [2024-12-30 12:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136189', 'tblTempUsageDetail_20' ) end [2024-12-30 12:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136189', 'tblTempVendorCDR_20' ) start [2024-12-30 12:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136189', 'tblTempVendorCDR_20' ) end [2024-12-30 12:24:24] Production.INFO: ProcessCDR(1,14136189,1,1,2) [2024-12-30 12:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136189', 'tblTempUsageDetail_20' ) start [2024-12-30 12:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136189', 'tblTempUsageDetail_20' ) end [2024-12-30 12:24:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:24:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:24:28] Production.INFO: ==22383== Releasing lock... [2024-12-30 12:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:24:28] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:25:05 [end_date_ymd] => 2024-12-30 12:25:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:25:05' and `end` < '2024-12-30 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-30 12:25:23] Production.INFO: count ==4312 [2024-12-30 12:25:25] Production.ERROR: pbx CDR StartTime 2024-12-30 09:25:05 - End Time 2024-12-30 12:25:05 [2024-12-30 12:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136194', 'tblTempUsageDetail_20' ) start [2024-12-30 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136194', 'tblTempUsageDetail_20' ) end [2024-12-30 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136194', 'tblTempVendorCDR_20' ) start [2024-12-30 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136194', 'tblTempVendorCDR_20' ) end [2024-12-30 12:25:25] Production.INFO: ProcessCDR(1,14136194,1,1,2) [2024-12-30 12:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136194', 'tblTempUsageDetail_20' ) start [2024-12-30 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136194', 'tblTempUsageDetail_20' ) end [2024-12-30 12:25:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:25:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:25:30] Production.INFO: ==22477== Releasing lock... [2024-12-30 12:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:25:30] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:26:05 [end_date_ymd] => 2024-12-30 12:26:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:26:05' and `end` < '2024-12-30 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-30 12:26:21] Production.INFO: count ==4312 [2024-12-30 12:26:23] Production.ERROR: pbx CDR StartTime 2024-12-30 09:26:05 - End Time 2024-12-30 12:26:05 [2024-12-30 12:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136199', 'tblTempUsageDetail_20' ) start [2024-12-30 12:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136199', 'tblTempUsageDetail_20' ) end [2024-12-30 12:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136199', 'tblTempVendorCDR_20' ) start [2024-12-30 12:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136199', 'tblTempVendorCDR_20' ) end [2024-12-30 12:26:23] Production.INFO: ProcessCDR(1,14136199,1,1,2) [2024-12-30 12:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136199', 'tblTempUsageDetail_20' ) start [2024-12-30 12:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136199', 'tblTempUsageDetail_20' ) end [2024-12-30 12:26:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:26:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:26:28] Production.INFO: ==22566== Releasing lock... [2024-12-30 12:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:26:28] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:27:05 [end_date_ymd] => 2024-12-30 12:27:05 [RateCDR] => 1 ) [2024-12-30 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 09:27:05' and `end` < '2024-12-30 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 12:27:19] Production.INFO: count ==4314 [2024-12-30 12:27:21] Production.ERROR: pbx CDR StartTime 2024-12-30 09:27:05 - End Time 2024-12-30 12:27:05 [2024-12-30 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136204', 'tblTempUsageDetail_20' ) start [2024-12-30 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136204', 'tblTempUsageDetail_20' ) end [2024-12-30 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136204', 'tblTempVendorCDR_20' ) start [2024-12-30 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136204', 'tblTempVendorCDR_20' ) end [2024-12-30 12:27:21] Production.INFO: ProcessCDR(1,14136204,1,1,2) [2024-12-30 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136204', 'tblTempUsageDetail_20' ) start [2024-12-30 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136204', 'tblTempUsageDetail_20' ) end [2024-12-30 12:27:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:27:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:27:25] Production.INFO: ==22664== Releasing lock... [2024-12-30 12:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:27:25] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:28:05 [end_date_ymd] => 2024-12-30 12:28:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:28:05' and `end` < '2024-12-30 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-30 12:28:23] Production.INFO: count ==4329 [2024-12-30 12:28:24] Production.ERROR: pbx CDR StartTime 2024-12-30 09:28:05 - End Time 2024-12-30 12:28:05 [2024-12-30 12:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136209', 'tblTempUsageDetail_20' ) start [2024-12-30 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136209', 'tblTempUsageDetail_20' ) end [2024-12-30 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136209', 'tblTempVendorCDR_20' ) start [2024-12-30 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136209', 'tblTempVendorCDR_20' ) end [2024-12-30 12:28:24] Production.INFO: ProcessCDR(1,14136209,1,1,2) [2024-12-30 12:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136209', 'tblTempUsageDetail_20' ) start [2024-12-30 12:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136209', 'tblTempUsageDetail_20' ) end [2024-12-30 12:28:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:28:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:28:29] Production.INFO: ==22762== Releasing lock... [2024-12-30 12:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:28:29] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:29:05 [end_date_ymd] => 2024-12-30 12:29:05 [RateCDR] => 1 ) [2024-12-30 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 09:29:05' and `end` < '2024-12-30 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 12:29:26] Production.INFO: count ==4353 [2024-12-30 12:29:28] Production.ERROR: pbx CDR StartTime 2024-12-30 09:29:05 - End Time 2024-12-30 12:29:05 [2024-12-30 12:29:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136214', 'tblTempUsageDetail_20' ) start [2024-12-30 12:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136214', 'tblTempUsageDetail_20' ) end [2024-12-30 12:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136214', 'tblTempVendorCDR_20' ) start [2024-12-30 12:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136214', 'tblTempVendorCDR_20' ) end [2024-12-30 12:29:28] Production.INFO: ProcessCDR(1,14136214,1,1,2) [2024-12-30 12:29:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136214', 'tblTempUsageDetail_20' ) start [2024-12-30 12:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136214', 'tblTempUsageDetail_20' ) end [2024-12-30 12:29:33] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:29:33] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:29:33] Production.INFO: ==22859== Releasing lock... [2024-12-30 12:29:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:29:33] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:30:05 [end_date_ymd] => 2024-12-30 12:30:05 [RateCDR] => 1 ) [2024-12-30 12: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-30 09:30:05' and `end` < '2024-12-30 12: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-30 12:30:22] Production.INFO: count ==4378 [2024-12-30 12:30:24] Production.ERROR: pbx CDR StartTime 2024-12-30 09:30:05 - End Time 2024-12-30 12:30:05 [2024-12-30 12:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136220', 'tblTempUsageDetail_20' ) start [2024-12-30 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136220', 'tblTempUsageDetail_20' ) end [2024-12-30 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136220', 'tblTempVendorCDR_20' ) start [2024-12-30 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136220', 'tblTempVendorCDR_20' ) end [2024-12-30 12:30:24] Production.INFO: ProcessCDR(1,14136220,1,1,2) [2024-12-30 12:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136220', 'tblTempUsageDetail_20' ) start [2024-12-30 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136220', 'tblTempUsageDetail_20' ) end [2024-12-30 12:30:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:30:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:30:29] Production.INFO: ==22951== Releasing lock... [2024-12-30 12:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:30:29] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:31:05 [end_date_ymd] => 2024-12-30 12:31:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:31:05' and `end` < '2024-12-30 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-30 12:31:28] Production.INFO: count ==4403 [2024-12-30 12:31:29] Production.ERROR: pbx CDR StartTime 2024-12-30 09:31:05 - End Time 2024-12-30 12:31:05 [2024-12-30 12:31:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136225', 'tblTempUsageDetail_20' ) start [2024-12-30 12:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136225', 'tblTempUsageDetail_20' ) end [2024-12-30 12:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136225', 'tblTempVendorCDR_20' ) start [2024-12-30 12:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136225', 'tblTempVendorCDR_20' ) end [2024-12-30 12:31:30] Production.INFO: ProcessCDR(1,14136225,1,1,2) [2024-12-30 12:31:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:31:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:31:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:31:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136225', 'tblTempUsageDetail_20' ) start [2024-12-30 12:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136225', 'tblTempUsageDetail_20' ) end [2024-12-30 12:31:34] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:31:34] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:31:34] Production.INFO: ==23048== Releasing lock... [2024-12-30 12:31:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:31:34] Production.INFO: 61 MB #Memory Used# [2024-12-30 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:32:05 [end_date_ymd] => 2024-12-30 12:32:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:32:05' and `end` < '2024-12-30 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-30 12:32:23] Production.INFO: count ==4405 [2024-12-30 12:32:24] Production.ERROR: pbx CDR StartTime 2024-12-30 09:32:05 - End Time 2024-12-30 12:32:05 [2024-12-30 12:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136230', 'tblTempUsageDetail_20' ) start [2024-12-30 12:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136230', 'tblTempUsageDetail_20' ) end [2024-12-30 12:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136230', 'tblTempVendorCDR_20' ) start [2024-12-30 12:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136230', 'tblTempVendorCDR_20' ) end [2024-12-30 12:32:25] Production.INFO: ProcessCDR(1,14136230,1,1,2) [2024-12-30 12:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136230', 'tblTempUsageDetail_20' ) start [2024-12-30 12:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136230', 'tblTempUsageDetail_20' ) end [2024-12-30 12:32:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:32:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:32:29] Production.INFO: ==23182== Releasing lock... [2024-12-30 12:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:32:29] Production.INFO: 61 MB #Memory Used# [2024-12-30 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:33:05 [end_date_ymd] => 2024-12-30 12:33:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:33:05' and `end` < '2024-12-30 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-30 12:33:23] Production.INFO: count ==4387 [2024-12-30 12:33:25] Production.ERROR: pbx CDR StartTime 2024-12-30 09:33:05 - End Time 2024-12-30 12:33:05 [2024-12-30 12:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136235', 'tblTempUsageDetail_20' ) start [2024-12-30 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136235', 'tblTempUsageDetail_20' ) end [2024-12-30 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136235', 'tblTempVendorCDR_20' ) start [2024-12-30 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136235', 'tblTempVendorCDR_20' ) end [2024-12-30 12:33:25] Production.INFO: ProcessCDR(1,14136235,1,1,2) [2024-12-30 12:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136235', 'tblTempUsageDetail_20' ) start [2024-12-30 12:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136235', 'tblTempUsageDetail_20' ) end [2024-12-30 12:33:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:33:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:33:29] Production.INFO: ==23278== Releasing lock... [2024-12-30 12:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:33:29] Production.INFO: 61 MB #Memory Used# [2024-12-30 12:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:34:04 [end_date_ymd] => 2024-12-30 12:34:04 [RateCDR] => 1 ) [2024-12-30 12: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-30 09:34:04' and `end` < '2024-12-30 12: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-30 12:34:22] Production.INFO: count ==4377 [2024-12-30 12:34:24] Production.ERROR: pbx CDR StartTime 2024-12-30 09:34:04 - End Time 2024-12-30 12:34:04 [2024-12-30 12:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136240', 'tblTempUsageDetail_20' ) start [2024-12-30 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136240', 'tblTempUsageDetail_20' ) end [2024-12-30 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136240', 'tblTempVendorCDR_20' ) start [2024-12-30 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136240', 'tblTempVendorCDR_20' ) end [2024-12-30 12:34:24] Production.INFO: ProcessCDR(1,14136240,1,1,2) [2024-12-30 12:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136240', 'tblTempUsageDetail_20' ) start [2024-12-30 12:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136240', 'tblTempUsageDetail_20' ) end [2024-12-30 12:34:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:34:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:34:28] Production.INFO: ==23366== Releasing lock... [2024-12-30 12:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:34:28] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:35:05 [end_date_ymd] => 2024-12-30 12:35:05 [RateCDR] => 1 ) [2024-12-30 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 09:35:05' and `end` < '2024-12-30 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 12:35:27] Production.INFO: count ==4328 [2024-12-30 12:35:29] Production.ERROR: pbx CDR StartTime 2024-12-30 09:35:05 - End Time 2024-12-30 12:35:05 [2024-12-30 12:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136245', 'tblTempUsageDetail_20' ) start [2024-12-30 12:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136245', 'tblTempUsageDetail_20' ) end [2024-12-30 12:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136245', 'tblTempVendorCDR_20' ) start [2024-12-30 12:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136245', 'tblTempVendorCDR_20' ) end [2024-12-30 12:35:29] Production.INFO: ProcessCDR(1,14136245,1,1,2) [2024-12-30 12:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136245', 'tblTempUsageDetail_20' ) start [2024-12-30 12:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136245', 'tblTempUsageDetail_20' ) end [2024-12-30 12:35:34] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:35:34] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:35:34] Production.INFO: ==23457== Releasing lock... [2024-12-30 12:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:35:34] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:36:05 [end_date_ymd] => 2024-12-30 12:36:05 [RateCDR] => 1 ) [2024-12-30 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 09:36:05' and `end` < '2024-12-30 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 12:36:20] Production.INFO: count ==4327 [2024-12-30 12:36:21] Production.ERROR: pbx CDR StartTime 2024-12-30 09:36:05 - End Time 2024-12-30 12:36:05 [2024-12-30 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136250', 'tblTempUsageDetail_20' ) start [2024-12-30 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136250', 'tblTempUsageDetail_20' ) end [2024-12-30 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136250', 'tblTempVendorCDR_20' ) start [2024-12-30 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136250', 'tblTempVendorCDR_20' ) end [2024-12-30 12:36:22] Production.INFO: ProcessCDR(1,14136250,1,1,2) [2024-12-30 12:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136250', 'tblTempUsageDetail_20' ) start [2024-12-30 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136250', 'tblTempUsageDetail_20' ) end [2024-12-30 12:36:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:36:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:36:26] Production.INFO: ==23549== Releasing lock... [2024-12-30 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:36:26] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:37:05 [end_date_ymd] => 2024-12-30 12:37:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:37:05' and `end` < '2024-12-30 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-30 12:37:24] Production.INFO: count ==4333 [2024-12-30 12:37:25] Production.ERROR: pbx CDR StartTime 2024-12-30 09:37:05 - End Time 2024-12-30 12:37:05 [2024-12-30 12:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136255', 'tblTempUsageDetail_20' ) start [2024-12-30 12:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136255', 'tblTempUsageDetail_20' ) end [2024-12-30 12:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136255', 'tblTempVendorCDR_20' ) start [2024-12-30 12:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136255', 'tblTempVendorCDR_20' ) end [2024-12-30 12:37:26] Production.INFO: ProcessCDR(1,14136255,1,1,2) [2024-12-30 12:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136255', 'tblTempUsageDetail_20' ) start [2024-12-30 12:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136255', 'tblTempUsageDetail_20' ) end [2024-12-30 12:37:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:37:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:37:31] Production.INFO: ==23640== Releasing lock... [2024-12-30 12:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:37:31] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:38:06 [end_date_ymd] => 2024-12-30 12:38:06 [RateCDR] => 1 ) [2024-12-30 12: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-30 09:38:06' and `end` < '2024-12-30 12: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-30 12:38:23] Production.INFO: count ==4334 [2024-12-30 12:38:25] Production.ERROR: pbx CDR StartTime 2024-12-30 09:38:06 - End Time 2024-12-30 12:38:06 [2024-12-30 12:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136260', 'tblTempUsageDetail_20' ) start [2024-12-30 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136260', 'tblTempUsageDetail_20' ) end [2024-12-30 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136260', 'tblTempVendorCDR_20' ) start [2024-12-30 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136260', 'tblTempVendorCDR_20' ) end [2024-12-30 12:38:25] Production.INFO: ProcessCDR(1,14136260,1,1,2) [2024-12-30 12:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136260', 'tblTempUsageDetail_20' ) start [2024-12-30 12:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136260', 'tblTempUsageDetail_20' ) end [2024-12-30 12:38:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:38:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:38:30] Production.INFO: ==23735== Releasing lock... [2024-12-30 12:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:38:30] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:39:06 [end_date_ymd] => 2024-12-30 12:39:06 [RateCDR] => 1 ) [2024-12-30 12:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 09:39:06' and `end` < '2024-12-30 12:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 12:39:19] Production.INFO: count ==4323 [2024-12-30 12:39:21] Production.ERROR: pbx CDR StartTime 2024-12-30 09:39:06 - End Time 2024-12-30 12:39:06 [2024-12-30 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136265', 'tblTempUsageDetail_20' ) start [2024-12-30 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136265', 'tblTempUsageDetail_20' ) end [2024-12-30 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136265', 'tblTempVendorCDR_20' ) start [2024-12-30 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136265', 'tblTempVendorCDR_20' ) end [2024-12-30 12:39:21] Production.INFO: ProcessCDR(1,14136265,1,1,2) [2024-12-30 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136265', 'tblTempUsageDetail_20' ) start [2024-12-30 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136265', 'tblTempUsageDetail_20' ) end [2024-12-30 12:39:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:39:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:39:27] Production.INFO: ==23825== Releasing lock... [2024-12-30 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:39:27] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:40:06 [end_date_ymd] => 2024-12-30 12:40:06 [RateCDR] => 1 ) [2024-12-30 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-30 09:40:06' and `end` < '2024-12-30 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-30 12:40:20] Production.INFO: count ==4328 [2024-12-30 12:40:22] Production.ERROR: pbx CDR StartTime 2024-12-30 09:40:06 - End Time 2024-12-30 12:40:06 [2024-12-30 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136270', 'tblTempUsageDetail_20' ) start [2024-12-30 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136270', 'tblTempUsageDetail_20' ) end [2024-12-30 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136270', 'tblTempVendorCDR_20' ) start [2024-12-30 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136270', 'tblTempVendorCDR_20' ) end [2024-12-30 12:40:22] Production.INFO: ProcessCDR(1,14136270,1,1,2) [2024-12-30 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136270', 'tblTempUsageDetail_20' ) start [2024-12-30 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136270', 'tblTempUsageDetail_20' ) end [2024-12-30 12:40:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:40:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:40:27] Production.INFO: ==23908== Releasing lock... [2024-12-30 12:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:40:27] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:41:05 [end_date_ymd] => 2024-12-30 12:41:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:41:05' and `end` < '2024-12-30 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-30 12:41:20] Production.INFO: count ==4367 [2024-12-30 12:41:22] Production.ERROR: pbx CDR StartTime 2024-12-30 09:41:05 - End Time 2024-12-30 12:41:05 [2024-12-30 12:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136276', 'tblTempUsageDetail_20' ) start [2024-12-30 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136276', 'tblTempUsageDetail_20' ) end [2024-12-30 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136276', 'tblTempVendorCDR_20' ) start [2024-12-30 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136276', 'tblTempVendorCDR_20' ) end [2024-12-30 12:41:22] Production.INFO: ProcessCDR(1,14136276,1,1,2) [2024-12-30 12:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136276', 'tblTempUsageDetail_20' ) start [2024-12-30 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136276', 'tblTempUsageDetail_20' ) end [2024-12-30 12:41:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:41:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:41:27] Production.INFO: ==23992== Releasing lock... [2024-12-30 12:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:41:27] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:42:05 [end_date_ymd] => 2024-12-30 12:42:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:42:05' and `end` < '2024-12-30 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-30 12:42:19] Production.INFO: count ==4357 [2024-12-30 12:42:21] Production.ERROR: pbx CDR StartTime 2024-12-30 09:42:05 - End Time 2024-12-30 12:42:05 [2024-12-30 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136281', 'tblTempUsageDetail_20' ) start [2024-12-30 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136281', 'tblTempUsageDetail_20' ) end [2024-12-30 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136281', 'tblTempVendorCDR_20' ) start [2024-12-30 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136281', 'tblTempVendorCDR_20' ) end [2024-12-30 12:42:21] Production.INFO: ProcessCDR(1,14136281,1,1,2) [2024-12-30 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136281', 'tblTempUsageDetail_20' ) start [2024-12-30 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136281', 'tblTempUsageDetail_20' ) end [2024-12-30 12:42:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:42:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:42:26] Production.INFO: ==24078== Releasing lock... [2024-12-30 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:42:26] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:43:05 [end_date_ymd] => 2024-12-30 12:43:05 [RateCDR] => 1 ) [2024-12-30 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 09:43:05' and `end` < '2024-12-30 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 12:43:20] Production.INFO: count ==4359 [2024-12-30 12:43:22] Production.ERROR: pbx CDR StartTime 2024-12-30 09:43:05 - End Time 2024-12-30 12:43:05 [2024-12-30 12:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136286', 'tblTempUsageDetail_20' ) start [2024-12-30 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136286', 'tblTempUsageDetail_20' ) end [2024-12-30 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136286', 'tblTempVendorCDR_20' ) start [2024-12-30 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136286', 'tblTempVendorCDR_20' ) end [2024-12-30 12:43:22] Production.INFO: ProcessCDR(1,14136286,1,1,2) [2024-12-30 12:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136286', 'tblTempUsageDetail_20' ) start [2024-12-30 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136286', 'tblTempUsageDetail_20' ) end [2024-12-30 12:43:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:43:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:43:27] Production.INFO: ==24162== Releasing lock... [2024-12-30 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:43:27] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:44:06 [end_date_ymd] => 2024-12-30 12:44:06 [RateCDR] => 1 ) [2024-12-30 12: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-30 09:44:06' and `end` < '2024-12-30 12: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-30 12:44:22] Production.INFO: count ==4359 [2024-12-30 12:44:23] Production.ERROR: pbx CDR StartTime 2024-12-30 09:44:06 - End Time 2024-12-30 12:44:06 [2024-12-30 12:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136291', 'tblTempUsageDetail_20' ) start [2024-12-30 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136291', 'tblTempUsageDetail_20' ) end [2024-12-30 12:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136291', 'tblTempVendorCDR_20' ) start [2024-12-30 12:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136291', 'tblTempVendorCDR_20' ) end [2024-12-30 12:44:24] Production.INFO: ProcessCDR(1,14136291,1,1,2) [2024-12-30 12:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136291', 'tblTempUsageDetail_20' ) start [2024-12-30 12:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136291', 'tblTempUsageDetail_20' ) end [2024-12-30 12:44:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:44:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:44:28] Production.INFO: ==24238== Releasing lock... [2024-12-30 12:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:44:28] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:45:05 [end_date_ymd] => 2024-12-30 12:45:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:45:05' and `end` < '2024-12-30 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-30 12:45:29] Production.INFO: count ==4379 [2024-12-30 12:45:30] Production.ERROR: pbx CDR StartTime 2024-12-30 09:45:05 - End Time 2024-12-30 12:45:05 [2024-12-30 12:45:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136296', 'tblTempUsageDetail_20' ) start [2024-12-30 12:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136296', 'tblTempUsageDetail_20' ) end [2024-12-30 12:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136296', 'tblTempVendorCDR_20' ) start [2024-12-30 12:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136296', 'tblTempVendorCDR_20' ) end [2024-12-30 12:45:31] Production.INFO: ProcessCDR(1,14136296,1,1,2) [2024-12-30 12:45:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:45:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:45:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:45:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136296', 'tblTempUsageDetail_20' ) start [2024-12-30 12:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136296', 'tblTempUsageDetail_20' ) end [2024-12-30 12:45:35] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:45:35] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:45:35] Production.INFO: ==24314== Releasing lock... [2024-12-30 12:45:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:45:35] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:46:05 [end_date_ymd] => 2024-12-30 12:46:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:46:05' and `end` < '2024-12-30 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-30 12:46:21] Production.INFO: count ==4397 [2024-12-30 12:46:23] Production.ERROR: pbx CDR StartTime 2024-12-30 09:46:05 - End Time 2024-12-30 12:46:05 [2024-12-30 12:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136301', 'tblTempUsageDetail_20' ) start [2024-12-30 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136301', 'tblTempUsageDetail_20' ) end [2024-12-30 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136301', 'tblTempVendorCDR_20' ) start [2024-12-30 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136301', 'tblTempVendorCDR_20' ) end [2024-12-30 12:46:23] Production.INFO: ProcessCDR(1,14136301,1,1,2) [2024-12-30 12:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136301', 'tblTempUsageDetail_20' ) start [2024-12-30 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136301', 'tblTempUsageDetail_20' ) end [2024-12-30 12:46:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:46:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:46:27] Production.INFO: ==24391== Releasing lock... [2024-12-30 12:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:46:27] Production.INFO: 61 MB #Memory Used# [2024-12-30 12:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:47:04 [end_date_ymd] => 2024-12-30 12:47:04 [RateCDR] => 1 ) [2024-12-30 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-30 09:47:04' and `end` < '2024-12-30 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-30 12:47:21] Production.INFO: count ==4392 [2024-12-30 12:47:23] Production.ERROR: pbx CDR StartTime 2024-12-30 09:47:04 - End Time 2024-12-30 12:47:04 [2024-12-30 12:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136306', 'tblTempUsageDetail_20' ) start [2024-12-30 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136306', 'tblTempUsageDetail_20' ) end [2024-12-30 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136306', 'tblTempVendorCDR_20' ) start [2024-12-30 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136306', 'tblTempVendorCDR_20' ) end [2024-12-30 12:47:23] Production.INFO: ProcessCDR(1,14136306,1,1,2) [2024-12-30 12:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136306', 'tblTempUsageDetail_20' ) start [2024-12-30 12:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136306', 'tblTempUsageDetail_20' ) end [2024-12-30 12:47:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:47:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:47:28] Production.INFO: ==24471== Releasing lock... [2024-12-30 12:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:47:28] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:48:05 [end_date_ymd] => 2024-12-30 12:48:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:48:05' and `end` < '2024-12-30 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-30 12:48:21] Production.INFO: count ==4388 [2024-12-30 12:48:23] Production.ERROR: pbx CDR StartTime 2024-12-30 09:48:05 - End Time 2024-12-30 12:48:05 [2024-12-30 12:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136311', 'tblTempUsageDetail_20' ) start [2024-12-30 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136311', 'tblTempUsageDetail_20' ) end [2024-12-30 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136311', 'tblTempVendorCDR_20' ) start [2024-12-30 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136311', 'tblTempVendorCDR_20' ) end [2024-12-30 12:48:23] Production.INFO: ProcessCDR(1,14136311,1,1,2) [2024-12-30 12:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136311', 'tblTempUsageDetail_20' ) start [2024-12-30 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136311', 'tblTempUsageDetail_20' ) end [2024-12-30 12:48:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:48:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:48:28] Production.INFO: ==24591== Releasing lock... [2024-12-30 12:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:48:28] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 12:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:49:04 [end_date_ymd] => 2024-12-30 12:49:04 [RateCDR] => 1 ) [2024-12-30 12: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-30 09:49:04' and `end` < '2024-12-30 12: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-30 12:49:18] Production.INFO: count ==4378 [2024-12-30 12:49:19] Production.ERROR: pbx CDR StartTime 2024-12-30 09:49:04 - End Time 2024-12-30 12:49:04 [2024-12-30 12:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136316', 'tblTempUsageDetail_20' ) start [2024-12-30 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136316', 'tblTempUsageDetail_20' ) end [2024-12-30 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136316', 'tblTempVendorCDR_20' ) start [2024-12-30 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136316', 'tblTempVendorCDR_20' ) end [2024-12-30 12:49:19] Production.INFO: ProcessCDR(1,14136316,1,1,2) [2024-12-30 12:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136316', 'tblTempUsageDetail_20' ) start [2024-12-30 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136316', 'tblTempUsageDetail_20' ) end [2024-12-30 12:49:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:49:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:49:24] Production.INFO: ==24672== Releasing lock... [2024-12-30 12:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:49:24] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:50:06 [end_date_ymd] => 2024-12-30 12:50:06 [RateCDR] => 1 ) [2024-12-30 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-30 09:50:06' and `end` < '2024-12-30 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-30 12:50:24] Production.INFO: count ==4376 [2024-12-30 12:50:26] Production.ERROR: pbx CDR StartTime 2024-12-30 09:50:06 - End Time 2024-12-30 12:50:06 [2024-12-30 12:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136322', 'tblTempUsageDetail_20' ) start [2024-12-30 12:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136322', 'tblTempUsageDetail_20' ) end [2024-12-30 12:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136322', 'tblTempVendorCDR_20' ) start [2024-12-30 12:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136322', 'tblTempVendorCDR_20' ) end [2024-12-30 12:50:26] Production.INFO: ProcessCDR(1,14136322,1,1,2) [2024-12-30 12:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136322', 'tblTempUsageDetail_20' ) start [2024-12-30 12:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136322', 'tblTempUsageDetail_20' ) end [2024-12-30 12:50:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:50:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:50:31] Production.INFO: ==24753== Releasing lock... [2024-12-30 12:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:50:31] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 12:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:51:04 [end_date_ymd] => 2024-12-30 12:51:04 [RateCDR] => 1 ) [2024-12-30 12: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-30 09:51:04' and `end` < '2024-12-30 12: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-30 12:51:20] Production.INFO: count ==4415 [2024-12-30 12:51:22] Production.ERROR: pbx CDR StartTime 2024-12-30 09:51:04 - End Time 2024-12-30 12:51:04 [2024-12-30 12:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136327', 'tblTempUsageDetail_20' ) start [2024-12-30 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136327', 'tblTempUsageDetail_20' ) end [2024-12-30 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136327', 'tblTempVendorCDR_20' ) start [2024-12-30 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136327', 'tblTempVendorCDR_20' ) end [2024-12-30 12:51:22] Production.INFO: ProcessCDR(1,14136327,1,1,2) [2024-12-30 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136327', 'tblTempUsageDetail_20' ) start [2024-12-30 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136327', 'tblTempUsageDetail_20' ) end [2024-12-30 12:51:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:51:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:51:27] Production.INFO: ==24835== Releasing lock... [2024-12-30 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:51:27] Production.INFO: 61 MB #Memory Used# [2024-12-30 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:52:05 [end_date_ymd] => 2024-12-30 12:52:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:52:05' and `end` < '2024-12-30 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-30 12:52:18] Production.INFO: count ==4393 [2024-12-30 12:52:20] Production.ERROR: pbx CDR StartTime 2024-12-30 09:52:05 - End Time 2024-12-30 12:52:05 [2024-12-30 12:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136332', 'tblTempUsageDetail_20' ) start [2024-12-30 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136332', 'tblTempUsageDetail_20' ) end [2024-12-30 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136332', 'tblTempVendorCDR_20' ) start [2024-12-30 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136332', 'tblTempVendorCDR_20' ) end [2024-12-30 12:52:20] Production.INFO: ProcessCDR(1,14136332,1,1,2) [2024-12-30 12:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136332', 'tblTempUsageDetail_20' ) start [2024-12-30 12:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136332', 'tblTempUsageDetail_20' ) end [2024-12-30 12:52:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:52:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:52:25] Production.INFO: ==24914== Releasing lock... [2024-12-30 12:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:52:25] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:53:05 [end_date_ymd] => 2024-12-30 12:53:05 [RateCDR] => 1 ) [2024-12-30 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 09:53:05' and `end` < '2024-12-30 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 12:53:19] Production.INFO: count ==4378 [2024-12-30 12:53:21] Production.ERROR: pbx CDR StartTime 2024-12-30 09:53:05 - End Time 2024-12-30 12:53:05 [2024-12-30 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136337', 'tblTempUsageDetail_20' ) start [2024-12-30 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136337', 'tblTempUsageDetail_20' ) end [2024-12-30 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136337', 'tblTempVendorCDR_20' ) start [2024-12-30 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136337', 'tblTempVendorCDR_20' ) end [2024-12-30 12:53:21] Production.INFO: ProcessCDR(1,14136337,1,1,2) [2024-12-30 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136337', 'tblTempUsageDetail_20' ) start [2024-12-30 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136337', 'tblTempUsageDetail_20' ) end [2024-12-30 12:53:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:53:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:53:26] Production.INFO: ==25000== Releasing lock... [2024-12-30 12:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:53:26] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:54:05 [end_date_ymd] => 2024-12-30 12:54:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:54:05' and `end` < '2024-12-30 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-30 12:54:18] Production.INFO: count ==4362 [2024-12-30 12:54:20] Production.ERROR: pbx CDR StartTime 2024-12-30 09:54:05 - End Time 2024-12-30 12:54:05 [2024-12-30 12:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136342', 'tblTempUsageDetail_20' ) start [2024-12-30 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136342', 'tblTempUsageDetail_20' ) end [2024-12-30 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136342', 'tblTempVendorCDR_20' ) start [2024-12-30 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136342', 'tblTempVendorCDR_20' ) end [2024-12-30 12:54:20] Production.INFO: ProcessCDR(1,14136342,1,1,2) [2024-12-30 12:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136342', 'tblTempUsageDetail_20' ) start [2024-12-30 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136342', 'tblTempUsageDetail_20' ) end [2024-12-30 12:54:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:54:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:54:25] Production.INFO: ==25082== Releasing lock... [2024-12-30 12:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:54:25] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:55:05 [end_date_ymd] => 2024-12-30 12:55:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:55:05' and `end` < '2024-12-30 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-30 12:55:20] Production.INFO: count ==4356 [2024-12-30 12:55:22] Production.ERROR: pbx CDR StartTime 2024-12-30 09:55:05 - End Time 2024-12-30 12:55:05 [2024-12-30 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136347', 'tblTempUsageDetail_20' ) start [2024-12-30 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136347', 'tblTempUsageDetail_20' ) end [2024-12-30 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136347', 'tblTempVendorCDR_20' ) start [2024-12-30 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136347', 'tblTempVendorCDR_20' ) end [2024-12-30 12:55:22] Production.INFO: ProcessCDR(1,14136347,1,1,2) [2024-12-30 12:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136347', 'tblTempUsageDetail_20' ) start [2024-12-30 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136347', 'tblTempUsageDetail_20' ) end [2024-12-30 12:55:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:55:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:55:27] Production.INFO: ==25160== Releasing lock... [2024-12-30 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:55:27] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:56:05 [end_date_ymd] => 2024-12-30 12:56:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:56:05' and `end` < '2024-12-30 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-30 12:56:19] Production.INFO: count ==4349 [2024-12-30 12:56:21] Production.ERROR: pbx CDR StartTime 2024-12-30 09:56:05 - End Time 2024-12-30 12:56:05 [2024-12-30 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136352', 'tblTempUsageDetail_20' ) start [2024-12-30 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136352', 'tblTempUsageDetail_20' ) end [2024-12-30 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136352', 'tblTempVendorCDR_20' ) start [2024-12-30 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136352', 'tblTempVendorCDR_20' ) end [2024-12-30 12:56:21] Production.INFO: ProcessCDR(1,14136352,1,1,2) [2024-12-30 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136352', 'tblTempUsageDetail_20' ) start [2024-12-30 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136352', 'tblTempUsageDetail_20' ) end [2024-12-30 12:56:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:56:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:56:26] Production.INFO: ==25236== Releasing lock... [2024-12-30 12:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:56:26] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:57:05 [end_date_ymd] => 2024-12-30 12:57:05 [RateCDR] => 1 ) [2024-12-30 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 09:57:05' and `end` < '2024-12-30 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 12:57:18] Production.INFO: count ==4335 [2024-12-30 12:57:20] Production.ERROR: pbx CDR StartTime 2024-12-30 09:57:05 - End Time 2024-12-30 12:57:05 [2024-12-30 12:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136357', 'tblTempUsageDetail_20' ) start [2024-12-30 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136357', 'tblTempUsageDetail_20' ) end [2024-12-30 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136357', 'tblTempVendorCDR_20' ) start [2024-12-30 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136357', 'tblTempVendorCDR_20' ) end [2024-12-30 12:57:20] Production.INFO: ProcessCDR(1,14136357,1,1,2) [2024-12-30 12:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136357', 'tblTempUsageDetail_20' ) start [2024-12-30 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136357', 'tblTempUsageDetail_20' ) end [2024-12-30 12:57:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:57:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:57:25] Production.INFO: ==25310== Releasing lock... [2024-12-30 12:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:57:25] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:58:05 [end_date_ymd] => 2024-12-30 12:58:05 [RateCDR] => 1 ) [2024-12-30 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 09:58:05' and `end` < '2024-12-30 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 12:58:23] Production.INFO: count ==4353 [2024-12-30 12:58:25] Production.ERROR: pbx CDR StartTime 2024-12-30 09:58:05 - End Time 2024-12-30 12:58:05 [2024-12-30 12:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136361', 'tblTempUsageDetail_20' ) start [2024-12-30 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136361', 'tblTempUsageDetail_20' ) end [2024-12-30 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136361', 'tblTempVendorCDR_20' ) start [2024-12-30 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136361', 'tblTempVendorCDR_20' ) end [2024-12-30 12:58:25] Production.INFO: ProcessCDR(1,14136361,1,1,2) [2024-12-30 12:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136361', 'tblTempUsageDetail_20' ) start [2024-12-30 12:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136361', 'tblTempUsageDetail_20' ) end [2024-12-30 12:58:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:58:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:58:29] Production.INFO: ==25392== Releasing lock... [2024-12-30 12:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:58:29] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 09:59:05 [end_date_ymd] => 2024-12-30 12:59:05 [RateCDR] => 1 ) [2024-12-30 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-30 09:59:05' and `end` < '2024-12-30 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-30 12:59:19] Production.INFO: count ==4337 [2024-12-30 12:59:21] Production.ERROR: pbx CDR StartTime 2024-12-30 09:59:05 - End Time 2024-12-30 12:59:05 [2024-12-30 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136367', 'tblTempUsageDetail_20' ) start [2024-12-30 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136367', 'tblTempUsageDetail_20' ) end [2024-12-30 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136367', 'tblTempVendorCDR_20' ) start [2024-12-30 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136367', 'tblTempVendorCDR_20' ) end [2024-12-30 12:59:21] Production.INFO: ProcessCDR(1,14136367,1,1,2) [2024-12-30 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136367', 'tblTempUsageDetail_20' ) start [2024-12-30 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136367', 'tblTempUsageDetail_20' ) end [2024-12-30 12:59:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 12:59:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 12:59:26] Production.INFO: ==25475== Releasing lock... [2024-12-30 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 12:59:26] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:00:06 [end_date_ymd] => 2024-12-30 13:00:06 [RateCDR] => 1 ) [2024-12-30 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 10:00:06' and `end` < '2024-12-30 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 13:00:27] Production.INFO: count ==4351 [2024-12-30 13:00:29] Production.ERROR: pbx CDR StartTime 2024-12-30 10:00:06 - End Time 2024-12-30 13:00:06 [2024-12-30 13:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136373', 'tblTempUsageDetail_20' ) start [2024-12-30 13:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136373', 'tblTempUsageDetail_20' ) end [2024-12-30 13:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136373', 'tblTempVendorCDR_20' ) start [2024-12-30 13:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136373', 'tblTempVendorCDR_20' ) end [2024-12-30 13:00:29] Production.INFO: ProcessCDR(1,14136373,1,1,2) [2024-12-30 13:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136373', 'tblTempUsageDetail_20' ) start [2024-12-30 13:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136373', 'tblTempUsageDetail_20' ) end [2024-12-30 13:00:33] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:00:33] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:00:33] Production.INFO: ==25560== Releasing lock... [2024-12-30 13:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:00:33] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 13:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:01:04 [end_date_ymd] => 2024-12-30 13:01:04 [RateCDR] => 1 ) [2024-12-30 13: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-30 10:01:04' and `end` < '2024-12-30 13: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-30 13:01:23] Production.INFO: count ==4337 [2024-12-30 13:01:25] Production.ERROR: pbx CDR StartTime 2024-12-30 10:01:04 - End Time 2024-12-30 13:01:04 [2024-12-30 13:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136378', 'tblTempUsageDetail_20' ) start [2024-12-30 13:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136378', 'tblTempUsageDetail_20' ) end [2024-12-30 13:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136378', 'tblTempVendorCDR_20' ) start [2024-12-30 13:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136378', 'tblTempVendorCDR_20' ) end [2024-12-30 13:01:25] Production.INFO: ProcessCDR(1,14136378,1,1,2) [2024-12-30 13:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136378', 'tblTempUsageDetail_20' ) start [2024-12-30 13:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136378', 'tblTempUsageDetail_20' ) end [2024-12-30 13:01:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:01:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:01:30] Production.INFO: ==25660== Releasing lock... [2024-12-30 13:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:01:30] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 13:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:02:04 [end_date_ymd] => 2024-12-30 13:02:04 [RateCDR] => 1 ) [2024-12-30 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-30 10:02:04' and `end` < '2024-12-30 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-30 13:02:18] Production.INFO: count ==4342 [2024-12-30 13:02:19] Production.ERROR: pbx CDR StartTime 2024-12-30 10:02:04 - End Time 2024-12-30 13:02:04 [2024-12-30 13:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136383', 'tblTempUsageDetail_20' ) start [2024-12-30 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136383', 'tblTempUsageDetail_20' ) end [2024-12-30 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136383', 'tblTempVendorCDR_20' ) start [2024-12-30 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136383', 'tblTempVendorCDR_20' ) end [2024-12-30 13:02:20] Production.INFO: ProcessCDR(1,14136383,1,1,2) [2024-12-30 13:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136383', 'tblTempUsageDetail_20' ) start [2024-12-30 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136383', 'tblTempUsageDetail_20' ) end [2024-12-30 13:02:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:02:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:02:24] Production.INFO: ==25745== Releasing lock... [2024-12-30 13:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:02:24] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:03:05 [end_date_ymd] => 2024-12-30 13:03:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:03:05' and `end` < '2024-12-30 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-30 13:03:20] Production.INFO: count ==4313 [2024-12-30 13:03:22] Production.ERROR: pbx CDR StartTime 2024-12-30 10:03:05 - End Time 2024-12-30 13:03:05 [2024-12-30 13:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136388', 'tblTempUsageDetail_20' ) start [2024-12-30 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136388', 'tblTempUsageDetail_20' ) end [2024-12-30 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136388', 'tblTempVendorCDR_20' ) start [2024-12-30 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136388', 'tblTempVendorCDR_20' ) end [2024-12-30 13:03:22] Production.INFO: ProcessCDR(1,14136388,1,1,2) [2024-12-30 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136388', 'tblTempUsageDetail_20' ) start [2024-12-30 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136388', 'tblTempUsageDetail_20' ) end [2024-12-30 13:03:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:03:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:03:27] Production.INFO: ==25871== Releasing lock... [2024-12-30 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:03:27] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 13:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:04:04 [end_date_ymd] => 2024-12-30 13:04:04 [RateCDR] => 1 ) [2024-12-30 13: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-30 10:04:04' and `end` < '2024-12-30 13: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-30 13:04:18] Production.INFO: count ==4307 [2024-12-30 13:04:20] Production.ERROR: pbx CDR StartTime 2024-12-30 10:04:04 - End Time 2024-12-30 13:04:04 [2024-12-30 13:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136393', 'tblTempUsageDetail_20' ) start [2024-12-30 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136393', 'tblTempUsageDetail_20' ) end [2024-12-30 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136393', 'tblTempVendorCDR_20' ) start [2024-12-30 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136393', 'tblTempVendorCDR_20' ) end [2024-12-30 13:04:20] Production.INFO: ProcessCDR(1,14136393,1,1,2) [2024-12-30 13:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136393', 'tblTempUsageDetail_20' ) start [2024-12-30 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136393', 'tblTempUsageDetail_20' ) end [2024-12-30 13:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:04:23] Production.INFO: ==25960== Releasing lock... [2024-12-30 13:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:04:23] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:05:05 [end_date_ymd] => 2024-12-30 13:05:05 [RateCDR] => 1 ) [2024-12-30 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 10:05:05' and `end` < '2024-12-30 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 13:05:25] Production.INFO: count ==4274 [2024-12-30 13:05:27] Production.ERROR: pbx CDR StartTime 2024-12-30 10:05:05 - End Time 2024-12-30 13:05:05 [2024-12-30 13:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136398', 'tblTempUsageDetail_20' ) start [2024-12-30 13:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136398', 'tblTempUsageDetail_20' ) end [2024-12-30 13:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136398', 'tblTempVendorCDR_20' ) start [2024-12-30 13:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136398', 'tblTempVendorCDR_20' ) end [2024-12-30 13:05:27] Production.INFO: ProcessCDR(1,14136398,1,1,2) [2024-12-30 13:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136398', 'tblTempUsageDetail_20' ) start [2024-12-30 13:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136398', 'tblTempUsageDetail_20' ) end [2024-12-30 13:05:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:05:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:05:31] Production.INFO: ==26046== Releasing lock... [2024-12-30 13:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:05:31] Production.INFO: 60 MB #Memory Used# [2024-12-30 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:06:05 [end_date_ymd] => 2024-12-30 13:06:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:06:05' and `end` < '2024-12-30 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-30 13:06:23] Production.INFO: count ==4240 [2024-12-30 13:06:25] Production.ERROR: pbx CDR StartTime 2024-12-30 10:06:05 - End Time 2024-12-30 13:06:05 [2024-12-30 13:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136403', 'tblTempUsageDetail_20' ) start [2024-12-30 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136403', 'tblTempUsageDetail_20' ) end [2024-12-30 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136403', 'tblTempVendorCDR_20' ) start [2024-12-30 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136403', 'tblTempVendorCDR_20' ) end [2024-12-30 13:06:25] Production.INFO: ProcessCDR(1,14136403,1,1,2) [2024-12-30 13:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136403', 'tblTempUsageDetail_20' ) start [2024-12-30 13:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136403', 'tblTempUsageDetail_20' ) end [2024-12-30 13:06:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:06:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:06:30] Production.INFO: ==26137== Releasing lock... [2024-12-30 13:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:06:30] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:07:05 [end_date_ymd] => 2024-12-30 13:07:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:07:05' and `end` < '2024-12-30 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-30 13:07:19] Production.INFO: count ==4202 [2024-12-30 13:07:21] Production.ERROR: pbx CDR StartTime 2024-12-30 10:07:05 - End Time 2024-12-30 13:07:05 [2024-12-30 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136408', 'tblTempUsageDetail_20' ) start [2024-12-30 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136408', 'tblTempUsageDetail_20' ) end [2024-12-30 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136408', 'tblTempVendorCDR_20' ) start [2024-12-30 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136408', 'tblTempVendorCDR_20' ) end [2024-12-30 13:07:21] Production.INFO: ProcessCDR(1,14136408,1,1,2) [2024-12-30 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136408', 'tblTempUsageDetail_20' ) start [2024-12-30 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136408', 'tblTempUsageDetail_20' ) end [2024-12-30 13:07:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:07:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:07:25] Production.INFO: ==26224== Releasing lock... [2024-12-30 13:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:07:25] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 13:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:08:04 [end_date_ymd] => 2024-12-30 13:08:04 [RateCDR] => 1 ) [2024-12-30 13: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-30 10:08:04' and `end` < '2024-12-30 13: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-30 13:08:18] Production.INFO: count ==4196 [2024-12-30 13:08:19] Production.ERROR: pbx CDR StartTime 2024-12-30 10:08:04 - End Time 2024-12-30 13:08:04 [2024-12-30 13:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136413', 'tblTempUsageDetail_20' ) start [2024-12-30 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136413', 'tblTempUsageDetail_20' ) end [2024-12-30 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136413', 'tblTempVendorCDR_20' ) start [2024-12-30 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136413', 'tblTempVendorCDR_20' ) end [2024-12-30 13:08:20] Production.INFO: ProcessCDR(1,14136413,1,1,2) [2024-12-30 13:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136413', 'tblTempUsageDetail_20' ) start [2024-12-30 13:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136413', 'tblTempUsageDetail_20' ) end [2024-12-30 13:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:08:24] Production.INFO: ==26315== Releasing lock... [2024-12-30 13:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:08:24] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:09:05 [end_date_ymd] => 2024-12-30 13:09:05 [RateCDR] => 1 ) [2024-12-30 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 10:09:05' and `end` < '2024-12-30 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 13:09:25] Production.INFO: count ==4189 [2024-12-30 13:09:27] Production.ERROR: pbx CDR StartTime 2024-12-30 10:09:05 - End Time 2024-12-30 13:09:05 [2024-12-30 13:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136418', 'tblTempUsageDetail_20' ) start [2024-12-30 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136418', 'tblTempUsageDetail_20' ) end [2024-12-30 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136418', 'tblTempVendorCDR_20' ) start [2024-12-30 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136418', 'tblTempVendorCDR_20' ) end [2024-12-30 13:09:27] Production.INFO: ProcessCDR(1,14136418,1,1,2) [2024-12-30 13:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:09:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:09:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136418', 'tblTempUsageDetail_20' ) start [2024-12-30 13:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136418', 'tblTempUsageDetail_20' ) end [2024-12-30 13:09:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:09:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:09:32] Production.INFO: ==26401== Releasing lock... [2024-12-30 13:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:09:32] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:10:05 [end_date_ymd] => 2024-12-30 13:10:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:10:05' and `end` < '2024-12-30 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-30 13:10:24] Production.INFO: count ==4184 [2024-12-30 13:10:25] Production.ERROR: pbx CDR StartTime 2024-12-30 10:10:05 - End Time 2024-12-30 13:10:05 [2024-12-30 13:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136424', 'tblTempUsageDetail_20' ) start [2024-12-30 13:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136424', 'tblTempUsageDetail_20' ) end [2024-12-30 13:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136424', 'tblTempVendorCDR_20' ) start [2024-12-30 13:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136424', 'tblTempVendorCDR_20' ) end [2024-12-30 13:10:26] Production.INFO: ProcessCDR(1,14136424,1,1,2) [2024-12-30 13:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136424', 'tblTempUsageDetail_20' ) start [2024-12-30 13:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136424', 'tblTempUsageDetail_20' ) end [2024-12-30 13:10:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:10:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:10:30] Production.INFO: ==26486== Releasing lock... [2024-12-30 13:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:10:30] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:11:05 [end_date_ymd] => 2024-12-30 13:11:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:11:05' and `end` < '2024-12-30 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-30 13:11:19] Production.INFO: count ==4192 [2024-12-30 13:11:21] Production.ERROR: pbx CDR StartTime 2024-12-30 10:11:05 - End Time 2024-12-30 13:11:05 [2024-12-30 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136429', 'tblTempUsageDetail_20' ) start [2024-12-30 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136429', 'tblTempUsageDetail_20' ) end [2024-12-30 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136429', 'tblTempVendorCDR_20' ) start [2024-12-30 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136429', 'tblTempVendorCDR_20' ) end [2024-12-30 13:11:21] Production.INFO: ProcessCDR(1,14136429,1,1,2) [2024-12-30 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136429', 'tblTempUsageDetail_20' ) start [2024-12-30 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136429', 'tblTempUsageDetail_20' ) end [2024-12-30 13:11:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:11:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:11:26] Production.INFO: ==26570== Releasing lock... [2024-12-30 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:11:26] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:12:05 [end_date_ymd] => 2024-12-30 13:12:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:12:05' and `end` < '2024-12-30 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-30 13:12:22] Production.INFO: count ==4190 [2024-12-30 13:12:24] Production.ERROR: pbx CDR StartTime 2024-12-30 10:12:05 - End Time 2024-12-30 13:12:05 [2024-12-30 13:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136434', 'tblTempUsageDetail_20' ) start [2024-12-30 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136434', 'tblTempUsageDetail_20' ) end [2024-12-30 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136434', 'tblTempVendorCDR_20' ) start [2024-12-30 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136434', 'tblTempVendorCDR_20' ) end [2024-12-30 13:12:24] Production.INFO: ProcessCDR(1,14136434,1,1,2) [2024-12-30 13:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136434', 'tblTempUsageDetail_20' ) start [2024-12-30 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136434', 'tblTempUsageDetail_20' ) end [2024-12-30 13:12:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:12:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:12:29] Production.INFO: ==26656== Releasing lock... [2024-12-30 13:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:12:29] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:13:05 [end_date_ymd] => 2024-12-30 13:13:05 [RateCDR] => 1 ) [2024-12-30 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 10:13:05' and `end` < '2024-12-30 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 13:13:22] Production.INFO: count ==4185 [2024-12-30 13:13:24] Production.ERROR: pbx CDR StartTime 2024-12-30 10:13:05 - End Time 2024-12-30 13:13:05 [2024-12-30 13:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136439', 'tblTempUsageDetail_20' ) start [2024-12-30 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136439', 'tblTempUsageDetail_20' ) end [2024-12-30 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136439', 'tblTempVendorCDR_20' ) start [2024-12-30 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136439', 'tblTempVendorCDR_20' ) end [2024-12-30 13:13:24] Production.INFO: ProcessCDR(1,14136439,1,1,2) [2024-12-30 13:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136439', 'tblTempUsageDetail_20' ) start [2024-12-30 13:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136439', 'tblTempUsageDetail_20' ) end [2024-12-30 13:13:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:13:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:13:29] Production.INFO: ==26737== Releasing lock... [2024-12-30 13:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:13:29] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:14:05 [end_date_ymd] => 2024-12-30 13:14:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:14:05' and `end` < '2024-12-30 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-30 13:14:19] Production.INFO: count ==4190 [2024-12-30 13:14:21] Production.ERROR: pbx CDR StartTime 2024-12-30 10:14:05 - End Time 2024-12-30 13:14:05 [2024-12-30 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136444', 'tblTempUsageDetail_20' ) start [2024-12-30 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136444', 'tblTempUsageDetail_20' ) end [2024-12-30 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136444', 'tblTempVendorCDR_20' ) start [2024-12-30 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136444', 'tblTempVendorCDR_20' ) end [2024-12-30 13:14:21] Production.INFO: ProcessCDR(1,14136444,1,1,2) [2024-12-30 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136444', 'tblTempUsageDetail_20' ) start [2024-12-30 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136444', 'tblTempUsageDetail_20' ) end [2024-12-30 13:14:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:14:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:14:26] Production.INFO: ==26818== Releasing lock... [2024-12-30 13:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:14:26] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:15:05 [end_date_ymd] => 2024-12-30 13:15:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:15:05' and `end` < '2024-12-30 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-30 13:15:19] Production.INFO: count ==4185 [2024-12-30 13:15:20] Production.ERROR: pbx CDR StartTime 2024-12-30 10:15:05 - End Time 2024-12-30 13:15:05 [2024-12-30 13:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136449', 'tblTempUsageDetail_20' ) start [2024-12-30 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136449', 'tblTempUsageDetail_20' ) end [2024-12-30 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136449', 'tblTempVendorCDR_20' ) start [2024-12-30 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136449', 'tblTempVendorCDR_20' ) end [2024-12-30 13:15:21] Production.INFO: ProcessCDR(1,14136449,1,1,2) [2024-12-30 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136449', 'tblTempUsageDetail_20' ) start [2024-12-30 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136449', 'tblTempUsageDetail_20' ) end [2024-12-30 13:15:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:15:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:15:25] Production.INFO: ==26901== Releasing lock... [2024-12-30 13:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:15:25] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 13:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:16:04 [end_date_ymd] => 2024-12-30 13:16:04 [RateCDR] => 1 ) [2024-12-30 13: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-30 10:16:04' and `end` < '2024-12-30 13: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-30 13:16:23] Production.INFO: count ==4185 [2024-12-30 13:16:24] Production.ERROR: pbx CDR StartTime 2024-12-30 10:16:04 - End Time 2024-12-30 13:16:04 [2024-12-30 13:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136454', 'tblTempUsageDetail_20' ) start [2024-12-30 13:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136454', 'tblTempUsageDetail_20' ) end [2024-12-30 13:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136454', 'tblTempVendorCDR_20' ) start [2024-12-30 13:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136454', 'tblTempVendorCDR_20' ) end [2024-12-30 13:16:25] Production.INFO: ProcessCDR(1,14136454,1,1,2) [2024-12-30 13:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136454', 'tblTempUsageDetail_20' ) start [2024-12-30 13:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136454', 'tblTempUsageDetail_20' ) end [2024-12-30 13:16:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:16:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:16:30] Production.INFO: ==26982== Releasing lock... [2024-12-30 13:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:16:30] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:17:06 [end_date_ymd] => 2024-12-30 13:17:06 [RateCDR] => 1 ) [2024-12-30 13:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 10:17:06' and `end` < '2024-12-30 13:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 13:17:24] Production.INFO: count ==4174 [2024-12-30 13:17:26] Production.ERROR: pbx CDR StartTime 2024-12-30 10:17:06 - End Time 2024-12-30 13:17:06 [2024-12-30 13:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136459', 'tblTempUsageDetail_20' ) start [2024-12-30 13:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136459', 'tblTempUsageDetail_20' ) end [2024-12-30 13:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136459', 'tblTempVendorCDR_20' ) start [2024-12-30 13:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136459', 'tblTempVendorCDR_20' ) end [2024-12-30 13:17:26] Production.INFO: ProcessCDR(1,14136459,1,1,2) [2024-12-30 13:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136459', 'tblTempUsageDetail_20' ) start [2024-12-30 13:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136459', 'tblTempUsageDetail_20' ) end [2024-12-30 13:17:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:17:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:17:31] Production.INFO: ==27061== Releasing lock... [2024-12-30 13:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:17:31] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:18:05 [end_date_ymd] => 2024-12-30 13:18:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:18:05' and `end` < '2024-12-30 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-30 13:18:23] Production.INFO: count ==4163 [2024-12-30 13:18:24] Production.ERROR: pbx CDR StartTime 2024-12-30 10:18:05 - End Time 2024-12-30 13:18:05 [2024-12-30 13:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136464', 'tblTempUsageDetail_20' ) start [2024-12-30 13:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136464', 'tblTempUsageDetail_20' ) end [2024-12-30 13:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136464', 'tblTempVendorCDR_20' ) start [2024-12-30 13:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136464', 'tblTempVendorCDR_20' ) end [2024-12-30 13:18:25] Production.INFO: ProcessCDR(1,14136464,1,1,2) [2024-12-30 13:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136464', 'tblTempUsageDetail_20' ) start [2024-12-30 13:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136464', 'tblTempUsageDetail_20' ) end [2024-12-30 13:18:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:18:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:18:29] Production.INFO: ==27141== Releasing lock... [2024-12-30 13:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:18:29] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:19:05 [end_date_ymd] => 2024-12-30 13:19:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:19:05' and `end` < '2024-12-30 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-30 13:19:21] Production.INFO: count ==4154 [2024-12-30 13:19:23] Production.ERROR: pbx CDR StartTime 2024-12-30 10:19:05 - End Time 2024-12-30 13:19:05 [2024-12-30 13:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136469', 'tblTempUsageDetail_20' ) start [2024-12-30 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136469', 'tblTempUsageDetail_20' ) end [2024-12-30 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136469', 'tblTempVendorCDR_20' ) start [2024-12-30 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136469', 'tblTempVendorCDR_20' ) end [2024-12-30 13:19:23] Production.INFO: ProcessCDR(1,14136469,1,1,2) [2024-12-30 13:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136469', 'tblTempUsageDetail_20' ) start [2024-12-30 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136469', 'tblTempUsageDetail_20' ) end [2024-12-30 13:19:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:19:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:19:28] Production.INFO: ==27261== Releasing lock... [2024-12-30 13:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:19:28] Production.INFO: 59 MB #Memory Used# [2024-12-30 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:20:05 [end_date_ymd] => 2024-12-30 13:20:05 [RateCDR] => 1 ) [2024-12-30 13:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 10:20:05' and `end` < '2024-12-30 13:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 13:20:24] Production.INFO: count ==4148 [2024-12-30 13:20:26] Production.ERROR: pbx CDR StartTime 2024-12-30 10:20:05 - End Time 2024-12-30 13:20:05 [2024-12-30 13:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136475', 'tblTempUsageDetail_20' ) start [2024-12-30 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136475', 'tblTempUsageDetail_20' ) end [2024-12-30 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136475', 'tblTempVendorCDR_20' ) start [2024-12-30 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136475', 'tblTempVendorCDR_20' ) end [2024-12-30 13:20:26] Production.INFO: ProcessCDR(1,14136475,1,1,2) [2024-12-30 13:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136475', 'tblTempUsageDetail_20' ) start [2024-12-30 13:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136475', 'tblTempUsageDetail_20' ) end [2024-12-30 13:20:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:20:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:20:31] Production.INFO: ==27342== Releasing lock... [2024-12-30 13:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:20:31] Production.INFO: 59 MB #Memory Used# [2024-12-30 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:21:05 [end_date_ymd] => 2024-12-30 13:21:05 [RateCDR] => 1 ) [2024-12-30 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 10:21:05' and `end` < '2024-12-30 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 13:21:27] Production.INFO: count ==4130 [2024-12-30 13:21:29] Production.ERROR: pbx CDR StartTime 2024-12-30 10:21:05 - End Time 2024-12-30 13:21:05 [2024-12-30 13:21:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136480', 'tblTempUsageDetail_20' ) start [2024-12-30 13:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136480', 'tblTempUsageDetail_20' ) end [2024-12-30 13:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136480', 'tblTempVendorCDR_20' ) start [2024-12-30 13:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136480', 'tblTempVendorCDR_20' ) end [2024-12-30 13:21:29] Production.INFO: ProcessCDR(1,14136480,1,1,2) [2024-12-30 13:21:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:21:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:21:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:21:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136480', 'tblTempUsageDetail_20' ) start [2024-12-30 13:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136480', 'tblTempUsageDetail_20' ) end [2024-12-30 13:21:33] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:21:33] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:21:33] Production.INFO: ==27418== Releasing lock... [2024-12-30 13:21:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:21:33] Production.INFO: 59 MB #Memory Used# [2024-12-30 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:22:05 [end_date_ymd] => 2024-12-30 13:22:05 [RateCDR] => 1 ) [2024-12-30 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 10:22:05' and `end` < '2024-12-30 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 13:22:23] Production.INFO: count ==4116 [2024-12-30 13:22:25] Production.ERROR: pbx CDR StartTime 2024-12-30 10:22:05 - End Time 2024-12-30 13:22:05 [2024-12-30 13:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136485', 'tblTempUsageDetail_20' ) start [2024-12-30 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136485', 'tblTempUsageDetail_20' ) end [2024-12-30 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136485', 'tblTempVendorCDR_20' ) start [2024-12-30 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136485', 'tblTempVendorCDR_20' ) end [2024-12-30 13:22:25] Production.INFO: ProcessCDR(1,14136485,1,1,2) [2024-12-30 13:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136485', 'tblTempUsageDetail_20' ) start [2024-12-30 13:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136485', 'tblTempUsageDetail_20' ) end [2024-12-30 13:22:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:22:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:22:30] Production.INFO: ==27501== Releasing lock... [2024-12-30 13:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:22:30] Production.INFO: 58.75 MB #Memory Used# [2024-12-30 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:23:05 [end_date_ymd] => 2024-12-30 13:23:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:23:05' and `end` < '2024-12-30 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-30 13:23:18] Production.INFO: count ==4117 [2024-12-30 13:23:20] Production.ERROR: pbx CDR StartTime 2024-12-30 10:23:05 - End Time 2024-12-30 13:23:05 [2024-12-30 13:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136490', 'tblTempUsageDetail_20' ) start [2024-12-30 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136490', 'tblTempUsageDetail_20' ) end [2024-12-30 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136490', 'tblTempVendorCDR_20' ) start [2024-12-30 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136490', 'tblTempVendorCDR_20' ) end [2024-12-30 13:23:20] Production.INFO: ProcessCDR(1,14136490,1,1,2) [2024-12-30 13:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136490', 'tblTempUsageDetail_20' ) start [2024-12-30 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136490', 'tblTempUsageDetail_20' ) end [2024-12-30 13:23:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:23:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:23:25] Production.INFO: ==27577== Releasing lock... [2024-12-30 13:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:23:25] Production.INFO: 58.75 MB #Memory Used# [2024-12-30 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:24:05 [end_date_ymd] => 2024-12-30 13:24:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:24:05' and `end` < '2024-12-30 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-30 13:24:25] Production.INFO: count ==4077 [2024-12-30 13:24:27] Production.ERROR: pbx CDR StartTime 2024-12-30 10:24:05 - End Time 2024-12-30 13:24:05 [2024-12-30 13:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136495', 'tblTempUsageDetail_20' ) start [2024-12-30 13:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136495', 'tblTempUsageDetail_20' ) end [2024-12-30 13:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136495', 'tblTempVendorCDR_20' ) start [2024-12-30 13:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136495', 'tblTempVendorCDR_20' ) end [2024-12-30 13:24:27] Production.INFO: ProcessCDR(1,14136495,1,1,2) [2024-12-30 13:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:24:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:24:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136495', 'tblTempUsageDetail_20' ) start [2024-12-30 13:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136495', 'tblTempUsageDetail_20' ) end [2024-12-30 13:24:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:24:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:24:32] Production.INFO: ==27652== Releasing lock... [2024-12-30 13:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:24:32] Production.INFO: 58.5 MB #Memory Used# [2024-12-30 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:25:05 [end_date_ymd] => 2024-12-30 13:25:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:25:05' and `end` < '2024-12-30 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-30 13:25:22] Production.INFO: count ==4042 [2024-12-30 13:25:23] Production.ERROR: pbx CDR StartTime 2024-12-30 10:25:05 - End Time 2024-12-30 13:25:05 [2024-12-30 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136500', 'tblTempUsageDetail_20' ) start [2024-12-30 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136500', 'tblTempUsageDetail_20' ) end [2024-12-30 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136500', 'tblTempVendorCDR_20' ) start [2024-12-30 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136500', 'tblTempVendorCDR_20' ) end [2024-12-30 13:25:23] Production.INFO: ProcessCDR(1,14136500,1,1,2) [2024-12-30 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136500', 'tblTempUsageDetail_20' ) start [2024-12-30 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136500', 'tblTempUsageDetail_20' ) end [2024-12-30 13:25:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:25:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:25:28] Production.INFO: ==27728== Releasing lock... [2024-12-30 13:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:25:28] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 13:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:26:04 [end_date_ymd] => 2024-12-30 13:26:04 [RateCDR] => 1 ) [2024-12-30 13: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-30 10:26:04' and `end` < '2024-12-30 13: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-30 13:26:30] Production.INFO: count ==4049 [2024-12-30 13:26:32] Production.ERROR: pbx CDR StartTime 2024-12-30 10:26:04 - End Time 2024-12-30 13:26:04 [2024-12-30 13:26:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136505', 'tblTempUsageDetail_20' ) start [2024-12-30 13:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136505', 'tblTempUsageDetail_20' ) end [2024-12-30 13:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136505', 'tblTempVendorCDR_20' ) start [2024-12-30 13:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136505', 'tblTempVendorCDR_20' ) end [2024-12-30 13:26:32] Production.INFO: ProcessCDR(1,14136505,1,1,2) [2024-12-30 13:26:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:26:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:26:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:26:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136505', 'tblTempUsageDetail_20' ) start [2024-12-30 13:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136505', 'tblTempUsageDetail_20' ) end [2024-12-30 13:26:37] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:26:37] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:26:37] Production.INFO: ==27801== Releasing lock... [2024-12-30 13:26:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:26:37] Production.INFO: 58.5 MB #Memory Used# [2024-12-30 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:27:05 [end_date_ymd] => 2024-12-30 13:27:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:27:05' and `end` < '2024-12-30 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-30 13:27:23] Production.INFO: count ==4027 [2024-12-30 13:27:24] Production.ERROR: pbx CDR StartTime 2024-12-30 10:27:05 - End Time 2024-12-30 13:27:05 [2024-12-30 13:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136510', 'tblTempUsageDetail_20' ) start [2024-12-30 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136510', 'tblTempUsageDetail_20' ) end [2024-12-30 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136510', 'tblTempVendorCDR_20' ) start [2024-12-30 13:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136510', 'tblTempVendorCDR_20' ) end [2024-12-30 13:27:24] Production.INFO: ProcessCDR(1,14136510,1,1,2) [2024-12-30 13:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136510', 'tblTempUsageDetail_20' ) start [2024-12-30 13:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136510', 'tblTempUsageDetail_20' ) end [2024-12-30 13:27:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:27:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:27:29] Production.INFO: ==27875== Releasing lock... [2024-12-30 13:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:27:29] Production.INFO: 58 MB #Memory Used# [2024-12-30 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:28:05 [end_date_ymd] => 2024-12-30 13:28:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:28:05' and `end` < '2024-12-30 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-30 13:28:18] Production.INFO: count ==4027 [2024-12-30 13:28:20] Production.ERROR: pbx CDR StartTime 2024-12-30 10:28:05 - End Time 2024-12-30 13:28:05 [2024-12-30 13:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136515', 'tblTempUsageDetail_20' ) start [2024-12-30 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136515', 'tblTempUsageDetail_20' ) end [2024-12-30 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136515', 'tblTempVendorCDR_20' ) start [2024-12-30 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136515', 'tblTempVendorCDR_20' ) end [2024-12-30 13:28:20] Production.INFO: ProcessCDR(1,14136515,1,1,2) [2024-12-30 13:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136515', 'tblTempUsageDetail_20' ) start [2024-12-30 13:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136515', 'tblTempUsageDetail_20' ) end [2024-12-30 13:28:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:28:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:28:25] Production.INFO: ==27944== Releasing lock... [2024-12-30 13:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:28:25] Production.INFO: 58 MB #Memory Used# [2024-12-30 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:29:05 [end_date_ymd] => 2024-12-30 13:29:05 [RateCDR] => 1 ) [2024-12-30 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 10:29:05' and `end` < '2024-12-30 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 13:29:19] Production.INFO: count ==4030 [2024-12-30 13:29:21] Production.ERROR: pbx CDR StartTime 2024-12-30 10:29:05 - End Time 2024-12-30 13:29:05 [2024-12-30 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136520', 'tblTempUsageDetail_20' ) start [2024-12-30 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136520', 'tblTempUsageDetail_20' ) end [2024-12-30 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136520', 'tblTempVendorCDR_20' ) start [2024-12-30 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136520', 'tblTempVendorCDR_20' ) end [2024-12-30 13:29:21] Production.INFO: ProcessCDR(1,14136520,1,1,2) [2024-12-30 13:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136520', 'tblTempUsageDetail_20' ) start [2024-12-30 13:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136520', 'tblTempUsageDetail_20' ) end [2024-12-30 13:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:29:24] Production.INFO: ==28019== Releasing lock... [2024-12-30 13:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:29:24] Production.INFO: 58 MB #Memory Used# [2024-12-30 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:30:06 [end_date_ymd] => 2024-12-30 13:30:06 [RateCDR] => 1 ) [2024-12-30 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-30 10:30:06' and `end` < '2024-12-30 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-30 13:30:28] Production.INFO: count ==4046 [2024-12-30 13:30:30] Production.ERROR: pbx CDR StartTime 2024-12-30 10:30:06 - End Time 2024-12-30 13:30:06 [2024-12-30 13:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136526', 'tblTempUsageDetail_20' ) start [2024-12-30 13:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136526', 'tblTempUsageDetail_20' ) end [2024-12-30 13:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136526', 'tblTempVendorCDR_20' ) start [2024-12-30 13:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136526', 'tblTempVendorCDR_20' ) end [2024-12-30 13:30:30] Production.INFO: ProcessCDR(1,14136526,1,1,2) [2024-12-30 13:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136526', 'tblTempUsageDetail_20' ) start [2024-12-30 13:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136526', 'tblTempUsageDetail_20' ) end [2024-12-30 13:30:35] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:30:35] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:30:35] Production.INFO: ==28093== Releasing lock... [2024-12-30 13:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:30:35] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:31:05 [end_date_ymd] => 2024-12-30 13:31:05 [RateCDR] => 1 ) [2024-12-30 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 10:31:05' and `end` < '2024-12-30 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 13:31:23] Production.INFO: count ==4061 [2024-12-30 13:31:24] Production.ERROR: pbx CDR StartTime 2024-12-30 10:31:05 - End Time 2024-12-30 13:31:05 [2024-12-30 13:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136529', 'tblTempUsageDetail_20' ) start [2024-12-30 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136529', 'tblTempUsageDetail_20' ) end [2024-12-30 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136529', 'tblTempVendorCDR_20' ) start [2024-12-30 13:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136529', 'tblTempVendorCDR_20' ) end [2024-12-30 13:31:24] Production.INFO: ProcessCDR(1,14136529,1,1,2) [2024-12-30 13:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136529', 'tblTempUsageDetail_20' ) start [2024-12-30 13:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136529', 'tblTempUsageDetail_20' ) end [2024-12-30 13:31:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:31:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:31:30] Production.INFO: ==28165== Releasing lock... [2024-12-30 13:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:31:30] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 13:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:32:04 [end_date_ymd] => 2024-12-30 13:32:04 [RateCDR] => 1 ) [2024-12-30 13: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-30 10:32:04' and `end` < '2024-12-30 13: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-30 13:32:18] Production.INFO: count ==4061 [2024-12-30 13:32:19] Production.ERROR: pbx CDR StartTime 2024-12-30 10:32:04 - End Time 2024-12-30 13:32:04 [2024-12-30 13:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136536', 'tblTempUsageDetail_20' ) start [2024-12-30 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136536', 'tblTempUsageDetail_20' ) end [2024-12-30 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136536', 'tblTempVendorCDR_20' ) start [2024-12-30 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136536', 'tblTempVendorCDR_20' ) end [2024-12-30 13:32:20] Production.INFO: ProcessCDR(1,14136536,1,1,2) [2024-12-30 13:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136536', 'tblTempUsageDetail_20' ) start [2024-12-30 13:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136536', 'tblTempUsageDetail_20' ) end [2024-12-30 13:32:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:32:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:32:24] Production.INFO: ==28234== Releasing lock... [2024-12-30 13:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:32:24] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:33:04 [end_date_ymd] => 2024-12-30 13:33:04 [RateCDR] => 1 ) [2024-12-30 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-30 10:33:04' and `end` < '2024-12-30 13: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-30 13:33:28] Production.INFO: count ==4053 [2024-12-30 13:33:30] Production.ERROR: pbx CDR StartTime 2024-12-30 10:33:04 - End Time 2024-12-30 13:33:04 [2024-12-30 13:33:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136541', 'tblTempUsageDetail_20' ) start [2024-12-30 13:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136541', 'tblTempUsageDetail_20' ) end [2024-12-30 13:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136541', 'tblTempVendorCDR_20' ) start [2024-12-30 13:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136541', 'tblTempVendorCDR_20' ) end [2024-12-30 13:33:30] Production.INFO: ProcessCDR(1,14136541,1,1,2) [2024-12-30 13:33:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:33:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:33:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:33:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136541', 'tblTempUsageDetail_20' ) start [2024-12-30 13:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136541', 'tblTempUsageDetail_20' ) end [2024-12-30 13:33:35] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:33:35] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:33:35] Production.INFO: ==28306== Releasing lock... [2024-12-30 13:33:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:33:35] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:34:05 [end_date_ymd] => 2024-12-30 13:34:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:34:05' and `end` < '2024-12-30 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-30 13:34:24] Production.INFO: count ==4022 [2024-12-30 13:34:25] Production.ERROR: pbx CDR StartTime 2024-12-30 10:34:05 - End Time 2024-12-30 13:34:05 [2024-12-30 13:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136546', 'tblTempUsageDetail_20' ) start [2024-12-30 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136546', 'tblTempUsageDetail_20' ) end [2024-12-30 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136546', 'tblTempVendorCDR_20' ) start [2024-12-30 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136546', 'tblTempVendorCDR_20' ) end [2024-12-30 13:34:25] Production.INFO: ProcessCDR(1,14136546,1,1,2) [2024-12-30 13:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136546', 'tblTempUsageDetail_20' ) start [2024-12-30 13:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136546', 'tblTempUsageDetail_20' ) end [2024-12-30 13:34:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:34:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:34:28] Production.INFO: ==28376== Releasing lock... [2024-12-30 13:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:34:28] Production.INFO: 58 MB #Memory Used# [2024-12-30 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:35:05 [end_date_ymd] => 2024-12-30 13:35:05 [RateCDR] => 1 ) [2024-12-30 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 10:35:05' and `end` < '2024-12-30 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 13:35:24] Production.INFO: count ==4014 [2024-12-30 13:35:25] Production.ERROR: pbx CDR StartTime 2024-12-30 10:35:05 - End Time 2024-12-30 13:35:05 [2024-12-30 13:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136551', 'tblTempUsageDetail_20' ) start [2024-12-30 13:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136551', 'tblTempUsageDetail_20' ) end [2024-12-30 13:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136551', 'tblTempVendorCDR_20' ) start [2024-12-30 13:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136551', 'tblTempVendorCDR_20' ) end [2024-12-30 13:35:25] Production.INFO: ProcessCDR(1,14136551,1,1,2) [2024-12-30 13:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136551', 'tblTempUsageDetail_20' ) start [2024-12-30 13:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136551', 'tblTempUsageDetail_20' ) end [2024-12-30 13:35:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:35:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:35:30] Production.INFO: ==28486== Releasing lock... [2024-12-30 13:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:35:30] Production.INFO: 58 MB #Memory Used# [2024-12-30 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:36:05 [end_date_ymd] => 2024-12-30 13:36:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:36:05' and `end` < '2024-12-30 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-30 13:36:35] Production.INFO: count ==4011 [2024-12-30 13:36:37] Production.ERROR: pbx CDR StartTime 2024-12-30 10:36:05 - End Time 2024-12-30 13:36:05 [2024-12-30 13:36:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:36:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136556', 'tblTempUsageDetail_20' ) start [2024-12-30 13:36:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136556', 'tblTempUsageDetail_20' ) end [2024-12-30 13:36:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136556', 'tblTempVendorCDR_20' ) start [2024-12-30 13:36:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136556', 'tblTempVendorCDR_20' ) end [2024-12-30 13:36:37] Production.INFO: ProcessCDR(1,14136556,1,1,2) [2024-12-30 13:36:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:36:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:36:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:36:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:36:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136556', 'tblTempUsageDetail_20' ) start [2024-12-30 13:36:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136556', 'tblTempUsageDetail_20' ) end [2024-12-30 13:36:42] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:36:42] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:36:42] Production.INFO: ==28560== Releasing lock... [2024-12-30 13:36:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:36:42] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:37:05 [end_date_ymd] => 2024-12-30 13:37:05 [RateCDR] => 1 ) [2024-12-30 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 10:37:05' and `end` < '2024-12-30 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 13:37:26] Production.INFO: count ==3989 [2024-12-30 13:37:27] Production.ERROR: pbx CDR StartTime 2024-12-30 10:37:05 - End Time 2024-12-30 13:37:05 [2024-12-30 13:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136561', 'tblTempUsageDetail_20' ) start [2024-12-30 13:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136561', 'tblTempUsageDetail_20' ) end [2024-12-30 13:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136561', 'tblTempVendorCDR_20' ) start [2024-12-30 13:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136561', 'tblTempVendorCDR_20' ) end [2024-12-30 13:37:28] Production.INFO: ProcessCDR(1,14136561,1,1,2) [2024-12-30 13:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:37:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:37:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136561', 'tblTempUsageDetail_20' ) start [2024-12-30 13:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136561', 'tblTempUsageDetail_20' ) end [2024-12-30 13:37:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:37:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:37:32] Production.INFO: ==28632== Releasing lock... [2024-12-30 13:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:37:32] Production.INFO: 57.75 MB #Memory Used# [2024-12-30 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:38:05 [end_date_ymd] => 2024-12-30 13:38:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:38:05' and `end` < '2024-12-30 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-30 13:38:27] Production.INFO: count ==3994 [2024-12-30 13:38:29] Production.ERROR: pbx CDR StartTime 2024-12-30 10:38:05 - End Time 2024-12-30 13:38:05 [2024-12-30 13:38:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136566', 'tblTempUsageDetail_20' ) start [2024-12-30 13:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136566', 'tblTempUsageDetail_20' ) end [2024-12-30 13:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136566', 'tblTempVendorCDR_20' ) start [2024-12-30 13:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136566', 'tblTempVendorCDR_20' ) end [2024-12-30 13:38:29] Production.INFO: ProcessCDR(1,14136566,1,1,2) [2024-12-30 13:38:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:38:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:38:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:38:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136566', 'tblTempUsageDetail_20' ) start [2024-12-30 13:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136566', 'tblTempUsageDetail_20' ) end [2024-12-30 13:38:34] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:38:34] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:38:34] Production.INFO: ==28703== Releasing lock... [2024-12-30 13:38:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:38:34] Production.INFO: 57.75 MB #Memory Used# [2024-12-30 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:39:05 [end_date_ymd] => 2024-12-30 13:39:05 [RateCDR] => 1 ) [2024-12-30 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 10:39:05' and `end` < '2024-12-30 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 13:39:28] Production.INFO: count ==3996 [2024-12-30 13:39:30] Production.ERROR: pbx CDR StartTime 2024-12-30 10:39:05 - End Time 2024-12-30 13:39:05 [2024-12-30 13:39:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136571', 'tblTempUsageDetail_20' ) start [2024-12-30 13:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136571', 'tblTempUsageDetail_20' ) end [2024-12-30 13:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136571', 'tblTempVendorCDR_20' ) start [2024-12-30 13:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136571', 'tblTempVendorCDR_20' ) end [2024-12-30 13:39:30] Production.INFO: ProcessCDR(1,14136571,1,1,2) [2024-12-30 13:39:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:39:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:39:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:39:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136571', 'tblTempUsageDetail_20' ) start [2024-12-30 13:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136571', 'tblTempUsageDetail_20' ) end [2024-12-30 13:39:35] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:39:35] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:39:35] Production.INFO: ==28771== Releasing lock... [2024-12-30 13:39:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:39:35] Production.INFO: 57.75 MB #Memory Used# [2024-12-30 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:40:05 [end_date_ymd] => 2024-12-30 13:40:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:40:05' and `end` < '2024-12-30 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-30 13:40:31] Production.INFO: count ==4005 [2024-12-30 13:40:32] Production.ERROR: pbx CDR StartTime 2024-12-30 10:40:05 - End Time 2024-12-30 13:40:05 [2024-12-30 13:40:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136576', 'tblTempUsageDetail_20' ) start [2024-12-30 13:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136576', 'tblTempUsageDetail_20' ) end [2024-12-30 13:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136576', 'tblTempVendorCDR_20' ) start [2024-12-30 13:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136576', 'tblTempVendorCDR_20' ) end [2024-12-30 13:40:32] Production.INFO: ProcessCDR(1,14136576,1,1,2) [2024-12-30 13:40:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:40:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:40:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:40:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:40:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136576', 'tblTempUsageDetail_20' ) start [2024-12-30 13:40:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136576', 'tblTempUsageDetail_20' ) end [2024-12-30 13:40:37] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:40:37] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:40:37] Production.INFO: ==28845== Releasing lock... [2024-12-30 13:40:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:40:37] Production.INFO: 58 MB #Memory Used# [2024-12-30 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:41:05 [end_date_ymd] => 2024-12-30 13:41:05 [RateCDR] => 1 ) [2024-12-30 13: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-30 10:41:05' and `end` < '2024-12-30 13: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-30 13:41:24] Production.INFO: count ==4032 [2024-12-30 13:41:26] Production.ERROR: pbx CDR StartTime 2024-12-30 10:41:05 - End Time 2024-12-30 13:41:05 [2024-12-30 13:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136582', 'tblTempUsageDetail_20' ) start [2024-12-30 13:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136582', 'tblTempUsageDetail_20' ) end [2024-12-30 13:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136582', 'tblTempVendorCDR_20' ) start [2024-12-30 13:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136582', 'tblTempVendorCDR_20' ) end [2024-12-30 13:41:26] Production.INFO: ProcessCDR(1,14136582,1,1,2) [2024-12-30 13:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136582', 'tblTempUsageDetail_20' ) start [2024-12-30 13:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136582', 'tblTempUsageDetail_20' ) end [2024-12-30 13:41:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:41:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:41:31] Production.INFO: ==28919== Releasing lock... [2024-12-30 13:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:41:31] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 13:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:42:04 [end_date_ymd] => 2024-12-30 13:42:04 [RateCDR] => 1 ) [2024-12-30 13: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-30 10:42:04' and `end` < '2024-12-30 13: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-30 13:42:26] Production.INFO: count ==4031 [2024-12-30 13:42:27] Production.ERROR: pbx CDR StartTime 2024-12-30 10:42:04 - End Time 2024-12-30 13:42:04 [2024-12-30 13:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136587', 'tblTempUsageDetail_20' ) start [2024-12-30 13:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136587', 'tblTempUsageDetail_20' ) end [2024-12-30 13:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136587', 'tblTempVendorCDR_20' ) start [2024-12-30 13:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136587', 'tblTempVendorCDR_20' ) end [2024-12-30 13:42:28] Production.INFO: ProcessCDR(1,14136587,1,1,2) [2024-12-30 13:42:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:42:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:42:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136587', 'tblTempUsageDetail_20' ) start [2024-12-30 13:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136587', 'tblTempUsageDetail_20' ) end [2024-12-30 13:42:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:42:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:42:32] Production.INFO: ==28991== Releasing lock... [2024-12-30 13:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:42:32] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:43:06 [end_date_ymd] => 2024-12-30 13:43:06 [RateCDR] => 1 ) [2024-12-30 13:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 10:43:06' and `end` < '2024-12-30 13:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 13:43:31] Production.INFO: count ==4067 [2024-12-30 13:43:32] Production.ERROR: pbx CDR StartTime 2024-12-30 10:43:06 - End Time 2024-12-30 13:43:06 [2024-12-30 13:43:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136592', 'tblTempUsageDetail_20' ) start [2024-12-30 13:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136592', 'tblTempUsageDetail_20' ) end [2024-12-30 13:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136592', 'tblTempVendorCDR_20' ) start [2024-12-30 13:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136592', 'tblTempVendorCDR_20' ) end [2024-12-30 13:43:32] Production.INFO: ProcessCDR(1,14136592,1,1,2) [2024-12-30 13:43:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:43:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:43:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:43:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:43:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136592', 'tblTempUsageDetail_20' ) start [2024-12-30 13:43:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136592', 'tblTempUsageDetail_20' ) end [2024-12-30 13:43:37] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:43:37] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:43:37] Production.INFO: ==29064== Releasing lock... [2024-12-30 13:43:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:43:37] Production.INFO: 58.5 MB #Memory Used# [2024-12-30 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:44:05 [end_date_ymd] => 2024-12-30 13:44:05 [RateCDR] => 1 ) [2024-12-30 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 10:44:05' and `end` < '2024-12-30 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 13:44:25] Production.INFO: count ==4059 [2024-12-30 13:44:26] Production.ERROR: pbx CDR StartTime 2024-12-30 10:44:05 - End Time 2024-12-30 13:44:05 [2024-12-30 13:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136597', 'tblTempUsageDetail_20' ) start [2024-12-30 13:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136597', 'tblTempUsageDetail_20' ) end [2024-12-30 13:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136597', 'tblTempVendorCDR_20' ) start [2024-12-30 13:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136597', 'tblTempVendorCDR_20' ) end [2024-12-30 13:44:26] Production.INFO: ProcessCDR(1,14136597,1,1,2) [2024-12-30 13:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136597', 'tblTempUsageDetail_20' ) start [2024-12-30 13:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136597', 'tblTempUsageDetail_20' ) end [2024-12-30 13:44:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:44:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:44:31] Production.INFO: ==29136== Releasing lock... [2024-12-30 13:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:44:31] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 13:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:45:04 [end_date_ymd] => 2024-12-30 13:45:04 [RateCDR] => 1 ) [2024-12-30 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-30 10:45:04' and `end` < '2024-12-30 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-30 13:45:18] Production.INFO: count ==4042 [2024-12-30 13:45:19] Production.ERROR: pbx CDR StartTime 2024-12-30 10:45:04 - End Time 2024-12-30 13:45:04 [2024-12-30 13:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136602', 'tblTempUsageDetail_20' ) start [2024-12-30 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136602', 'tblTempUsageDetail_20' ) end [2024-12-30 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136602', 'tblTempVendorCDR_20' ) start [2024-12-30 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136602', 'tblTempVendorCDR_20' ) end [2024-12-30 13:45:19] Production.INFO: ProcessCDR(1,14136602,1,1,2) [2024-12-30 13:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136602', 'tblTempUsageDetail_20' ) start [2024-12-30 13:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136602', 'tblTempUsageDetail_20' ) end [2024-12-30 13:45:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:45:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:45:24] Production.INFO: ==29207== Releasing lock... [2024-12-30 13:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:45:24] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:46:05 [end_date_ymd] => 2024-12-30 13:46:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:46:05' and `end` < '2024-12-30 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-30 13:46:18] Production.INFO: count ==4039 [2024-12-30 13:46:20] Production.ERROR: pbx CDR StartTime 2024-12-30 10:46:05 - End Time 2024-12-30 13:46:05 [2024-12-30 13:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136607', 'tblTempUsageDetail_20' ) start [2024-12-30 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136607', 'tblTempUsageDetail_20' ) end [2024-12-30 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136607', 'tblTempVendorCDR_20' ) start [2024-12-30 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136607', 'tblTempVendorCDR_20' ) end [2024-12-30 13:46:20] Production.INFO: ProcessCDR(1,14136607,1,1,2) [2024-12-30 13:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136607', 'tblTempUsageDetail_20' ) start [2024-12-30 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136607', 'tblTempUsageDetail_20' ) end [2024-12-30 13:46:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:46:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:46:25] Production.INFO: ==29280== Releasing lock... [2024-12-30 13:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:46:25] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 13:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:47:04 [end_date_ymd] => 2024-12-30 13:47:04 [RateCDR] => 1 ) [2024-12-30 13: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-30 10:47:04' and `end` < '2024-12-30 13: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-30 13:47:27] Production.INFO: count ==4066 [2024-12-30 13:47:28] Production.ERROR: pbx CDR StartTime 2024-12-30 10:47:04 - End Time 2024-12-30 13:47:04 [2024-12-30 13:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136612', 'tblTempUsageDetail_20' ) start [2024-12-30 13:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136612', 'tblTempUsageDetail_20' ) end [2024-12-30 13:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136612', 'tblTempVendorCDR_20' ) start [2024-12-30 13:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136612', 'tblTempVendorCDR_20' ) end [2024-12-30 13:47:28] Production.INFO: ProcessCDR(1,14136612,1,1,2) [2024-12-30 13:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136612', 'tblTempUsageDetail_20' ) start [2024-12-30 13:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136612', 'tblTempUsageDetail_20' ) end [2024-12-30 13:47:33] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:47:33] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:47:33] Production.INFO: ==29351== Releasing lock... [2024-12-30 13:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:47:33] Production.INFO: 58.5 MB #Memory Used# [2024-12-30 13:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:48:04 [end_date_ymd] => 2024-12-30 13:48:04 [RateCDR] => 1 ) [2024-12-30 13: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-30 10:48:04' and `end` < '2024-12-30 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-30 13:48:22] Production.INFO: count ==4064 [2024-12-30 13:48:23] Production.ERROR: pbx CDR StartTime 2024-12-30 10:48:04 - End Time 2024-12-30 13:48:04 [2024-12-30 13:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136617', 'tblTempUsageDetail_20' ) start [2024-12-30 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136617', 'tblTempUsageDetail_20' ) end [2024-12-30 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136617', 'tblTempVendorCDR_20' ) start [2024-12-30 13:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136617', 'tblTempVendorCDR_20' ) end [2024-12-30 13:48:24] Production.INFO: ProcessCDR(1,14136617,1,1,2) [2024-12-30 13:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136617', 'tblTempUsageDetail_20' ) start [2024-12-30 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136617', 'tblTempUsageDetail_20' ) end [2024-12-30 13:48:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:48:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:48:28] Production.INFO: ==29426== Releasing lock... [2024-12-30 13:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:48:28] Production.INFO: 58.5 MB #Memory Used# [2024-12-30 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:49:05 [end_date_ymd] => 2024-12-30 13:49:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:49:05' and `end` < '2024-12-30 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-30 13:49:22] Production.INFO: count ==4058 [2024-12-30 13:49:24] Production.ERROR: pbx CDR StartTime 2024-12-30 10:49:05 - End Time 2024-12-30 13:49:05 [2024-12-30 13:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136622', 'tblTempUsageDetail_20' ) start [2024-12-30 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136622', 'tblTempUsageDetail_20' ) end [2024-12-30 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136622', 'tblTempVendorCDR_20' ) start [2024-12-30 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136622', 'tblTempVendorCDR_20' ) end [2024-12-30 13:49:24] Production.INFO: ProcessCDR(1,14136622,1,1,2) [2024-12-30 13:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136622', 'tblTempUsageDetail_20' ) start [2024-12-30 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136622', 'tblTempUsageDetail_20' ) end [2024-12-30 13:49:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:49:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:49:28] Production.INFO: ==29498== Releasing lock... [2024-12-30 13:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:49:28] Production.INFO: 58.5 MB #Memory Used# [2024-12-30 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:50:05 [end_date_ymd] => 2024-12-30 13:50:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:50:05' and `end` < '2024-12-30 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-30 13:50:26] Production.INFO: count ==4054 [2024-12-30 13:50:27] Production.ERROR: pbx CDR StartTime 2024-12-30 10:50:05 - End Time 2024-12-30 13:50:05 [2024-12-30 13:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136627', 'tblTempUsageDetail_20' ) start [2024-12-30 13:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136627', 'tblTempUsageDetail_20' ) end [2024-12-30 13:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136627', 'tblTempVendorCDR_20' ) start [2024-12-30 13:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136627', 'tblTempVendorCDR_20' ) end [2024-12-30 13:50:28] Production.INFO: ProcessCDR(1,14136627,1,1,2) [2024-12-30 13:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136627', 'tblTempUsageDetail_20' ) start [2024-12-30 13:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136627', 'tblTempUsageDetail_20' ) end [2024-12-30 13:50:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:50:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:50:32] Production.INFO: ==29609== Releasing lock... [2024-12-30 13:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:50:32] Production.INFO: 58.5 MB #Memory Used# [2024-12-30 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:51:05 [end_date_ymd] => 2024-12-30 13:51:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:51:05' and `end` < '2024-12-30 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-30 13:51:22] Production.INFO: count ==4063 [2024-12-30 13:51:24] Production.ERROR: pbx CDR StartTime 2024-12-30 10:51:05 - End Time 2024-12-30 13:51:05 [2024-12-30 13:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136633', 'tblTempUsageDetail_20' ) start [2024-12-30 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136633', 'tblTempUsageDetail_20' ) end [2024-12-30 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136633', 'tblTempVendorCDR_20' ) start [2024-12-30 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136633', 'tblTempVendorCDR_20' ) end [2024-12-30 13:51:24] Production.INFO: ProcessCDR(1,14136633,1,1,2) [2024-12-30 13:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136633', 'tblTempUsageDetail_20' ) start [2024-12-30 13:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136633', 'tblTempUsageDetail_20' ) end [2024-12-30 13:51:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:51:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:51:29] Production.INFO: ==29686== Releasing lock... [2024-12-30 13:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:51:29] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 13:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:52:04 [end_date_ymd] => 2024-12-30 13:52:04 [RateCDR] => 1 ) [2024-12-30 13: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-30 10:52:04' and `end` < '2024-12-30 13: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-30 13:52:18] Production.INFO: count ==4041 [2024-12-30 13:52:20] Production.ERROR: pbx CDR StartTime 2024-12-30 10:52:04 - End Time 2024-12-30 13:52:04 [2024-12-30 13:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136638', 'tblTempUsageDetail_20' ) start [2024-12-30 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136638', 'tblTempUsageDetail_20' ) end [2024-12-30 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136638', 'tblTempVendorCDR_20' ) start [2024-12-30 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136638', 'tblTempVendorCDR_20' ) end [2024-12-30 13:52:20] Production.INFO: ProcessCDR(1,14136638,1,1,2) [2024-12-30 13:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136638', 'tblTempUsageDetail_20' ) start [2024-12-30 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136638', 'tblTempUsageDetail_20' ) end [2024-12-30 13:52:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:52:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:52:25] Production.INFO: ==29759== Releasing lock... [2024-12-30 13:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:52:25] Production.INFO: 58.5 MB #Memory Used# [2024-12-30 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:53:05 [end_date_ymd] => 2024-12-30 13:53:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:53:05' and `end` < '2024-12-30 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-30 13:53:33] Production.INFO: count ==3990 [2024-12-30 13:53:34] Production.ERROR: pbx CDR StartTime 2024-12-30 10:53:05 - End Time 2024-12-30 13:53:05 [2024-12-30 13:53:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136643', 'tblTempUsageDetail_20' ) start [2024-12-30 13:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136643', 'tblTempUsageDetail_20' ) end [2024-12-30 13:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136643', 'tblTempVendorCDR_20' ) start [2024-12-30 13:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136643', 'tblTempVendorCDR_20' ) end [2024-12-30 13:53:34] Production.INFO: ProcessCDR(1,14136643,1,1,2) [2024-12-30 13:53:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:53:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:53:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:53:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:53:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136643', 'tblTempUsageDetail_20' ) start [2024-12-30 13:53:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136643', 'tblTempUsageDetail_20' ) end [2024-12-30 13:53:39] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:53:39] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:53:39] Production.INFO: ==29831== Releasing lock... [2024-12-30 13:53:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:53:39] Production.INFO: 57.75 MB #Memory Used# [2024-12-30 13:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:54:04 [end_date_ymd] => 2024-12-30 13:54:04 [RateCDR] => 1 ) [2024-12-30 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-30 10:54:04' and `end` < '2024-12-30 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-30 13:54:24] Production.INFO: count ==3983 [2024-12-30 13:54:25] Production.ERROR: pbx CDR StartTime 2024-12-30 10:54:04 - End Time 2024-12-30 13:54:04 [2024-12-30 13:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136648', 'tblTempUsageDetail_20' ) start [2024-12-30 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136648', 'tblTempUsageDetail_20' ) end [2024-12-30 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136648', 'tblTempVendorCDR_20' ) start [2024-12-30 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136648', 'tblTempVendorCDR_20' ) end [2024-12-30 13:54:25] Production.INFO: ProcessCDR(1,14136648,1,1,2) [2024-12-30 13:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136648', 'tblTempUsageDetail_20' ) start [2024-12-30 13:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136648', 'tblTempUsageDetail_20' ) end [2024-12-30 13:54:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:54:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:54:30] Production.INFO: ==29901== Releasing lock... [2024-12-30 13:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:54:30] Production.INFO: 57.75 MB #Memory Used# [2024-12-30 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:55:05 [end_date_ymd] => 2024-12-30 13:55:05 [RateCDR] => 1 ) [2024-12-30 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 10:55:05' and `end` < '2024-12-30 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 13:55:30] Production.INFO: count ==4000 [2024-12-30 13:55:32] Production.ERROR: pbx CDR StartTime 2024-12-30 10:55:05 - End Time 2024-12-30 13:55:05 [2024-12-30 13:55:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136653', 'tblTempUsageDetail_20' ) start [2024-12-30 13:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136653', 'tblTempUsageDetail_20' ) end [2024-12-30 13:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136653', 'tblTempVendorCDR_20' ) start [2024-12-30 13:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136653', 'tblTempVendorCDR_20' ) end [2024-12-30 13:55:32] Production.INFO: ProcessCDR(1,14136653,1,1,2) [2024-12-30 13:55:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:55:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:55:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:55:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136653', 'tblTempUsageDetail_20' ) start [2024-12-30 13:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136653', 'tblTempUsageDetail_20' ) end [2024-12-30 13:55:37] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:55:37] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:55:37] Production.INFO: ==29974== Releasing lock... [2024-12-30 13:55:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:55:37] Production.INFO: 58 MB #Memory Used# [2024-12-30 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:56:05 [end_date_ymd] => 2024-12-30 13:56:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:56:05' and `end` < '2024-12-30 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-30 13:56:29] Production.INFO: count ==4010 [2024-12-30 13:56:31] Production.ERROR: pbx CDR StartTime 2024-12-30 10:56:05 - End Time 2024-12-30 13:56:05 [2024-12-30 13:56:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136658', 'tblTempUsageDetail_20' ) start [2024-12-30 13:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136658', 'tblTempUsageDetail_20' ) end [2024-12-30 13:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136658', 'tblTempVendorCDR_20' ) start [2024-12-30 13:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136658', 'tblTempVendorCDR_20' ) end [2024-12-30 13:56:31] Production.INFO: ProcessCDR(1,14136658,1,1,2) [2024-12-30 13:56:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:56:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:56:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:56:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:56:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136658', 'tblTempUsageDetail_20' ) start [2024-12-30 13:56:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136658', 'tblTempUsageDetail_20' ) end [2024-12-30 13:56:35] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:56:35] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:56:35] Production.INFO: ==30046== Releasing lock... [2024-12-30 13:56:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:56:35] Production.INFO: 58 MB #Memory Used# [2024-12-30 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:57:05 [end_date_ymd] => 2024-12-30 13:57:05 [RateCDR] => 1 ) [2024-12-30 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 10:57:05' and `end` < '2024-12-30 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 13:57:27] Production.INFO: count ==4014 [2024-12-30 13:57:29] Production.ERROR: pbx CDR StartTime 2024-12-30 10:57:05 - End Time 2024-12-30 13:57:05 [2024-12-30 13:57:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136663', 'tblTempUsageDetail_20' ) start [2024-12-30 13:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136663', 'tblTempUsageDetail_20' ) end [2024-12-30 13:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136663', 'tblTempVendorCDR_20' ) start [2024-12-30 13:57:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136663', 'tblTempVendorCDR_20' ) end [2024-12-30 13:57:29] Production.INFO: ProcessCDR(1,14136663,1,1,2) [2024-12-30 13:57:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:57:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:57:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:57:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136663', 'tblTempUsageDetail_20' ) start [2024-12-30 13:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136663', 'tblTempUsageDetail_20' ) end [2024-12-30 13:57:34] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:57:34] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:57:34] Production.INFO: ==30118== Releasing lock... [2024-12-30 13:57:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:57:34] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:58:05 [end_date_ymd] => 2024-12-30 13:58:05 [RateCDR] => 1 ) [2024-12-30 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-30 10:58:05' and `end` < '2024-12-30 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-30 13:58:22] Production.INFO: count ==4007 [2024-12-30 13:58:24] Production.ERROR: pbx CDR StartTime 2024-12-30 10:58:05 - End Time 2024-12-30 13:58:05 [2024-12-30 13:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136668', 'tblTempUsageDetail_20' ) start [2024-12-30 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136668', 'tblTempUsageDetail_20' ) end [2024-12-30 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136668', 'tblTempVendorCDR_20' ) start [2024-12-30 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136668', 'tblTempVendorCDR_20' ) end [2024-12-30 13:58:24] Production.INFO: ProcessCDR(1,14136668,1,1,2) [2024-12-30 13:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136668', 'tblTempUsageDetail_20' ) start [2024-12-30 13:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136668', 'tblTempUsageDetail_20' ) end [2024-12-30 13:58:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:58:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:58:28] Production.INFO: ==30191== Releasing lock... [2024-12-30 13:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:58:28] Production.INFO: 58 MB #Memory Used# [2024-12-30 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 10:59:05 [end_date_ymd] => 2024-12-30 13:59:05 [RateCDR] => 1 ) [2024-12-30 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 10:59:05' and `end` < '2024-12-30 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 13:59:24] Production.INFO: count ==4020 [2024-12-30 13:59:25] Production.ERROR: pbx CDR StartTime 2024-12-30 10:59:05 - End Time 2024-12-30 13:59:05 [2024-12-30 13:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 13:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136673', 'tblTempUsageDetail_20' ) start [2024-12-30 13:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136673', 'tblTempUsageDetail_20' ) end [2024-12-30 13:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136673', 'tblTempVendorCDR_20' ) start [2024-12-30 13:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136673', 'tblTempVendorCDR_20' ) end [2024-12-30 13:59:25] Production.INFO: ProcessCDR(1,14136673,1,1,2) [2024-12-30 13:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 13:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 13:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136673', 'tblTempUsageDetail_20' ) start [2024-12-30 13:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136673', 'tblTempUsageDetail_20' ) end [2024-12-30 13:59:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 13:59:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 13:59:30] Production.INFO: ==30266== Releasing lock... [2024-12-30 13:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 13:59:30] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:00:05 [end_date_ymd] => 2024-12-30 14:00:05 [RateCDR] => 1 ) [2024-12-30 14: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-30 11:00:05' and `end` < '2024-12-30 14: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-30 14:00:19] Production.INFO: count ==4018 [2024-12-30 14:00:20] Production.ERROR: pbx CDR StartTime 2024-12-30 11:00:05 - End Time 2024-12-30 14:00:05 [2024-12-30 14:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136678', 'tblTempUsageDetail_20' ) start [2024-12-30 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136678', 'tblTempUsageDetail_20' ) end [2024-12-30 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136678', 'tblTempVendorCDR_20' ) start [2024-12-30 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136678', 'tblTempVendorCDR_20' ) end [2024-12-30 14:00:20] Production.INFO: ProcessCDR(1,14136678,1,1,2) [2024-12-30 14:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136678', 'tblTempUsageDetail_20' ) start [2024-12-30 14:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136678', 'tblTempUsageDetail_20' ) end [2024-12-30 14:00:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:00:25] Production.INFO: ==30337== Releasing lock... [2024-12-30 14:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:00:25] Production.INFO: 58 MB #Memory Used# [2024-12-30 14:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:01:04 [end_date_ymd] => 2024-12-30 14:01:04 [RateCDR] => 1 ) [2024-12-30 14: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-30 11:01:04' and `end` < '2024-12-30 14: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-30 14:01:32] Production.INFO: count ==4076 [2024-12-30 14:01:33] Production.ERROR: pbx CDR StartTime 2024-12-30 11:01:04 - End Time 2024-12-30 14:01:04 [2024-12-30 14:01:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136684', 'tblTempUsageDetail_20' ) start [2024-12-30 14:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136684', 'tblTempUsageDetail_20' ) end [2024-12-30 14:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136684', 'tblTempVendorCDR_20' ) start [2024-12-30 14:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136684', 'tblTempVendorCDR_20' ) end [2024-12-30 14:01:33] Production.INFO: ProcessCDR(1,14136684,1,1,2) [2024-12-30 14:01:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:01:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:01:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:01:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:01:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136684', 'tblTempUsageDetail_20' ) start [2024-12-30 14:01:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136684', 'tblTempUsageDetail_20' ) end [2024-12-30 14:01:38] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:01:38] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:01:38] Production.INFO: ==30422== Releasing lock... [2024-12-30 14:01:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:01:38] Production.INFO: 58.75 MB #Memory Used# [2024-12-30 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:02:05 [end_date_ymd] => 2024-12-30 14:02:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:02:05' and `end` < '2024-12-30 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-30 14:02:27] Production.INFO: count ==4068 [2024-12-30 14:02:29] Production.ERROR: pbx CDR StartTime 2024-12-30 11:02:05 - End Time 2024-12-30 14:02:05 [2024-12-30 14:02:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136689', 'tblTempUsageDetail_20' ) start [2024-12-30 14:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136689', 'tblTempUsageDetail_20' ) end [2024-12-30 14:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136689', 'tblTempVendorCDR_20' ) start [2024-12-30 14:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136689', 'tblTempVendorCDR_20' ) end [2024-12-30 14:02:29] Production.INFO: ProcessCDR(1,14136689,1,1,2) [2024-12-30 14:02:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136689', 'tblTempUsageDetail_20' ) start [2024-12-30 14:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136689', 'tblTempUsageDetail_20' ) end [2024-12-30 14:02:33] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:02:33] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:02:33] Production.INFO: ==30497== Releasing lock... [2024-12-30 14:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:02:33] Production.INFO: 58.5 MB #Memory Used# [2024-12-30 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:03:05 [end_date_ymd] => 2024-12-30 14:03:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:03:05' and `end` < '2024-12-30 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-30 14:03:28] Production.INFO: count ==4073 [2024-12-30 14:03:31] Production.ERROR: pbx CDR StartTime 2024-12-30 11:03:05 - End Time 2024-12-30 14:03:05 [2024-12-30 14:03:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136694', 'tblTempUsageDetail_20' ) start [2024-12-30 14:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136694', 'tblTempUsageDetail_20' ) end [2024-12-30 14:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136694', 'tblTempVendorCDR_20' ) start [2024-12-30 14:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136694', 'tblTempVendorCDR_20' ) end [2024-12-30 14:03:31] Production.INFO: ProcessCDR(1,14136694,1,1,2) [2024-12-30 14:03:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:03:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:03:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:03:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:03:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136694', 'tblTempUsageDetail_20' ) start [2024-12-30 14:03:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136694', 'tblTempUsageDetail_20' ) end [2024-12-30 14:03:36] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:03:36] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:03:36] Production.INFO: ==30569== Releasing lock... [2024-12-30 14:03:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:03:36] Production.INFO: 58.5 MB #Memory Used# [2024-12-30 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:04:05 [end_date_ymd] => 2024-12-30 14:04:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:04:05' and `end` < '2024-12-30 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-30 14:04:33] Production.INFO: count ==4118 [2024-12-30 14:04:35] Production.ERROR: pbx CDR StartTime 2024-12-30 11:04:05 - End Time 2024-12-30 14:04:05 [2024-12-30 14:04:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136699', 'tblTempUsageDetail_20' ) start [2024-12-30 14:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136699', 'tblTempUsageDetail_20' ) end [2024-12-30 14:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136699', 'tblTempVendorCDR_20' ) start [2024-12-30 14:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136699', 'tblTempVendorCDR_20' ) end [2024-12-30 14:04:35] Production.INFO: ProcessCDR(1,14136699,1,1,2) [2024-12-30 14:04:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:04:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:04:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:04:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136699', 'tblTempUsageDetail_20' ) start [2024-12-30 14:04:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136699', 'tblTempUsageDetail_20' ) end [2024-12-30 14:04:40] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:04:40] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:04:40] Production.INFO: ==30641== Releasing lock... [2024-12-30 14:04:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:04:40] Production.INFO: 58.75 MB #Memory Used# [2024-12-30 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:05:05 [end_date_ymd] => 2024-12-30 14:05:05 [RateCDR] => 1 ) [2024-12-30 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 11:05:05' and `end` < '2024-12-30 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 14:05:29] Production.INFO: count ==4129 [2024-12-30 14:05:31] Production.ERROR: pbx CDR StartTime 2024-12-30 11:05:05 - End Time 2024-12-30 14:05:05 [2024-12-30 14:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136704', 'tblTempUsageDetail_20' ) start [2024-12-30 14:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136704', 'tblTempUsageDetail_20' ) end [2024-12-30 14:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136704', 'tblTempVendorCDR_20' ) start [2024-12-30 14:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136704', 'tblTempVendorCDR_20' ) end [2024-12-30 14:05:31] Production.INFO: ProcessCDR(1,14136704,1,1,2) [2024-12-30 14:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136704', 'tblTempUsageDetail_20' ) start [2024-12-30 14:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136704', 'tblTempUsageDetail_20' ) end [2024-12-30 14:05:35] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:05:35] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:05:35] Production.INFO: ==30712== Releasing lock... [2024-12-30 14:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:05:35] Production.INFO: 59 MB #Memory Used# [2024-12-30 14:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:06:04 [end_date_ymd] => 2024-12-30 14:06:04 [RateCDR] => 1 ) [2024-12-30 14: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-30 11:06:04' and `end` < '2024-12-30 14: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-30 14:06:25] Production.INFO: count ==4142 [2024-12-30 14:06:26] Production.ERROR: pbx CDR StartTime 2024-12-30 11:06:04 - End Time 2024-12-30 14:06:04 [2024-12-30 14:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136709', 'tblTempUsageDetail_20' ) start [2024-12-30 14:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136709', 'tblTempUsageDetail_20' ) end [2024-12-30 14:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136709', 'tblTempVendorCDR_20' ) start [2024-12-30 14:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136709', 'tblTempVendorCDR_20' ) end [2024-12-30 14:06:27] Production.INFO: ProcessCDR(1,14136709,1,1,2) [2024-12-30 14:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136709', 'tblTempUsageDetail_20' ) start [2024-12-30 14:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136709', 'tblTempUsageDetail_20' ) end [2024-12-30 14:06:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:06:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:06:31] Production.INFO: ==30829== Releasing lock... [2024-12-30 14:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:06:31] Production.INFO: 59 MB #Memory Used# [2024-12-30 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:07:05 [end_date_ymd] => 2024-12-30 14:07:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:07:05' and `end` < '2024-12-30 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-30 14:07:29] Production.INFO: count ==4146 [2024-12-30 14:07:30] Production.ERROR: pbx CDR StartTime 2024-12-30 11:07:05 - End Time 2024-12-30 14:07:05 [2024-12-30 14:07:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136714', 'tblTempUsageDetail_20' ) start [2024-12-30 14:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136714', 'tblTempUsageDetail_20' ) end [2024-12-30 14:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136714', 'tblTempVendorCDR_20' ) start [2024-12-30 14:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136714', 'tblTempVendorCDR_20' ) end [2024-12-30 14:07:30] Production.INFO: ProcessCDR(1,14136714,1,1,2) [2024-12-30 14:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:07:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:07:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:07:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136714', 'tblTempUsageDetail_20' ) start [2024-12-30 14:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136714', 'tblTempUsageDetail_20' ) end [2024-12-30 14:07:35] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:07:35] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:07:35] Production.INFO: ==30903== Releasing lock... [2024-12-30 14:07:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:07:35] Production.INFO: 59 MB #Memory Used# [2024-12-30 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:08:05 [end_date_ymd] => 2024-12-30 14:08:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:08:05' and `end` < '2024-12-30 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-30 14:08:26] Production.INFO: count ==4173 [2024-12-30 14:08:27] Production.ERROR: pbx CDR StartTime 2024-12-30 11:08:05 - End Time 2024-12-30 14:08:05 [2024-12-30 14:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136719', 'tblTempUsageDetail_20' ) start [2024-12-30 14:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136719', 'tblTempUsageDetail_20' ) end [2024-12-30 14:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136719', 'tblTempVendorCDR_20' ) start [2024-12-30 14:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136719', 'tblTempVendorCDR_20' ) end [2024-12-30 14:08:27] Production.INFO: ProcessCDR(1,14136719,1,1,2) [2024-12-30 14:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136719', 'tblTempUsageDetail_20' ) start [2024-12-30 14:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136719', 'tblTempUsageDetail_20' ) end [2024-12-30 14:08:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:08:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:08:32] Production.INFO: ==30977== Releasing lock... [2024-12-30 14:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:08:32] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:09:05 [end_date_ymd] => 2024-12-30 14:09:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:09:05' and `end` < '2024-12-30 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-30 14:09:25] Production.INFO: count ==4174 [2024-12-30 14:09:26] Production.ERROR: pbx CDR StartTime 2024-12-30 11:09:05 - End Time 2024-12-30 14:09:05 [2024-12-30 14:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136724', 'tblTempUsageDetail_20' ) start [2024-12-30 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136724', 'tblTempUsageDetail_20' ) end [2024-12-30 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136724', 'tblTempVendorCDR_20' ) start [2024-12-30 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136724', 'tblTempVendorCDR_20' ) end [2024-12-30 14:09:26] Production.INFO: ProcessCDR(1,14136724,1,1,2) [2024-12-30 14:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136724', 'tblTempUsageDetail_20' ) start [2024-12-30 14:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136724', 'tblTempUsageDetail_20' ) end [2024-12-30 14:09:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:09:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:09:31] Production.INFO: ==31048== Releasing lock... [2024-12-30 14:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:09:31] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:10:06 [end_date_ymd] => 2024-12-30 14:10:06 [RateCDR] => 1 ) [2024-12-30 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-30 11:10:06' and `end` < '2024-12-30 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-30 14:10:26] Production.INFO: count ==4187 [2024-12-30 14:10:28] Production.ERROR: pbx CDR StartTime 2024-12-30 11:10:06 - End Time 2024-12-30 14:10:06 [2024-12-30 14:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136729', 'tblTempUsageDetail_20' ) start [2024-12-30 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136729', 'tblTempUsageDetail_20' ) end [2024-12-30 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136729', 'tblTempVendorCDR_20' ) start [2024-12-30 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136729', 'tblTempVendorCDR_20' ) end [2024-12-30 14:10:28] Production.INFO: ProcessCDR(1,14136729,1,1,2) [2024-12-30 14:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136729', 'tblTempUsageDetail_20' ) start [2024-12-30 14:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136729', 'tblTempUsageDetail_20' ) end [2024-12-30 14:10:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:10:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:10:32] Production.INFO: ==31123== Releasing lock... [2024-12-30 14:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:10:32] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 14:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:11:04 [end_date_ymd] => 2024-12-30 14:11:04 [RateCDR] => 1 ) [2024-12-30 14:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 11:11:04' and `end` < '2024-12-30 14:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 14:11:32] Production.INFO: count ==4205 [2024-12-30 14:11:34] Production.ERROR: pbx CDR StartTime 2024-12-30 11:11:04 - End Time 2024-12-30 14:11:04 [2024-12-30 14:11:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136735', 'tblTempUsageDetail_20' ) start [2024-12-30 14:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136735', 'tblTempUsageDetail_20' ) end [2024-12-30 14:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136735', 'tblTempVendorCDR_20' ) start [2024-12-30 14:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136735', 'tblTempVendorCDR_20' ) end [2024-12-30 14:11:34] Production.INFO: ProcessCDR(1,14136735,1,1,2) [2024-12-30 14:11:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:11:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:11:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:11:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:11:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136735', 'tblTempUsageDetail_20' ) start [2024-12-30 14:11:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136735', 'tblTempUsageDetail_20' ) end [2024-12-30 14:11:39] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:11:39] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:11:39] Production.INFO: ==31195== Releasing lock... [2024-12-30 14:11:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:11:39] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:12:05 [end_date_ymd] => 2024-12-30 14:12:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:12:05' and `end` < '2024-12-30 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-30 14:12:23] Production.INFO: count ==4223 [2024-12-30 14:12:25] Production.ERROR: pbx CDR StartTime 2024-12-30 11:12:05 - End Time 2024-12-30 14:12:05 [2024-12-30 14:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136740', 'tblTempUsageDetail_20' ) start [2024-12-30 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136740', 'tblTempUsageDetail_20' ) end [2024-12-30 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136740', 'tblTempVendorCDR_20' ) start [2024-12-30 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136740', 'tblTempVendorCDR_20' ) end [2024-12-30 14:12:25] Production.INFO: ProcessCDR(1,14136740,1,1,2) [2024-12-30 14:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136740', 'tblTempUsageDetail_20' ) start [2024-12-30 14:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136740', 'tblTempUsageDetail_20' ) end [2024-12-30 14:12:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:12:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:12:30] Production.INFO: ==31268== Releasing lock... [2024-12-30 14:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:12:30] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 14:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:13:04 [end_date_ymd] => 2024-12-30 14:13:04 [RateCDR] => 1 ) [2024-12-30 14: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-30 11:13:04' and `end` < '2024-12-30 14: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-30 14:13:18] Production.INFO: count ==4229 [2024-12-30 14:13:19] Production.ERROR: pbx CDR StartTime 2024-12-30 11:13:04 - End Time 2024-12-30 14:13:04 [2024-12-30 14:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136745', 'tblTempUsageDetail_20' ) start [2024-12-30 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136745', 'tblTempUsageDetail_20' ) end [2024-12-30 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136745', 'tblTempVendorCDR_20' ) start [2024-12-30 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136745', 'tblTempVendorCDR_20' ) end [2024-12-30 14:13:20] Production.INFO: ProcessCDR(1,14136745,1,1,2) [2024-12-30 14:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136745', 'tblTempUsageDetail_20' ) start [2024-12-30 14:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136745', 'tblTempUsageDetail_20' ) end [2024-12-30 14:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:13:24] Production.INFO: ==31344== Releasing lock... [2024-12-30 14:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:13:24] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 14:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:14:04 [end_date_ymd] => 2024-12-30 14:14:04 [RateCDR] => 1 ) [2024-12-30 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-30 11:14:04' and `end` < '2024-12-30 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-30 14:14:22] Production.INFO: count ==4254 [2024-12-30 14:14:23] Production.ERROR: pbx CDR StartTime 2024-12-30 11:14:04 - End Time 2024-12-30 14:14:04 [2024-12-30 14:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136750', 'tblTempUsageDetail_20' ) start [2024-12-30 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136750', 'tblTempUsageDetail_20' ) end [2024-12-30 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136750', 'tblTempVendorCDR_20' ) start [2024-12-30 14:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136750', 'tblTempVendorCDR_20' ) end [2024-12-30 14:14:23] Production.INFO: ProcessCDR(1,14136750,1,1,2) [2024-12-30 14:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136750', 'tblTempUsageDetail_20' ) start [2024-12-30 14:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136750', 'tblTempUsageDetail_20' ) end [2024-12-30 14:14:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:14:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:14:28] Production.INFO: ==31415== Releasing lock... [2024-12-30 14:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:14:28] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:15:05 [end_date_ymd] => 2024-12-30 14:15:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:15:05' and `end` < '2024-12-30 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-30 14:15:18] Production.INFO: count ==4240 [2024-12-30 14:15:20] Production.ERROR: pbx CDR StartTime 2024-12-30 11:15:05 - End Time 2024-12-30 14:15:05 [2024-12-30 14:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136755', 'tblTempUsageDetail_20' ) start [2024-12-30 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136755', 'tblTempUsageDetail_20' ) end [2024-12-30 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136755', 'tblTempVendorCDR_20' ) start [2024-12-30 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136755', 'tblTempVendorCDR_20' ) end [2024-12-30 14:15:20] Production.INFO: ProcessCDR(1,14136755,1,1,2) [2024-12-30 14:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136755', 'tblTempUsageDetail_20' ) start [2024-12-30 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136755', 'tblTempUsageDetail_20' ) end [2024-12-30 14:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:15:23] Production.INFO: ==31485== Releasing lock... [2024-12-30 14:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:15:23] Production.INFO: 60 MB #Memory Used# [2024-12-30 14:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:16:04 [end_date_ymd] => 2024-12-30 14:16:04 [RateCDR] => 1 ) [2024-12-30 14: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-30 11:16:04' and `end` < '2024-12-30 14: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-30 14:16:18] Production.INFO: count ==4235 [2024-12-30 14:16:19] Production.ERROR: pbx CDR StartTime 2024-12-30 11:16:04 - End Time 2024-12-30 14:16:04 [2024-12-30 14:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136760', 'tblTempUsageDetail_20' ) start [2024-12-30 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136760', 'tblTempUsageDetail_20' ) end [2024-12-30 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136760', 'tblTempVendorCDR_20' ) start [2024-12-30 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136760', 'tblTempVendorCDR_20' ) end [2024-12-30 14:16:20] Production.INFO: ProcessCDR(1,14136760,1,1,2) [2024-12-30 14:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136760', 'tblTempUsageDetail_20' ) start [2024-12-30 14:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136760', 'tblTempUsageDetail_20' ) end [2024-12-30 14:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:16:24] Production.INFO: ==31562== Releasing lock... [2024-12-30 14:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:16:24] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:17:05 [end_date_ymd] => 2024-12-30 14:17:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:17:05' and `end` < '2024-12-30 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-30 14:17:19] Production.INFO: count ==4236 [2024-12-30 14:17:21] Production.ERROR: pbx CDR StartTime 2024-12-30 11:17:05 - End Time 2024-12-30 14:17:05 [2024-12-30 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136765', 'tblTempUsageDetail_20' ) start [2024-12-30 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136765', 'tblTempUsageDetail_20' ) end [2024-12-30 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136765', 'tblTempVendorCDR_20' ) start [2024-12-30 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136765', 'tblTempVendorCDR_20' ) end [2024-12-30 14:17:21] Production.INFO: ProcessCDR(1,14136765,1,1,2) [2024-12-30 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136765', 'tblTempUsageDetail_20' ) start [2024-12-30 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136765', 'tblTempUsageDetail_20' ) end [2024-12-30 14:17:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:17:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:17:26] Production.INFO: ==31632== Releasing lock... [2024-12-30 14:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:17:26] Production.INFO: 60 MB #Memory Used# [2024-12-30 14:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:18:04 [end_date_ymd] => 2024-12-30 14:18:04 [RateCDR] => 1 ) [2024-12-30 14: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-30 11:18:04' and `end` < '2024-12-30 14: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-30 14:18:18] Production.INFO: count ==4229 [2024-12-30 14:18:19] Production.ERROR: pbx CDR StartTime 2024-12-30 11:18:04 - End Time 2024-12-30 14:18:04 [2024-12-30 14:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136770', 'tblTempUsageDetail_20' ) start [2024-12-30 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136770', 'tblTempUsageDetail_20' ) end [2024-12-30 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136770', 'tblTempVendorCDR_20' ) start [2024-12-30 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136770', 'tblTempVendorCDR_20' ) end [2024-12-30 14:18:20] Production.INFO: ProcessCDR(1,14136770,1,1,2) [2024-12-30 14:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136770', 'tblTempUsageDetail_20' ) start [2024-12-30 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136770', 'tblTempUsageDetail_20' ) end [2024-12-30 14:18:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:18:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:18:24] Production.INFO: ==31707== Releasing lock... [2024-12-30 14:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:18:24] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:19:05 [end_date_ymd] => 2024-12-30 14:19:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:19:05' and `end` < '2024-12-30 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-30 14:19:20] Production.INFO: count ==4217 [2024-12-30 14:19:21] Production.ERROR: pbx CDR StartTime 2024-12-30 11:19:05 - End Time 2024-12-30 14:19:05 [2024-12-30 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136775', 'tblTempUsageDetail_20' ) start [2024-12-30 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136775', 'tblTempUsageDetail_20' ) end [2024-12-30 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136775', 'tblTempVendorCDR_20' ) start [2024-12-30 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136775', 'tblTempVendorCDR_20' ) end [2024-12-30 14:19:22] Production.INFO: ProcessCDR(1,14136775,1,1,2) [2024-12-30 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136775', 'tblTempUsageDetail_20' ) start [2024-12-30 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136775', 'tblTempUsageDetail_20' ) end [2024-12-30 14:19:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:19:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:19:26] Production.INFO: ==31779== Releasing lock... [2024-12-30 14:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:19:26] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:20:05 [end_date_ymd] => 2024-12-30 14:20:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:20:05' and `end` < '2024-12-30 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-30 14:20:22] Production.INFO: count ==4212 [2024-12-30 14:20:23] Production.ERROR: pbx CDR StartTime 2024-12-30 11:20:05 - End Time 2024-12-30 14:20:05 [2024-12-30 14:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136781', 'tblTempUsageDetail_20' ) start [2024-12-30 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136781', 'tblTempUsageDetail_20' ) end [2024-12-30 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136781', 'tblTempVendorCDR_20' ) start [2024-12-30 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136781', 'tblTempVendorCDR_20' ) end [2024-12-30 14:20:23] Production.INFO: ProcessCDR(1,14136781,1,1,2) [2024-12-30 14:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136781', 'tblTempUsageDetail_20' ) start [2024-12-30 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136781', 'tblTempUsageDetail_20' ) end [2024-12-30 14:20:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:20:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:20:27] Production.INFO: ==31855== Releasing lock... [2024-12-30 14:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:20:27] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:21:05 [end_date_ymd] => 2024-12-30 14:21:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:21:05' and `end` < '2024-12-30 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-30 14:21:19] Production.INFO: count ==4193 [2024-12-30 14:21:21] Production.ERROR: pbx CDR StartTime 2024-12-30 11:21:05 - End Time 2024-12-30 14:21:05 [2024-12-30 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136786', 'tblTempUsageDetail_20' ) start [2024-12-30 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136786', 'tblTempUsageDetail_20' ) end [2024-12-30 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136786', 'tblTempVendorCDR_20' ) start [2024-12-30 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136786', 'tblTempVendorCDR_20' ) end [2024-12-30 14:21:21] Production.INFO: ProcessCDR(1,14136786,1,1,2) [2024-12-30 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136786', 'tblTempUsageDetail_20' ) start [2024-12-30 14:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136786', 'tblTempUsageDetail_20' ) end [2024-12-30 14:21:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:21:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:21:25] Production.INFO: ==31936== Releasing lock... [2024-12-30 14:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:21:25] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:22:05 [end_date_ymd] => 2024-12-30 14:22:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:22:05' and `end` < '2024-12-30 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-30 14:22:18] Production.INFO: count ==4165 [2024-12-30 14:22:20] Production.ERROR: pbx CDR StartTime 2024-12-30 11:22:05 - End Time 2024-12-30 14:22:05 [2024-12-30 14:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136791', 'tblTempUsageDetail_20' ) start [2024-12-30 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136791', 'tblTempUsageDetail_20' ) end [2024-12-30 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136791', 'tblTempVendorCDR_20' ) start [2024-12-30 14:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136791', 'tblTempVendorCDR_20' ) end [2024-12-30 14:22:20] Production.INFO: ProcessCDR(1,14136791,1,1,2) [2024-12-30 14:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136791', 'tblTempUsageDetail_20' ) start [2024-12-30 14:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136791', 'tblTempUsageDetail_20' ) end [2024-12-30 14:22:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:22:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:22:25] Production.INFO: ==32048== Releasing lock... [2024-12-30 14:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:22:25] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:23:05 [end_date_ymd] => 2024-12-30 14:23:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:23:05' and `end` < '2024-12-30 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-30 14:23:25] Production.INFO: count ==4159 [2024-12-30 14:23:26] Production.ERROR: pbx CDR StartTime 2024-12-30 11:23:05 - End Time 2024-12-30 14:23:05 [2024-12-30 14:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136796', 'tblTempUsageDetail_20' ) start [2024-12-30 14:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136796', 'tblTempUsageDetail_20' ) end [2024-12-30 14:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136796', 'tblTempVendorCDR_20' ) start [2024-12-30 14:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136796', 'tblTempVendorCDR_20' ) end [2024-12-30 14:23:26] Production.INFO: ProcessCDR(1,14136796,1,1,2) [2024-12-30 14:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136796', 'tblTempUsageDetail_20' ) start [2024-12-30 14:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136796', 'tblTempUsageDetail_20' ) end [2024-12-30 14:23:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:23:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:23:31] Production.INFO: ==32120== Releasing lock... [2024-12-30 14:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:23:31] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:24:05 [end_date_ymd] => 2024-12-30 14:24:05 [RateCDR] => 1 ) [2024-12-30 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 11:24:05' and `end` < '2024-12-30 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 14:24:29] Production.INFO: count ==4171 [2024-12-30 14:24:30] Production.ERROR: pbx CDR StartTime 2024-12-30 11:24:05 - End Time 2024-12-30 14:24:05 [2024-12-30 14:24:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136801', 'tblTempUsageDetail_20' ) start [2024-12-30 14:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136801', 'tblTempUsageDetail_20' ) end [2024-12-30 14:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136801', 'tblTempVendorCDR_20' ) start [2024-12-30 14:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136801', 'tblTempVendorCDR_20' ) end [2024-12-30 14:24:30] Production.INFO: ProcessCDR(1,14136801,1,1,2) [2024-12-30 14:24:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:24:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:24:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:24:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136801', 'tblTempUsageDetail_20' ) start [2024-12-30 14:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136801', 'tblTempUsageDetail_20' ) end [2024-12-30 14:24:35] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:24:35] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:24:35] Production.INFO: ==32192== Releasing lock... [2024-12-30 14:24:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:24:35] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 14:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:25:04 [end_date_ymd] => 2024-12-30 14:25:04 [RateCDR] => 1 ) [2024-12-30 14: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-30 11:25:04' and `end` < '2024-12-30 14: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-30 14:25:22] Production.INFO: count ==4173 [2024-12-30 14:25:23] Production.ERROR: pbx CDR StartTime 2024-12-30 11:25:04 - End Time 2024-12-30 14:25:04 [2024-12-30 14:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136806', 'tblTempUsageDetail_20' ) start [2024-12-30 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136806', 'tblTempUsageDetail_20' ) end [2024-12-30 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136806', 'tblTempVendorCDR_20' ) start [2024-12-30 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136806', 'tblTempVendorCDR_20' ) end [2024-12-30 14:25:24] Production.INFO: ProcessCDR(1,14136806,1,1,2) [2024-12-30 14:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136806', 'tblTempUsageDetail_20' ) start [2024-12-30 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136806', 'tblTempUsageDetail_20' ) end [2024-12-30 14:25:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:25:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:25:28] Production.INFO: ==32262== Releasing lock... [2024-12-30 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:25:28] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:26:05 [end_date_ymd] => 2024-12-30 14:26:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:26:05' and `end` < '2024-12-30 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-30 14:26:19] Production.INFO: count ==4158 [2024-12-30 14:26:20] Production.ERROR: pbx CDR StartTime 2024-12-30 11:26:05 - End Time 2024-12-30 14:26:05 [2024-12-30 14:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136811', 'tblTempUsageDetail_20' ) start [2024-12-30 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136811', 'tblTempUsageDetail_20' ) end [2024-12-30 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136811', 'tblTempVendorCDR_20' ) start [2024-12-30 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136811', 'tblTempVendorCDR_20' ) end [2024-12-30 14:26:20] Production.INFO: ProcessCDR(1,14136811,1,1,2) [2024-12-30 14:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136811', 'tblTempUsageDetail_20' ) start [2024-12-30 14:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136811', 'tblTempUsageDetail_20' ) end [2024-12-30 14:26:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:26:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:26:24] Production.INFO: ==32338== Releasing lock... [2024-12-30 14:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:26:24] Production.INFO: 59 MB #Memory Used# [2024-12-30 14:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:27:04 [end_date_ymd] => 2024-12-30 14:27:04 [RateCDR] => 1 ) [2024-12-30 14: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-30 11:27:04' and `end` < '2024-12-30 14: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-30 14:27:20] Production.INFO: count ==4164 [2024-12-30 14:27:21] Production.ERROR: pbx CDR StartTime 2024-12-30 11:27:04 - End Time 2024-12-30 14:27:04 [2024-12-30 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136816', 'tblTempUsageDetail_20' ) start [2024-12-30 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136816', 'tblTempUsageDetail_20' ) end [2024-12-30 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136816', 'tblTempVendorCDR_20' ) start [2024-12-30 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136816', 'tblTempVendorCDR_20' ) end [2024-12-30 14:27:21] Production.INFO: ProcessCDR(1,14136816,1,1,2) [2024-12-30 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136816', 'tblTempUsageDetail_20' ) start [2024-12-30 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136816', 'tblTempUsageDetail_20' ) end [2024-12-30 14:27:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:27:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:27:26] Production.INFO: ==32410== Releasing lock... [2024-12-30 14:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:27:26] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:28:05 [end_date_ymd] => 2024-12-30 14:28:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:28:05' and `end` < '2024-12-30 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-30 14:28:22] Production.INFO: count ==4170 [2024-12-30 14:28:24] Production.ERROR: pbx CDR StartTime 2024-12-30 11:28:05 - End Time 2024-12-30 14:28:05 [2024-12-30 14:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136821', 'tblTempUsageDetail_20' ) start [2024-12-30 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136821', 'tblTempUsageDetail_20' ) end [2024-12-30 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136821', 'tblTempVendorCDR_20' ) start [2024-12-30 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136821', 'tblTempVendorCDR_20' ) end [2024-12-30 14:28:24] Production.INFO: ProcessCDR(1,14136821,1,1,2) [2024-12-30 14:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136821', 'tblTempUsageDetail_20' ) start [2024-12-30 14:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136821', 'tblTempUsageDetail_20' ) end [2024-12-30 14:28:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:28:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:28:29] Production.INFO: ==32486== Releasing lock... [2024-12-30 14:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:28:29] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:29:05 [end_date_ymd] => 2024-12-30 14:29:05 [RateCDR] => 1 ) [2024-12-30 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 11:29:05' and `end` < '2024-12-30 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 14:29:20] Production.INFO: count ==4173 [2024-12-30 14:29:22] Production.ERROR: pbx CDR StartTime 2024-12-30 11:29:05 - End Time 2024-12-30 14:29:05 [2024-12-30 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136826', 'tblTempUsageDetail_20' ) start [2024-12-30 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136826', 'tblTempUsageDetail_20' ) end [2024-12-30 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136826', 'tblTempVendorCDR_20' ) start [2024-12-30 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136826', 'tblTempVendorCDR_20' ) end [2024-12-30 14:29:22] Production.INFO: ProcessCDR(1,14136826,1,1,2) [2024-12-30 14:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136826', 'tblTempUsageDetail_20' ) start [2024-12-30 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136826', 'tblTempUsageDetail_20' ) end [2024-12-30 14:29:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:29:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:29:26] Production.INFO: ==32564== Releasing lock... [2024-12-30 14:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:29:26] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:30:05 [end_date_ymd] => 2024-12-30 14:30:05 [RateCDR] => 1 ) [2024-12-30 14: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-30 11:30:05' and `end` < '2024-12-30 14: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-30 14:30:22] Production.INFO: count ==4185 [2024-12-30 14:30:24] Production.ERROR: pbx CDR StartTime 2024-12-30 11:30:05 - End Time 2024-12-30 14:30:05 [2024-12-30 14:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136831', 'tblTempUsageDetail_20' ) start [2024-12-30 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136831', 'tblTempUsageDetail_20' ) end [2024-12-30 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136831', 'tblTempVendorCDR_20' ) start [2024-12-30 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136831', 'tblTempVendorCDR_20' ) end [2024-12-30 14:30:24] Production.INFO: ProcessCDR(1,14136831,1,1,2) [2024-12-30 14:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136831', 'tblTempUsageDetail_20' ) start [2024-12-30 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136831', 'tblTempUsageDetail_20' ) end [2024-12-30 14:30:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:30:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:30:29] Production.INFO: ==32641== Releasing lock... [2024-12-30 14:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:30:29] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:31:05 [end_date_ymd] => 2024-12-30 14:31:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:31:05' and `end` < '2024-12-30 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-30 14:31:23] Production.INFO: count ==4238 [2024-12-30 14:31:25] Production.ERROR: pbx CDR StartTime 2024-12-30 11:31:05 - End Time 2024-12-30 14:31:05 [2024-12-30 14:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136837', 'tblTempUsageDetail_20' ) start [2024-12-30 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136837', 'tblTempUsageDetail_20' ) end [2024-12-30 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136837', 'tblTempVendorCDR_20' ) start [2024-12-30 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136837', 'tblTempVendorCDR_20' ) end [2024-12-30 14:31:25] Production.INFO: ProcessCDR(1,14136837,1,1,2) [2024-12-30 14:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136837', 'tblTempUsageDetail_20' ) start [2024-12-30 14:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136837', 'tblTempUsageDetail_20' ) end [2024-12-30 14:31:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:31:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:31:30] Production.INFO: ==32717== Releasing lock... [2024-12-30 14:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:31:30] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:32:05 [end_date_ymd] => 2024-12-30 14:32:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:32:05' and `end` < '2024-12-30 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-30 14:32:18] Production.INFO: count ==4226 [2024-12-30 14:32:20] Production.ERROR: pbx CDR StartTime 2024-12-30 11:32:05 - End Time 2024-12-30 14:32:05 [2024-12-30 14:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136842', 'tblTempUsageDetail_20' ) start [2024-12-30 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136842', 'tblTempUsageDetail_20' ) end [2024-12-30 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136842', 'tblTempVendorCDR_20' ) start [2024-12-30 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136842', 'tblTempVendorCDR_20' ) end [2024-12-30 14:32:20] Production.INFO: ProcessCDR(1,14136842,1,1,2) [2024-12-30 14:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136842', 'tblTempUsageDetail_20' ) start [2024-12-30 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136842', 'tblTempUsageDetail_20' ) end [2024-12-30 14:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:32:23] Production.INFO: ==332== Releasing lock... [2024-12-30 14:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:32:23] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:33:05 [end_date_ymd] => 2024-12-30 14:33:05 [RateCDR] => 1 ) [2024-12-30 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 11:33:05' and `end` < '2024-12-30 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 14:33:24] Production.INFO: count ==4224 [2024-12-30 14:33:26] Production.ERROR: pbx CDR StartTime 2024-12-30 11:33:05 - End Time 2024-12-30 14:33:05 [2024-12-30 14:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136847', 'tblTempUsageDetail_20' ) start [2024-12-30 14:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136847', 'tblTempUsageDetail_20' ) end [2024-12-30 14:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136847', 'tblTempVendorCDR_20' ) start [2024-12-30 14:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136847', 'tblTempVendorCDR_20' ) end [2024-12-30 14:33:26] Production.INFO: ProcessCDR(1,14136847,1,1,2) [2024-12-30 14:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136847', 'tblTempUsageDetail_20' ) start [2024-12-30 14:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136847', 'tblTempUsageDetail_20' ) end [2024-12-30 14:33:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:33:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:33:31] Production.INFO: ==449== Releasing lock... [2024-12-30 14:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:33:31] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:34:05 [end_date_ymd] => 2024-12-30 14:34:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:34:05' and `end` < '2024-12-30 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-30 14:34:23] Production.INFO: count ==4250 [2024-12-30 14:34:24] Production.ERROR: pbx CDR StartTime 2024-12-30 11:34:05 - End Time 2024-12-30 14:34:05 [2024-12-30 14:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136852', 'tblTempUsageDetail_20' ) start [2024-12-30 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136852', 'tblTempUsageDetail_20' ) end [2024-12-30 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136852', 'tblTempVendorCDR_20' ) start [2024-12-30 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136852', 'tblTempVendorCDR_20' ) end [2024-12-30 14:34:24] Production.INFO: ProcessCDR(1,14136852,1,1,2) [2024-12-30 14:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136852', 'tblTempUsageDetail_20' ) start [2024-12-30 14:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136852', 'tblTempUsageDetail_20' ) end [2024-12-30 14:34:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:34:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:34:29] Production.INFO: ==575== Releasing lock... [2024-12-30 14:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:34:29] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:35:05 [end_date_ymd] => 2024-12-30 14:35:05 [RateCDR] => 1 ) [2024-12-30 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 11:35:05' and `end` < '2024-12-30 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 14:35:29] Production.INFO: count ==4238 [2024-12-30 14:35:30] Production.ERROR: pbx CDR StartTime 2024-12-30 11:35:05 - End Time 2024-12-30 14:35:05 [2024-12-30 14:35:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136857', 'tblTempUsageDetail_20' ) start [2024-12-30 14:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136857', 'tblTempUsageDetail_20' ) end [2024-12-30 14:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136857', 'tblTempVendorCDR_20' ) start [2024-12-30 14:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136857', 'tblTempVendorCDR_20' ) end [2024-12-30 14:35:30] Production.INFO: ProcessCDR(1,14136857,1,1,2) [2024-12-30 14:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:35:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:35:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:35:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136857', 'tblTempUsageDetail_20' ) start [2024-12-30 14:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136857', 'tblTempUsageDetail_20' ) end [2024-12-30 14:35:35] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:35:35] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:35:35] Production.INFO: ==734== Releasing lock... [2024-12-30 14:35:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:35:35] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:36:05 [end_date_ymd] => 2024-12-30 14:36:05 [RateCDR] => 1 ) [2024-12-30 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 11:36:05' and `end` < '2024-12-30 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 14:36:28] Production.INFO: count ==4245 [2024-12-30 14:36:29] Production.ERROR: pbx CDR StartTime 2024-12-30 11:36:05 - End Time 2024-12-30 14:36:05 [2024-12-30 14:36:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136862', 'tblTempUsageDetail_20' ) start [2024-12-30 14:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136862', 'tblTempUsageDetail_20' ) end [2024-12-30 14:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136862', 'tblTempVendorCDR_20' ) start [2024-12-30 14:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136862', 'tblTempVendorCDR_20' ) end [2024-12-30 14:36:30] Production.INFO: ProcessCDR(1,14136862,1,1,2) [2024-12-30 14:36:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:36:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:36:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:36:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136862', 'tblTempUsageDetail_20' ) start [2024-12-30 14:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136862', 'tblTempUsageDetail_20' ) end [2024-12-30 14:36:34] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:36:34] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:36:34] Production.INFO: ==844== Releasing lock... [2024-12-30 14:36:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:36:34] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 14:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:37:04 [end_date_ymd] => 2024-12-30 14:37:04 [RateCDR] => 1 ) [2024-12-30 14: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-30 11:37:04' and `end` < '2024-12-30 14: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-30 14:37:26] Production.INFO: count ==4227 [2024-12-30 14:37:27] Production.ERROR: pbx CDR StartTime 2024-12-30 11:37:04 - End Time 2024-12-30 14:37:04 [2024-12-30 14:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136867', 'tblTempUsageDetail_20' ) start [2024-12-30 14:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136867', 'tblTempUsageDetail_20' ) end [2024-12-30 14:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136867', 'tblTempVendorCDR_20' ) start [2024-12-30 14:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136867', 'tblTempVendorCDR_20' ) end [2024-12-30 14:37:27] Production.INFO: ProcessCDR(1,14136867,1,1,2) [2024-12-30 14:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:37:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:37:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136867', 'tblTempUsageDetail_20' ) start [2024-12-30 14:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136867', 'tblTempUsageDetail_20' ) end [2024-12-30 14:37:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:37:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:37:32] Production.INFO: ==984== Releasing lock... [2024-12-30 14:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:37:32] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:38:05 [end_date_ymd] => 2024-12-30 14:38:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:38:05' and `end` < '2024-12-30 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-30 14:38:26] Production.INFO: count ==4223 [2024-12-30 14:38:27] Production.ERROR: pbx CDR StartTime 2024-12-30 11:38:05 - End Time 2024-12-30 14:38:05 [2024-12-30 14:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136872', 'tblTempUsageDetail_20' ) start [2024-12-30 14:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136872', 'tblTempUsageDetail_20' ) end [2024-12-30 14:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136872', 'tblTempVendorCDR_20' ) start [2024-12-30 14:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136872', 'tblTempVendorCDR_20' ) end [2024-12-30 14:38:27] Production.INFO: ProcessCDR(1,14136872,1,1,2) [2024-12-30 14:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136872', 'tblTempUsageDetail_20' ) start [2024-12-30 14:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136872', 'tblTempUsageDetail_20' ) end [2024-12-30 14:38:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:38:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:38:32] Production.INFO: ==1082== Releasing lock... [2024-12-30 14:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:38:32] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 14:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:39:04 [end_date_ymd] => 2024-12-30 14:39:04 [RateCDR] => 1 ) [2024-12-30 14: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-30 11:39:04' and `end` < '2024-12-30 14: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-30 14:39:24] Production.INFO: count ==4209 [2024-12-30 14:39:25] Production.ERROR: pbx CDR StartTime 2024-12-30 11:39:04 - End Time 2024-12-30 14:39:04 [2024-12-30 14:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136877', 'tblTempUsageDetail_20' ) start [2024-12-30 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136877', 'tblTempUsageDetail_20' ) end [2024-12-30 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136877', 'tblTempVendorCDR_20' ) start [2024-12-30 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136877', 'tblTempVendorCDR_20' ) end [2024-12-30 14:39:25] Production.INFO: ProcessCDR(1,14136877,1,1,2) [2024-12-30 14:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136877', 'tblTempUsageDetail_20' ) start [2024-12-30 14:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136877', 'tblTempUsageDetail_20' ) end [2024-12-30 14:39:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:39:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:39:30] Production.INFO: ==1190== Releasing lock... [2024-12-30 14:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:39:30] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:40:05 [end_date_ymd] => 2024-12-30 14:40:05 [RateCDR] => 1 ) [2024-12-30 14: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-30 11:40:05' and `end` < '2024-12-30 14: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-30 14:40:33] Production.INFO: count ==4221 [2024-12-30 14:40:34] Production.ERROR: pbx CDR StartTime 2024-12-30 11:40:05 - End Time 2024-12-30 14:40:05 [2024-12-30 14:40:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136882', 'tblTempUsageDetail_20' ) start [2024-12-30 14:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136882', 'tblTempUsageDetail_20' ) end [2024-12-30 14:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136882', 'tblTempVendorCDR_20' ) start [2024-12-30 14:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136882', 'tblTempVendorCDR_20' ) end [2024-12-30 14:40:34] Production.INFO: ProcessCDR(1,14136882,1,1,2) [2024-12-30 14:40:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:40:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:40:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:40:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:40:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136882', 'tblTempUsageDetail_20' ) start [2024-12-30 14:40:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136882', 'tblTempUsageDetail_20' ) end [2024-12-30 14:40:39] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:40:39] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:40:39] Production.INFO: ==1308== Releasing lock... [2024-12-30 14:40:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:40:39] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 14:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:41:04 [end_date_ymd] => 2024-12-30 14:41:04 [RateCDR] => 1 ) [2024-12-30 14: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-30 11:41:04' and `end` < '2024-12-30 14: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-30 14:41:33] Production.INFO: count ==4243 [2024-12-30 14:41:35] Production.ERROR: pbx CDR StartTime 2024-12-30 11:41:04 - End Time 2024-12-30 14:41:04 [2024-12-30 14:41:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:41:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136888', 'tblTempUsageDetail_20' ) start [2024-12-30 14:41:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136888', 'tblTempUsageDetail_20' ) end [2024-12-30 14:41:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136888', 'tblTempVendorCDR_20' ) start [2024-12-30 14:41:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136888', 'tblTempVendorCDR_20' ) end [2024-12-30 14:41:35] Production.INFO: ProcessCDR(1,14136888,1,1,2) [2024-12-30 14:41:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:41:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:41:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:41:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:41:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136888', 'tblTempUsageDetail_20' ) start [2024-12-30 14:41:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136888', 'tblTempUsageDetail_20' ) end [2024-12-30 14:41:40] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:41:40] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:41:40] Production.INFO: ==1413== Releasing lock... [2024-12-30 14:41:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:41:40] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:42:05 [end_date_ymd] => 2024-12-30 14:42:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:42:05' and `end` < '2024-12-30 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-30 14:42:28] Production.INFO: count ==4243 [2024-12-30 14:42:30] Production.ERROR: pbx CDR StartTime 2024-12-30 11:42:05 - End Time 2024-12-30 14:42:05 [2024-12-30 14:42:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136893', 'tblTempUsageDetail_20' ) start [2024-12-30 14:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136893', 'tblTempUsageDetail_20' ) end [2024-12-30 14:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136893', 'tblTempVendorCDR_20' ) start [2024-12-30 14:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136893', 'tblTempVendorCDR_20' ) end [2024-12-30 14:42:30] Production.INFO: ProcessCDR(1,14136893,1,1,2) [2024-12-30 14:42:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:42:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:42:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:42:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136893', 'tblTempUsageDetail_20' ) start [2024-12-30 14:42:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136893', 'tblTempUsageDetail_20' ) end [2024-12-30 14:42:35] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:42:35] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:42:35] Production.INFO: ==1549== Releasing lock... [2024-12-30 14:42:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:42:35] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:43:05 [end_date_ymd] => 2024-12-30 14:43:05 [RateCDR] => 1 ) [2024-12-30 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 11:43:05' and `end` < '2024-12-30 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 14:43:25] Production.INFO: count ==4253 [2024-12-30 14:43:27] Production.ERROR: pbx CDR StartTime 2024-12-30 11:43:05 - End Time 2024-12-30 14:43:05 [2024-12-30 14:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136898', 'tblTempUsageDetail_20' ) start [2024-12-30 14:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136898', 'tblTempUsageDetail_20' ) end [2024-12-30 14:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136898', 'tblTempVendorCDR_20' ) start [2024-12-30 14:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136898', 'tblTempVendorCDR_20' ) end [2024-12-30 14:43:27] Production.INFO: ProcessCDR(1,14136898,1,1,2) [2024-12-30 14:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136898', 'tblTempUsageDetail_20' ) start [2024-12-30 14:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136898', 'tblTempUsageDetail_20' ) end [2024-12-30 14:43:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:43:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:43:31] Production.INFO: ==1654== Releasing lock... [2024-12-30 14:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:43:31] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 14:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:44:04 [end_date_ymd] => 2024-12-30 14:44:04 [RateCDR] => 1 ) [2024-12-30 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-30 11:44:04' and `end` < '2024-12-30 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-30 14:44:23] Production.INFO: count ==4266 [2024-12-30 14:44:24] Production.ERROR: pbx CDR StartTime 2024-12-30 11:44:04 - End Time 2024-12-30 14:44:04 [2024-12-30 14:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136903', 'tblTempUsageDetail_20' ) start [2024-12-30 14:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136903', 'tblTempUsageDetail_20' ) end [2024-12-30 14:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136903', 'tblTempVendorCDR_20' ) start [2024-12-30 14:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136903', 'tblTempVendorCDR_20' ) end [2024-12-30 14:44:25] Production.INFO: ProcessCDR(1,14136903,1,1,2) [2024-12-30 14:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136903', 'tblTempUsageDetail_20' ) start [2024-12-30 14:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136903', 'tblTempUsageDetail_20' ) end [2024-12-30 14:44:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:44:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:44:29] Production.INFO: ==1757== Releasing lock... [2024-12-30 14:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:44:29] Production.INFO: 60 MB #Memory Used# [2024-12-30 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:45:05 [end_date_ymd] => 2024-12-30 14:45:05 [RateCDR] => 1 ) [2024-12-30 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 11:45:05' and `end` < '2024-12-30 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 14:45:19] Production.INFO: count ==4269 [2024-12-30 14:45:21] Production.ERROR: pbx CDR StartTime 2024-12-30 11:45:05 - End Time 2024-12-30 14:45:05 [2024-12-30 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136908', 'tblTempUsageDetail_20' ) start [2024-12-30 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136908', 'tblTempUsageDetail_20' ) end [2024-12-30 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136908', 'tblTempVendorCDR_20' ) start [2024-12-30 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136908', 'tblTempVendorCDR_20' ) end [2024-12-30 14:45:21] Production.INFO: ProcessCDR(1,14136908,1,1,2) [2024-12-30 14:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136908', 'tblTempUsageDetail_20' ) start [2024-12-30 14:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136908', 'tblTempUsageDetail_20' ) end [2024-12-30 14:45:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:45:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:45:25] Production.INFO: ==1864== Releasing lock... [2024-12-30 14:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:45:25] Production.INFO: 60 MB #Memory Used# [2024-12-30 14:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:46:04 [end_date_ymd] => 2024-12-30 14:46:04 [RateCDR] => 1 ) [2024-12-30 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-30 11:46:04' and `end` < '2024-12-30 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-30 14:46:22] Production.INFO: count ==4287 [2024-12-30 14:46:24] Production.ERROR: pbx CDR StartTime 2024-12-30 11:46:04 - End Time 2024-12-30 14:46:04 [2024-12-30 14:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136913', 'tblTempUsageDetail_20' ) start [2024-12-30 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136913', 'tblTempUsageDetail_20' ) end [2024-12-30 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136913', 'tblTempVendorCDR_20' ) start [2024-12-30 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136913', 'tblTempVendorCDR_20' ) end [2024-12-30 14:46:24] Production.INFO: ProcessCDR(1,14136913,1,1,2) [2024-12-30 14:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136913', 'tblTempUsageDetail_20' ) start [2024-12-30 14:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136913', 'tblTempUsageDetail_20' ) end [2024-12-30 14:46:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:46:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:46:29] Production.INFO: ==1965== Releasing lock... [2024-12-30 14:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:46:29] Production.INFO: 60 MB #Memory Used# [2024-12-30 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:47:05 [end_date_ymd] => 2024-12-30 14:47:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:47:05' and `end` < '2024-12-30 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-30 14:47:22] Production.INFO: count ==4272 [2024-12-30 14:47:24] Production.ERROR: pbx CDR StartTime 2024-12-30 11:47:05 - End Time 2024-12-30 14:47:05 [2024-12-30 14:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136918', 'tblTempUsageDetail_20' ) start [2024-12-30 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136918', 'tblTempUsageDetail_20' ) end [2024-12-30 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136918', 'tblTempVendorCDR_20' ) start [2024-12-30 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136918', 'tblTempVendorCDR_20' ) end [2024-12-30 14:47:24] Production.INFO: ProcessCDR(1,14136918,1,1,2) [2024-12-30 14:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136918', 'tblTempUsageDetail_20' ) start [2024-12-30 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136918', 'tblTempUsageDetail_20' ) end [2024-12-30 14:47:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:47:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:47:29] Production.INFO: ==2067== Releasing lock... [2024-12-30 14:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:47:29] Production.INFO: 60 MB #Memory Used# [2024-12-30 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:48:05 [end_date_ymd] => 2024-12-30 14:48:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:48:05' and `end` < '2024-12-30 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-30 14:48:23] Production.INFO: count ==4273 [2024-12-30 14:48:24] Production.ERROR: pbx CDR StartTime 2024-12-30 11:48:05 - End Time 2024-12-30 14:48:05 [2024-12-30 14:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136923', 'tblTempUsageDetail_20' ) start [2024-12-30 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136923', 'tblTempUsageDetail_20' ) end [2024-12-30 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136923', 'tblTempVendorCDR_20' ) start [2024-12-30 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136923', 'tblTempVendorCDR_20' ) end [2024-12-30 14:48:24] Production.INFO: ProcessCDR(1,14136923,1,1,2) [2024-12-30 14:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136923', 'tblTempUsageDetail_20' ) start [2024-12-30 14:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136923', 'tblTempUsageDetail_20' ) end [2024-12-30 14:48:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:48:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:48:29] Production.INFO: ==2163== Releasing lock... [2024-12-30 14:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:48:29] Production.INFO: 60 MB #Memory Used# [2024-12-30 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:49:05 [end_date_ymd] => 2024-12-30 14:49:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:49:05' and `end` < '2024-12-30 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-30 14:49:26] Production.INFO: count ==4284 [2024-12-30 14:49:28] Production.ERROR: pbx CDR StartTime 2024-12-30 11:49:05 - End Time 2024-12-30 14:49:05 [2024-12-30 14:49:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136928', 'tblTempUsageDetail_20' ) start [2024-12-30 14:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136928', 'tblTempUsageDetail_20' ) end [2024-12-30 14:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136928', 'tblTempVendorCDR_20' ) start [2024-12-30 14:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136928', 'tblTempVendorCDR_20' ) end [2024-12-30 14:49:28] Production.INFO: ProcessCDR(1,14136928,1,1,2) [2024-12-30 14:49:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:49:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:49:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136928', 'tblTempUsageDetail_20' ) start [2024-12-30 14:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136928', 'tblTempUsageDetail_20' ) end [2024-12-30 14:49:33] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:49:33] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:49:33] Production.INFO: ==2265== Releasing lock... [2024-12-30 14:49:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:49:33] Production.INFO: 60 MB #Memory Used# [2024-12-30 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:50:05 [end_date_ymd] => 2024-12-30 14:50:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:50:05' and `end` < '2024-12-30 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-30 14:50:26] Production.INFO: count ==4277 [2024-12-30 14:50:27] Production.ERROR: pbx CDR StartTime 2024-12-30 11:50:05 - End Time 2024-12-30 14:50:05 [2024-12-30 14:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136933', 'tblTempUsageDetail_20' ) start [2024-12-30 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136933', 'tblTempUsageDetail_20' ) end [2024-12-30 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136933', 'tblTempVendorCDR_20' ) start [2024-12-30 14:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136933', 'tblTempVendorCDR_20' ) end [2024-12-30 14:50:28] Production.INFO: ProcessCDR(1,14136933,1,1,2) [2024-12-30 14:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136933', 'tblTempUsageDetail_20' ) start [2024-12-30 14:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136933', 'tblTempUsageDetail_20' ) end [2024-12-30 14:50:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:50:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:50:32] Production.INFO: ==2367== Releasing lock... [2024-12-30 14:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:50:32] Production.INFO: 60 MB #Memory Used# [2024-12-30 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:51:05 [end_date_ymd] => 2024-12-30 14:51:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:51:05' and `end` < '2024-12-30 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-30 14:51:27] Production.INFO: count ==4309 [2024-12-30 14:51:28] Production.ERROR: pbx CDR StartTime 2024-12-30 11:51:05 - End Time 2024-12-30 14:51:05 [2024-12-30 14:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136939', 'tblTempUsageDetail_20' ) start [2024-12-30 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136939', 'tblTempUsageDetail_20' ) end [2024-12-30 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136939', 'tblTempVendorCDR_20' ) start [2024-12-30 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136939', 'tblTempVendorCDR_20' ) end [2024-12-30 14:51:28] Production.INFO: ProcessCDR(1,14136939,1,1,2) [2024-12-30 14:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136939', 'tblTempUsageDetail_20' ) start [2024-12-30 14:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136939', 'tblTempUsageDetail_20' ) end [2024-12-30 14:51:33] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:51:33] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:51:33] Production.INFO: ==2476== Releasing lock... [2024-12-30 14:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:51:33] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:52:05 [end_date_ymd] => 2024-12-30 14:52:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:52:05' and `end` < '2024-12-30 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-30 14:52:21] Production.INFO: count ==4314 [2024-12-30 14:52:23] Production.ERROR: pbx CDR StartTime 2024-12-30 11:52:05 - End Time 2024-12-30 14:52:05 [2024-12-30 14:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136944', 'tblTempUsageDetail_20' ) start [2024-12-30 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136944', 'tblTempUsageDetail_20' ) end [2024-12-30 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136944', 'tblTempVendorCDR_20' ) start [2024-12-30 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136944', 'tblTempVendorCDR_20' ) end [2024-12-30 14:52:23] Production.INFO: ProcessCDR(1,14136944,1,1,2) [2024-12-30 14:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136944', 'tblTempUsageDetail_20' ) start [2024-12-30 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136944', 'tblTempUsageDetail_20' ) end [2024-12-30 14:52:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:52:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:52:28] Production.INFO: ==2569== Releasing lock... [2024-12-30 14:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:52:28] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 14:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:53:04 [end_date_ymd] => 2024-12-30 14:53:04 [RateCDR] => 1 ) [2024-12-30 14: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-30 11:53:04' and `end` < '2024-12-30 14: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-30 14:53:23] Production.INFO: count ==4326 [2024-12-30 14:53:25] Production.ERROR: pbx CDR StartTime 2024-12-30 11:53:04 - End Time 2024-12-30 14:53:04 [2024-12-30 14:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136949', 'tblTempUsageDetail_20' ) start [2024-12-30 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136949', 'tblTempUsageDetail_20' ) end [2024-12-30 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136949', 'tblTempVendorCDR_20' ) start [2024-12-30 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136949', 'tblTempVendorCDR_20' ) end [2024-12-30 14:53:25] Production.INFO: ProcessCDR(1,14136949,1,1,2) [2024-12-30 14:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136949', 'tblTempUsageDetail_20' ) start [2024-12-30 14:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136949', 'tblTempUsageDetail_20' ) end [2024-12-30 14:53:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:53:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:53:30] Production.INFO: ==2704== Releasing lock... [2024-12-30 14:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:53:30] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:54:05 [end_date_ymd] => 2024-12-30 14:54:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:54:05' and `end` < '2024-12-30 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-30 14:54:31] Production.INFO: count ==4339 [2024-12-30 14:54:33] Production.ERROR: pbx CDR StartTime 2024-12-30 11:54:05 - End Time 2024-12-30 14:54:05 [2024-12-30 14:54:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136954', 'tblTempUsageDetail_20' ) start [2024-12-30 14:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136954', 'tblTempUsageDetail_20' ) end [2024-12-30 14:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136954', 'tblTempVendorCDR_20' ) start [2024-12-30 14:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136954', 'tblTempVendorCDR_20' ) end [2024-12-30 14:54:33] Production.INFO: ProcessCDR(1,14136954,1,1,2) [2024-12-30 14:54:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:54:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:54:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:54:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136954', 'tblTempUsageDetail_20' ) start [2024-12-30 14:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136954', 'tblTempUsageDetail_20' ) end [2024-12-30 14:54:37] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:54:37] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:54:37] Production.INFO: ==2779== Releasing lock... [2024-12-30 14:54:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:54:37] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 14:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:55:04 [end_date_ymd] => 2024-12-30 14:55:04 [RateCDR] => 1 ) [2024-12-30 14: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-30 11:55:04' and `end` < '2024-12-30 14: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-30 14:55:36] Production.INFO: count ==4347 [2024-12-30 14:55:37] Production.ERROR: pbx CDR StartTime 2024-12-30 11:55:04 - End Time 2024-12-30 14:55:04 [2024-12-30 14:55:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:55:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136959', 'tblTempUsageDetail_20' ) start [2024-12-30 14:55:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136959', 'tblTempUsageDetail_20' ) end [2024-12-30 14:55:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136959', 'tblTempVendorCDR_20' ) start [2024-12-30 14:55:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136959', 'tblTempVendorCDR_20' ) end [2024-12-30 14:55:38] Production.INFO: ProcessCDR(1,14136959,1,1,2) [2024-12-30 14:55:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:55:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:55:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:55:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:55:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136959', 'tblTempUsageDetail_20' ) start [2024-12-30 14:55:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136959', 'tblTempUsageDetail_20' ) end [2024-12-30 14:55:42] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:55:42] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:55:42] Production.INFO: ==2851== Releasing lock... [2024-12-30 14:55:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:55:42] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:56:05 [end_date_ymd] => 2024-12-30 14:56:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:56:05' and `end` < '2024-12-30 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-30 14:56:30] Production.INFO: count ==4324 [2024-12-30 14:56:32] Production.ERROR: pbx CDR StartTime 2024-12-30 11:56:05 - End Time 2024-12-30 14:56:05 [2024-12-30 14:56:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136964', 'tblTempUsageDetail_20' ) start [2024-12-30 14:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136964', 'tblTempUsageDetail_20' ) end [2024-12-30 14:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136964', 'tblTempVendorCDR_20' ) start [2024-12-30 14:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136964', 'tblTempVendorCDR_20' ) end [2024-12-30 14:56:32] Production.INFO: ProcessCDR(1,14136964,1,1,2) [2024-12-30 14:56:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:56:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:56:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:56:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:56:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136964', 'tblTempUsageDetail_20' ) start [2024-12-30 14:56:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136964', 'tblTempUsageDetail_20' ) end [2024-12-30 14:56:37] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:56:37] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:56:37] Production.INFO: ==2922== Releasing lock... [2024-12-30 14:56:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:56:37] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:57:05 [end_date_ymd] => 2024-12-30 14:57:05 [RateCDR] => 1 ) [2024-12-30 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 11:57:05' and `end` < '2024-12-30 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 14:57:28] Production.INFO: count ==4322 [2024-12-30 14:57:30] Production.ERROR: pbx CDR StartTime 2024-12-30 11:57:05 - End Time 2024-12-30 14:57:05 [2024-12-30 14:57:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136969', 'tblTempUsageDetail_20' ) start [2024-12-30 14:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136969', 'tblTempUsageDetail_20' ) end [2024-12-30 14:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136969', 'tblTempVendorCDR_20' ) start [2024-12-30 14:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136969', 'tblTempVendorCDR_20' ) end [2024-12-30 14:57:30] Production.INFO: ProcessCDR(1,14136969,1,1,2) [2024-12-30 14:57:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:57:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:57:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:57:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136969', 'tblTempUsageDetail_20' ) start [2024-12-30 14:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136969', 'tblTempUsageDetail_20' ) end [2024-12-30 14:57:34] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:57:35] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:57:35] Production.INFO: ==2992== Releasing lock... [2024-12-30 14:57:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:57:35] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 14:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:58:04 [end_date_ymd] => 2024-12-30 14:58:04 [RateCDR] => 1 ) [2024-12-30 14: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-30 11:58:04' and `end` < '2024-12-30 14: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-30 14:58:30] Production.INFO: count ==4331 [2024-12-30 14:58:31] Production.ERROR: pbx CDR StartTime 2024-12-30 11:58:04 - End Time 2024-12-30 14:58:04 [2024-12-30 14:58:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136974', 'tblTempUsageDetail_20' ) start [2024-12-30 14:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136974', 'tblTempUsageDetail_20' ) end [2024-12-30 14:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136974', 'tblTempVendorCDR_20' ) start [2024-12-30 14:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136974', 'tblTempVendorCDR_20' ) end [2024-12-30 14:58:32] Production.INFO: ProcessCDR(1,14136974,1,1,2) [2024-12-30 14:58:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:58:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:58:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:58:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:58:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136974', 'tblTempUsageDetail_20' ) start [2024-12-30 14:58:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136974', 'tblTempUsageDetail_20' ) end [2024-12-30 14:58:36] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:58:36] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:58:36] Production.INFO: ==3062== Releasing lock... [2024-12-30 14:58:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:58:36] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 11:59:05 [end_date_ymd] => 2024-12-30 14:59:05 [RateCDR] => 1 ) [2024-12-30 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-30 11:59:05' and `end` < '2024-12-30 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-30 14:59:27] Production.INFO: count ==4292 [2024-12-30 14:59:28] Production.ERROR: pbx CDR StartTime 2024-12-30 11:59:05 - End Time 2024-12-30 14:59:05 [2024-12-30 14:59:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136979', 'tblTempUsageDetail_20' ) start [2024-12-30 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136979', 'tblTempUsageDetail_20' ) end [2024-12-30 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136979', 'tblTempVendorCDR_20' ) start [2024-12-30 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136979', 'tblTempVendorCDR_20' ) end [2024-12-30 14:59:28] Production.INFO: ProcessCDR(1,14136979,1,1,2) [2024-12-30 14:59:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:59:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 14:59:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:59:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 14:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136979', 'tblTempUsageDetail_20' ) start [2024-12-30 14:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136979', 'tblTempUsageDetail_20' ) end [2024-12-30 14:59:33] Production.ERROR: pbx prc_insertCDR start [2024-12-30 14:59:33] Production.ERROR: pbx prc_insertCDR end [2024-12-30 14:59:33] Production.INFO: ==3134== Releasing lock... [2024-12-30 14:59:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 14:59:33] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:00:06 [end_date_ymd] => 2024-12-30 15:00:06 [RateCDR] => 1 ) [2024-12-30 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 12:00:06' and `end` < '2024-12-30 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 15:00:26] Production.INFO: count ==4299 [2024-12-30 15:00:28] Production.ERROR: pbx CDR StartTime 2024-12-30 12:00:06 - End Time 2024-12-30 15:00:06 [2024-12-30 15:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136985', 'tblTempUsageDetail_20' ) start [2024-12-30 15:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136985', 'tblTempUsageDetail_20' ) end [2024-12-30 15:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136985', 'tblTempVendorCDR_20' ) start [2024-12-30 15:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136985', 'tblTempVendorCDR_20' ) end [2024-12-30 15:00:28] Production.INFO: ProcessCDR(1,14136985,1,1,2) [2024-12-30 15:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136985', 'tblTempUsageDetail_20' ) start [2024-12-30 15:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136985', 'tblTempUsageDetail_20' ) end [2024-12-30 15:00:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:00:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:00:32] Production.INFO: ==3210== Releasing lock... [2024-12-30 15:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:00:32] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 15:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:01:04 [end_date_ymd] => 2024-12-30 15:01:04 [RateCDR] => 1 ) [2024-12-30 15: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-30 12:01:04' and `end` < '2024-12-30 15: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-30 15:01:21] Production.INFO: count ==4305 [2024-12-30 15:01:23] Production.ERROR: pbx CDR StartTime 2024-12-30 12:01:04 - End Time 2024-12-30 15:01:04 [2024-12-30 15:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136990', 'tblTempUsageDetail_20' ) start [2024-12-30 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136990', 'tblTempUsageDetail_20' ) end [2024-12-30 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136990', 'tblTempVendorCDR_20' ) start [2024-12-30 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136990', 'tblTempVendorCDR_20' ) end [2024-12-30 15:01:23] Production.INFO: ProcessCDR(1,14136990,1,1,2) [2024-12-30 15:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136990', 'tblTempUsageDetail_20' ) start [2024-12-30 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136990', 'tblTempUsageDetail_20' ) end [2024-12-30 15:01:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:01:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:01:28] Production.INFO: ==3376== Releasing lock... [2024-12-30 15:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:01:28] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:02:05 [end_date_ymd] => 2024-12-30 15:02:05 [RateCDR] => 1 ) [2024-12-30 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 12:02:05' and `end` < '2024-12-30 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 15:02:20] Production.INFO: count ==4318 [2024-12-30 15:02:22] Production.ERROR: pbx CDR StartTime 2024-12-30 12:02:05 - End Time 2024-12-30 15:02:05 [2024-12-30 15:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136995', 'tblTempUsageDetail_20' ) start [2024-12-30 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14136995', 'tblTempUsageDetail_20' ) end [2024-12-30 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136995', 'tblTempVendorCDR_20' ) start [2024-12-30 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14136995', 'tblTempVendorCDR_20' ) end [2024-12-30 15:02:22] Production.INFO: ProcessCDR(1,14136995,1,1,2) [2024-12-30 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14136995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14136995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14136995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14136995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136995', 'tblTempUsageDetail_20' ) start [2024-12-30 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14136995', 'tblTempUsageDetail_20' ) end [2024-12-30 15:02:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:02:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:02:27] Production.INFO: ==3471== Releasing lock... [2024-12-30 15:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:02:27] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 15:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:03:04 [end_date_ymd] => 2024-12-30 15:03:04 [RateCDR] => 1 ) [2024-12-30 15: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-30 12:03:04' and `end` < '2024-12-30 15: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-30 15:03:25] Production.INFO: count ==4318 [2024-12-30 15:03:27] Production.ERROR: pbx CDR StartTime 2024-12-30 12:03:04 - End Time 2024-12-30 15:03:04 [2024-12-30 15:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137000', 'tblTempUsageDetail_20' ) start [2024-12-30 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137000', 'tblTempUsageDetail_20' ) end [2024-12-30 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137000', 'tblTempVendorCDR_20' ) start [2024-12-30 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137000', 'tblTempVendorCDR_20' ) end [2024-12-30 15:03:27] Production.INFO: ProcessCDR(1,14137000,1,1,2) [2024-12-30 15:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137000', 'tblTempUsageDetail_20' ) start [2024-12-30 15:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137000', 'tblTempUsageDetail_20' ) end [2024-12-30 15:03:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:03:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:03:32] Production.INFO: ==3568== Releasing lock... [2024-12-30 15:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:03:32] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:04:05 [end_date_ymd] => 2024-12-30 15:04:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:04:05' and `end` < '2024-12-30 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-30 15:04:25] Production.INFO: count ==4297 [2024-12-30 15:04:27] Production.ERROR: pbx CDR StartTime 2024-12-30 12:04:05 - End Time 2024-12-30 15:04:05 [2024-12-30 15:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137005', 'tblTempUsageDetail_20' ) start [2024-12-30 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137005', 'tblTempUsageDetail_20' ) end [2024-12-30 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137005', 'tblTempVendorCDR_20' ) start [2024-12-30 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137005', 'tblTempVendorCDR_20' ) end [2024-12-30 15:04:27] Production.INFO: ProcessCDR(1,14137005,1,1,2) [2024-12-30 15:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137005', 'tblTempUsageDetail_20' ) start [2024-12-30 15:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137005', 'tblTempUsageDetail_20' ) end [2024-12-30 15:04:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:04:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:04:31] Production.INFO: ==3669== Releasing lock... [2024-12-30 15:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:04:31] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:05:05 [end_date_ymd] => 2024-12-30 15:05:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:05:05' and `end` < '2024-12-30 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-30 15:05:23] Production.INFO: count ==4290 [2024-12-30 15:05:25] Production.ERROR: pbx CDR StartTime 2024-12-30 12:05:05 - End Time 2024-12-30 15:05:05 [2024-12-30 15:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137010', 'tblTempUsageDetail_20' ) start [2024-12-30 15:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137010', 'tblTempUsageDetail_20' ) end [2024-12-30 15:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137010', 'tblTempVendorCDR_20' ) start [2024-12-30 15:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137010', 'tblTempVendorCDR_20' ) end [2024-12-30 15:05:25] Production.INFO: ProcessCDR(1,14137010,1,1,2) [2024-12-30 15:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137010', 'tblTempUsageDetail_20' ) start [2024-12-30 15:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137010', 'tblTempUsageDetail_20' ) end [2024-12-30 15:05:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:05:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:05:30] Production.INFO: ==3849== Releasing lock... [2024-12-30 15:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:05:30] Production.INFO: 60 MB #Memory Used# [2024-12-30 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:06:05 [end_date_ymd] => 2024-12-30 15:06:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:06:05' and `end` < '2024-12-30 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-30 15:06:23] Production.INFO: count ==4290 [2024-12-30 15:06:25] Production.ERROR: pbx CDR StartTime 2024-12-30 12:06:05 - End Time 2024-12-30 15:06:05 [2024-12-30 15:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137015', 'tblTempUsageDetail_20' ) start [2024-12-30 15:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137015', 'tblTempUsageDetail_20' ) end [2024-12-30 15:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137015', 'tblTempVendorCDR_20' ) start [2024-12-30 15:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137015', 'tblTempVendorCDR_20' ) end [2024-12-30 15:06:25] Production.INFO: ProcessCDR(1,14137015,1,1,2) [2024-12-30 15:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137015', 'tblTempUsageDetail_20' ) start [2024-12-30 15:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137015', 'tblTempUsageDetail_20' ) end [2024-12-30 15:06:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:06:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:06:29] Production.INFO: ==3960== Releasing lock... [2024-12-30 15:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:06:29] Production.INFO: 60 MB #Memory Used# [2024-12-30 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:07:04 [end_date_ymd] => 2024-12-30 15:07:04 [RateCDR] => 1 ) [2024-12-30 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-30 12:07:04' and `end` < '2024-12-30 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-30 15:07:22] Production.INFO: count ==4302 [2024-12-30 15:07:24] Production.ERROR: pbx CDR StartTime 2024-12-30 12:07:04 - End Time 2024-12-30 15:07:04 [2024-12-30 15:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137020', 'tblTempUsageDetail_20' ) start [2024-12-30 15:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137020', 'tblTempUsageDetail_20' ) end [2024-12-30 15:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137020', 'tblTempVendorCDR_20' ) start [2024-12-30 15:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137020', 'tblTempVendorCDR_20' ) end [2024-12-30 15:07:24] Production.INFO: ProcessCDR(1,14137020,1,1,2) [2024-12-30 15:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137020', 'tblTempUsageDetail_20' ) start [2024-12-30 15:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137020', 'tblTempUsageDetail_20' ) end [2024-12-30 15:07:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:07:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:07:28] Production.INFO: ==4060== Releasing lock... [2024-12-30 15:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:07:28] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:08:05 [end_date_ymd] => 2024-12-30 15:08:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:08:05' and `end` < '2024-12-30 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-30 15:08:25] Production.INFO: count ==4304 [2024-12-30 15:08:27] Production.ERROR: pbx CDR StartTime 2024-12-30 12:08:05 - End Time 2024-12-30 15:08:05 [2024-12-30 15:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137025', 'tblTempUsageDetail_20' ) start [2024-12-30 15:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137025', 'tblTempUsageDetail_20' ) end [2024-12-30 15:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137025', 'tblTempVendorCDR_20' ) start [2024-12-30 15:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137025', 'tblTempVendorCDR_20' ) end [2024-12-30 15:08:27] Production.INFO: ProcessCDR(1,14137025,1,1,2) [2024-12-30 15:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137025', 'tblTempUsageDetail_20' ) start [2024-12-30 15:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137025', 'tblTempUsageDetail_20' ) end [2024-12-30 15:08:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:08:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:08:31] Production.INFO: ==4241== Releasing lock... [2024-12-30 15:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:08:31] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:09:05 [end_date_ymd] => 2024-12-30 15:09:05 [RateCDR] => 1 ) [2024-12-30 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 12:09:05' and `end` < '2024-12-30 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 15:09:30] Production.INFO: count ==4301 [2024-12-30 15:09:32] Production.ERROR: pbx CDR StartTime 2024-12-30 12:09:05 - End Time 2024-12-30 15:09:05 [2024-12-30 15:09:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137030', 'tblTempUsageDetail_20' ) start [2024-12-30 15:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137030', 'tblTempUsageDetail_20' ) end [2024-12-30 15:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137030', 'tblTempVendorCDR_20' ) start [2024-12-30 15:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137030', 'tblTempVendorCDR_20' ) end [2024-12-30 15:09:32] Production.INFO: ProcessCDR(1,14137030,1,1,2) [2024-12-30 15:09:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:09:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:09:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:09:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:09:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137030', 'tblTempUsageDetail_20' ) start [2024-12-30 15:09:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137030', 'tblTempUsageDetail_20' ) end [2024-12-30 15:09:37] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:09:37] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:09:37] Production.INFO: ==4391== Releasing lock... [2024-12-30 15:09:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:09:37] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:10:05 [end_date_ymd] => 2024-12-30 15:10:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:10:05' and `end` < '2024-12-30 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-30 15:10:27] Production.INFO: count ==4296 [2024-12-30 15:10:28] Production.ERROR: pbx CDR StartTime 2024-12-30 12:10:05 - End Time 2024-12-30 15:10:05 [2024-12-30 15:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137036', 'tblTempUsageDetail_20' ) start [2024-12-30 15:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137036', 'tblTempUsageDetail_20' ) end [2024-12-30 15:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137036', 'tblTempVendorCDR_20' ) start [2024-12-30 15:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137036', 'tblTempVendorCDR_20' ) end [2024-12-30 15:10:28] Production.INFO: ProcessCDR(1,14137036,1,1,2) [2024-12-30 15:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137036', 'tblTempUsageDetail_20' ) start [2024-12-30 15:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137036', 'tblTempUsageDetail_20' ) end [2024-12-30 15:10:33] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:10:33] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:10:33] Production.INFO: ==4508== Releasing lock... [2024-12-30 15:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:10:33] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:11:05 [end_date_ymd] => 2024-12-30 15:11:05 [RateCDR] => 1 ) [2024-12-30 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 12:11:05' and `end` < '2024-12-30 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 15:11:18] Production.INFO: count ==4320 [2024-12-30 15:11:19] Production.ERROR: pbx CDR StartTime 2024-12-30 12:11:05 - End Time 2024-12-30 15:11:05 [2024-12-30 15:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137041', 'tblTempUsageDetail_20' ) start [2024-12-30 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137041', 'tblTempUsageDetail_20' ) end [2024-12-30 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137041', 'tblTempVendorCDR_20' ) start [2024-12-30 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137041', 'tblTempVendorCDR_20' ) end [2024-12-30 15:11:20] Production.INFO: ProcessCDR(1,14137041,1,1,2) [2024-12-30 15:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137041', 'tblTempUsageDetail_20' ) start [2024-12-30 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137041', 'tblTempUsageDetail_20' ) end [2024-12-30 15:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:11:24] Production.INFO: ==4630== Releasing lock... [2024-12-30 15:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:11:24] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:12:05 [end_date_ymd] => 2024-12-30 15:12:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:12:05' and `end` < '2024-12-30 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-30 15:12:18] Production.INFO: count ==4321 [2024-12-30 15:12:20] Production.ERROR: pbx CDR StartTime 2024-12-30 12:12:05 - End Time 2024-12-30 15:12:05 [2024-12-30 15:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137046', 'tblTempUsageDetail_20' ) start [2024-12-30 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137046', 'tblTempUsageDetail_20' ) end [2024-12-30 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137046', 'tblTempVendorCDR_20' ) start [2024-12-30 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137046', 'tblTempVendorCDR_20' ) end [2024-12-30 15:12:20] Production.INFO: ProcessCDR(1,14137046,1,1,2) [2024-12-30 15:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137046', 'tblTempUsageDetail_20' ) start [2024-12-30 15:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137046', 'tblTempUsageDetail_20' ) end [2024-12-30 15:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:12:24] Production.INFO: ==4816== Releasing lock... [2024-12-30 15:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:12:24] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:13:05 [end_date_ymd] => 2024-12-30 15:13:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:13:05' and `end` < '2024-12-30 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-30 15:13:19] Production.INFO: count ==4320 [2024-12-30 15:13:20] Production.ERROR: pbx CDR StartTime 2024-12-30 12:13:05 - End Time 2024-12-30 15:13:05 [2024-12-30 15:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137051', 'tblTempUsageDetail_20' ) start [2024-12-30 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137051', 'tblTempUsageDetail_20' ) end [2024-12-30 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137051', 'tblTempVendorCDR_20' ) start [2024-12-30 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137051', 'tblTempVendorCDR_20' ) end [2024-12-30 15:13:20] Production.INFO: ProcessCDR(1,14137051,1,1,2) [2024-12-30 15:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137051', 'tblTempUsageDetail_20' ) start [2024-12-30 15:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137051', 'tblTempUsageDetail_20' ) end [2024-12-30 15:13:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:13:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:13:25] Production.INFO: ==4931== Releasing lock... [2024-12-30 15:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:13:25] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:14:05 [end_date_ymd] => 2024-12-30 15:14:05 [RateCDR] => 1 ) [2024-12-30 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 12:14:05' and `end` < '2024-12-30 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 15:14:20] Production.INFO: count ==4333 [2024-12-30 15:14:22] Production.ERROR: pbx CDR StartTime 2024-12-30 12:14:05 - End Time 2024-12-30 15:14:05 [2024-12-30 15:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137056', 'tblTempUsageDetail_20' ) start [2024-12-30 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137056', 'tblTempUsageDetail_20' ) end [2024-12-30 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137056', 'tblTempVendorCDR_20' ) start [2024-12-30 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137056', 'tblTempVendorCDR_20' ) end [2024-12-30 15:14:22] Production.INFO: ProcessCDR(1,14137056,1,1,2) [2024-12-30 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137056', 'tblTempUsageDetail_20' ) start [2024-12-30 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137056', 'tblTempUsageDetail_20' ) end [2024-12-30 15:14:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:14:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:14:26] Production.INFO: ==5040== Releasing lock... [2024-12-30 15:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:14:26] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:15:05 [end_date_ymd] => 2024-12-30 15:15:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:15:05' and `end` < '2024-12-30 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-30 15:15:20] Production.INFO: count ==4379 [2024-12-30 15:15:21] Production.ERROR: pbx CDR StartTime 2024-12-30 12:15:05 - End Time 2024-12-30 15:15:05 [2024-12-30 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137061', 'tblTempUsageDetail_20' ) start [2024-12-30 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137061', 'tblTempUsageDetail_20' ) end [2024-12-30 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137061', 'tblTempVendorCDR_20' ) start [2024-12-30 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137061', 'tblTempVendorCDR_20' ) end [2024-12-30 15:15:21] Production.INFO: ProcessCDR(1,14137061,1,1,2) [2024-12-30 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137061', 'tblTempUsageDetail_20' ) start [2024-12-30 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137061', 'tblTempUsageDetail_20' ) end [2024-12-30 15:15:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:15:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:15:27] Production.INFO: ==5229== Releasing lock... [2024-12-30 15:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:15:27] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:16:05 [end_date_ymd] => 2024-12-30 15:16:05 [RateCDR] => 1 ) [2024-12-30 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 12:16:05' and `end` < '2024-12-30 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 15:16:20] Production.INFO: count ==4387 [2024-12-30 15:16:21] Production.ERROR: pbx CDR StartTime 2024-12-30 12:16:05 - End Time 2024-12-30 15:16:05 [2024-12-30 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137066', 'tblTempUsageDetail_20' ) start [2024-12-30 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137066', 'tblTempUsageDetail_20' ) end [2024-12-30 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137066', 'tblTempVendorCDR_20' ) start [2024-12-30 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137066', 'tblTempVendorCDR_20' ) end [2024-12-30 15:16:22] Production.INFO: ProcessCDR(1,14137066,1,1,2) [2024-12-30 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137066', 'tblTempUsageDetail_20' ) start [2024-12-30 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137066', 'tblTempUsageDetail_20' ) end [2024-12-30 15:16:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:16:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:16:26] Production.INFO: ==5344== Releasing lock... [2024-12-30 15:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:16:26] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:17:05 [end_date_ymd] => 2024-12-30 15:17:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:17:05' and `end` < '2024-12-30 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-30 15:17:18] Production.INFO: count ==4383 [2024-12-30 15:17:20] Production.ERROR: pbx CDR StartTime 2024-12-30 12:17:05 - End Time 2024-12-30 15:17:05 [2024-12-30 15:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137071', 'tblTempUsageDetail_20' ) start [2024-12-30 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137071', 'tblTempUsageDetail_20' ) end [2024-12-30 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137071', 'tblTempVendorCDR_20' ) start [2024-12-30 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137071', 'tblTempVendorCDR_20' ) end [2024-12-30 15:17:20] Production.INFO: ProcessCDR(1,14137071,1,1,2) [2024-12-30 15:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137071', 'tblTempUsageDetail_20' ) start [2024-12-30 15:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137071', 'tblTempUsageDetail_20' ) end [2024-12-30 15:17:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:17:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:17:24] Production.INFO: ==5450== Releasing lock... [2024-12-30 15:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:17:24] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:18:05 [end_date_ymd] => 2024-12-30 15:18:05 [RateCDR] => 1 ) [2024-12-30 15: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-30 12:18:05' and `end` < '2024-12-30 15: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-30 15:18:23] Production.INFO: count ==4415 [2024-12-30 15:18:24] Production.ERROR: pbx CDR StartTime 2024-12-30 12:18:05 - End Time 2024-12-30 15:18:05 [2024-12-30 15:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137076', 'tblTempUsageDetail_20' ) start [2024-12-30 15:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137076', 'tblTempUsageDetail_20' ) end [2024-12-30 15:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137076', 'tblTempVendorCDR_20' ) start [2024-12-30 15:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137076', 'tblTempVendorCDR_20' ) end [2024-12-30 15:18:24] Production.INFO: ProcessCDR(1,14137076,1,1,2) [2024-12-30 15:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137076', 'tblTempUsageDetail_20' ) start [2024-12-30 15:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137076', 'tblTempUsageDetail_20' ) end [2024-12-30 15:18:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:18:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:18:29] Production.INFO: ==5558== Releasing lock... [2024-12-30 15:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:18:29] Production.INFO: 61 MB #Memory Used# [2024-12-30 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:19:05 [end_date_ymd] => 2024-12-30 15:19:05 [RateCDR] => 1 ) [2024-12-30 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 12:19:05' and `end` < '2024-12-30 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 15:19:23] Production.INFO: count ==4418 [2024-12-30 15:19:24] Production.ERROR: pbx CDR StartTime 2024-12-30 12:19:05 - End Time 2024-12-30 15:19:05 [2024-12-30 15:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137081', 'tblTempUsageDetail_20' ) start [2024-12-30 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137081', 'tblTempUsageDetail_20' ) end [2024-12-30 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137081', 'tblTempVendorCDR_20' ) start [2024-12-30 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137081', 'tblTempVendorCDR_20' ) end [2024-12-30 15:19:24] Production.INFO: ProcessCDR(1,14137081,1,1,2) [2024-12-30 15:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137081', 'tblTempUsageDetail_20' ) start [2024-12-30 15:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137081', 'tblTempUsageDetail_20' ) end [2024-12-30 15:19:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:19:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:19:30] Production.INFO: ==5660== Releasing lock... [2024-12-30 15:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:19:30] Production.INFO: 61 MB #Memory Used# [2024-12-30 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:20:06 [end_date_ymd] => 2024-12-30 15:20:06 [RateCDR] => 1 ) [2024-12-30 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 12:20:06' and `end` < '2024-12-30 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 15:20:23] Production.INFO: count ==4420 [2024-12-30 15:20:25] Production.ERROR: pbx CDR StartTime 2024-12-30 12:20:06 - End Time 2024-12-30 15:20:06 [2024-12-30 15:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137087', 'tblTempUsageDetail_20' ) start [2024-12-30 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137087', 'tblTempUsageDetail_20' ) end [2024-12-30 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137087', 'tblTempVendorCDR_20' ) start [2024-12-30 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137087', 'tblTempVendorCDR_20' ) end [2024-12-30 15:20:25] Production.INFO: ProcessCDR(1,14137087,1,1,2) [2024-12-30 15:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137087', 'tblTempUsageDetail_20' ) start [2024-12-30 15:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137087', 'tblTempUsageDetail_20' ) end [2024-12-30 15:20:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:20:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:20:30] Production.INFO: ==5772== Releasing lock... [2024-12-30 15:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:20:30] Production.INFO: 61 MB #Memory Used# [2024-12-30 15:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:21:04 [end_date_ymd] => 2024-12-30 15:21:04 [RateCDR] => 1 ) [2024-12-30 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-30 12:21:04' and `end` < '2024-12-30 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-30 15:21:20] Production.INFO: count ==4407 [2024-12-30 15:21:22] Production.ERROR: pbx CDR StartTime 2024-12-30 12:21:04 - End Time 2024-12-30 15:21:04 [2024-12-30 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137092', 'tblTempUsageDetail_20' ) start [2024-12-30 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137092', 'tblTempUsageDetail_20' ) end [2024-12-30 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137092', 'tblTempVendorCDR_20' ) start [2024-12-30 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137092', 'tblTempVendorCDR_20' ) end [2024-12-30 15:21:22] Production.INFO: ProcessCDR(1,14137092,1,1,2) [2024-12-30 15:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137092', 'tblTempUsageDetail_20' ) start [2024-12-30 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137092', 'tblTempUsageDetail_20' ) end [2024-12-30 15:21:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:21:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:21:27] Production.INFO: ==5887== Releasing lock... [2024-12-30 15:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:21:27] Production.INFO: 61 MB #Memory Used# [2024-12-30 15:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:22:04 [end_date_ymd] => 2024-12-30 15:22:04 [RateCDR] => 1 ) [2024-12-30 15:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 12:22:04' and `end` < '2024-12-30 15:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 15:22:19] Production.INFO: count ==4411 [2024-12-30 15:22:21] Production.ERROR: pbx CDR StartTime 2024-12-30 12:22:04 - End Time 2024-12-30 15:22:04 [2024-12-30 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137097', 'tblTempUsageDetail_20' ) start [2024-12-30 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137097', 'tblTempUsageDetail_20' ) end [2024-12-30 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137097', 'tblTempVendorCDR_20' ) start [2024-12-30 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137097', 'tblTempVendorCDR_20' ) end [2024-12-30 15:22:21] Production.INFO: ProcessCDR(1,14137097,1,1,2) [2024-12-30 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137097', 'tblTempUsageDetail_20' ) start [2024-12-30 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137097', 'tblTempUsageDetail_20' ) end [2024-12-30 15:22:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:22:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:22:25] Production.INFO: ==6002== Releasing lock... [2024-12-30 15:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:22:25] Production.INFO: 61 MB #Memory Used# [2024-12-30 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:23:05 [end_date_ymd] => 2024-12-30 15:23:05 [RateCDR] => 1 ) [2024-12-30 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 12:23:05' and `end` < '2024-12-30 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 15:23:20] Production.INFO: count ==4414 [2024-12-30 15:23:21] Production.ERROR: pbx CDR StartTime 2024-12-30 12:23:05 - End Time 2024-12-30 15:23:05 [2024-12-30 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137102', 'tblTempUsageDetail_20' ) start [2024-12-30 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137102', 'tblTempUsageDetail_20' ) end [2024-12-30 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137102', 'tblTempVendorCDR_20' ) start [2024-12-30 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137102', 'tblTempVendorCDR_20' ) end [2024-12-30 15:23:22] Production.INFO: ProcessCDR(1,14137102,1,1,2) [2024-12-30 15:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137102', 'tblTempUsageDetail_20' ) start [2024-12-30 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137102', 'tblTempUsageDetail_20' ) end [2024-12-30 15:23:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:23:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:23:26] Production.INFO: ==6113== Releasing lock... [2024-12-30 15:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:23:26] Production.INFO: 61 MB #Memory Used# [2024-12-30 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:24:05 [end_date_ymd] => 2024-12-30 15:24:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:24:05' and `end` < '2024-12-30 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-30 15:24:18] Production.INFO: count ==4393 [2024-12-30 15:24:20] Production.ERROR: pbx CDR StartTime 2024-12-30 12:24:05 - End Time 2024-12-30 15:24:05 [2024-12-30 15:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137107', 'tblTempUsageDetail_20' ) start [2024-12-30 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137107', 'tblTempUsageDetail_20' ) end [2024-12-30 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137107', 'tblTempVendorCDR_20' ) start [2024-12-30 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137107', 'tblTempVendorCDR_20' ) end [2024-12-30 15:24:20] Production.INFO: ProcessCDR(1,14137107,1,1,2) [2024-12-30 15:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137107', 'tblTempUsageDetail_20' ) start [2024-12-30 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137107', 'tblTempUsageDetail_20' ) end [2024-12-30 15:24:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:24:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:24:25] Production.INFO: ==6265== Releasing lock... [2024-12-30 15:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:24:25] Production.INFO: 61 MB #Memory Used# [2024-12-30 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:25:04 [end_date_ymd] => 2024-12-30 15:25:04 [RateCDR] => 1 ) [2024-12-30 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-30 12:25:04' and `end` < '2024-12-30 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-30 15:25:18] Production.INFO: count ==4386 [2024-12-30 15:25:19] Production.ERROR: pbx CDR StartTime 2024-12-30 12:25:04 - End Time 2024-12-30 15:25:04 [2024-12-30 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137112', 'tblTempUsageDetail_20' ) start [2024-12-30 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137112', 'tblTempUsageDetail_20' ) end [2024-12-30 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137112', 'tblTempVendorCDR_20' ) start [2024-12-30 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137112', 'tblTempVendorCDR_20' ) end [2024-12-30 15:25:19] Production.INFO: ProcessCDR(1,14137112,1,1,2) [2024-12-30 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137112', 'tblTempUsageDetail_20' ) start [2024-12-30 15:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137112', 'tblTempUsageDetail_20' ) end [2024-12-30 15:25:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:25:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:25:24] Production.INFO: ==6378== Releasing lock... [2024-12-30 15:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:25:24] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:26:05 [end_date_ymd] => 2024-12-30 15:26:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:26:05' and `end` < '2024-12-30 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-30 15:26:21] Production.INFO: count ==4374 [2024-12-30 15:26:22] Production.ERROR: pbx CDR StartTime 2024-12-30 12:26:05 - End Time 2024-12-30 15:26:05 [2024-12-30 15:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137117', 'tblTempUsageDetail_20' ) start [2024-12-30 15:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137117', 'tblTempUsageDetail_20' ) end [2024-12-30 15:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137117', 'tblTempVendorCDR_20' ) start [2024-12-30 15:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137117', 'tblTempVendorCDR_20' ) end [2024-12-30 15:26:23] Production.INFO: ProcessCDR(1,14137117,1,1,2) [2024-12-30 15:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137117', 'tblTempUsageDetail_20' ) start [2024-12-30 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137117', 'tblTempUsageDetail_20' ) end [2024-12-30 15:26:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:26:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:26:27] Production.INFO: ==6489== Releasing lock... [2024-12-30 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:26:27] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:27:05 [end_date_ymd] => 2024-12-30 15:27:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:27:05' and `end` < '2024-12-30 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-30 15:27:20] Production.INFO: count ==4364 [2024-12-30 15:27:21] Production.ERROR: pbx CDR StartTime 2024-12-30 12:27:05 - End Time 2024-12-30 15:27:05 [2024-12-30 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137122', 'tblTempUsageDetail_20' ) start [2024-12-30 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137122', 'tblTempUsageDetail_20' ) end [2024-12-30 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137122', 'tblTempVendorCDR_20' ) start [2024-12-30 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137122', 'tblTempVendorCDR_20' ) end [2024-12-30 15:27:22] Production.INFO: ProcessCDR(1,14137122,1,1,2) [2024-12-30 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137122', 'tblTempUsageDetail_20' ) start [2024-12-30 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137122', 'tblTempUsageDetail_20' ) end [2024-12-30 15:27:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:27:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:27:26] Production.INFO: ==6608== Releasing lock... [2024-12-30 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:27:26] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:28:05 [end_date_ymd] => 2024-12-30 15:28:05 [RateCDR] => 1 ) [2024-12-30 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 12:28:05' and `end` < '2024-12-30 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 15:28:18] Production.INFO: count ==4348 [2024-12-30 15:28:20] Production.ERROR: pbx CDR StartTime 2024-12-30 12:28:05 - End Time 2024-12-30 15:28:05 [2024-12-30 15:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137127', 'tblTempUsageDetail_20' ) start [2024-12-30 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137127', 'tblTempUsageDetail_20' ) end [2024-12-30 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137127', 'tblTempVendorCDR_20' ) start [2024-12-30 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137127', 'tblTempVendorCDR_20' ) end [2024-12-30 15:28:20] Production.INFO: ProcessCDR(1,14137127,1,1,2) [2024-12-30 15:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137127', 'tblTempUsageDetail_20' ) start [2024-12-30 15:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137127', 'tblTempUsageDetail_20' ) end [2024-12-30 15:28:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:28:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:28:25] Production.INFO: ==6720== Releasing lock... [2024-12-30 15:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:28:25] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:29:05 [end_date_ymd] => 2024-12-30 15:29:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:29:05' and `end` < '2024-12-30 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-30 15:29:19] Production.INFO: count ==4335 [2024-12-30 15:29:21] Production.ERROR: pbx CDR StartTime 2024-12-30 12:29:05 - End Time 2024-12-30 15:29:05 [2024-12-30 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137132', 'tblTempUsageDetail_20' ) start [2024-12-30 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137132', 'tblTempUsageDetail_20' ) end [2024-12-30 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137132', 'tblTempVendorCDR_20' ) start [2024-12-30 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137132', 'tblTempVendorCDR_20' ) end [2024-12-30 15:29:21] Production.INFO: ProcessCDR(1,14137132,1,1,2) [2024-12-30 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137132', 'tblTempUsageDetail_20' ) start [2024-12-30 15:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137132', 'tblTempUsageDetail_20' ) end [2024-12-30 15:29:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:29:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:29:26] Production.INFO: ==6830== Releasing lock... [2024-12-30 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:29:26] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:30:06 [end_date_ymd] => 2024-12-30 15:30:06 [RateCDR] => 1 ) [2024-12-30 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 12:30:06' and `end` < '2024-12-30 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 15:30:25] Production.INFO: count ==4314 [2024-12-30 15:30:27] Production.ERROR: pbx CDR StartTime 2024-12-30 12:30:06 - End Time 2024-12-30 15:30:06 [2024-12-30 15:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137137', 'tblTempUsageDetail_20' ) start [2024-12-30 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137137', 'tblTempUsageDetail_20' ) end [2024-12-30 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137137', 'tblTempVendorCDR_20' ) start [2024-12-30 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137137', 'tblTempVendorCDR_20' ) end [2024-12-30 15:30:27] Production.INFO: ProcessCDR(1,14137137,1,1,2) [2024-12-30 15:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137137', 'tblTempUsageDetail_20' ) start [2024-12-30 15:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137137', 'tblTempUsageDetail_20' ) end [2024-12-30 15:30:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:30:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:30:32] Production.INFO: ==6946== Releasing lock... [2024-12-30 15:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:30:32] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:31:05 [end_date_ymd] => 2024-12-30 15:31:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:31:05' and `end` < '2024-12-30 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-30 15:31:23] Production.INFO: count ==4320 [2024-12-30 15:31:25] Production.ERROR: pbx CDR StartTime 2024-12-30 12:31:05 - End Time 2024-12-30 15:31:05 [2024-12-30 15:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137143', 'tblTempUsageDetail_20' ) start [2024-12-30 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137143', 'tblTempUsageDetail_20' ) end [2024-12-30 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137143', 'tblTempVendorCDR_20' ) start [2024-12-30 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137143', 'tblTempVendorCDR_20' ) end [2024-12-30 15:31:25] Production.INFO: ProcessCDR(1,14137143,1,1,2) [2024-12-30 15:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137143', 'tblTempUsageDetail_20' ) start [2024-12-30 15:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137143', 'tblTempUsageDetail_20' ) end [2024-12-30 15:31:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:31:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:31:29] Production.INFO: ==7057== Releasing lock... [2024-12-30 15:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:31:29] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 15:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:32:04 [end_date_ymd] => 2024-12-30 15:32:04 [RateCDR] => 1 ) [2024-12-30 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-30 12:32:04' and `end` < '2024-12-30 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-30 15:32:21] Production.INFO: count ==4327 [2024-12-30 15:32:23] Production.ERROR: pbx CDR StartTime 2024-12-30 12:32:04 - End Time 2024-12-30 15:32:04 [2024-12-30 15:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137148', 'tblTempUsageDetail_20' ) start [2024-12-30 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137148', 'tblTempUsageDetail_20' ) end [2024-12-30 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137148', 'tblTempVendorCDR_20' ) start [2024-12-30 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137148', 'tblTempVendorCDR_20' ) end [2024-12-30 15:32:23] Production.INFO: ProcessCDR(1,14137148,1,1,2) [2024-12-30 15:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137148', 'tblTempUsageDetail_20' ) start [2024-12-30 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137148', 'tblTempUsageDetail_20' ) end [2024-12-30 15:32:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:32:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:32:27] Production.INFO: ==7165== Releasing lock... [2024-12-30 15:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:32:27] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:33:05 [end_date_ymd] => 2024-12-30 15:33:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:33:05' and `end` < '2024-12-30 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-30 15:33:20] Production.INFO: count ==4341 [2024-12-30 15:33:22] Production.ERROR: pbx CDR StartTime 2024-12-30 12:33:05 - End Time 2024-12-30 15:33:05 [2024-12-30 15:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137153', 'tblTempUsageDetail_20' ) start [2024-12-30 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137153', 'tblTempUsageDetail_20' ) end [2024-12-30 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137153', 'tblTempVendorCDR_20' ) start [2024-12-30 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137153', 'tblTempVendorCDR_20' ) end [2024-12-30 15:33:22] Production.INFO: ProcessCDR(1,14137153,1,1,2) [2024-12-30 15:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137153', 'tblTempUsageDetail_20' ) start [2024-12-30 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137153', 'tblTempUsageDetail_20' ) end [2024-12-30 15:33:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:33:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:33:26] Production.INFO: ==7301== Releasing lock... [2024-12-30 15:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:33:26] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:34:05 [end_date_ymd] => 2024-12-30 15:34:05 [RateCDR] => 1 ) [2024-12-30 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 12:34:05' and `end` < '2024-12-30 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 15:34:18] Production.INFO: count ==4340 [2024-12-30 15:34:20] Production.ERROR: pbx CDR StartTime 2024-12-30 12:34:05 - End Time 2024-12-30 15:34:05 [2024-12-30 15:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137158', 'tblTempUsageDetail_20' ) start [2024-12-30 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137158', 'tblTempUsageDetail_20' ) end [2024-12-30 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137158', 'tblTempVendorCDR_20' ) start [2024-12-30 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137158', 'tblTempVendorCDR_20' ) end [2024-12-30 15:34:20] Production.INFO: ProcessCDR(1,14137158,1,1,2) [2024-12-30 15:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137158', 'tblTempUsageDetail_20' ) start [2024-12-30 15:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137158', 'tblTempUsageDetail_20' ) end [2024-12-30 15:34:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:34:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:34:25] Production.INFO: ==7411== Releasing lock... [2024-12-30 15:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:34:25] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:35:05 [end_date_ymd] => 2024-12-30 15:35:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:35:05' and `end` < '2024-12-30 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-30 15:35:25] Production.INFO: count ==4351 [2024-12-30 15:35:26] Production.ERROR: pbx CDR StartTime 2024-12-30 12:35:05 - End Time 2024-12-30 15:35:05 [2024-12-30 15:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137163', 'tblTempUsageDetail_20' ) start [2024-12-30 15:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137163', 'tblTempUsageDetail_20' ) end [2024-12-30 15:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137163', 'tblTempVendorCDR_20' ) start [2024-12-30 15:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137163', 'tblTempVendorCDR_20' ) end [2024-12-30 15:35:26] Production.INFO: ProcessCDR(1,14137163,1,1,2) [2024-12-30 15:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137163', 'tblTempUsageDetail_20' ) start [2024-12-30 15:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137163', 'tblTempUsageDetail_20' ) end [2024-12-30 15:35:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:35:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:35:31] Production.INFO: ==7531== Releasing lock... [2024-12-30 15:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:35:31] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:36:05 [end_date_ymd] => 2024-12-30 15:36:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:36:05' and `end` < '2024-12-30 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-30 15:36:19] Production.INFO: count ==4344 [2024-12-30 15:36:21] Production.ERROR: pbx CDR StartTime 2024-12-30 12:36:05 - End Time 2024-12-30 15:36:05 [2024-12-30 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137168', 'tblTempUsageDetail_20' ) start [2024-12-30 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137168', 'tblTempUsageDetail_20' ) end [2024-12-30 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137168', 'tblTempVendorCDR_20' ) start [2024-12-30 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137168', 'tblTempVendorCDR_20' ) end [2024-12-30 15:36:21] Production.INFO: ProcessCDR(1,14137168,1,1,2) [2024-12-30 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137168', 'tblTempUsageDetail_20' ) start [2024-12-30 15:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137168', 'tblTempUsageDetail_20' ) end [2024-12-30 15:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:36:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:36:25] Production.INFO: ==7643== Releasing lock... [2024-12-30 15:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:36:25] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:37:05 [end_date_ymd] => 2024-12-30 15:37:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:37:05' and `end` < '2024-12-30 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-30 15:37:18] Production.INFO: count ==4365 [2024-12-30 15:37:20] Production.ERROR: pbx CDR StartTime 2024-12-30 12:37:05 - End Time 2024-12-30 15:37:05 [2024-12-30 15:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137173', 'tblTempUsageDetail_20' ) start [2024-12-30 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137173', 'tblTempUsageDetail_20' ) end [2024-12-30 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137173', 'tblTempVendorCDR_20' ) start [2024-12-30 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137173', 'tblTempVendorCDR_20' ) end [2024-12-30 15:37:20] Production.INFO: ProcessCDR(1,14137173,1,1,2) [2024-12-30 15:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137173', 'tblTempUsageDetail_20' ) start [2024-12-30 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137173', 'tblTempUsageDetail_20' ) end [2024-12-30 15:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:37:23] Production.INFO: ==7759== Releasing lock... [2024-12-30 15:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:37:23] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:38:05 [end_date_ymd] => 2024-12-30 15:38:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:38:05' and `end` < '2024-12-30 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-30 15:38:20] Production.INFO: count ==4361 [2024-12-30 15:38:22] Production.ERROR: pbx CDR StartTime 2024-12-30 12:38:05 - End Time 2024-12-30 15:38:05 [2024-12-30 15:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137178', 'tblTempUsageDetail_20' ) start [2024-12-30 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137178', 'tblTempUsageDetail_20' ) end [2024-12-30 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137178', 'tblTempVendorCDR_20' ) start [2024-12-30 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137178', 'tblTempVendorCDR_20' ) end [2024-12-30 15:38:22] Production.INFO: ProcessCDR(1,14137178,1,1,2) [2024-12-30 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137178', 'tblTempUsageDetail_20' ) start [2024-12-30 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137178', 'tblTempUsageDetail_20' ) end [2024-12-30 15:38:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:38:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:38:27] Production.INFO: ==7882== Releasing lock... [2024-12-30 15:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:38:27] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:39:05 [end_date_ymd] => 2024-12-30 15:39:05 [RateCDR] => 1 ) [2024-12-30 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 12:39:05' and `end` < '2024-12-30 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 15:39:19] Production.INFO: count ==4367 [2024-12-30 15:39:21] Production.ERROR: pbx CDR StartTime 2024-12-30 12:39:05 - End Time 2024-12-30 15:39:05 [2024-12-30 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137183', 'tblTempUsageDetail_20' ) start [2024-12-30 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137183', 'tblTempUsageDetail_20' ) end [2024-12-30 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137183', 'tblTempVendorCDR_20' ) start [2024-12-30 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137183', 'tblTempVendorCDR_20' ) end [2024-12-30 15:39:21] Production.INFO: ProcessCDR(1,14137183,1,1,2) [2024-12-30 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137183', 'tblTempUsageDetail_20' ) start [2024-12-30 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137183', 'tblTempUsageDetail_20' ) end [2024-12-30 15:39:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:39:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:39:26] Production.INFO: ==8001== Releasing lock... [2024-12-30 15:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:39:26] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:40:06 [end_date_ymd] => 2024-12-30 15:40:06 [RateCDR] => 1 ) [2024-12-30 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 12:40:06' and `end` < '2024-12-30 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 15:40:28] Production.INFO: count ==4361 [2024-12-30 15:40:29] Production.ERROR: pbx CDR StartTime 2024-12-30 12:40:06 - End Time 2024-12-30 15:40:06 [2024-12-30 15:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137189', 'tblTempUsageDetail_20' ) start [2024-12-30 15:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137189', 'tblTempUsageDetail_20' ) end [2024-12-30 15:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137189', 'tblTempVendorCDR_20' ) start [2024-12-30 15:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137189', 'tblTempVendorCDR_20' ) end [2024-12-30 15:40:29] Production.INFO: ProcessCDR(1,14137189,1,1,2) [2024-12-30 15:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137189', 'tblTempUsageDetail_20' ) start [2024-12-30 15:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137189', 'tblTempUsageDetail_20' ) end [2024-12-30 15:40:34] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:40:34] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:40:34] Production.INFO: ==8174== Releasing lock... [2024-12-30 15:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:40:34] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:41:05 [end_date_ymd] => 2024-12-30 15:41:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:41:05' and `end` < '2024-12-30 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 15:41:29] Production.INFO: count ==4344 [2024-12-30 15:41:31] Production.ERROR: pbx CDR StartTime 2024-12-30 12:41:05 - End Time 2024-12-30 15:41:05 [2024-12-30 15:41:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137194', 'tblTempUsageDetail_20' ) start [2024-12-30 15:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137194', 'tblTempUsageDetail_20' ) end [2024-12-30 15:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137194', 'tblTempVendorCDR_20' ) start [2024-12-30 15:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137194', 'tblTempVendorCDR_20' ) end [2024-12-30 15:41:31] Production.INFO: ProcessCDR(1,14137194,1,1,2) [2024-12-30 15:41:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:41:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:41:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:41:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137194', 'tblTempUsageDetail_20' ) start [2024-12-30 15:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137194', 'tblTempUsageDetail_20' ) end [2024-12-30 15:41:35] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:41:35] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:41:35] Production.INFO: ==8288== Releasing lock... [2024-12-30 15:41:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:41:35] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:42:05 [end_date_ymd] => 2024-12-30 15:42:05 [RateCDR] => 1 ) [2024-12-30 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 12:42:05' and `end` < '2024-12-30 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 15:42:25] Production.INFO: count ==4367 [2024-12-30 15:42:27] Production.ERROR: pbx CDR StartTime 2024-12-30 12:42:05 - End Time 2024-12-30 15:42:05 [2024-12-30 15:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137199', 'tblTempUsageDetail_20' ) start [2024-12-30 15:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137199', 'tblTempUsageDetail_20' ) end [2024-12-30 15:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137199', 'tblTempVendorCDR_20' ) start [2024-12-30 15:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137199', 'tblTempVendorCDR_20' ) end [2024-12-30 15:42:27] Production.INFO: ProcessCDR(1,14137199,1,1,2) [2024-12-30 15:42:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:42:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:42:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137199', 'tblTempUsageDetail_20' ) start [2024-12-30 15:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137199', 'tblTempUsageDetail_20' ) end [2024-12-30 15:42:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:42:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:42:32] Production.INFO: ==8387== Releasing lock... [2024-12-30 15:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:42:32] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 15:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:43:04 [end_date_ymd] => 2024-12-30 15:43:04 [RateCDR] => 1 ) [2024-12-30 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-30 12:43:04' and `end` < '2024-12-30 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-30 15:43:26] Production.INFO: count ==4361 [2024-12-30 15:43:28] Production.ERROR: pbx CDR StartTime 2024-12-30 12:43:04 - End Time 2024-12-30 15:43:04 [2024-12-30 15:43:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137204', 'tblTempUsageDetail_20' ) start [2024-12-30 15:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137204', 'tblTempUsageDetail_20' ) end [2024-12-30 15:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137204', 'tblTempVendorCDR_20' ) start [2024-12-30 15:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137204', 'tblTempVendorCDR_20' ) end [2024-12-30 15:43:28] Production.INFO: ProcessCDR(1,14137204,1,1,2) [2024-12-30 15:43:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:43:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137204', 'tblTempUsageDetail_20' ) start [2024-12-30 15:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137204', 'tblTempUsageDetail_20' ) end [2024-12-30 15:43:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:43:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:43:32] Production.INFO: ==8486== Releasing lock... [2024-12-30 15:43:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:43:32] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:44:05 [end_date_ymd] => 2024-12-30 15:44:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:44:05' and `end` < '2024-12-30 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-30 15:44:23] Production.INFO: count ==4348 [2024-12-30 15:44:25] Production.ERROR: pbx CDR StartTime 2024-12-30 12:44:05 - End Time 2024-12-30 15:44:05 [2024-12-30 15:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137209', 'tblTempUsageDetail_20' ) start [2024-12-30 15:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137209', 'tblTempUsageDetail_20' ) end [2024-12-30 15:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137209', 'tblTempVendorCDR_20' ) start [2024-12-30 15:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137209', 'tblTempVendorCDR_20' ) end [2024-12-30 15:44:25] Production.INFO: ProcessCDR(1,14137209,1,1,2) [2024-12-30 15:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137209', 'tblTempUsageDetail_20' ) start [2024-12-30 15:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137209', 'tblTempUsageDetail_20' ) end [2024-12-30 15:44:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:44:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:44:29] Production.INFO: ==8579== Releasing lock... [2024-12-30 15:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:44:29] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:45:05 [end_date_ymd] => 2024-12-30 15:45:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:45:05' and `end` < '2024-12-30 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-30 15:45:24] Production.INFO: count ==4337 [2024-12-30 15:45:26] Production.ERROR: pbx CDR StartTime 2024-12-30 12:45:05 - End Time 2024-12-30 15:45:05 [2024-12-30 15:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137214', 'tblTempUsageDetail_20' ) start [2024-12-30 15:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137214', 'tblTempUsageDetail_20' ) end [2024-12-30 15:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137214', 'tblTempVendorCDR_20' ) start [2024-12-30 15:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137214', 'tblTempVendorCDR_20' ) end [2024-12-30 15:45:26] Production.INFO: ProcessCDR(1,14137214,1,1,2) [2024-12-30 15:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137214', 'tblTempUsageDetail_20' ) start [2024-12-30 15:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137214', 'tblTempUsageDetail_20' ) end [2024-12-30 15:45:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:45:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:45:31] Production.INFO: ==8672== Releasing lock... [2024-12-30 15:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:45:31] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 15:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:46:04 [end_date_ymd] => 2024-12-30 15:46:04 [RateCDR] => 1 ) [2024-12-30 15: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-30 12:46:04' and `end` < '2024-12-30 15: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-30 15:46:22] Production.INFO: count ==4339 [2024-12-30 15:46:24] Production.ERROR: pbx CDR StartTime 2024-12-30 12:46:04 - End Time 2024-12-30 15:46:04 [2024-12-30 15:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137219', 'tblTempUsageDetail_20' ) start [2024-12-30 15:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137219', 'tblTempUsageDetail_20' ) end [2024-12-30 15:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137219', 'tblTempVendorCDR_20' ) start [2024-12-30 15:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137219', 'tblTempVendorCDR_20' ) end [2024-12-30 15:46:24] Production.INFO: ProcessCDR(1,14137219,1,1,2) [2024-12-30 15:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137219', 'tblTempUsageDetail_20' ) start [2024-12-30 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137219', 'tblTempUsageDetail_20' ) end [2024-12-30 15:46:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:46:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:46:28] Production.INFO: ==8773== Releasing lock... [2024-12-30 15:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:46:28] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:47:05 [end_date_ymd] => 2024-12-30 15:47:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:47:05' and `end` < '2024-12-30 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-30 15:47:23] Production.INFO: count ==4357 [2024-12-30 15:47:25] Production.ERROR: pbx CDR StartTime 2024-12-30 12:47:05 - End Time 2024-12-30 15:47:05 [2024-12-30 15:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137224', 'tblTempUsageDetail_20' ) start [2024-12-30 15:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137224', 'tblTempUsageDetail_20' ) end [2024-12-30 15:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137224', 'tblTempVendorCDR_20' ) start [2024-12-30 15:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137224', 'tblTempVendorCDR_20' ) end [2024-12-30 15:47:25] Production.INFO: ProcessCDR(1,14137224,1,1,2) [2024-12-30 15:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137224', 'tblTempUsageDetail_20' ) start [2024-12-30 15:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137224', 'tblTempUsageDetail_20' ) end [2024-12-30 15:47:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:47:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:47:29] Production.INFO: ==8872== Releasing lock... [2024-12-30 15:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:47:29] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 15:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:48:04 [end_date_ymd] => 2024-12-30 15:48:04 [RateCDR] => 1 ) [2024-12-30 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-30 12:48:04' and `end` < '2024-12-30 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-30 15:48:20] Production.INFO: count ==4350 [2024-12-30 15:48:21] Production.ERROR: pbx CDR StartTime 2024-12-30 12:48:04 - End Time 2024-12-30 15:48:04 [2024-12-30 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137229', 'tblTempUsageDetail_20' ) start [2024-12-30 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137229', 'tblTempUsageDetail_20' ) end [2024-12-30 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137229', 'tblTempVendorCDR_20' ) start [2024-12-30 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137229', 'tblTempVendorCDR_20' ) end [2024-12-30 15:48:22] Production.INFO: ProcessCDR(1,14137229,1,1,2) [2024-12-30 15:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137229', 'tblTempUsageDetail_20' ) start [2024-12-30 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137229', 'tblTempUsageDetail_20' ) end [2024-12-30 15:48:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:48:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:48:26] Production.INFO: ==8969== Releasing lock... [2024-12-30 15:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:48:26] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:49:05 [end_date_ymd] => 2024-12-30 15:49:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:49:05' and `end` < '2024-12-30 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-30 15:49:21] Production.INFO: count ==4361 [2024-12-30 15:49:23] Production.ERROR: pbx CDR StartTime 2024-12-30 12:49:05 - End Time 2024-12-30 15:49:05 [2024-12-30 15:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137234', 'tblTempUsageDetail_20' ) start [2024-12-30 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137234', 'tblTempUsageDetail_20' ) end [2024-12-30 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137234', 'tblTempVendorCDR_20' ) start [2024-12-30 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137234', 'tblTempVendorCDR_20' ) end [2024-12-30 15:49:23] Production.INFO: ProcessCDR(1,14137234,1,1,2) [2024-12-30 15:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137234', 'tblTempUsageDetail_20' ) start [2024-12-30 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137234', 'tblTempUsageDetail_20' ) end [2024-12-30 15:49:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:49:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:49:28] Production.INFO: ==9072== Releasing lock... [2024-12-30 15:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:49:28] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:50:05 [end_date_ymd] => 2024-12-30 15:50:05 [RateCDR] => 1 ) [2024-12-30 15: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-30 12:50:05' and `end` < '2024-12-30 15: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-30 15:50:25] Production.INFO: count ==4366 [2024-12-30 15:50:26] Production.ERROR: pbx CDR StartTime 2024-12-30 12:50:05 - End Time 2024-12-30 15:50:05 [2024-12-30 15:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137240', 'tblTempUsageDetail_20' ) start [2024-12-30 15:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137240', 'tblTempUsageDetail_20' ) end [2024-12-30 15:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137240', 'tblTempVendorCDR_20' ) start [2024-12-30 15:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137240', 'tblTempVendorCDR_20' ) end [2024-12-30 15:50:27] Production.INFO: ProcessCDR(1,14137240,1,1,2) [2024-12-30 15:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137240', 'tblTempUsageDetail_20' ) start [2024-12-30 15:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137240', 'tblTempUsageDetail_20' ) end [2024-12-30 15:50:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:50:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:50:31] Production.INFO: ==9172== Releasing lock... [2024-12-30 15:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:50:31] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 15:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:51:04 [end_date_ymd] => 2024-12-30 15:51:04 [RateCDR] => 1 ) [2024-12-30 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-30 12:51:04' and `end` < '2024-12-30 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-30 15:51:20] Production.INFO: count ==4361 [2024-12-30 15:51:22] Production.ERROR: pbx CDR StartTime 2024-12-30 12:51:04 - End Time 2024-12-30 15:51:04 [2024-12-30 15:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137245', 'tblTempUsageDetail_20' ) start [2024-12-30 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137245', 'tblTempUsageDetail_20' ) end [2024-12-30 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137245', 'tblTempVendorCDR_20' ) start [2024-12-30 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137245', 'tblTempVendorCDR_20' ) end [2024-12-30 15:51:22] Production.INFO: ProcessCDR(1,14137245,1,1,2) [2024-12-30 15:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137245', 'tblTempUsageDetail_20' ) start [2024-12-30 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137245', 'tblTempUsageDetail_20' ) end [2024-12-30 15:51:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:51:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:51:26] Production.INFO: ==9277== Releasing lock... [2024-12-30 15:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:51:26] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:52:05 [end_date_ymd] => 2024-12-30 15:52:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:52:05' and `end` < '2024-12-30 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-30 15:52:20] Production.INFO: count ==4365 [2024-12-30 15:52:21] Production.ERROR: pbx CDR StartTime 2024-12-30 12:52:05 - End Time 2024-12-30 15:52:05 [2024-12-30 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137250', 'tblTempUsageDetail_20' ) start [2024-12-30 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137250', 'tblTempUsageDetail_20' ) end [2024-12-30 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137250', 'tblTempVendorCDR_20' ) start [2024-12-30 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137250', 'tblTempVendorCDR_20' ) end [2024-12-30 15:52:21] Production.INFO: ProcessCDR(1,14137250,1,1,2) [2024-12-30 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137250', 'tblTempUsageDetail_20' ) start [2024-12-30 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137250', 'tblTempUsageDetail_20' ) end [2024-12-30 15:52:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:52:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:52:26] Production.INFO: ==9385== Releasing lock... [2024-12-30 15:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:52:26] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 15:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:53:04 [end_date_ymd] => 2024-12-30 15:53:04 [RateCDR] => 1 ) [2024-12-30 15: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-30 12:53:04' and `end` < '2024-12-30 15: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-30 15:53:21] Production.INFO: count ==4379 [2024-12-30 15:53:22] Production.ERROR: pbx CDR StartTime 2024-12-30 12:53:04 - End Time 2024-12-30 15:53:04 [2024-12-30 15:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137255', 'tblTempUsageDetail_20' ) start [2024-12-30 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137255', 'tblTempUsageDetail_20' ) end [2024-12-30 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137255', 'tblTempVendorCDR_20' ) start [2024-12-30 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137255', 'tblTempVendorCDR_20' ) end [2024-12-30 15:53:23] Production.INFO: ProcessCDR(1,14137255,1,1,2) [2024-12-30 15:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137255', 'tblTempUsageDetail_20' ) start [2024-12-30 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137255', 'tblTempUsageDetail_20' ) end [2024-12-30 15:53:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:53:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:53:27] Production.INFO: ==9483== Releasing lock... [2024-12-30 15:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:53:27] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:54:05 [end_date_ymd] => 2024-12-30 15:54:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:54:05' and `end` < '2024-12-30 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-30 15:54:22] Production.INFO: count ==4385 [2024-12-30 15:54:24] Production.ERROR: pbx CDR StartTime 2024-12-30 12:54:05 - End Time 2024-12-30 15:54:05 [2024-12-30 15:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137260', 'tblTempUsageDetail_20' ) start [2024-12-30 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137260', 'tblTempUsageDetail_20' ) end [2024-12-30 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137260', 'tblTempVendorCDR_20' ) start [2024-12-30 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137260', 'tblTempVendorCDR_20' ) end [2024-12-30 15:54:24] Production.INFO: ProcessCDR(1,14137260,1,1,2) [2024-12-30 15:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137260', 'tblTempUsageDetail_20' ) start [2024-12-30 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137260', 'tblTempUsageDetail_20' ) end [2024-12-30 15:54:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:54:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:54:27] Production.INFO: ==9593== Releasing lock... [2024-12-30 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:54:27] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 15:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:55:04 [end_date_ymd] => 2024-12-30 15:55:04 [RateCDR] => 1 ) [2024-12-30 15: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-30 12:55:04' and `end` < '2024-12-30 15: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-30 15:55:27] Production.INFO: count ==4421 [2024-12-30 15:55:28] Production.ERROR: pbx CDR StartTime 2024-12-30 12:55:04 - End Time 2024-12-30 15:55:04 [2024-12-30 15:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137265', 'tblTempUsageDetail_20' ) start [2024-12-30 15:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137265', 'tblTempUsageDetail_20' ) end [2024-12-30 15:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137265', 'tblTempVendorCDR_20' ) start [2024-12-30 15:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137265', 'tblTempVendorCDR_20' ) end [2024-12-30 15:55:29] Production.INFO: ProcessCDR(1,14137265,1,1,2) [2024-12-30 15:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137265', 'tblTempUsageDetail_20' ) start [2024-12-30 15:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137265', 'tblTempUsageDetail_20' ) end [2024-12-30 15:55:33] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:55:33] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:55:33] Production.INFO: ==9692== Releasing lock... [2024-12-30 15:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:55:33] Production.INFO: 61 MB #Memory Used# [2024-12-30 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:56:06 [end_date_ymd] => 2024-12-30 15:56:06 [RateCDR] => 1 ) [2024-12-30 15:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 12:56:06' and `end` < '2024-12-30 15:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 15:56:24] Production.INFO: count ==4427 [2024-12-30 15:56:26] Production.ERROR: pbx CDR StartTime 2024-12-30 12:56:06 - End Time 2024-12-30 15:56:06 [2024-12-30 15:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137270', 'tblTempUsageDetail_20' ) start [2024-12-30 15:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137270', 'tblTempUsageDetail_20' ) end [2024-12-30 15:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137270', 'tblTempVendorCDR_20' ) start [2024-12-30 15:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137270', 'tblTempVendorCDR_20' ) end [2024-12-30 15:56:26] Production.INFO: ProcessCDR(1,14137270,1,1,2) [2024-12-30 15:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137270', 'tblTempUsageDetail_20' ) start [2024-12-30 15:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137270', 'tblTempUsageDetail_20' ) end [2024-12-30 15:56:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:56:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:56:30] Production.INFO: ==9823== Releasing lock... [2024-12-30 15:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:56:30] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 15:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:57:04 [end_date_ymd] => 2024-12-30 15:57:04 [RateCDR] => 1 ) [2024-12-30 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-30 12:57:04' and `end` < '2024-12-30 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-30 15:57:18] Production.INFO: count ==4419 [2024-12-30 15:57:20] Production.ERROR: pbx CDR StartTime 2024-12-30 12:57:04 - End Time 2024-12-30 15:57:04 [2024-12-30 15:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137275', 'tblTempUsageDetail_20' ) start [2024-12-30 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137275', 'tblTempUsageDetail_20' ) end [2024-12-30 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137275', 'tblTempVendorCDR_20' ) start [2024-12-30 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137275', 'tblTempVendorCDR_20' ) end [2024-12-30 15:57:20] Production.INFO: ProcessCDR(1,14137275,1,1,2) [2024-12-30 15:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137275', 'tblTempUsageDetail_20' ) start [2024-12-30 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137275', 'tblTempUsageDetail_20' ) end [2024-12-30 15:57:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:57:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:57:24] Production.INFO: ==9910== Releasing lock... [2024-12-30 15:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:57:24] Production.INFO: 61 MB #Memory Used# [2024-12-30 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:58:05 [end_date_ymd] => 2024-12-30 15:58:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:58:05' and `end` < '2024-12-30 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-30 15:58:25] Production.INFO: count ==4428 [2024-12-30 15:58:26] Production.ERROR: pbx CDR StartTime 2024-12-30 12:58:05 - End Time 2024-12-30 15:58:05 [2024-12-30 15:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137280', 'tblTempUsageDetail_20' ) start [2024-12-30 15:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137280', 'tblTempUsageDetail_20' ) end [2024-12-30 15:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137280', 'tblTempVendorCDR_20' ) start [2024-12-30 15:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137280', 'tblTempVendorCDR_20' ) end [2024-12-30 15:58:27] Production.INFO: ProcessCDR(1,14137280,1,1,2) [2024-12-30 15:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137280', 'tblTempUsageDetail_20' ) start [2024-12-30 15:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137280', 'tblTempUsageDetail_20' ) end [2024-12-30 15:58:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:58:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:58:31] Production.INFO: ==9997== Releasing lock... [2024-12-30 15:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:58:31] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 12:59:05 [end_date_ymd] => 2024-12-30 15:59:05 [RateCDR] => 1 ) [2024-12-30 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-30 12:59:05' and `end` < '2024-12-30 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-30 15:59:22] Production.INFO: count ==4411 [2024-12-30 15:59:24] Production.ERROR: pbx CDR StartTime 2024-12-30 12:59:05 - End Time 2024-12-30 15:59:05 [2024-12-30 15:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 15:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137285', 'tblTempUsageDetail_20' ) start [2024-12-30 15:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137285', 'tblTempUsageDetail_20' ) end [2024-12-30 15:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137285', 'tblTempVendorCDR_20' ) start [2024-12-30 15:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137285', 'tblTempVendorCDR_20' ) end [2024-12-30 15:59:24] Production.INFO: ProcessCDR(1,14137285,1,1,2) [2024-12-30 15:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 15:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137285', 'tblTempUsageDetail_20' ) start [2024-12-30 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137285', 'tblTempUsageDetail_20' ) end [2024-12-30 15:59:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 15:59:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 15:59:28] Production.INFO: ==10079== Releasing lock... [2024-12-30 15:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 15:59:28] Production.INFO: 61 MB #Memory Used# [2024-12-30 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:00:05 [end_date_ymd] => 2024-12-30 16:00:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:00:05' and `end` < '2024-12-30 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-30 16:00:26] Production.INFO: count ==4411 [2024-12-30 16:00:28] Production.ERROR: pbx CDR StartTime 2024-12-30 13:00:05 - End Time 2024-12-30 16:00:05 [2024-12-30 16:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137291', 'tblTempUsageDetail_20' ) start [2024-12-30 16:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137291', 'tblTempUsageDetail_20' ) end [2024-12-30 16:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137291', 'tblTempVendorCDR_20' ) start [2024-12-30 16:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137291', 'tblTempVendorCDR_20' ) end [2024-12-30 16:00:28] Production.INFO: ProcessCDR(1,14137291,1,1,2) [2024-12-30 16:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137291', 'tblTempUsageDetail_20' ) start [2024-12-30 16:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137291', 'tblTempUsageDetail_20' ) end [2024-12-30 16:00:33] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:00:33] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:00:33] Production.INFO: ==10165== Releasing lock... [2024-12-30 16:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:00:33] Production.INFO: 61 MB #Memory Used# [2024-12-30 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:01:05 [end_date_ymd] => 2024-12-30 16:01:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:01:05' and `end` < '2024-12-30 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-30 16:01:25] Production.INFO: count ==4446 [2024-12-30 16:01:26] Production.ERROR: pbx CDR StartTime 2024-12-30 13:01:05 - End Time 2024-12-30 16:01:05 [2024-12-30 16:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137296', 'tblTempUsageDetail_20' ) start [2024-12-30 16:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137296', 'tblTempUsageDetail_20' ) end [2024-12-30 16:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137296', 'tblTempVendorCDR_20' ) start [2024-12-30 16:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137296', 'tblTempVendorCDR_20' ) end [2024-12-30 16:01:27] Production.INFO: ProcessCDR(1,14137296,1,1,2) [2024-12-30 16:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137296', 'tblTempUsageDetail_20' ) start [2024-12-30 16:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137296', 'tblTempUsageDetail_20' ) end [2024-12-30 16:01:31] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:01:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:01:31] Production.INFO: ==10263== Releasing lock... [2024-12-30 16:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:01:31] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:02:05 [end_date_ymd] => 2024-12-30 16:02:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:02:05' and `end` < '2024-12-30 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-30 16:02:24] Production.INFO: count ==4442 [2024-12-30 16:02:26] Production.ERROR: pbx CDR StartTime 2024-12-30 13:02:05 - End Time 2024-12-30 16:02:05 [2024-12-30 16:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137301', 'tblTempUsageDetail_20' ) start [2024-12-30 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137301', 'tblTempUsageDetail_20' ) end [2024-12-30 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137301', 'tblTempVendorCDR_20' ) start [2024-12-30 16:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137301', 'tblTempVendorCDR_20' ) end [2024-12-30 16:02:26] Production.INFO: ProcessCDR(1,14137301,1,1,2) [2024-12-30 16:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137301', 'tblTempUsageDetail_20' ) start [2024-12-30 16:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137301', 'tblTempUsageDetail_20' ) end [2024-12-30 16:02:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:02:31] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:02:31] Production.INFO: ==10343== Releasing lock... [2024-12-30 16:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:02:31] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:03:05 [end_date_ymd] => 2024-12-30 16:03:05 [RateCDR] => 1 ) [2024-12-30 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 13:03:05' and `end` < '2024-12-30 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 16:03:20] Production.INFO: count ==4445 [2024-12-30 16:03:22] Production.ERROR: pbx CDR StartTime 2024-12-30 13:03:05 - End Time 2024-12-30 16:03:05 [2024-12-30 16:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137306', 'tblTempUsageDetail_20' ) start [2024-12-30 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137306', 'tblTempUsageDetail_20' ) end [2024-12-30 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137306', 'tblTempVendorCDR_20' ) start [2024-12-30 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137306', 'tblTempVendorCDR_20' ) end [2024-12-30 16:03:22] Production.INFO: ProcessCDR(1,14137306,1,1,2) [2024-12-30 16:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137306', 'tblTempUsageDetail_20' ) start [2024-12-30 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137306', 'tblTempUsageDetail_20' ) end [2024-12-30 16:03:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:03:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:03:27] Production.INFO: ==10425== Releasing lock... [2024-12-30 16:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:03:27] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:04:05 [end_date_ymd] => 2024-12-30 16:04:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:04:05' and `end` < '2024-12-30 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-30 16:04:21] Production.INFO: count ==4421 [2024-12-30 16:04:22] Production.ERROR: pbx CDR StartTime 2024-12-30 13:04:05 - End Time 2024-12-30 16:04:05 [2024-12-30 16:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137311', 'tblTempUsageDetail_20' ) start [2024-12-30 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137311', 'tblTempUsageDetail_20' ) end [2024-12-30 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137311', 'tblTempVendorCDR_20' ) start [2024-12-30 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137311', 'tblTempVendorCDR_20' ) end [2024-12-30 16:04:22] Production.INFO: ProcessCDR(1,14137311,1,1,2) [2024-12-30 16:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137311', 'tblTempUsageDetail_20' ) start [2024-12-30 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137311', 'tblTempUsageDetail_20' ) end [2024-12-30 16:04:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:04:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:04:27] Production.INFO: ==10507== Releasing lock... [2024-12-30 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:04:27] Production.INFO: 61 MB #Memory Used# [2024-12-30 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:05:05 [end_date_ymd] => 2024-12-30 16:05:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:05:05' and `end` < '2024-12-30 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-30 16:05:18] Production.INFO: count ==4427 [2024-12-30 16:05:20] Production.ERROR: pbx CDR StartTime 2024-12-30 13:05:05 - End Time 2024-12-30 16:05:05 [2024-12-30 16:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137316', 'tblTempUsageDetail_20' ) start [2024-12-30 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137316', 'tblTempUsageDetail_20' ) end [2024-12-30 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137316', 'tblTempVendorCDR_20' ) start [2024-12-30 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137316', 'tblTempVendorCDR_20' ) end [2024-12-30 16:05:20] Production.INFO: ProcessCDR(1,14137316,1,1,2) [2024-12-30 16:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137316', 'tblTempUsageDetail_20' ) start [2024-12-30 16:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137316', 'tblTempUsageDetail_20' ) end [2024-12-30 16:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:05:25] Production.INFO: ==10593== Releasing lock... [2024-12-30 16:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:05:25] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:06:05 [end_date_ymd] => 2024-12-30 16:06:05 [RateCDR] => 1 ) [2024-12-30 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 13:06:05' and `end` < '2024-12-30 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 16:06:26] Production.INFO: count ==4439 [2024-12-30 16:06:27] Production.ERROR: pbx CDR StartTime 2024-12-30 13:06:05 - End Time 2024-12-30 16:06:05 [2024-12-30 16:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137321', 'tblTempUsageDetail_20' ) start [2024-12-30 16:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137321', 'tblTempUsageDetail_20' ) end [2024-12-30 16:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137321', 'tblTempVendorCDR_20' ) start [2024-12-30 16:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137321', 'tblTempVendorCDR_20' ) end [2024-12-30 16:06:27] Production.INFO: ProcessCDR(1,14137321,1,1,2) [2024-12-30 16:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137321', 'tblTempUsageDetail_20' ) start [2024-12-30 16:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137321', 'tblTempUsageDetail_20' ) end [2024-12-30 16:06:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:06:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:06:32] Production.INFO: ==10677== Releasing lock... [2024-12-30 16:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:06:32] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:07:05 [end_date_ymd] => 2024-12-30 16:07:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:07:05' and `end` < '2024-12-30 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-30 16:07:23] Production.INFO: count ==4433 [2024-12-30 16:07:25] Production.ERROR: pbx CDR StartTime 2024-12-30 13:07:05 - End Time 2024-12-30 16:07:05 [2024-12-30 16:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137326', 'tblTempUsageDetail_20' ) start [2024-12-30 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137326', 'tblTempUsageDetail_20' ) end [2024-12-30 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137326', 'tblTempVendorCDR_20' ) start [2024-12-30 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137326', 'tblTempVendorCDR_20' ) end [2024-12-30 16:07:25] Production.INFO: ProcessCDR(1,14137326,1,1,2) [2024-12-30 16:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137326', 'tblTempUsageDetail_20' ) start [2024-12-30 16:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137326', 'tblTempUsageDetail_20' ) end [2024-12-30 16:07:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:07:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:07:30] Production.INFO: ==10759== Releasing lock... [2024-12-30 16:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:07:30] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:08:04 [end_date_ymd] => 2024-12-30 16:08:04 [RateCDR] => 1 ) [2024-12-30 16: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-30 13:08:04' and `end` < '2024-12-30 16: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-30 16:08:17] Production.INFO: count ==4439 [2024-12-30 16:08:19] Production.ERROR: pbx CDR StartTime 2024-12-30 13:08:04 - End Time 2024-12-30 16:08:04 [2024-12-30 16:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137331', 'tblTempUsageDetail_20' ) start [2024-12-30 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137331', 'tblTempUsageDetail_20' ) end [2024-12-30 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137331', 'tblTempVendorCDR_20' ) start [2024-12-30 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137331', 'tblTempVendorCDR_20' ) end [2024-12-30 16:08:19] Production.INFO: ProcessCDR(1,14137331,1,1,2) [2024-12-30 16:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137331', 'tblTempUsageDetail_20' ) start [2024-12-30 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137331', 'tblTempUsageDetail_20' ) end [2024-12-30 16:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:08:24] Production.INFO: ==10841== Releasing lock... [2024-12-30 16:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:08:24] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:09:05 [end_date_ymd] => 2024-12-30 16:09:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:09:05' and `end` < '2024-12-30 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-30 16:09:18] Production.INFO: count ==4423 [2024-12-30 16:09:20] Production.ERROR: pbx CDR StartTime 2024-12-30 13:09:05 - End Time 2024-12-30 16:09:05 [2024-12-30 16:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137336', 'tblTempUsageDetail_20' ) start [2024-12-30 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137336', 'tblTempUsageDetail_20' ) end [2024-12-30 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137336', 'tblTempVendorCDR_20' ) start [2024-12-30 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137336', 'tblTempVendorCDR_20' ) end [2024-12-30 16:09:20] Production.INFO: ProcessCDR(1,14137336,1,1,2) [2024-12-30 16:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137336', 'tblTempUsageDetail_20' ) start [2024-12-30 16:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137336', 'tblTempUsageDetail_20' ) end [2024-12-30 16:09:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:09:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:09:24] Production.INFO: ==10919== Releasing lock... [2024-12-30 16:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:09:24] Production.INFO: 61 MB #Memory Used# [2024-12-30 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:10:06 [end_date_ymd] => 2024-12-30 16:10:06 [RateCDR] => 1 ) [2024-12-30 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 13:10:06' and `end` < '2024-12-30 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 16:10:22] Production.INFO: count ==4423 [2024-12-30 16:10:24] Production.ERROR: pbx CDR StartTime 2024-12-30 13:10:06 - End Time 2024-12-30 16:10:06 [2024-12-30 16:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137342', 'tblTempUsageDetail_20' ) start [2024-12-30 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137342', 'tblTempUsageDetail_20' ) end [2024-12-30 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137342', 'tblTempVendorCDR_20' ) start [2024-12-30 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137342', 'tblTempVendorCDR_20' ) end [2024-12-30 16:10:24] Production.INFO: ProcessCDR(1,14137342,1,1,2) [2024-12-30 16:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137342', 'tblTempUsageDetail_20' ) start [2024-12-30 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137342', 'tblTempUsageDetail_20' ) end [2024-12-30 16:10:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:10:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:10:29] Production.INFO: ==11009== Releasing lock... [2024-12-30 16:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:10:29] Production.INFO: 61 MB #Memory Used# [2024-12-30 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:11:05 [end_date_ymd] => 2024-12-30 16:11:05 [RateCDR] => 1 ) [2024-12-30 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 13:11:05' and `end` < '2024-12-30 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 16:11:20] Production.INFO: count ==4448 [2024-12-30 16:11:22] Production.ERROR: pbx CDR StartTime 2024-12-30 13:11:05 - End Time 2024-12-30 16:11:05 [2024-12-30 16:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137347', 'tblTempUsageDetail_20' ) start [2024-12-30 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137347', 'tblTempUsageDetail_20' ) end [2024-12-30 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137347', 'tblTempVendorCDR_20' ) start [2024-12-30 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137347', 'tblTempVendorCDR_20' ) end [2024-12-30 16:11:22] Production.INFO: ProcessCDR(1,14137347,1,1,2) [2024-12-30 16:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137347', 'tblTempUsageDetail_20' ) start [2024-12-30 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137347', 'tblTempUsageDetail_20' ) end [2024-12-30 16:11:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:11:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:11:27] Production.INFO: ==11162== Releasing lock... [2024-12-30 16:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:11:27] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:12:05 [end_date_ymd] => 2024-12-30 16:12:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:12:05' and `end` < '2024-12-30 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-30 16:12:35] Production.INFO: count ==4455 [2024-12-30 16:12:36] Production.ERROR: pbx CDR StartTime 2024-12-30 13:12:05 - End Time 2024-12-30 16:12:05 [2024-12-30 16:12:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:12:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137352', 'tblTempUsageDetail_20' ) start [2024-12-30 16:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137352', 'tblTempUsageDetail_20' ) end [2024-12-30 16:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137352', 'tblTempVendorCDR_20' ) start [2024-12-30 16:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137352', 'tblTempVendorCDR_20' ) end [2024-12-30 16:12:37] Production.INFO: ProcessCDR(1,14137352,1,1,2) [2024-12-30 16:12:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:12:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:12:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:12:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:12:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137352', 'tblTempUsageDetail_20' ) start [2024-12-30 16:12:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137352', 'tblTempUsageDetail_20' ) end [2024-12-30 16:12:41] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:12:41] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:12:41] Production.INFO: ==11278== Releasing lock... [2024-12-30 16:12:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:12:41] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:13:04 [end_date_ymd] => 2024-12-30 16:13:04 [RateCDR] => 1 ) [2024-12-30 16: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-30 13:13:04' and `end` < '2024-12-30 16: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-30 16:13:27] Production.INFO: count ==4457 [2024-12-30 16:13:29] Production.ERROR: pbx CDR StartTime 2024-12-30 13:13:04 - End Time 2024-12-30 16:13:04 [2024-12-30 16:13:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137357', 'tblTempUsageDetail_20' ) start [2024-12-30 16:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137357', 'tblTempUsageDetail_20' ) end [2024-12-30 16:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137357', 'tblTempVendorCDR_20' ) start [2024-12-30 16:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137357', 'tblTempVendorCDR_20' ) end [2024-12-30 16:13:29] Production.INFO: ProcessCDR(1,14137357,1,1,2) [2024-12-30 16:13:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137357', 'tblTempUsageDetail_20' ) start [2024-12-30 16:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137357', 'tblTempUsageDetail_20' ) end [2024-12-30 16:13:34] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:13:34] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:13:34] Production.INFO: ==11383== Releasing lock... [2024-12-30 16:13:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:13:34] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:14:05 [end_date_ymd] => 2024-12-30 16:14:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:14:05' and `end` < '2024-12-30 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-30 16:14:21] Production.INFO: count ==4430 [2024-12-30 16:14:23] Production.ERROR: pbx CDR StartTime 2024-12-30 13:14:05 - End Time 2024-12-30 16:14:05 [2024-12-30 16:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137362', 'tblTempUsageDetail_20' ) start [2024-12-30 16:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137362', 'tblTempUsageDetail_20' ) end [2024-12-30 16:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137362', 'tblTempVendorCDR_20' ) start [2024-12-30 16:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137362', 'tblTempVendorCDR_20' ) end [2024-12-30 16:14:23] Production.INFO: ProcessCDR(1,14137362,1,1,2) [2024-12-30 16:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137362', 'tblTempUsageDetail_20' ) start [2024-12-30 16:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137362', 'tblTempUsageDetail_20' ) end [2024-12-30 16:14:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:14:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:14:28] Production.INFO: ==11490== Releasing lock... [2024-12-30 16:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:14:28] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:15:04 [end_date_ymd] => 2024-12-30 16:15:04 [RateCDR] => 1 ) [2024-12-30 16: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-30 13:15:04' and `end` < '2024-12-30 16: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-30 16:15:18] Production.INFO: count ==4406 [2024-12-30 16:15:19] Production.ERROR: pbx CDR StartTime 2024-12-30 13:15:04 - End Time 2024-12-30 16:15:04 [2024-12-30 16:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137367', 'tblTempUsageDetail_20' ) start [2024-12-30 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137367', 'tblTempUsageDetail_20' ) end [2024-12-30 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137367', 'tblTempVendorCDR_20' ) start [2024-12-30 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137367', 'tblTempVendorCDR_20' ) end [2024-12-30 16:15:20] Production.INFO: ProcessCDR(1,14137367,1,1,2) [2024-12-30 16:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137367', 'tblTempUsageDetail_20' ) start [2024-12-30 16:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137367', 'tblTempUsageDetail_20' ) end [2024-12-30 16:15:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:15:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:15:24] Production.INFO: ==11597== Releasing lock... [2024-12-30 16:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:15:24] Production.INFO: 61 MB #Memory Used# [2024-12-30 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:16:05 [end_date_ymd] => 2024-12-30 16:16:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:16:05' and `end` < '2024-12-30 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-30 16:16:18] Production.INFO: count ==4396 [2024-12-30 16:16:20] Production.ERROR: pbx CDR StartTime 2024-12-30 13:16:05 - End Time 2024-12-30 16:16:05 [2024-12-30 16:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137372', 'tblTempUsageDetail_20' ) start [2024-12-30 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137372', 'tblTempUsageDetail_20' ) end [2024-12-30 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137372', 'tblTempVendorCDR_20' ) start [2024-12-30 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137372', 'tblTempVendorCDR_20' ) end [2024-12-30 16:16:20] Production.INFO: ProcessCDR(1,14137372,1,1,2) [2024-12-30 16:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137372', 'tblTempUsageDetail_20' ) start [2024-12-30 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137372', 'tblTempUsageDetail_20' ) end [2024-12-30 16:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:16:25] Production.INFO: ==11706== Releasing lock... [2024-12-30 16:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:16:25] Production.INFO: 61 MB #Memory Used# [2024-12-30 16:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:17:04 [end_date_ymd] => 2024-12-30 16:17:04 [RateCDR] => 1 ) [2024-12-30 16:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 13:17:04' and `end` < '2024-12-30 16:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 16:17:18] Production.INFO: count ==4392 [2024-12-30 16:17:20] Production.ERROR: pbx CDR StartTime 2024-12-30 13:17:04 - End Time 2024-12-30 16:17:04 [2024-12-30 16:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137377', 'tblTempUsageDetail_20' ) start [2024-12-30 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137377', 'tblTempUsageDetail_20' ) end [2024-12-30 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137377', 'tblTempVendorCDR_20' ) start [2024-12-30 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137377', 'tblTempVendorCDR_20' ) end [2024-12-30 16:17:20] Production.INFO: ProcessCDR(1,14137377,1,1,2) [2024-12-30 16:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137377', 'tblTempUsageDetail_20' ) start [2024-12-30 16:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137377', 'tblTempUsageDetail_20' ) end [2024-12-30 16:17:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:17:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:17:24] Production.INFO: ==11825== Releasing lock... [2024-12-30 16:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:17:24] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 16:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:18:04 [end_date_ymd] => 2024-12-30 16:18:04 [RateCDR] => 1 ) [2024-12-30 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-30 13:18:04' and `end` < '2024-12-30 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-30 16:18:20] Production.INFO: count ==4400 [2024-12-30 16:18:22] Production.ERROR: pbx CDR StartTime 2024-12-30 13:18:04 - End Time 2024-12-30 16:18:04 [2024-12-30 16:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137381', 'tblTempUsageDetail_20' ) start [2024-12-30 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137381', 'tblTempUsageDetail_20' ) end [2024-12-30 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137381', 'tblTempVendorCDR_20' ) start [2024-12-30 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137381', 'tblTempVendorCDR_20' ) end [2024-12-30 16:18:22] Production.INFO: ProcessCDR(1,14137381,1,1,2) [2024-12-30 16:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137381', 'tblTempUsageDetail_20' ) start [2024-12-30 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137381', 'tblTempUsageDetail_20' ) end [2024-12-30 16:18:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:18:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:18:26] Production.INFO: ==11942== Releasing lock... [2024-12-30 16:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:18:26] Production.INFO: 61 MB #Memory Used# [2024-12-30 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:19:05 [end_date_ymd] => 2024-12-30 16:19:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:19:05' and `end` < '2024-12-30 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-30 16:19:22] Production.INFO: count ==4393 [2024-12-30 16:19:24] Production.ERROR: pbx CDR StartTime 2024-12-30 13:19:05 - End Time 2024-12-30 16:19:05 [2024-12-30 16:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137387', 'tblTempUsageDetail_20' ) start [2024-12-30 16:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137387', 'tblTempUsageDetail_20' ) end [2024-12-30 16:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137387', 'tblTempVendorCDR_20' ) start [2024-12-30 16:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137387', 'tblTempVendorCDR_20' ) end [2024-12-30 16:19:24] Production.INFO: ProcessCDR(1,14137387,1,1,2) [2024-12-30 16:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137387', 'tblTempUsageDetail_20' ) start [2024-12-30 16:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137387', 'tblTempUsageDetail_20' ) end [2024-12-30 16:19:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:19:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:19:29] Production.INFO: ==12059== Releasing lock... [2024-12-30 16:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:19:29] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:20:05 [end_date_ymd] => 2024-12-30 16:20:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:20:05' and `end` < '2024-12-30 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-30 16:20:19] Production.INFO: count ==4392 [2024-12-30 16:20:20] Production.ERROR: pbx CDR StartTime 2024-12-30 13:20:05 - End Time 2024-12-30 16:20:05 [2024-12-30 16:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137393', 'tblTempUsageDetail_20' ) start [2024-12-30 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137393', 'tblTempUsageDetail_20' ) end [2024-12-30 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137393', 'tblTempVendorCDR_20' ) start [2024-12-30 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137393', 'tblTempVendorCDR_20' ) end [2024-12-30 16:20:20] Production.INFO: ProcessCDR(1,14137393,1,1,2) [2024-12-30 16:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137393', 'tblTempUsageDetail_20' ) start [2024-12-30 16:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137393', 'tblTempUsageDetail_20' ) end [2024-12-30 16:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:20:25] Production.INFO: ==12176== Releasing lock... [2024-12-30 16:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:20:25] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:21:05 [end_date_ymd] => 2024-12-30 16:21:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:21:05' and `end` < '2024-12-30 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-30 16:21:21] Production.INFO: count ==4416 [2024-12-30 16:21:23] Production.ERROR: pbx CDR StartTime 2024-12-30 13:21:05 - End Time 2024-12-30 16:21:05 [2024-12-30 16:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137398', 'tblTempUsageDetail_20' ) start [2024-12-30 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137398', 'tblTempUsageDetail_20' ) end [2024-12-30 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137398', 'tblTempVendorCDR_20' ) start [2024-12-30 16:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137398', 'tblTempVendorCDR_20' ) end [2024-12-30 16:21:23] Production.INFO: ProcessCDR(1,14137398,1,1,2) [2024-12-30 16:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137398', 'tblTempUsageDetail_20' ) start [2024-12-30 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137398', 'tblTempUsageDetail_20' ) end [2024-12-30 16:21:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:21:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:21:27] Production.INFO: ==12296== Releasing lock... [2024-12-30 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:21:27] Production.INFO: 61 MB #Memory Used# [2024-12-30 16:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:22:04 [end_date_ymd] => 2024-12-30 16:22:04 [RateCDR] => 1 ) [2024-12-30 16: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-30 13:22:04' and `end` < '2024-12-30 16: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-30 16:22:22] Production.INFO: count ==4418 [2024-12-30 16:22:24] Production.ERROR: pbx CDR StartTime 2024-12-30 13:22:04 - End Time 2024-12-30 16:22:04 [2024-12-30 16:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137403', 'tblTempUsageDetail_20' ) start [2024-12-30 16:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137403', 'tblTempUsageDetail_20' ) end [2024-12-30 16:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137403', 'tblTempVendorCDR_20' ) start [2024-12-30 16:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137403', 'tblTempVendorCDR_20' ) end [2024-12-30 16:22:24] Production.INFO: ProcessCDR(1,14137403,1,1,2) [2024-12-30 16:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137403', 'tblTempUsageDetail_20' ) start [2024-12-30 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137403', 'tblTempUsageDetail_20' ) end [2024-12-30 16:22:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:22:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:22:28] Production.INFO: ==12420== Releasing lock... [2024-12-30 16:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:22:28] Production.INFO: 61 MB #Memory Used# [2024-12-30 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:23:05 [end_date_ymd] => 2024-12-30 16:23:05 [RateCDR] => 1 ) [2024-12-30 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 13:23:05' and `end` < '2024-12-30 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 16:23:26] Production.INFO: count ==4414 [2024-12-30 16:23:28] Production.ERROR: pbx CDR StartTime 2024-12-30 13:23:05 - End Time 2024-12-30 16:23:05 [2024-12-30 16:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137408', 'tblTempUsageDetail_20' ) start [2024-12-30 16:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137408', 'tblTempUsageDetail_20' ) end [2024-12-30 16:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137408', 'tblTempVendorCDR_20' ) start [2024-12-30 16:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137408', 'tblTempVendorCDR_20' ) end [2024-12-30 16:23:28] Production.INFO: ProcessCDR(1,14137408,1,1,2) [2024-12-30 16:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137408', 'tblTempUsageDetail_20' ) start [2024-12-30 16:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137408', 'tblTempUsageDetail_20' ) end [2024-12-30 16:23:32] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:23:32] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:23:32] Production.INFO: ==12543== Releasing lock... [2024-12-30 16:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:23:32] Production.INFO: 61 MB #Memory Used# [2024-12-30 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:24:05 [end_date_ymd] => 2024-12-30 16:24:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:24:05' and `end` < '2024-12-30 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-30 16:24:21] Production.INFO: count ==4420 [2024-12-30 16:24:23] Production.ERROR: pbx CDR StartTime 2024-12-30 13:24:05 - End Time 2024-12-30 16:24:05 [2024-12-30 16:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137413', 'tblTempUsageDetail_20' ) start [2024-12-30 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137413', 'tblTempUsageDetail_20' ) end [2024-12-30 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137413', 'tblTempVendorCDR_20' ) start [2024-12-30 16:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137413', 'tblTempVendorCDR_20' ) end [2024-12-30 16:24:23] Production.INFO: ProcessCDR(1,14137413,1,1,2) [2024-12-30 16:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137413', 'tblTempUsageDetail_20' ) start [2024-12-30 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137413', 'tblTempUsageDetail_20' ) end [2024-12-30 16:24:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:24:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:24:28] Production.INFO: ==12641== Releasing lock... [2024-12-30 16:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:24:28] Production.INFO: 61 MB #Memory Used# [2024-12-30 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:25:05 [end_date_ymd] => 2024-12-30 16:25:05 [RateCDR] => 1 ) [2024-12-30 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 13:25:05' and `end` < '2024-12-30 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 16:25:28] Production.INFO: count ==4419 [2024-12-30 16:25:30] Production.ERROR: pbx CDR StartTime 2024-12-30 13:25:05 - End Time 2024-12-30 16:25:05 [2024-12-30 16:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137418', 'tblTempUsageDetail_20' ) start [2024-12-30 16:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137418', 'tblTempUsageDetail_20' ) end [2024-12-30 16:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137418', 'tblTempVendorCDR_20' ) start [2024-12-30 16:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137418', 'tblTempVendorCDR_20' ) end [2024-12-30 16:25:30] Production.INFO: ProcessCDR(1,14137418,1,1,2) [2024-12-30 16:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137418', 'tblTempUsageDetail_20' ) start [2024-12-30 16:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137418', 'tblTempUsageDetail_20' ) end [2024-12-30 16:25:34] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:25:34] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:25:34] Production.INFO: ==12721== Releasing lock... [2024-12-30 16:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:25:34] Production.INFO: 61 MB #Memory Used# [2024-12-30 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:26:05 [end_date_ymd] => 2024-12-30 16:26:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:26:05' and `end` < '2024-12-30 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-30 16:26:19] Production.INFO: count ==4410 [2024-12-30 16:26:20] Production.ERROR: pbx CDR StartTime 2024-12-30 13:26:05 - End Time 2024-12-30 16:26:05 [2024-12-30 16:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137423', 'tblTempUsageDetail_20' ) start [2024-12-30 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137423', 'tblTempUsageDetail_20' ) end [2024-12-30 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137423', 'tblTempVendorCDR_20' ) start [2024-12-30 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137423', 'tblTempVendorCDR_20' ) end [2024-12-30 16:26:21] Production.INFO: ProcessCDR(1,14137423,1,1,2) [2024-12-30 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137423', 'tblTempUsageDetail_20' ) start [2024-12-30 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137423', 'tblTempUsageDetail_20' ) end [2024-12-30 16:26:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:26:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:26:25] Production.INFO: ==12805== Releasing lock... [2024-12-30 16:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:26:25] Production.INFO: 61 MB #Memory Used# [2024-12-30 16:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:27:04 [end_date_ymd] => 2024-12-30 16:27:04 [RateCDR] => 1 ) [2024-12-30 16: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-30 13:27:04' and `end` < '2024-12-30 16: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-30 16:27:22] Production.INFO: count ==4428 [2024-12-30 16:27:24] Production.ERROR: pbx CDR StartTime 2024-12-30 13:27:04 - End Time 2024-12-30 16:27:04 [2024-12-30 16:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137428', 'tblTempUsageDetail_20' ) start [2024-12-30 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137428', 'tblTempUsageDetail_20' ) end [2024-12-30 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137428', 'tblTempVendorCDR_20' ) start [2024-12-30 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137428', 'tblTempVendorCDR_20' ) end [2024-12-30 16:27:24] Production.INFO: ProcessCDR(1,14137428,1,1,2) [2024-12-30 16:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137428', 'tblTempUsageDetail_20' ) start [2024-12-30 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137428', 'tblTempUsageDetail_20' ) end [2024-12-30 16:27:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:27:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:27:28] Production.INFO: ==12926== Releasing lock... [2024-12-30 16:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:27:28] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:28:05 [end_date_ymd] => 2024-12-30 16:28:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:28:05' and `end` < '2024-12-30 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-30 16:28:19] Production.INFO: count ==4433 [2024-12-30 16:28:21] Production.ERROR: pbx CDR StartTime 2024-12-30 13:28:05 - End Time 2024-12-30 16:28:05 [2024-12-30 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137433', 'tblTempUsageDetail_20' ) start [2024-12-30 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137433', 'tblTempUsageDetail_20' ) end [2024-12-30 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137433', 'tblTempVendorCDR_20' ) start [2024-12-30 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137433', 'tblTempVendorCDR_20' ) end [2024-12-30 16:28:21] Production.INFO: ProcessCDR(1,14137433,1,1,2) [2024-12-30 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137433', 'tblTempUsageDetail_20' ) start [2024-12-30 16:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137433', 'tblTempUsageDetail_20' ) end [2024-12-30 16:28:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:28:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:28:25] Production.INFO: ==13009== Releasing lock... [2024-12-30 16:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:28:25] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:29:05 [end_date_ymd] => 2024-12-30 16:29:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:29:05' and `end` < '2024-12-30 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-30 16:29:24] Production.INFO: count ==4435 [2024-12-30 16:29:25] Production.ERROR: pbx CDR StartTime 2024-12-30 13:29:05 - End Time 2024-12-30 16:29:05 [2024-12-30 16:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137438', 'tblTempUsageDetail_20' ) start [2024-12-30 16:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137438', 'tblTempUsageDetail_20' ) end [2024-12-30 16:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137438', 'tblTempVendorCDR_20' ) start [2024-12-30 16:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137438', 'tblTempVendorCDR_20' ) end [2024-12-30 16:29:25] Production.INFO: ProcessCDR(1,14137438,1,1,2) [2024-12-30 16:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137438', 'tblTempUsageDetail_20' ) start [2024-12-30 16:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137438', 'tblTempUsageDetail_20' ) end [2024-12-30 16:29:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:29:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:29:30] Production.INFO: ==13091== Releasing lock... [2024-12-30 16:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:29:30] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:30:05 [end_date_ymd] => 2024-12-30 16:30:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:30:05' and `end` < '2024-12-30 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-30 16:30:23] Production.INFO: count ==4419 [2024-12-30 16:30:24] Production.ERROR: pbx CDR StartTime 2024-12-30 13:30:05 - End Time 2024-12-30 16:30:05 [2024-12-30 16:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137443', 'tblTempUsageDetail_20' ) start [2024-12-30 16:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137443', 'tblTempUsageDetail_20' ) end [2024-12-30 16:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137443', 'tblTempVendorCDR_20' ) start [2024-12-30 16:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137443', 'tblTempVendorCDR_20' ) end [2024-12-30 16:30:25] Production.INFO: ProcessCDR(1,14137443,1,1,2) [2024-12-30 16:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137443', 'tblTempUsageDetail_20' ) start [2024-12-30 16:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137443', 'tblTempUsageDetail_20' ) end [2024-12-30 16:30:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:30:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:30:29] Production.INFO: ==13173== Releasing lock... [2024-12-30 16:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:30:29] Production.INFO: 61 MB #Memory Used# [2024-12-30 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:31:05 [end_date_ymd] => 2024-12-30 16:31:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:31:05' and `end` < '2024-12-30 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-30 16:31:22] Production.INFO: count ==4425 [2024-12-30 16:31:24] Production.ERROR: pbx CDR StartTime 2024-12-30 13:31:05 - End Time 2024-12-30 16:31:05 [2024-12-30 16:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137449', 'tblTempUsageDetail_20' ) start [2024-12-30 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137449', 'tblTempUsageDetail_20' ) end [2024-12-30 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137449', 'tblTempVendorCDR_20' ) start [2024-12-30 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137449', 'tblTempVendorCDR_20' ) end [2024-12-30 16:31:24] Production.INFO: ProcessCDR(1,14137449,1,1,2) [2024-12-30 16:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137449', 'tblTempUsageDetail_20' ) start [2024-12-30 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137449', 'tblTempUsageDetail_20' ) end [2024-12-30 16:31:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:31:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:31:29] Production.INFO: ==13259== Releasing lock... [2024-12-30 16:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:31:29] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:32:05 [end_date_ymd] => 2024-12-30 16:32:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:32:05' and `end` < '2024-12-30 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-30 16:32:23] Production.INFO: count ==4440 [2024-12-30 16:32:24] Production.ERROR: pbx CDR StartTime 2024-12-30 13:32:05 - End Time 2024-12-30 16:32:05 [2024-12-30 16:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137454', 'tblTempUsageDetail_20' ) start [2024-12-30 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137454', 'tblTempUsageDetail_20' ) end [2024-12-30 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137454', 'tblTempVendorCDR_20' ) start [2024-12-30 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137454', 'tblTempVendorCDR_20' ) end [2024-12-30 16:32:24] Production.INFO: ProcessCDR(1,14137454,1,1,2) [2024-12-30 16:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137454', 'tblTempUsageDetail_20' ) start [2024-12-30 16:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137454', 'tblTempUsageDetail_20' ) end [2024-12-30 16:32:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:32:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:32:29] Production.INFO: ==13340== Releasing lock... [2024-12-30 16:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:32:29] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:33:05 [end_date_ymd] => 2024-12-30 16:33:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:33:05' and `end` < '2024-12-30 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-30 16:33:20] Production.INFO: count ==4437 [2024-12-30 16:33:21] Production.ERROR: pbx CDR StartTime 2024-12-30 13:33:05 - End Time 2024-12-30 16:33:05 [2024-12-30 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137459', 'tblTempUsageDetail_20' ) start [2024-12-30 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137459', 'tblTempUsageDetail_20' ) end [2024-12-30 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137459', 'tblTempVendorCDR_20' ) start [2024-12-30 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137459', 'tblTempVendorCDR_20' ) end [2024-12-30 16:33:22] Production.INFO: ProcessCDR(1,14137459,1,1,2) [2024-12-30 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137459', 'tblTempUsageDetail_20' ) start [2024-12-30 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137459', 'tblTempUsageDetail_20' ) end [2024-12-30 16:33:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:33:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:33:26] Production.INFO: ==13421== Releasing lock... [2024-12-30 16:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:33:26] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:34:05 [end_date_ymd] => 2024-12-30 16:34:05 [RateCDR] => 1 ) [2024-12-30 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 13:34:05' and `end` < '2024-12-30 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 16:34:27] Production.INFO: count ==4444 [2024-12-30 16:34:29] Production.ERROR: pbx CDR StartTime 2024-12-30 13:34:05 - End Time 2024-12-30 16:34:05 [2024-12-30 16:34:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137464', 'tblTempUsageDetail_20' ) start [2024-12-30 16:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137464', 'tblTempUsageDetail_20' ) end [2024-12-30 16:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137464', 'tblTempVendorCDR_20' ) start [2024-12-30 16:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137464', 'tblTempVendorCDR_20' ) end [2024-12-30 16:34:29] Production.INFO: ProcessCDR(1,14137464,1,1,2) [2024-12-30 16:34:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:34:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:34:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:34:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137464', 'tblTempUsageDetail_20' ) start [2024-12-30 16:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137464', 'tblTempUsageDetail_20' ) end [2024-12-30 16:34:33] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:34:34] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:34:34] Production.INFO: ==13506== Releasing lock... [2024-12-30 16:34:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:34:34] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:35:05 [end_date_ymd] => 2024-12-30 16:35:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:35:05' and `end` < '2024-12-30 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-30 16:35:23] Production.INFO: count ==4425 [2024-12-30 16:35:25] Production.ERROR: pbx CDR StartTime 2024-12-30 13:35:05 - End Time 2024-12-30 16:35:05 [2024-12-30 16:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137469', 'tblTempUsageDetail_20' ) start [2024-12-30 16:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137469', 'tblTempUsageDetail_20' ) end [2024-12-30 16:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137469', 'tblTempVendorCDR_20' ) start [2024-12-30 16:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137469', 'tblTempVendorCDR_20' ) end [2024-12-30 16:35:25] Production.INFO: ProcessCDR(1,14137469,1,1,2) [2024-12-30 16:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:35:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:35:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137469', 'tblTempUsageDetail_20' ) start [2024-12-30 16:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137469', 'tblTempUsageDetail_20' ) end [2024-12-30 16:35:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:35:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:35:30] Production.INFO: ==13583== Releasing lock... [2024-12-30 16:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:35:30] Production.INFO: 61.25 MB #Memory Used# [2024-12-30 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:36:05 [end_date_ymd] => 2024-12-30 16:36:05 [RateCDR] => 1 ) [2024-12-30 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 13:36:05' and `end` < '2024-12-30 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 16:36:22] Production.INFO: count ==4419 [2024-12-30 16:36:24] Production.ERROR: pbx CDR StartTime 2024-12-30 13:36:05 - End Time 2024-12-30 16:36:05 [2024-12-30 16:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137474', 'tblTempUsageDetail_20' ) start [2024-12-30 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137474', 'tblTempUsageDetail_20' ) end [2024-12-30 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137474', 'tblTempVendorCDR_20' ) start [2024-12-30 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137474', 'tblTempVendorCDR_20' ) end [2024-12-30 16:36:24] Production.INFO: ProcessCDR(1,14137474,1,1,2) [2024-12-30 16:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137474', 'tblTempUsageDetail_20' ) start [2024-12-30 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137474', 'tblTempUsageDetail_20' ) end [2024-12-30 16:36:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:36:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:36:28] Production.INFO: ==13671== Releasing lock... [2024-12-30 16:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:36:28] Production.INFO: 61 MB #Memory Used# [2024-12-30 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:37:05 [end_date_ymd] => 2024-12-30 16:37:05 [RateCDR] => 1 ) [2024-12-30 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 13:37:05' and `end` < '2024-12-30 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 16:37:23] Production.INFO: count ==4409 [2024-12-30 16:37:25] Production.ERROR: pbx CDR StartTime 2024-12-30 13:37:05 - End Time 2024-12-30 16:37:05 [2024-12-30 16:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137479', 'tblTempUsageDetail_20' ) start [2024-12-30 16:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137479', 'tblTempUsageDetail_20' ) end [2024-12-30 16:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137479', 'tblTempVendorCDR_20' ) start [2024-12-30 16:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137479', 'tblTempVendorCDR_20' ) end [2024-12-30 16:37:25] Production.INFO: ProcessCDR(1,14137479,1,1,2) [2024-12-30 16:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137479', 'tblTempUsageDetail_20' ) start [2024-12-30 16:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137479', 'tblTempUsageDetail_20' ) end [2024-12-30 16:37:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:37:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:37:30] Production.INFO: ==13763== Releasing lock... [2024-12-30 16:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:37:30] Production.INFO: 61 MB #Memory Used# [2024-12-30 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:38:05 [end_date_ymd] => 2024-12-30 16:38:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:38:05' and `end` < '2024-12-30 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-30 16:38:22] Production.INFO: count ==4396 [2024-12-30 16:38:24] Production.ERROR: pbx CDR StartTime 2024-12-30 13:38:05 - End Time 2024-12-30 16:38:05 [2024-12-30 16:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137484', 'tblTempUsageDetail_20' ) start [2024-12-30 16:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137484', 'tblTempUsageDetail_20' ) end [2024-12-30 16:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137484', 'tblTempVendorCDR_20' ) start [2024-12-30 16:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137484', 'tblTempVendorCDR_20' ) end [2024-12-30 16:38:24] Production.INFO: ProcessCDR(1,14137484,1,1,2) [2024-12-30 16:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137484', 'tblTempUsageDetail_20' ) start [2024-12-30 16:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137484', 'tblTempUsageDetail_20' ) end [2024-12-30 16:38:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:38:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:38:29] Production.INFO: ==13849== Releasing lock... [2024-12-30 16:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:38:29] Production.INFO: 61 MB #Memory Used# [2024-12-30 16:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:39:04 [end_date_ymd] => 2024-12-30 16:39:04 [RateCDR] => 1 ) [2024-12-30 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-30 13:39:04' and `end` < '2024-12-30 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-30 16:39:17] Production.INFO: count ==4386 [2024-12-30 16:39:19] Production.ERROR: pbx CDR StartTime 2024-12-30 13:39:04 - End Time 2024-12-30 16:39:04 [2024-12-30 16:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137489', 'tblTempUsageDetail_20' ) start [2024-12-30 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137489', 'tblTempUsageDetail_20' ) end [2024-12-30 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137489', 'tblTempVendorCDR_20' ) start [2024-12-30 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137489', 'tblTempVendorCDR_20' ) end [2024-12-30 16:39:19] Production.INFO: ProcessCDR(1,14137489,1,1,2) [2024-12-30 16:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137489', 'tblTempUsageDetail_20' ) start [2024-12-30 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137489', 'tblTempUsageDetail_20' ) end [2024-12-30 16:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:39:23] Production.INFO: ==13929== Releasing lock... [2024-12-30 16:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:39:23] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:40:05 [end_date_ymd] => 2024-12-30 16:40:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:40:05' and `end` < '2024-12-30 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-30 16:40:28] Production.INFO: count ==4383 [2024-12-30 16:40:30] Production.ERROR: pbx CDR StartTime 2024-12-30 13:40:05 - End Time 2024-12-30 16:40:05 [2024-12-30 16:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137495', 'tblTempUsageDetail_20' ) start [2024-12-30 16:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137495', 'tblTempUsageDetail_20' ) end [2024-12-30 16:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137495', 'tblTempVendorCDR_20' ) start [2024-12-30 16:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137495', 'tblTempVendorCDR_20' ) end [2024-12-30 16:40:30] Production.INFO: ProcessCDR(1,14137495,1,1,2) [2024-12-30 16:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137495', 'tblTempUsageDetail_20' ) start [2024-12-30 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137495', 'tblTempUsageDetail_20' ) end [2024-12-30 16:40:34] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:40:34] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:40:34] Production.INFO: ==14016== Releasing lock... [2024-12-30 16:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:40:34] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 16:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:41:04 [end_date_ymd] => 2024-12-30 16:41:04 [RateCDR] => 1 ) [2024-12-30 16: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-30 13:41:04' and `end` < '2024-12-30 16: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-30 16:41:22] Production.INFO: count ==4389 [2024-12-30 16:41:23] Production.ERROR: pbx CDR StartTime 2024-12-30 13:41:04 - End Time 2024-12-30 16:41:04 [2024-12-30 16:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137500', 'tblTempUsageDetail_20' ) start [2024-12-30 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137500', 'tblTempUsageDetail_20' ) end [2024-12-30 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137500', 'tblTempVendorCDR_20' ) start [2024-12-30 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137500', 'tblTempVendorCDR_20' ) end [2024-12-30 16:41:23] Production.INFO: ProcessCDR(1,14137500,1,1,2) [2024-12-30 16:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137500', 'tblTempUsageDetail_20' ) start [2024-12-30 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137500', 'tblTempUsageDetail_20' ) end [2024-12-30 16:41:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:41:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:41:28] Production.INFO: ==14104== Releasing lock... [2024-12-30 16:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:41:28] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:42:05 [end_date_ymd] => 2024-12-30 16:42:05 [RateCDR] => 1 ) [2024-12-30 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 13:42:05' and `end` < '2024-12-30 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 16:42:19] Production.INFO: count ==4366 [2024-12-30 16:42:21] Production.ERROR: pbx CDR StartTime 2024-12-30 13:42:05 - End Time 2024-12-30 16:42:05 [2024-12-30 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137505', 'tblTempUsageDetail_20' ) start [2024-12-30 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137505', 'tblTempUsageDetail_20' ) end [2024-12-30 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137505', 'tblTempVendorCDR_20' ) start [2024-12-30 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137505', 'tblTempVendorCDR_20' ) end [2024-12-30 16:42:21] Production.INFO: ProcessCDR(1,14137505,1,1,2) [2024-12-30 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137505', 'tblTempUsageDetail_20' ) start [2024-12-30 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137505', 'tblTempUsageDetail_20' ) end [2024-12-30 16:42:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:42:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:42:25] Production.INFO: ==14179== Releasing lock... [2024-12-30 16:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:42:25] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:43:05 [end_date_ymd] => 2024-12-30 16:43:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:43:05' and `end` < '2024-12-30 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-30 16:43:19] Production.INFO: count ==4372 [2024-12-30 16:43:20] Production.ERROR: pbx CDR StartTime 2024-12-30 13:43:05 - End Time 2024-12-30 16:43:05 [2024-12-30 16:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137510', 'tblTempUsageDetail_20' ) start [2024-12-30 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137510', 'tblTempUsageDetail_20' ) end [2024-12-30 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137510', 'tblTempVendorCDR_20' ) start [2024-12-30 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137510', 'tblTempVendorCDR_20' ) end [2024-12-30 16:43:21] Production.INFO: ProcessCDR(1,14137510,1,1,2) [2024-12-30 16:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137510', 'tblTempUsageDetail_20' ) start [2024-12-30 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137510', 'tblTempUsageDetail_20' ) end [2024-12-30 16:43:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:43:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:43:25] Production.INFO: ==14303== Releasing lock... [2024-12-30 16:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:43:25] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 16:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:44:04 [end_date_ymd] => 2024-12-30 16:44:04 [RateCDR] => 1 ) [2024-12-30 16: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-30 13:44:04' and `end` < '2024-12-30 16: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-30 16:44:21] Production.INFO: count ==4362 [2024-12-30 16:44:23] Production.ERROR: pbx CDR StartTime 2024-12-30 13:44:04 - End Time 2024-12-30 16:44:04 [2024-12-30 16:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137515', 'tblTempUsageDetail_20' ) start [2024-12-30 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137515', 'tblTempUsageDetail_20' ) end [2024-12-30 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137515', 'tblTempVendorCDR_20' ) start [2024-12-30 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137515', 'tblTempVendorCDR_20' ) end [2024-12-30 16:44:23] Production.INFO: ProcessCDR(1,14137515,1,1,2) [2024-12-30 16:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137515', 'tblTempUsageDetail_20' ) start [2024-12-30 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137515', 'tblTempUsageDetail_20' ) end [2024-12-30 16:44:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:44:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:44:27] Production.INFO: ==14380== Releasing lock... [2024-12-30 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:44:27] Production.INFO: 60.75 MB #Memory Used# [2024-12-30 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:45:05 [end_date_ymd] => 2024-12-30 16:45:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:45:05' and `end` < '2024-12-30 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-30 16:45:18] Production.INFO: count ==4348 [2024-12-30 16:45:20] Production.ERROR: pbx CDR StartTime 2024-12-30 13:45:05 - End Time 2024-12-30 16:45:05 [2024-12-30 16:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137520', 'tblTempUsageDetail_20' ) start [2024-12-30 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137520', 'tblTempUsageDetail_20' ) end [2024-12-30 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137520', 'tblTempVendorCDR_20' ) start [2024-12-30 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137520', 'tblTempVendorCDR_20' ) end [2024-12-30 16:45:20] Production.INFO: ProcessCDR(1,14137520,1,1,2) [2024-12-30 16:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137520', 'tblTempUsageDetail_20' ) start [2024-12-30 16:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137520', 'tblTempUsageDetail_20' ) end [2024-12-30 16:45:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:45:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:45:24] Production.INFO: ==14461== Releasing lock... [2024-12-30 16:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:45:24] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 16:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:46:04 [end_date_ymd] => 2024-12-30 16:46:04 [RateCDR] => 1 ) [2024-12-30 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-30 13:46:04' and `end` < '2024-12-30 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-30 16:46:20] Production.INFO: count ==4326 [2024-12-30 16:46:21] Production.ERROR: pbx CDR StartTime 2024-12-30 13:46:04 - End Time 2024-12-30 16:46:04 [2024-12-30 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137525', 'tblTempUsageDetail_20' ) start [2024-12-30 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137525', 'tblTempUsageDetail_20' ) end [2024-12-30 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137525', 'tblTempVendorCDR_20' ) start [2024-12-30 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137525', 'tblTempVendorCDR_20' ) end [2024-12-30 16:46:21] Production.INFO: ProcessCDR(1,14137525,1,1,2) [2024-12-30 16:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137525', 'tblTempUsageDetail_20' ) start [2024-12-30 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137525', 'tblTempUsageDetail_20' ) end [2024-12-30 16:46:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:46:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:46:26] Production.INFO: ==14541== Releasing lock... [2024-12-30 16:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:46:26] Production.INFO: 60.5 MB #Memory Used# [2024-12-30 16:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:47:04 [end_date_ymd] => 2024-12-30 16:47:04 [RateCDR] => 1 ) [2024-12-30 16: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-30 13:47:04' and `end` < '2024-12-30 16: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-30 16:47:19] Production.INFO: count ==4313 [2024-12-30 16:47:21] Production.ERROR: pbx CDR StartTime 2024-12-30 13:47:04 - End Time 2024-12-30 16:47:04 [2024-12-30 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137530', 'tblTempUsageDetail_20' ) start [2024-12-30 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137530', 'tblTempUsageDetail_20' ) end [2024-12-30 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137530', 'tblTempVendorCDR_20' ) start [2024-12-30 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137530', 'tblTempVendorCDR_20' ) end [2024-12-30 16:47:21] Production.INFO: ProcessCDR(1,14137530,1,1,2) [2024-12-30 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137530', 'tblTempUsageDetail_20' ) start [2024-12-30 16:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137530', 'tblTempUsageDetail_20' ) end [2024-12-30 16:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:47:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:47:24] Production.INFO: ==14617== Releasing lock... [2024-12-30 16:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:47:24] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:48:05 [end_date_ymd] => 2024-12-30 16:48:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:48:05' and `end` < '2024-12-30 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-30 16:48:19] Production.INFO: count ==4310 [2024-12-30 16:48:21] Production.ERROR: pbx CDR StartTime 2024-12-30 13:48:05 - End Time 2024-12-30 16:48:05 [2024-12-30 16:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137535', 'tblTempUsageDetail_20' ) start [2024-12-30 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137535', 'tblTempUsageDetail_20' ) end [2024-12-30 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137535', 'tblTempVendorCDR_20' ) start [2024-12-30 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137535', 'tblTempVendorCDR_20' ) end [2024-12-30 16:48:21] Production.INFO: ProcessCDR(1,14137535,1,1,2) [2024-12-30 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137535', 'tblTempUsageDetail_20' ) start [2024-12-30 16:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137535', 'tblTempUsageDetail_20' ) end [2024-12-30 16:48:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:48:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:48:24] Production.INFO: ==14696== Releasing lock... [2024-12-30 16:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:48:24] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:49:05 [end_date_ymd] => 2024-12-30 16:49:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:49:05' and `end` < '2024-12-30 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-30 16:49:23] Production.INFO: count ==4311 [2024-12-30 16:49:25] Production.ERROR: pbx CDR StartTime 2024-12-30 13:49:05 - End Time 2024-12-30 16:49:05 [2024-12-30 16:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137540', 'tblTempUsageDetail_20' ) start [2024-12-30 16:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137540', 'tblTempUsageDetail_20' ) end [2024-12-30 16:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137540', 'tblTempVendorCDR_20' ) start [2024-12-30 16:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137540', 'tblTempVendorCDR_20' ) end [2024-12-30 16:49:25] Production.INFO: ProcessCDR(1,14137540,1,1,2) [2024-12-30 16:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137540', 'tblTempUsageDetail_20' ) start [2024-12-30 16:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137540', 'tblTempUsageDetail_20' ) end [2024-12-30 16:49:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:49:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:49:30] Production.INFO: ==14776== Releasing lock... [2024-12-30 16:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:49:30] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:50:05 [end_date_ymd] => 2024-12-30 16:50:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:50:05' and `end` < '2024-12-30 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-30 16:50:21] Production.INFO: count ==4307 [2024-12-30 16:50:22] Production.ERROR: pbx CDR StartTime 2024-12-30 13:50:05 - End Time 2024-12-30 16:50:05 [2024-12-30 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137546', 'tblTempUsageDetail_20' ) start [2024-12-30 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137546', 'tblTempUsageDetail_20' ) end [2024-12-30 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137546', 'tblTempVendorCDR_20' ) start [2024-12-30 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137546', 'tblTempVendorCDR_20' ) end [2024-12-30 16:50:22] Production.INFO: ProcessCDR(1,14137546,1,1,2) [2024-12-30 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137546', 'tblTempUsageDetail_20' ) start [2024-12-30 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137546', 'tblTempUsageDetail_20' ) end [2024-12-30 16:50:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:50:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:50:27] Production.INFO: ==14852== Releasing lock... [2024-12-30 16:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:50:27] Production.INFO: 60.25 MB #Memory Used# [2024-12-30 16:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:51:04 [end_date_ymd] => 2024-12-30 16:51:04 [RateCDR] => 1 ) [2024-12-30 16: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-30 13:51:04' and `end` < '2024-12-30 16: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-30 16:51:23] Production.INFO: count ==4259 [2024-12-30 16:51:24] Production.ERROR: pbx CDR StartTime 2024-12-30 13:51:04 - End Time 2024-12-30 16:51:04 [2024-12-30 16:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137551', 'tblTempUsageDetail_20' ) start [2024-12-30 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137551', 'tblTempUsageDetail_20' ) end [2024-12-30 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137551', 'tblTempVendorCDR_20' ) start [2024-12-30 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137551', 'tblTempVendorCDR_20' ) end [2024-12-30 16:51:24] Production.INFO: ProcessCDR(1,14137551,1,1,2) [2024-12-30 16:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137551', 'tblTempUsageDetail_20' ) start [2024-12-30 16:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137551', 'tblTempUsageDetail_20' ) end [2024-12-30 16:51:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:51:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:51:29] Production.INFO: ==14934== Releasing lock... [2024-12-30 16:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:51:29] Production.INFO: 60 MB #Memory Used# [2024-12-30 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:52:05 [end_date_ymd] => 2024-12-30 16:52:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:52:05' and `end` < '2024-12-30 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-30 16:52:22] Production.INFO: count ==4257 [2024-12-30 16:52:23] Production.ERROR: pbx CDR StartTime 2024-12-30 13:52:05 - End Time 2024-12-30 16:52:05 [2024-12-30 16:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137556', 'tblTempUsageDetail_20' ) start [2024-12-30 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137556', 'tblTempUsageDetail_20' ) end [2024-12-30 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137556', 'tblTempVendorCDR_20' ) start [2024-12-30 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137556', 'tblTempVendorCDR_20' ) end [2024-12-30 16:52:23] Production.INFO: ProcessCDR(1,14137556,1,1,2) [2024-12-30 16:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137556', 'tblTempUsageDetail_20' ) start [2024-12-30 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137556', 'tblTempUsageDetail_20' ) end [2024-12-30 16:52:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:52:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:52:28] Production.INFO: ==15013== Releasing lock... [2024-12-30 16:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:52:28] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:53:05 [end_date_ymd] => 2024-12-30 16:53:05 [RateCDR] => 1 ) [2024-12-30 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 13:53:05' and `end` < '2024-12-30 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 16:53:24] Production.INFO: count ==4254 [2024-12-30 16:53:26] Production.ERROR: pbx CDR StartTime 2024-12-30 13:53:05 - End Time 2024-12-30 16:53:05 [2024-12-30 16:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137561', 'tblTempUsageDetail_20' ) start [2024-12-30 16:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137561', 'tblTempUsageDetail_20' ) end [2024-12-30 16:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137561', 'tblTempVendorCDR_20' ) start [2024-12-30 16:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137561', 'tblTempVendorCDR_20' ) end [2024-12-30 16:53:26] Production.INFO: ProcessCDR(1,14137561,1,1,2) [2024-12-30 16:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137561', 'tblTempUsageDetail_20' ) start [2024-12-30 16:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137561', 'tblTempUsageDetail_20' ) end [2024-12-30 16:53:30] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:53:30] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:53:30] Production.INFO: ==15090== Releasing lock... [2024-12-30 16:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:53:30] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:54:05 [end_date_ymd] => 2024-12-30 16:54:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:54:05' and `end` < '2024-12-30 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-30 16:54:21] Production.INFO: count ==4252 [2024-12-30 16:54:23] Production.ERROR: pbx CDR StartTime 2024-12-30 13:54:05 - End Time 2024-12-30 16:54:05 [2024-12-30 16:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137566', 'tblTempUsageDetail_20' ) start [2024-12-30 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137566', 'tblTempUsageDetail_20' ) end [2024-12-30 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137566', 'tblTempVendorCDR_20' ) start [2024-12-30 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137566', 'tblTempVendorCDR_20' ) end [2024-12-30 16:54:23] Production.INFO: ProcessCDR(1,14137566,1,1,2) [2024-12-30 16:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137566', 'tblTempUsageDetail_20' ) start [2024-12-30 16:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137566', 'tblTempUsageDetail_20' ) end [2024-12-30 16:54:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:54:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:54:28] Production.INFO: ==15167== Releasing lock... [2024-12-30 16:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:54:28] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 16:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:55:04 [end_date_ymd] => 2024-12-30 16:55:04 [RateCDR] => 1 ) [2024-12-30 16: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-30 13:55:04' and `end` < '2024-12-30 16:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 16:55:18] Production.INFO: count ==4244 [2024-12-30 16:55:19] Production.ERROR: pbx CDR StartTime 2024-12-30 13:55:04 - End Time 2024-12-30 16:55:04 [2024-12-30 16:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137571', 'tblTempUsageDetail_20' ) start [2024-12-30 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137571', 'tblTempUsageDetail_20' ) end [2024-12-30 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137571', 'tblTempVendorCDR_20' ) start [2024-12-30 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137571', 'tblTempVendorCDR_20' ) end [2024-12-30 16:55:19] Production.INFO: ProcessCDR(1,14137571,1,1,2) [2024-12-30 16:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137571', 'tblTempUsageDetail_20' ) start [2024-12-30 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137571', 'tblTempUsageDetail_20' ) end [2024-12-30 16:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:55:24] Production.INFO: ==15247== Releasing lock... [2024-12-30 16:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:55:24] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 16:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:56:04 [end_date_ymd] => 2024-12-30 16:56:04 [RateCDR] => 1 ) [2024-12-30 16: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-30 13:56:04' and `end` < '2024-12-30 16: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-30 16:56:22] Production.INFO: count ==4243 [2024-12-30 16:56:24] Production.ERROR: pbx CDR StartTime 2024-12-30 13:56:04 - End Time 2024-12-30 16:56:04 [2024-12-30 16:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137576', 'tblTempUsageDetail_20' ) start [2024-12-30 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137576', 'tblTempUsageDetail_20' ) end [2024-12-30 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137576', 'tblTempVendorCDR_20' ) start [2024-12-30 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137576', 'tblTempVendorCDR_20' ) end [2024-12-30 16:56:24] Production.INFO: ProcessCDR(1,14137576,1,1,2) [2024-12-30 16:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137576', 'tblTempUsageDetail_20' ) start [2024-12-30 16:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137576', 'tblTempUsageDetail_20' ) end [2024-12-30 16:56:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:56:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:56:29] Production.INFO: ==15324== Releasing lock... [2024-12-30 16:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:56:29] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:57:05 [end_date_ymd] => 2024-12-30 16:57:05 [RateCDR] => 1 ) [2024-12-30 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 13:57:05' and `end` < '2024-12-30 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 16:57:21] Production.INFO: count ==4214 [2024-12-30 16:57:23] Production.ERROR: pbx CDR StartTime 2024-12-30 13:57:05 - End Time 2024-12-30 16:57:05 [2024-12-30 16:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137581', 'tblTempUsageDetail_20' ) start [2024-12-30 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137581', 'tblTempUsageDetail_20' ) end [2024-12-30 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137581', 'tblTempVendorCDR_20' ) start [2024-12-30 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137581', 'tblTempVendorCDR_20' ) end [2024-12-30 16:57:23] Production.INFO: ProcessCDR(1,14137581,1,1,2) [2024-12-30 16:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137581', 'tblTempUsageDetail_20' ) start [2024-12-30 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137581', 'tblTempUsageDetail_20' ) end [2024-12-30 16:57:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:57:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:57:26] Production.INFO: ==15401== Releasing lock... [2024-12-30 16:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:57:26] Production.INFO: 59.5 MB #Memory Used# [2024-12-30 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:58:05 [end_date_ymd] => 2024-12-30 16:58:05 [RateCDR] => 1 ) [2024-12-30 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 13:58:05' and `end` < '2024-12-30 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 16:58:18] Production.INFO: count ==4196 [2024-12-30 16:58:20] Production.ERROR: pbx CDR StartTime 2024-12-30 13:58:05 - End Time 2024-12-30 16:58:05 [2024-12-30 16:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137586', 'tblTempUsageDetail_20' ) start [2024-12-30 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137586', 'tblTempUsageDetail_20' ) end [2024-12-30 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137586', 'tblTempVendorCDR_20' ) start [2024-12-30 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137586', 'tblTempVendorCDR_20' ) end [2024-12-30 16:58:20] Production.INFO: ProcessCDR(1,14137586,1,1,2) [2024-12-30 16:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137586', 'tblTempUsageDetail_20' ) start [2024-12-30 16:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137586', 'tblTempUsageDetail_20' ) end [2024-12-30 16:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:58:23] Production.INFO: ==15519== Releasing lock... [2024-12-30 16:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:58:23] Production.INFO: 59.75 MB #Memory Used# [2024-12-30 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 13:59:05 [end_date_ymd] => 2024-12-30 16:59:05 [RateCDR] => 1 ) [2024-12-30 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-30 13:59:05' and `end` < '2024-12-30 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-30 16:59:19] Production.INFO: count ==4177 [2024-12-30 16:59:20] Production.ERROR: pbx CDR StartTime 2024-12-30 13:59:05 - End Time 2024-12-30 16:59:05 [2024-12-30 16:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137591', 'tblTempUsageDetail_20' ) start [2024-12-30 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137591', 'tblTempUsageDetail_20' ) end [2024-12-30 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137591', 'tblTempVendorCDR_20' ) start [2024-12-30 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137591', 'tblTempVendorCDR_20' ) end [2024-12-30 16:59:21] Production.INFO: ProcessCDR(1,14137591,1,1,2) [2024-12-30 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 16:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 16:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137591', 'tblTempUsageDetail_20' ) start [2024-12-30 16:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137591', 'tblTempUsageDetail_20' ) end [2024-12-30 16:59:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 16:59:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 16:59:25] Production.INFO: ==15597== Releasing lock... [2024-12-30 16:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 16:59:25] Production.INFO: 59.25 MB #Memory Used# [2024-12-30 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:00:06 [end_date_ymd] => 2024-12-30 17:00:06 [RateCDR] => 1 ) [2024-12-30 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-30 14:00:06' and `end` < '2024-12-30 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-30 17:00:21] Production.INFO: count ==4156 [2024-12-30 17:00:23] Production.ERROR: pbx CDR StartTime 2024-12-30 14:00:06 - End Time 2024-12-30 17:00:06 [2024-12-30 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137597', 'tblTempUsageDetail_20' ) start [2024-12-30 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137597', 'tblTempUsageDetail_20' ) end [2024-12-30 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137597', 'tblTempVendorCDR_20' ) start [2024-12-30 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137597', 'tblTempVendorCDR_20' ) end [2024-12-30 17:00:23] Production.INFO: ProcessCDR(1,14137597,1,1,2) [2024-12-30 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137597', 'tblTempUsageDetail_20' ) start [2024-12-30 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137597', 'tblTempUsageDetail_20' ) end [2024-12-30 17:00:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:00:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:00:26] Production.INFO: ==15679== Releasing lock... [2024-12-30 17:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:00:26] Production.INFO: 59 MB #Memory Used# [2024-12-30 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:01:05 [end_date_ymd] => 2024-12-30 17:01:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:01:05' and `end` < '2024-12-30 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-30 17:01:20] Production.INFO: count ==4088 [2024-12-30 17:01:21] Production.ERROR: pbx CDR StartTime 2024-12-30 14:01:05 - End Time 2024-12-30 17:01:05 [2024-12-30 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137602', 'tblTempUsageDetail_20' ) start [2024-12-30 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137602', 'tblTempUsageDetail_20' ) end [2024-12-30 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137602', 'tblTempVendorCDR_20' ) start [2024-12-30 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137602', 'tblTempVendorCDR_20' ) end [2024-12-30 17:01:21] Production.INFO: ProcessCDR(1,14137602,1,1,2) [2024-12-30 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137602', 'tblTempUsageDetail_20' ) start [2024-12-30 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137602', 'tblTempUsageDetail_20' ) end [2024-12-30 17:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:01:24] Production.INFO: ==15772== Releasing lock... [2024-12-30 17:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:01:24] Production.INFO: 58.5 MB #Memory Used# [2024-12-30 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:02:05 [end_date_ymd] => 2024-12-30 17:02:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:02:05' and `end` < '2024-12-30 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-30 17:02:20] Production.INFO: count ==4075 [2024-12-30 17:02:21] Production.ERROR: pbx CDR StartTime 2024-12-30 14:02:05 - End Time 2024-12-30 17:02:05 [2024-12-30 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137607', 'tblTempUsageDetail_20' ) start [2024-12-30 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137607', 'tblTempUsageDetail_20' ) end [2024-12-30 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137607', 'tblTempVendorCDR_20' ) start [2024-12-30 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137607', 'tblTempVendorCDR_20' ) end [2024-12-30 17:02:21] Production.INFO: ProcessCDR(1,14137607,1,1,2) [2024-12-30 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137607', 'tblTempUsageDetail_20' ) start [2024-12-30 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137607', 'tblTempUsageDetail_20' ) end [2024-12-30 17:02:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:02:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:02:26] Production.INFO: ==15851== Releasing lock... [2024-12-30 17:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:02:26] Production.INFO: 58.5 MB #Memory Used# [2024-12-30 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:03:05 [end_date_ymd] => 2024-12-30 17:03:05 [RateCDR] => 1 ) [2024-12-30 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:03:05' and `end` < '2024-12-30 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:03:22] Production.INFO: count ==4062 [2024-12-30 17:03:24] Production.ERROR: pbx CDR StartTime 2024-12-30 14:03:05 - End Time 2024-12-30 17:03:05 [2024-12-30 17:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137612', 'tblTempUsageDetail_20' ) start [2024-12-30 17:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137612', 'tblTempUsageDetail_20' ) end [2024-12-30 17:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137612', 'tblTempVendorCDR_20' ) start [2024-12-30 17:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137612', 'tblTempVendorCDR_20' ) end [2024-12-30 17:03:24] Production.INFO: ProcessCDR(1,14137612,1,1,2) [2024-12-30 17:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137612', 'tblTempUsageDetail_20' ) start [2024-12-30 17:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137612', 'tblTempUsageDetail_20' ) end [2024-12-30 17:03:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:03:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:03:29] Production.INFO: ==15923== Releasing lock... [2024-12-30 17:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:03:29] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:04:05 [end_date_ymd] => 2024-12-30 17:04:05 [RateCDR] => 1 ) [2024-12-30 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:04:05' and `end` < '2024-12-30 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:04:21] Production.INFO: count ==4047 [2024-12-30 17:04:23] Production.ERROR: pbx CDR StartTime 2024-12-30 14:04:05 - End Time 2024-12-30 17:04:05 [2024-12-30 17:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137617', 'tblTempUsageDetail_20' ) start [2024-12-30 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137617', 'tblTempUsageDetail_20' ) end [2024-12-30 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137617', 'tblTempVendorCDR_20' ) start [2024-12-30 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137617', 'tblTempVendorCDR_20' ) end [2024-12-30 17:04:23] Production.INFO: ProcessCDR(1,14137617,1,1,2) [2024-12-30 17:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137617', 'tblTempUsageDetail_20' ) start [2024-12-30 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137617', 'tblTempUsageDetail_20' ) end [2024-12-30 17:04:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:04:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:04:28] Production.INFO: ==15998== Releasing lock... [2024-12-30 17:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:04:28] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:05:05 [end_date_ymd] => 2024-12-30 17:05:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:05:05' and `end` < '2024-12-30 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-30 17:05:18] Production.INFO: count ==4031 [2024-12-30 17:05:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:05:05 - End Time 2024-12-30 17:05:05 [2024-12-30 17:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137622', 'tblTempUsageDetail_20' ) start [2024-12-30 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137622', 'tblTempUsageDetail_20' ) end [2024-12-30 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137622', 'tblTempVendorCDR_20' ) start [2024-12-30 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137622', 'tblTempVendorCDR_20' ) end [2024-12-30 17:05:20] Production.INFO: ProcessCDR(1,14137622,1,1,2) [2024-12-30 17:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137622', 'tblTempUsageDetail_20' ) start [2024-12-30 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137622', 'tblTempUsageDetail_20' ) end [2024-12-30 17:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:05:23] Production.INFO: ==16074== Releasing lock... [2024-12-30 17:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:05:23] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:06:05 [end_date_ymd] => 2024-12-30 17:06:05 [RateCDR] => 1 ) [2024-12-30 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:06:05' and `end` < '2024-12-30 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:06:19] Production.INFO: count ==4017 [2024-12-30 17:06:20] Production.ERROR: pbx CDR StartTime 2024-12-30 14:06:05 - End Time 2024-12-30 17:06:05 [2024-12-30 17:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137627', 'tblTempUsageDetail_20' ) start [2024-12-30 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137627', 'tblTempUsageDetail_20' ) end [2024-12-30 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137627', 'tblTempVendorCDR_20' ) start [2024-12-30 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137627', 'tblTempVendorCDR_20' ) end [2024-12-30 17:06:20] Production.INFO: ProcessCDR(1,14137627,1,1,2) [2024-12-30 17:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137627', 'tblTempUsageDetail_20' ) start [2024-12-30 17:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137627', 'tblTempUsageDetail_20' ) end [2024-12-30 17:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:06:23] Production.INFO: ==16148== Releasing lock... [2024-12-30 17:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:06:23] Production.INFO: 58 MB #Memory Used# [2024-12-30 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:07:05 [end_date_ymd] => 2024-12-30 17:07:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:07:05' and `end` < '2024-12-30 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-30 17:07:18] Production.INFO: count ==4026 [2024-12-30 17:07:20] Production.ERROR: pbx CDR StartTime 2024-12-30 14:07:05 - End Time 2024-12-30 17:07:05 [2024-12-30 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137632', 'tblTempUsageDetail_20' ) start [2024-12-30 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137632', 'tblTempUsageDetail_20' ) end [2024-12-30 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137632', 'tblTempVendorCDR_20' ) start [2024-12-30 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137632', 'tblTempVendorCDR_20' ) end [2024-12-30 17:07:20] Production.INFO: ProcessCDR(1,14137632,1,1,2) [2024-12-30 17:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137632', 'tblTempUsageDetail_20' ) start [2024-12-30 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137632', 'tblTempUsageDetail_20' ) end [2024-12-30 17:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:07:23] Production.INFO: ==16224== Releasing lock... [2024-12-30 17:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:07:23] Production.INFO: 58 MB #Memory Used# [2024-12-30 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:08:05 [end_date_ymd] => 2024-12-30 17:08:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:08:05' and `end` < '2024-12-30 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-30 17:08:19] Production.INFO: count ==4006 [2024-12-30 17:08:20] Production.ERROR: pbx CDR StartTime 2024-12-30 14:08:05 - End Time 2024-12-30 17:08:05 [2024-12-30 17:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137637', 'tblTempUsageDetail_20' ) start [2024-12-30 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137637', 'tblTempUsageDetail_20' ) end [2024-12-30 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137637', 'tblTempVendorCDR_20' ) start [2024-12-30 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137637', 'tblTempVendorCDR_20' ) end [2024-12-30 17:08:20] Production.INFO: ProcessCDR(1,14137637,1,1,2) [2024-12-30 17:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137637', 'tblTempUsageDetail_20' ) start [2024-12-30 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137637', 'tblTempUsageDetail_20' ) end [2024-12-30 17:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:08:23] Production.INFO: ==16303== Releasing lock... [2024-12-30 17:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:08:23] Production.INFO: 58 MB #Memory Used# [2024-12-30 17:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:09:04 [end_date_ymd] => 2024-12-30 17:09:04 [RateCDR] => 1 ) [2024-12-30 17: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-30 14:09:04' and `end` < '2024-12-30 17: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-30 17:09:18] Production.INFO: count ==4000 [2024-12-30 17:09:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:09:04 - End Time 2024-12-30 17:09:04 [2024-12-30 17:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137642', 'tblTempUsageDetail_20' ) start [2024-12-30 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137642', 'tblTempUsageDetail_20' ) end [2024-12-30 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137642', 'tblTempVendorCDR_20' ) start [2024-12-30 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137642', 'tblTempVendorCDR_20' ) end [2024-12-30 17:09:20] Production.INFO: ProcessCDR(1,14137642,1,1,2) [2024-12-30 17:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137642', 'tblTempUsageDetail_20' ) start [2024-12-30 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137642', 'tblTempUsageDetail_20' ) end [2024-12-30 17:09:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:09:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:09:24] Production.INFO: ==16372== Releasing lock... [2024-12-30 17:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:09:24] Production.INFO: 58 MB #Memory Used# [2024-12-30 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:10:06 [end_date_ymd] => 2024-12-30 17:10:06 [RateCDR] => 1 ) [2024-12-30 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:10:06' and `end` < '2024-12-30 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:10:19] Production.INFO: count ==4002 [2024-12-30 17:10:20] Production.ERROR: pbx CDR StartTime 2024-12-30 14:10:06 - End Time 2024-12-30 17:10:06 [2024-12-30 17:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137648', 'tblTempUsageDetail_20' ) start [2024-12-30 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137648', 'tblTempUsageDetail_20' ) end [2024-12-30 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137648', 'tblTempVendorCDR_20' ) start [2024-12-30 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137648', 'tblTempVendorCDR_20' ) end [2024-12-30 17:10:20] Production.INFO: ProcessCDR(1,14137648,1,1,2) [2024-12-30 17:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137648', 'tblTempUsageDetail_20' ) start [2024-12-30 17:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137648', 'tblTempUsageDetail_20' ) end [2024-12-30 17:10:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:10:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:10:24] Production.INFO: ==16450== Releasing lock... [2024-12-30 17:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:10:24] Production.INFO: 58 MB #Memory Used# [2024-12-30 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:11:05 [end_date_ymd] => 2024-12-30 17:11:05 [RateCDR] => 1 ) [2024-12-30 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:11:05' and `end` < '2024-12-30 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:11:22] Production.INFO: count ==3970 [2024-12-30 17:11:24] Production.ERROR: pbx CDR StartTime 2024-12-30 14:11:05 - End Time 2024-12-30 17:11:05 [2024-12-30 17:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137653', 'tblTempUsageDetail_20' ) start [2024-12-30 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137653', 'tblTempUsageDetail_20' ) end [2024-12-30 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137653', 'tblTempVendorCDR_20' ) start [2024-12-30 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137653', 'tblTempVendorCDR_20' ) end [2024-12-30 17:11:24] Production.INFO: ProcessCDR(1,14137653,1,1,2) [2024-12-30 17:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137653', 'tblTempUsageDetail_20' ) start [2024-12-30 17:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137653', 'tblTempUsageDetail_20' ) end [2024-12-30 17:11:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:11:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:11:29] Production.INFO: ==16527== Releasing lock... [2024-12-30 17:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:11:29] Production.INFO: 57.75 MB #Memory Used# [2024-12-30 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:12:05 [end_date_ymd] => 2024-12-30 17:12:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:12:05' and `end` < '2024-12-30 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-30 17:12:19] Production.INFO: count ==3947 [2024-12-30 17:12:20] Production.ERROR: pbx CDR StartTime 2024-12-30 14:12:05 - End Time 2024-12-30 17:12:05 [2024-12-30 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137658', 'tblTempUsageDetail_20' ) start [2024-12-30 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137658', 'tblTempUsageDetail_20' ) end [2024-12-30 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137658', 'tblTempVendorCDR_20' ) start [2024-12-30 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137658', 'tblTempVendorCDR_20' ) end [2024-12-30 17:12:20] Production.INFO: ProcessCDR(1,14137658,1,1,2) [2024-12-30 17:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137658', 'tblTempUsageDetail_20' ) start [2024-12-30 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137658', 'tblTempUsageDetail_20' ) end [2024-12-30 17:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:12:24] Production.INFO: ==16598== Releasing lock... [2024-12-30 17:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:12:24] Production.INFO: 57.5 MB #Memory Used# [2024-12-30 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:13:05 [end_date_ymd] => 2024-12-30 17:13:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:13:05' and `end` < '2024-12-30 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-30 17:13:22] Production.INFO: count ==3936 [2024-12-30 17:13:24] Production.ERROR: pbx CDR StartTime 2024-12-30 14:13:05 - End Time 2024-12-30 17:13:05 [2024-12-30 17:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137663', 'tblTempUsageDetail_20' ) start [2024-12-30 17:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137663', 'tblTempUsageDetail_20' ) end [2024-12-30 17:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137663', 'tblTempVendorCDR_20' ) start [2024-12-30 17:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137663', 'tblTempVendorCDR_20' ) end [2024-12-30 17:13:24] Production.INFO: ProcessCDR(1,14137663,1,1,2) [2024-12-30 17:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137663', 'tblTempUsageDetail_20' ) start [2024-12-30 17:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137663', 'tblTempUsageDetail_20' ) end [2024-12-30 17:13:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:13:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:13:28] Production.INFO: ==16668== Releasing lock... [2024-12-30 17:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:13:28] Production.INFO: 58.25 MB #Memory Used# [2024-12-30 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:14:05 [end_date_ymd] => 2024-12-30 17:14:05 [RateCDR] => 1 ) [2024-12-30 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:14:05' and `end` < '2024-12-30 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:14:21] Production.INFO: count ==3943 [2024-12-30 17:14:23] Production.ERROR: pbx CDR StartTime 2024-12-30 14:14:05 - End Time 2024-12-30 17:14:05 [2024-12-30 17:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137668', 'tblTempUsageDetail_20' ) start [2024-12-30 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137668', 'tblTempUsageDetail_20' ) end [2024-12-30 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137668', 'tblTempVendorCDR_20' ) start [2024-12-30 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137668', 'tblTempVendorCDR_20' ) end [2024-12-30 17:14:23] Production.INFO: ProcessCDR(1,14137668,1,1,2) [2024-12-30 17:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137668', 'tblTempUsageDetail_20' ) start [2024-12-30 17:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137668', 'tblTempUsageDetail_20' ) end [2024-12-30 17:14:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:14:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:14:28] Production.INFO: ==16781== Releasing lock... [2024-12-30 17:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:14:28] Production.INFO: 57.5 MB #Memory Used# [2024-12-30 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:15:05 [end_date_ymd] => 2024-12-30 17:15:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:15:05' and `end` < '2024-12-30 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-30 17:15:19] Production.INFO: count ==3947 [2024-12-30 17:15:21] Production.ERROR: pbx CDR StartTime 2024-12-30 14:15:05 - End Time 2024-12-30 17:15:05 [2024-12-30 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137673', 'tblTempUsageDetail_20' ) start [2024-12-30 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137673', 'tblTempUsageDetail_20' ) end [2024-12-30 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137673', 'tblTempVendorCDR_20' ) start [2024-12-30 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137673', 'tblTempVendorCDR_20' ) end [2024-12-30 17:15:21] Production.INFO: ProcessCDR(1,14137673,1,1,2) [2024-12-30 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137673', 'tblTempUsageDetail_20' ) start [2024-12-30 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137673', 'tblTempUsageDetail_20' ) end [2024-12-30 17:15:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:15:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:15:25] Production.INFO: ==16851== Releasing lock... [2024-12-30 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:15:25] Production.INFO: 57.5 MB #Memory Used# [2024-12-30 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:16:05 [end_date_ymd] => 2024-12-30 17:16:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:16:05' and `end` < '2024-12-30 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-30 17:16:19] Production.INFO: count ==3933 [2024-12-30 17:16:20] Production.ERROR: pbx CDR StartTime 2024-12-30 14:16:05 - End Time 2024-12-30 17:16:05 [2024-12-30 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137678', 'tblTempUsageDetail_20' ) start [2024-12-30 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137678', 'tblTempUsageDetail_20' ) end [2024-12-30 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137678', 'tblTempVendorCDR_20' ) start [2024-12-30 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137678', 'tblTempVendorCDR_20' ) end [2024-12-30 17:16:20] Production.INFO: ProcessCDR(1,14137678,1,1,2) [2024-12-30 17:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137678', 'tblTempUsageDetail_20' ) start [2024-12-30 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137678', 'tblTempUsageDetail_20' ) end [2024-12-30 17:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:16:24] Production.INFO: ==16925== Releasing lock... [2024-12-30 17:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:16:24] Production.INFO: 57.5 MB #Memory Used# [2024-12-30 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:17:05 [end_date_ymd] => 2024-12-30 17:17:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:17:05' and `end` < '2024-12-30 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-30 17:17:18] Production.INFO: count ==3930 [2024-12-30 17:17:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:17:05 - End Time 2024-12-30 17:17:05 [2024-12-30 17:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137683', 'tblTempUsageDetail_20' ) start [2024-12-30 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137683', 'tblTempUsageDetail_20' ) end [2024-12-30 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137683', 'tblTempVendorCDR_20' ) start [2024-12-30 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137683', 'tblTempVendorCDR_20' ) end [2024-12-30 17:17:19] Production.INFO: ProcessCDR(1,14137683,1,1,2) [2024-12-30 17:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137683', 'tblTempUsageDetail_20' ) start [2024-12-30 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137683', 'tblTempUsageDetail_20' ) end [2024-12-30 17:17:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:17:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:17:24] Production.INFO: ==16995== Releasing lock... [2024-12-30 17:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:17:24] Production.INFO: 57.5 MB #Memory Used# [2024-12-30 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:18:05 [end_date_ymd] => 2024-12-30 17:18:05 [RateCDR] => 1 ) [2024-12-30 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:18:05' and `end` < '2024-12-30 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:18:22] Production.INFO: count ==3919 [2024-12-30 17:18:23] Production.ERROR: pbx CDR StartTime 2024-12-30 14:18:05 - End Time 2024-12-30 17:18:05 [2024-12-30 17:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137688', 'tblTempUsageDetail_20' ) start [2024-12-30 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137688', 'tblTempUsageDetail_20' ) end [2024-12-30 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137688', 'tblTempVendorCDR_20' ) start [2024-12-30 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137688', 'tblTempVendorCDR_20' ) end [2024-12-30 17:18:23] Production.INFO: ProcessCDR(1,14137688,1,1,2) [2024-12-30 17:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137688', 'tblTempUsageDetail_20' ) start [2024-12-30 17:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137688', 'tblTempUsageDetail_20' ) end [2024-12-30 17:18:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:18:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:18:28] Production.INFO: ==17065== Releasing lock... [2024-12-30 17:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:18:28] Production.INFO: 57.25 MB #Memory Used# [2024-12-30 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:19:05 [end_date_ymd] => 2024-12-30 17:19:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:19:05' and `end` < '2024-12-30 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-30 17:19:18] Production.INFO: count ==3900 [2024-12-30 17:19:20] Production.ERROR: pbx CDR StartTime 2024-12-30 14:19:05 - End Time 2024-12-30 17:19:05 [2024-12-30 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137693', 'tblTempUsageDetail_20' ) start [2024-12-30 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137693', 'tblTempUsageDetail_20' ) end [2024-12-30 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137693', 'tblTempVendorCDR_20' ) start [2024-12-30 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137693', 'tblTempVendorCDR_20' ) end [2024-12-30 17:19:20] Production.INFO: ProcessCDR(1,14137693,1,1,2) [2024-12-30 17:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137693', 'tblTempUsageDetail_20' ) start [2024-12-30 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137693', 'tblTempUsageDetail_20' ) end [2024-12-30 17:19:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:19:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:19:25] Production.INFO: ==17135== Releasing lock... [2024-12-30 17:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:19:25] Production.INFO: 57.25 MB #Memory Used# [2024-12-30 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:20:05 [end_date_ymd] => 2024-12-30 17:20:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:20:05' and `end` < '2024-12-30 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-30 17:20:19] Production.INFO: count ==3912 [2024-12-30 17:20:20] Production.ERROR: pbx CDR StartTime 2024-12-30 14:20:05 - End Time 2024-12-30 17:20:05 [2024-12-30 17:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137698', 'tblTempUsageDetail_20' ) start [2024-12-30 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137698', 'tblTempUsageDetail_20' ) end [2024-12-30 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137698', 'tblTempVendorCDR_20' ) start [2024-12-30 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137698', 'tblTempVendorCDR_20' ) end [2024-12-30 17:20:20] Production.INFO: ProcessCDR(1,14137698,1,1,2) [2024-12-30 17:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137698', 'tblTempUsageDetail_20' ) start [2024-12-30 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137698', 'tblTempUsageDetail_20' ) end [2024-12-30 17:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:20:24] Production.INFO: ==17208== Releasing lock... [2024-12-30 17:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:20:24] Production.INFO: 57.25 MB #Memory Used# [2024-12-30 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:21:05 [end_date_ymd] => 2024-12-30 17:21:05 [RateCDR] => 1 ) [2024-12-30 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:21:05' and `end` < '2024-12-30 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:21:20] Production.INFO: count ==3907 [2024-12-30 17:21:22] Production.ERROR: pbx CDR StartTime 2024-12-30 14:21:05 - End Time 2024-12-30 17:21:05 [2024-12-30 17:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137704', 'tblTempUsageDetail_20' ) start [2024-12-30 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137704', 'tblTempUsageDetail_20' ) end [2024-12-30 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137704', 'tblTempVendorCDR_20' ) start [2024-12-30 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137704', 'tblTempVendorCDR_20' ) end [2024-12-30 17:21:22] Production.INFO: ProcessCDR(1,14137704,1,1,2) [2024-12-30 17:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137704', 'tblTempUsageDetail_20' ) start [2024-12-30 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137704', 'tblTempUsageDetail_20' ) end [2024-12-30 17:21:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:21:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:21:26] Production.INFO: ==17284== Releasing lock... [2024-12-30 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:21:26] Production.INFO: 57.5 MB #Memory Used# [2024-12-30 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:22:05 [end_date_ymd] => 2024-12-30 17:22:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:22:05' and `end` < '2024-12-30 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-30 17:22:18] Production.INFO: count ==3901 [2024-12-30 17:22:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:22:05 - End Time 2024-12-30 17:22:05 [2024-12-30 17:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137709', 'tblTempUsageDetail_20' ) start [2024-12-30 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137709', 'tblTempUsageDetail_20' ) end [2024-12-30 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137709', 'tblTempVendorCDR_20' ) start [2024-12-30 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137709', 'tblTempVendorCDR_20' ) end [2024-12-30 17:22:20] Production.INFO: ProcessCDR(1,14137709,1,1,2) [2024-12-30 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137709', 'tblTempUsageDetail_20' ) start [2024-12-30 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137709', 'tblTempUsageDetail_20' ) end [2024-12-30 17:22:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:22:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:22:24] Production.INFO: ==17358== Releasing lock... [2024-12-30 17:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:22:24] Production.INFO: 57.25 MB #Memory Used# [2024-12-30 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:23:05 [end_date_ymd] => 2024-12-30 17:23:05 [RateCDR] => 1 ) [2024-12-30 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:23:05' and `end` < '2024-12-30 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:23:23] Production.INFO: count ==3884 [2024-12-30 17:23:25] Production.ERROR: pbx CDR StartTime 2024-12-30 14:23:05 - End Time 2024-12-30 17:23:05 [2024-12-30 17:23:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137714', 'tblTempUsageDetail_20' ) start [2024-12-30 17:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137714', 'tblTempUsageDetail_20' ) end [2024-12-30 17:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137714', 'tblTempVendorCDR_20' ) start [2024-12-30 17:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137714', 'tblTempVendorCDR_20' ) end [2024-12-30 17:23:25] Production.INFO: ProcessCDR(1,14137714,1,1,2) [2024-12-30 17:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137714', 'tblTempUsageDetail_20' ) start [2024-12-30 17:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137714', 'tblTempUsageDetail_20' ) end [2024-12-30 17:23:28] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:23:28] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:23:28] Production.INFO: ==17433== Releasing lock... [2024-12-30 17:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:23:28] Production.INFO: 57.5 MB #Memory Used# [2024-12-30 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:24:05 [end_date_ymd] => 2024-12-30 17:24:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:24:05' and `end` < '2024-12-30 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-30 17:24:18] Production.INFO: count ==3854 [2024-12-30 17:24:20] Production.ERROR: pbx CDR StartTime 2024-12-30 14:24:05 - End Time 2024-12-30 17:24:05 [2024-12-30 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137719', 'tblTempUsageDetail_20' ) start [2024-12-30 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137719', 'tblTempUsageDetail_20' ) end [2024-12-30 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137719', 'tblTempVendorCDR_20' ) start [2024-12-30 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137719', 'tblTempVendorCDR_20' ) end [2024-12-30 17:24:20] Production.INFO: ProcessCDR(1,14137719,1,1,2) [2024-12-30 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137719', 'tblTempUsageDetail_20' ) start [2024-12-30 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137719', 'tblTempUsageDetail_20' ) end [2024-12-30 17:24:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:24:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:24:24] Production.INFO: ==17510== Releasing lock... [2024-12-30 17:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:24:24] Production.INFO: 57 MB #Memory Used# [2024-12-30 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:25:05 [end_date_ymd] => 2024-12-30 17:25:05 [RateCDR] => 1 ) [2024-12-30 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:25:05' and `end` < '2024-12-30 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:25:22] Production.INFO: count ==3847 [2024-12-30 17:25:24] Production.ERROR: pbx CDR StartTime 2024-12-30 14:25:05 - End Time 2024-12-30 17:25:05 [2024-12-30 17:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137724', 'tblTempUsageDetail_20' ) start [2024-12-30 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137724', 'tblTempUsageDetail_20' ) end [2024-12-30 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137724', 'tblTempVendorCDR_20' ) start [2024-12-30 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137724', 'tblTempVendorCDR_20' ) end [2024-12-30 17:25:24] Production.INFO: ProcessCDR(1,14137724,1,1,2) [2024-12-30 17:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137724', 'tblTempUsageDetail_20' ) start [2024-12-30 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137724', 'tblTempUsageDetail_20' ) end [2024-12-30 17:25:29] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:25:29] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:25:29] Production.INFO: ==17584== Releasing lock... [2024-12-30 17:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:25:29] Production.INFO: 57 MB #Memory Used# [2024-12-30 17:26:15] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:26:15 [end_date_ymd] => 2024-12-30 17:26:15 [RateCDR] => 1 ) [2024-12-30 17:26:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:26:15' and `end` < '2024-12-30 17:26:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:26:30] Production.INFO: count ==3851 [2024-12-30 17:26:59] Production.ERROR: pbx CDR StartTime 2024-12-30 14:26:15 - End Time 2024-12-30 17:26:15 [2024-12-30 17:26:59] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:26:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137729', 'tblTempUsageDetail_20' ) start [2024-12-30 17:26:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137729', 'tblTempUsageDetail_20' ) end [2024-12-30 17:26:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137729', 'tblTempVendorCDR_20' ) start [2024-12-30 17:26:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137729', 'tblTempVendorCDR_20' ) end [2024-12-30 17:26:59] Production.INFO: ProcessCDR(1,14137729,1,1,2) [2024-12-30 17:26:59] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:27:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:27:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137729', 'tblTempUsageDetail_20' ) start [2024-12-30 17:27:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137729', 'tblTempUsageDetail_20' ) end [2024-12-30 17:27:48] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:27:48] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:27:51] Production.INFO: ==17664== Releasing lock... [2024-12-30 17:27:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:27:51] Production.INFO: 57 MB #Memory Used# [2024-12-30 17:28:24] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:28:24 [end_date_ymd] => 2024-12-30 17:28:24 [RateCDR] => 1 ) [2024-12-30 17:28:24] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:28:24' and `end` < '2024-12-30 17:28:24' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:28:37] Production.INFO: count ==3825 [2024-12-30 17:29:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:28:24 - End Time 2024-12-30 17:28:24 [2024-12-30 17:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137736', 'tblTempUsageDetail_20' ) start [2024-12-30 17:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137736', 'tblTempUsageDetail_20' ) end [2024-12-30 17:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137736', 'tblTempVendorCDR_20' ) start [2024-12-30 17:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137736', 'tblTempVendorCDR_20' ) end [2024-12-30 17:29:27] Production.INFO: ProcessCDR(1,14137736,1,1,2) [2024-12-30 17:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:29:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:29:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137736', 'tblTempUsageDetail_20' ) start [2024-12-30 17:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137736', 'tblTempUsageDetail_20' ) end [2024-12-30 17:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:30:29] Production.INFO: ==17811== Releasing lock... [2024-12-30 17:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:30:29] Production.INFO: 56.5 MB #Memory Used# [2024-12-30 17:31:18] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:31:18 [end_date_ymd] => 2024-12-30 17:31:18 [RateCDR] => 1 ) [2024-12-30 17:31: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-30 14:31:18' and `end` < '2024-12-30 17:31: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-30 17:31:33] Production.INFO: count ==3772 [2024-12-30 17:32:37] Production.ERROR: pbx CDR StartTime 2024-12-30 14:31:18 - End Time 2024-12-30 17:31:18 [2024-12-30 17:32:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:32:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137748', 'tblTempUsageDetail_20' ) start [2024-12-30 17:32:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137748', 'tblTempUsageDetail_20' ) end [2024-12-30 17:32:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137748', 'tblTempVendorCDR_20' ) start [2024-12-30 17:32:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137748', 'tblTempVendorCDR_20' ) end [2024-12-30 17:32:43] Production.INFO: ProcessCDR(1,14137748,1,1,2) [2024-12-30 17:32:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:32:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:32:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:33:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:33:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137748', 'tblTempUsageDetail_20' ) start [2024-12-30 17:33:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137748', 'tblTempUsageDetail_20' ) end [2024-12-30 17:33:16] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:33:16] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:33:20] Production.INFO: ==18065== Releasing lock... [2024-12-30 17:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:33:20] Production.INFO: 57.25 MB #Memory Used# [2024-12-30 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:34:06 [end_date_ymd] => 2024-12-30 17:34:06 [RateCDR] => 1 ) [2024-12-30 17:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:34:06' and `end` < '2024-12-30 17:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:34:20] Production.INFO: count ==3740 [2024-12-30 17:34:22] Production.ERROR: pbx CDR StartTime 2024-12-30 14:34:06 - End Time 2024-12-30 17:34:06 [2024-12-30 17:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137760', 'tblTempUsageDetail_20' ) start [2024-12-30 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137760', 'tblTempUsageDetail_20' ) end [2024-12-30 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137760', 'tblTempVendorCDR_20' ) start [2024-12-30 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137760', 'tblTempVendorCDR_20' ) end [2024-12-30 17:34:22] Production.INFO: ProcessCDR(1,14137760,1,1,2) [2024-12-30 17:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137760', 'tblTempUsageDetail_20' ) start [2024-12-30 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137760', 'tblTempUsageDetail_20' ) end [2024-12-30 17:34:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:34:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:34:27] Production.INFO: ==18293== Releasing lock... [2024-12-30 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:34:27] Production.INFO: 56.25 MB #Memory Used# [2024-12-30 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:35:05 [end_date_ymd] => 2024-12-30 17:35:05 [RateCDR] => 1 ) [2024-12-30 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:35:05' and `end` < '2024-12-30 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:35:18] Production.INFO: count ==3736 [2024-12-30 17:35:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:35:05 - End Time 2024-12-30 17:35:05 [2024-12-30 17:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137765', 'tblTempUsageDetail_20' ) start [2024-12-30 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137765', 'tblTempUsageDetail_20' ) end [2024-12-30 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137765', 'tblTempVendorCDR_20' ) start [2024-12-30 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137765', 'tblTempVendorCDR_20' ) end [2024-12-30 17:35:19] Production.INFO: ProcessCDR(1,14137765,1,1,2) [2024-12-30 17:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137765', 'tblTempUsageDetail_20' ) start [2024-12-30 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137765', 'tblTempUsageDetail_20' ) end [2024-12-30 17:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:35:23] Production.INFO: ==18401== Releasing lock... [2024-12-30 17:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:35:23] Production.INFO: 56 MB #Memory Used# [2024-12-30 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:36:05 [end_date_ymd] => 2024-12-30 17:36:05 [RateCDR] => 1 ) [2024-12-30 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:36:05' and `end` < '2024-12-30 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:36:19] Production.INFO: count ==3713 [2024-12-30 17:36:20] Production.ERROR: pbx CDR StartTime 2024-12-30 14:36:05 - End Time 2024-12-30 17:36:05 [2024-12-30 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137770', 'tblTempUsageDetail_20' ) start [2024-12-30 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137770', 'tblTempUsageDetail_20' ) end [2024-12-30 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137770', 'tblTempVendorCDR_20' ) start [2024-12-30 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137770', 'tblTempVendorCDR_20' ) end [2024-12-30 17:36:20] Production.INFO: ProcessCDR(1,14137770,1,1,2) [2024-12-30 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137770', 'tblTempUsageDetail_20' ) start [2024-12-30 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137770', 'tblTempUsageDetail_20' ) end [2024-12-30 17:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:36:24] Production.INFO: ==18510== Releasing lock... [2024-12-30 17:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:36:24] Production.INFO: 56.75 MB #Memory Used# [2024-12-30 17:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:37:04 [end_date_ymd] => 2024-12-30 17:37:04 [RateCDR] => 1 ) [2024-12-30 17: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-30 14:37:04' and `end` < '2024-12-30 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-30 17:37:17] Production.INFO: count ==3708 [2024-12-30 17:37:18] Production.ERROR: pbx CDR StartTime 2024-12-30 14:37:04 - End Time 2024-12-30 17:37:04 [2024-12-30 17:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137775', 'tblTempUsageDetail_20' ) start [2024-12-30 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137775', 'tblTempUsageDetail_20' ) end [2024-12-30 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137775', 'tblTempVendorCDR_20' ) start [2024-12-30 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137775', 'tblTempVendorCDR_20' ) end [2024-12-30 17:37:18] Production.INFO: ProcessCDR(1,14137775,1,1,2) [2024-12-30 17:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137775', 'tblTempUsageDetail_20' ) start [2024-12-30 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137775', 'tblTempUsageDetail_20' ) end [2024-12-30 17:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:37:22] Production.INFO: ==18602== Releasing lock... [2024-12-30 17:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:37:22] Production.INFO: 56 MB #Memory Used# [2024-12-30 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:38:05 [end_date_ymd] => 2024-12-30 17:38:05 [RateCDR] => 1 ) [2024-12-30 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:38:05' and `end` < '2024-12-30 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:38:19] Production.INFO: count ==3705 [2024-12-30 17:38:20] Production.ERROR: pbx CDR StartTime 2024-12-30 14:38:05 - End Time 2024-12-30 17:38:05 [2024-12-30 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137780', 'tblTempUsageDetail_20' ) start [2024-12-30 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137780', 'tblTempUsageDetail_20' ) end [2024-12-30 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137780', 'tblTempVendorCDR_20' ) start [2024-12-30 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137780', 'tblTempVendorCDR_20' ) end [2024-12-30 17:38:20] Production.INFO: ProcessCDR(1,14137780,1,1,2) [2024-12-30 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137780', 'tblTempUsageDetail_20' ) start [2024-12-30 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137780', 'tblTempUsageDetail_20' ) end [2024-12-30 17:38:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:38:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:38:25] Production.INFO: ==18683== Releasing lock... [2024-12-30 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:38:25] Production.INFO: 56 MB #Memory Used# [2024-12-30 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:39:05 [end_date_ymd] => 2024-12-30 17:39:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:39:05' and `end` < '2024-12-30 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-30 17:39:18] Production.INFO: count ==3694 [2024-12-30 17:39:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:39:05 - End Time 2024-12-30 17:39:05 [2024-12-30 17:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137785', 'tblTempUsageDetail_20' ) start [2024-12-30 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137785', 'tblTempUsageDetail_20' ) end [2024-12-30 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137785', 'tblTempVendorCDR_20' ) start [2024-12-30 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137785', 'tblTempVendorCDR_20' ) end [2024-12-30 17:39:20] Production.INFO: ProcessCDR(1,14137785,1,1,2) [2024-12-30 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137785', 'tblTempUsageDetail_20' ) start [2024-12-30 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137785', 'tblTempUsageDetail_20' ) end [2024-12-30 17:39:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:39:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:39:24] Production.INFO: ==18758== Releasing lock... [2024-12-30 17:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:39:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-30 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:40:05 [end_date_ymd] => 2024-12-30 17:40:05 [RateCDR] => 1 ) [2024-12-30 17:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:40:05' and `end` < '2024-12-30 17:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:40:18] Production.INFO: count ==3685 [2024-12-30 17:40:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:40:05 - End Time 2024-12-30 17:40:05 [2024-12-30 17:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137791', 'tblTempUsageDetail_20' ) start [2024-12-30 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137791', 'tblTempUsageDetail_20' ) end [2024-12-30 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137791', 'tblTempVendorCDR_20' ) start [2024-12-30 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137791', 'tblTempVendorCDR_20' ) end [2024-12-30 17:40:19] Production.INFO: ProcessCDR(1,14137791,1,1,2) [2024-12-30 17:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137791', 'tblTempUsageDetail_20' ) start [2024-12-30 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137791', 'tblTempUsageDetail_20' ) end [2024-12-30 17:40:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:40:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:40:24] Production.INFO: ==18839== Releasing lock... [2024-12-30 17:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:40:24] Production.INFO: 55.5 MB #Memory Used# [2024-12-30 17:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:41:04 [end_date_ymd] => 2024-12-30 17:41:04 [RateCDR] => 1 ) [2024-12-30 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-30 14:41:04' and `end` < '2024-12-30 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-30 17:41:18] Production.INFO: count ==3637 [2024-12-30 17:41:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:41:04 - End Time 2024-12-30 17:41:04 [2024-12-30 17:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137796', 'tblTempUsageDetail_20' ) start [2024-12-30 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137796', 'tblTempUsageDetail_20' ) end [2024-12-30 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137796', 'tblTempVendorCDR_20' ) start [2024-12-30 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137796', 'tblTempVendorCDR_20' ) end [2024-12-30 17:41:19] Production.INFO: ProcessCDR(1,14137796,1,1,2) [2024-12-30 17:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137796', 'tblTempUsageDetail_20' ) start [2024-12-30 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137796', 'tblTempUsageDetail_20' ) end [2024-12-30 17:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:41:23] Production.INFO: ==18917== Releasing lock... [2024-12-30 17:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:41:23] Production.INFO: 56.25 MB #Memory Used# [2024-12-30 17:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:42:04 [end_date_ymd] => 2024-12-30 17:42:04 [RateCDR] => 1 ) [2024-12-30 17: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-30 14:42:04' and `end` < '2024-12-30 17: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-30 17:42:17] Production.INFO: count ==3609 [2024-12-30 17:42:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:42:04 - End Time 2024-12-30 17:42:04 [2024-12-30 17:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137801', 'tblTempUsageDetail_20' ) start [2024-12-30 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137801', 'tblTempUsageDetail_20' ) end [2024-12-30 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137801', 'tblTempVendorCDR_20' ) start [2024-12-30 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137801', 'tblTempVendorCDR_20' ) end [2024-12-30 17:42:19] Production.INFO: ProcessCDR(1,14137801,1,1,2) [2024-12-30 17:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137801', 'tblTempUsageDetail_20' ) start [2024-12-30 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137801', 'tblTempUsageDetail_20' ) end [2024-12-30 17:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:42:22] Production.INFO: ==18992== Releasing lock... [2024-12-30 17:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:42:22] Production.INFO: 55.5 MB #Memory Used# [2024-12-30 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:43:05 [end_date_ymd] => 2024-12-30 17:43:05 [RateCDR] => 1 ) [2024-12-30 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:43:05' and `end` < '2024-12-30 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:43:19] Production.INFO: count ==3600 [2024-12-30 17:43:20] Production.ERROR: pbx CDR StartTime 2024-12-30 14:43:05 - End Time 2024-12-30 17:43:05 [2024-12-30 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137806', 'tblTempUsageDetail_20' ) start [2024-12-30 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137806', 'tblTempUsageDetail_20' ) end [2024-12-30 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137806', 'tblTempVendorCDR_20' ) start [2024-12-30 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137806', 'tblTempVendorCDR_20' ) end [2024-12-30 17:43:20] Production.INFO: ProcessCDR(1,14137806,1,1,2) [2024-12-30 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137806', 'tblTempUsageDetail_20' ) start [2024-12-30 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137806', 'tblTempUsageDetail_20' ) end [2024-12-30 17:43:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:43:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:43:25] Production.INFO: ==19067== Releasing lock... [2024-12-30 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:43:25] Production.INFO: 55 MB #Memory Used# [2024-12-30 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:44:05 [end_date_ymd] => 2024-12-30 17:44:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:44:05' and `end` < '2024-12-30 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-30 17:44:18] Production.INFO: count ==3573 [2024-12-30 17:44:20] Production.ERROR: pbx CDR StartTime 2024-12-30 14:44:05 - End Time 2024-12-30 17:44:05 [2024-12-30 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137811', 'tblTempUsageDetail_20' ) start [2024-12-30 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137811', 'tblTempUsageDetail_20' ) end [2024-12-30 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137811', 'tblTempVendorCDR_20' ) start [2024-12-30 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137811', 'tblTempVendorCDR_20' ) end [2024-12-30 17:44:20] Production.INFO: ProcessCDR(1,14137811,1,1,2) [2024-12-30 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137811', 'tblTempUsageDetail_20' ) start [2024-12-30 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137811', 'tblTempUsageDetail_20' ) end [2024-12-30 17:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:44:24] Production.INFO: ==19142== Releasing lock... [2024-12-30 17:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:44:24] Production.INFO: 55 MB #Memory Used# [2024-12-30 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:45:05 [end_date_ymd] => 2024-12-30 17:45:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:45:05' and `end` < '2024-12-30 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-30 17:45:18] Production.INFO: count ==3552 [2024-12-30 17:45:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:45:05 - End Time 2024-12-30 17:45:05 [2024-12-30 17:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137816', 'tblTempUsageDetail_20' ) start [2024-12-30 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137816', 'tblTempUsageDetail_20' ) end [2024-12-30 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137816', 'tblTempVendorCDR_20' ) start [2024-12-30 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137816', 'tblTempVendorCDR_20' ) end [2024-12-30 17:45:19] Production.INFO: ProcessCDR(1,14137816,1,1,2) [2024-12-30 17:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137816', 'tblTempUsageDetail_20' ) start [2024-12-30 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137816', 'tblTempUsageDetail_20' ) end [2024-12-30 17:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:45:23] Production.INFO: ==19215== Releasing lock... [2024-12-30 17:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:45:23] Production.INFO: 54.5 MB #Memory Used# [2024-12-30 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:46:05 [end_date_ymd] => 2024-12-30 17:46:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:46:05' and `end` < '2024-12-30 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-30 17:46:20] Production.INFO: count ==3545 [2024-12-30 17:46:21] Production.ERROR: pbx CDR StartTime 2024-12-30 14:46:05 - End Time 2024-12-30 17:46:05 [2024-12-30 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137821', 'tblTempUsageDetail_20' ) start [2024-12-30 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137821', 'tblTempUsageDetail_20' ) end [2024-12-30 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137821', 'tblTempVendorCDR_20' ) start [2024-12-30 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137821', 'tblTempVendorCDR_20' ) end [2024-12-30 17:46:21] Production.INFO: ProcessCDR(1,14137821,1,1,2) [2024-12-30 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137821', 'tblTempUsageDetail_20' ) start [2024-12-30 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137821', 'tblTempUsageDetail_20' ) end [2024-12-30 17:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:46:24] Production.INFO: ==19329== Releasing lock... [2024-12-30 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:46:24] Production.INFO: 55 MB #Memory Used# [2024-12-30 17:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:47:04 [end_date_ymd] => 2024-12-30 17:47:04 [RateCDR] => 1 ) [2024-12-30 17: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-30 14:47:04' and `end` < '2024-12-30 17: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-30 17:47:17] Production.INFO: count ==3540 [2024-12-30 17:47:18] Production.ERROR: pbx CDR StartTime 2024-12-30 14:47:04 - End Time 2024-12-30 17:47:04 [2024-12-30 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137826', 'tblTempUsageDetail_20' ) start [2024-12-30 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137826', 'tblTempUsageDetail_20' ) end [2024-12-30 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137826', 'tblTempVendorCDR_20' ) start [2024-12-30 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137826', 'tblTempVendorCDR_20' ) end [2024-12-30 17:47:19] Production.INFO: ProcessCDR(1,14137826,1,1,2) [2024-12-30 17:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137826', 'tblTempUsageDetail_20' ) start [2024-12-30 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137826', 'tblTempUsageDetail_20' ) end [2024-12-30 17:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:47:22] Production.INFO: ==19401== Releasing lock... [2024-12-30 17:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:47:22] Production.INFO: 55 MB #Memory Used# [2024-12-30 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:48:05 [end_date_ymd] => 2024-12-30 17:48:05 [RateCDR] => 1 ) [2024-12-30 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:48:05' and `end` < '2024-12-30 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:48:18] Production.INFO: count ==3542 [2024-12-30 17:48:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:48:05 - End Time 2024-12-30 17:48:05 [2024-12-30 17:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137831', 'tblTempUsageDetail_20' ) start [2024-12-30 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137831', 'tblTempUsageDetail_20' ) end [2024-12-30 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137831', 'tblTempVendorCDR_20' ) start [2024-12-30 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137831', 'tblTempVendorCDR_20' ) end [2024-12-30 17:48:19] Production.INFO: ProcessCDR(1,14137831,1,1,2) [2024-12-30 17:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137831', 'tblTempUsageDetail_20' ) start [2024-12-30 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137831', 'tblTempUsageDetail_20' ) end [2024-12-30 17:48:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:48:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:48:24] Production.INFO: ==19476== Releasing lock... [2024-12-30 17:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:48:24] Production.INFO: 55.25 MB #Memory Used# [2024-12-30 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:49:05 [end_date_ymd] => 2024-12-30 17:49:05 [RateCDR] => 1 ) [2024-12-30 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:49:05' and `end` < '2024-12-30 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:49:18] Production.INFO: count ==3542 [2024-12-30 17:49:20] Production.ERROR: pbx CDR StartTime 2024-12-30 14:49:05 - End Time 2024-12-30 17:49:05 [2024-12-30 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137836', 'tblTempUsageDetail_20' ) start [2024-12-30 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137836', 'tblTempUsageDetail_20' ) end [2024-12-30 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137836', 'tblTempVendorCDR_20' ) start [2024-12-30 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137836', 'tblTempVendorCDR_20' ) end [2024-12-30 17:49:20] Production.INFO: ProcessCDR(1,14137836,1,1,2) [2024-12-30 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137836', 'tblTempUsageDetail_20' ) start [2024-12-30 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137836', 'tblTempUsageDetail_20' ) end [2024-12-30 17:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:49:23] Production.INFO: ==19550== Releasing lock... [2024-12-30 17:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:49:23] Production.INFO: 55 MB #Memory Used# [2024-12-30 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:50:05 [end_date_ymd] => 2024-12-30 17:50:05 [RateCDR] => 1 ) [2024-12-30 17: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-30 14:50:05' and `end` < '2024-12-30 17: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-30 17:50:18] Production.INFO: count ==3509 [2024-12-30 17:50:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:50:05 - End Time 2024-12-30 17:50:05 [2024-12-30 17:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137842', 'tblTempUsageDetail_20' ) start [2024-12-30 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137842', 'tblTempUsageDetail_20' ) end [2024-12-30 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137842', 'tblTempVendorCDR_20' ) start [2024-12-30 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137842', 'tblTempVendorCDR_20' ) end [2024-12-30 17:50:20] Production.INFO: ProcessCDR(1,14137842,1,1,2) [2024-12-30 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137842', 'tblTempUsageDetail_20' ) start [2024-12-30 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137842', 'tblTempUsageDetail_20' ) end [2024-12-30 17:50:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:50:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:50:24] Production.INFO: ==19623== Releasing lock... [2024-12-30 17:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:50:24] Production.INFO: 54.5 MB #Memory Used# [2024-12-30 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:51:05 [end_date_ymd] => 2024-12-30 17:51:05 [RateCDR] => 1 ) [2024-12-30 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:51:05' and `end` < '2024-12-30 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:51:18] Production.INFO: count ==3449 [2024-12-30 17:51:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:51:05 - End Time 2024-12-30 17:51:05 [2024-12-30 17:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137847', 'tblTempUsageDetail_20' ) start [2024-12-30 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137847', 'tblTempUsageDetail_20' ) end [2024-12-30 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137847', 'tblTempVendorCDR_20' ) start [2024-12-30 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137847', 'tblTempVendorCDR_20' ) end [2024-12-30 17:51:20] Production.INFO: ProcessCDR(1,14137847,1,1,2) [2024-12-30 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137847', 'tblTempUsageDetail_20' ) start [2024-12-30 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137847', 'tblTempUsageDetail_20' ) end [2024-12-30 17:51:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:51:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:51:24] Production.INFO: ==19699== Releasing lock... [2024-12-30 17:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:51:24] Production.INFO: 54 MB #Memory Used# [2024-12-30 17:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:52:04 [end_date_ymd] => 2024-12-30 17:52:04 [RateCDR] => 1 ) [2024-12-30 17: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-30 14:52:04' and `end` < '2024-12-30 17: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-30 17:52:17] Production.INFO: count ==3432 [2024-12-30 17:52:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:52:04 - End Time 2024-12-30 17:52:04 [2024-12-30 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137852', 'tblTempUsageDetail_20' ) start [2024-12-30 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137852', 'tblTempUsageDetail_20' ) end [2024-12-30 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137852', 'tblTempVendorCDR_20' ) start [2024-12-30 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137852', 'tblTempVendorCDR_20' ) end [2024-12-30 17:52:19] Production.INFO: ProcessCDR(1,14137852,1,1,2) [2024-12-30 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137852', 'tblTempUsageDetail_20' ) start [2024-12-30 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137852', 'tblTempUsageDetail_20' ) end [2024-12-30 17:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:52:22] Production.INFO: ==19775== Releasing lock... [2024-12-30 17:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:52:22] Production.INFO: 53.75 MB #Memory Used# [2024-12-30 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:53:05 [end_date_ymd] => 2024-12-30 17:53:05 [RateCDR] => 1 ) [2024-12-30 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:53:05' and `end` < '2024-12-30 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:53:18] Production.INFO: count ==3419 [2024-12-30 17:53:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:53:05 - End Time 2024-12-30 17:53:05 [2024-12-30 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137857', 'tblTempUsageDetail_20' ) start [2024-12-30 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137857', 'tblTempUsageDetail_20' ) end [2024-12-30 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137857', 'tblTempVendorCDR_20' ) start [2024-12-30 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137857', 'tblTempVendorCDR_20' ) end [2024-12-30 17:53:19] Production.INFO: ProcessCDR(1,14137857,1,1,2) [2024-12-30 17:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137857', 'tblTempUsageDetail_20' ) start [2024-12-30 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137857', 'tblTempUsageDetail_20' ) end [2024-12-30 17:53:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:53:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:53:24] Production.INFO: ==19847== Releasing lock... [2024-12-30 17:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:53:24] Production.INFO: 54.5 MB #Memory Used# [2024-12-30 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:54:05 [end_date_ymd] => 2024-12-30 17:54:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:54:05' and `end` < '2024-12-30 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-30 17:54:18] Production.INFO: count ==3418 [2024-12-30 17:54:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:54:05 - End Time 2024-12-30 17:54:05 [2024-12-30 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137862', 'tblTempUsageDetail_20' ) start [2024-12-30 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137862', 'tblTempUsageDetail_20' ) end [2024-12-30 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137862', 'tblTempVendorCDR_20' ) start [2024-12-30 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137862', 'tblTempVendorCDR_20' ) end [2024-12-30 17:54:19] Production.INFO: ProcessCDR(1,14137862,1,1,2) [2024-12-30 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137862', 'tblTempUsageDetail_20' ) start [2024-12-30 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137862', 'tblTempUsageDetail_20' ) end [2024-12-30 17:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:54:24] Production.INFO: ==19920== Releasing lock... [2024-12-30 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:54:24] Production.INFO: 54 MB #Memory Used# [2024-12-30 17:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:55:04 [end_date_ymd] => 2024-12-30 17:55:04 [RateCDR] => 1 ) [2024-12-30 17:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:55:04' and `end` < '2024-12-30 17:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:55:18] Production.INFO: count ==3420 [2024-12-30 17:55:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:55:04 - End Time 2024-12-30 17:55:04 [2024-12-30 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137866', 'tblTempUsageDetail_20' ) start [2024-12-30 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137866', 'tblTempUsageDetail_20' ) end [2024-12-30 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137866', 'tblTempVendorCDR_20' ) start [2024-12-30 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137866', 'tblTempVendorCDR_20' ) end [2024-12-30 17:55:19] Production.INFO: ProcessCDR(1,14137866,1,1,2) [2024-12-30 17:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137866', 'tblTempUsageDetail_20' ) start [2024-12-30 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137866', 'tblTempUsageDetail_20' ) end [2024-12-30 17:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:55:24] Production.INFO: ==19991== Releasing lock... [2024-12-30 17:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:55:24] Production.INFO: 54 MB #Memory Used# [2024-12-30 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:56:05 [end_date_ymd] => 2024-12-30 17:56:05 [RateCDR] => 1 ) [2024-12-30 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-30 14:56:05' and `end` < '2024-12-30 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-30 17:56:18] Production.INFO: count ==3404 [2024-12-30 17:56:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:56:05 - End Time 2024-12-30 17:56:05 [2024-12-30 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137872', 'tblTempUsageDetail_20' ) start [2024-12-30 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137872', 'tblTempUsageDetail_20' ) end [2024-12-30 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137872', 'tblTempVendorCDR_20' ) start [2024-12-30 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137872', 'tblTempVendorCDR_20' ) end [2024-12-30 17:56:19] Production.INFO: ProcessCDR(1,14137872,1,1,2) [2024-12-30 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137872', 'tblTempUsageDetail_20' ) start [2024-12-30 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137872', 'tblTempUsageDetail_20' ) end [2024-12-30 17:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:56:24] Production.INFO: ==20064== Releasing lock... [2024-12-30 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:56:24] Production.INFO: 54 MB #Memory Used# [2024-12-30 17:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:57:04 [end_date_ymd] => 2024-12-30 17:57:04 [RateCDR] => 1 ) [2024-12-30 17: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-30 14:57:04' and `end` < '2024-12-30 17: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-30 17:57:17] Production.INFO: count ==3410 [2024-12-30 17:57:18] Production.ERROR: pbx CDR StartTime 2024-12-30 14:57:04 - End Time 2024-12-30 17:57:04 [2024-12-30 17:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137877', 'tblTempUsageDetail_20' ) start [2024-12-30 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137877', 'tblTempUsageDetail_20' ) end [2024-12-30 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137877', 'tblTempVendorCDR_20' ) start [2024-12-30 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137877', 'tblTempVendorCDR_20' ) end [2024-12-30 17:57:18] Production.INFO: ProcessCDR(1,14137877,1,1,2) [2024-12-30 17:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137877', 'tblTempUsageDetail_20' ) start [2024-12-30 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137877', 'tblTempUsageDetail_20' ) end [2024-12-30 17:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:57:23] Production.INFO: ==20134== Releasing lock... [2024-12-30 17:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:57:23] Production.INFO: 54 MB #Memory Used# [2024-12-30 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:58:05 [end_date_ymd] => 2024-12-30 17:58:05 [RateCDR] => 1 ) [2024-12-30 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:58:05' and `end` < '2024-12-30 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:58:18] Production.INFO: count ==3372 [2024-12-30 17:58:19] Production.ERROR: pbx CDR StartTime 2024-12-30 14:58:05 - End Time 2024-12-30 17:58:05 [2024-12-30 17:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137882', 'tblTempUsageDetail_20' ) start [2024-12-30 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137882', 'tblTempUsageDetail_20' ) end [2024-12-30 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137882', 'tblTempVendorCDR_20' ) start [2024-12-30 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137882', 'tblTempVendorCDR_20' ) end [2024-12-30 17:58:19] Production.INFO: ProcessCDR(1,14137882,1,1,2) [2024-12-30 17:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137882', 'tblTempUsageDetail_20' ) start [2024-12-30 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137882', 'tblTempUsageDetail_20' ) end [2024-12-30 17:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:58:24] Production.INFO: ==20209== Releasing lock... [2024-12-30 17:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:58:24] Production.INFO: 53.75 MB #Memory Used# [2024-12-30 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 14:59:05 [end_date_ymd] => 2024-12-30 17:59:05 [RateCDR] => 1 ) [2024-12-30 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 14:59:05' and `end` < '2024-12-30 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 17:59:18] Production.INFO: count ==3419 [2024-12-30 17:59:20] Production.ERROR: pbx CDR StartTime 2024-12-30 14:59:05 - End Time 2024-12-30 17:59:05 [2024-12-30 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137887', 'tblTempUsageDetail_20' ) start [2024-12-30 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137887', 'tblTempUsageDetail_20' ) end [2024-12-30 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137887', 'tblTempVendorCDR_20' ) start [2024-12-30 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137887', 'tblTempVendorCDR_20' ) end [2024-12-30 17:59:20] Production.INFO: ProcessCDR(1,14137887,1,1,2) [2024-12-30 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137887', 'tblTempUsageDetail_20' ) start [2024-12-30 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137887', 'tblTempUsageDetail_20' ) end [2024-12-30 17:59:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 17:59:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 17:59:25] Production.INFO: ==20281== Releasing lock... [2024-12-30 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 17:59:25] Production.INFO: 54 MB #Memory Used# [2024-12-30 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:00:06 [end_date_ymd] => 2024-12-30 18:00:06 [RateCDR] => 1 ) [2024-12-30 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 15:00:06' and `end` < '2024-12-30 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 18:00:19] Production.INFO: count ==3401 [2024-12-30 18:00:20] Production.ERROR: pbx CDR StartTime 2024-12-30 15:00:06 - End Time 2024-12-30 18:00:06 [2024-12-30 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137892', 'tblTempUsageDetail_20' ) start [2024-12-30 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137892', 'tblTempUsageDetail_20' ) end [2024-12-30 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137892', 'tblTempVendorCDR_20' ) start [2024-12-30 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137892', 'tblTempVendorCDR_20' ) end [2024-12-30 18:00:20] Production.INFO: ProcessCDR(1,14137892,1,1,2) [2024-12-30 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137892', 'tblTempUsageDetail_20' ) start [2024-12-30 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137892', 'tblTempUsageDetail_20' ) end [2024-12-30 18:00:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:00:25] Production.INFO: ==20355== Releasing lock... [2024-12-30 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:00:25] Production.INFO: 53.25 MB #Memory Used# [2024-12-30 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:01:05 [end_date_ymd] => 2024-12-30 18:01:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:01:05' and `end` < '2024-12-30 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-30 18:01:18] Production.INFO: count ==3365 [2024-12-30 18:01:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:01:05 - End Time 2024-12-30 18:01:05 [2024-12-30 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137898', 'tblTempUsageDetail_20' ) start [2024-12-30 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137898', 'tblTempUsageDetail_20' ) end [2024-12-30 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137898', 'tblTempVendorCDR_20' ) start [2024-12-30 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137898', 'tblTempVendorCDR_20' ) end [2024-12-30 18:01:19] Production.INFO: ProcessCDR(1,14137898,1,1,2) [2024-12-30 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137898', 'tblTempUsageDetail_20' ) start [2024-12-30 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137898', 'tblTempUsageDetail_20' ) end [2024-12-30 18:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:01:24] Production.INFO: ==20480== Releasing lock... [2024-12-30 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:01:24] Production.INFO: 53.5 MB #Memory Used# [2024-12-30 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:02:05 [end_date_ymd] => 2024-12-30 18:02:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:02:05' and `end` < '2024-12-30 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-30 18:02:18] Production.INFO: count ==3383 [2024-12-30 18:02:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:02:05 - End Time 2024-12-30 18:02:05 [2024-12-30 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137903', 'tblTempUsageDetail_20' ) start [2024-12-30 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137903', 'tblTempUsageDetail_20' ) end [2024-12-30 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137903', 'tblTempVendorCDR_20' ) start [2024-12-30 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137903', 'tblTempVendorCDR_20' ) end [2024-12-30 18:02:20] Production.INFO: ProcessCDR(1,14137903,1,1,2) [2024-12-30 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137903', 'tblTempUsageDetail_20' ) start [2024-12-30 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137903', 'tblTempUsageDetail_20' ) end [2024-12-30 18:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:02:23] Production.INFO: ==20549== Releasing lock... [2024-12-30 18:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:02:23] Production.INFO: 54.25 MB #Memory Used# [2024-12-30 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:03:04 [end_date_ymd] => 2024-12-30 18:03:04 [RateCDR] => 1 ) [2024-12-30 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-30 15:03:04' and `end` < '2024-12-30 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-30 18:03:18] Production.INFO: count ==3401 [2024-12-30 18:03:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:03:04 - End Time 2024-12-30 18:03:04 [2024-12-30 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137908', 'tblTempUsageDetail_20' ) start [2024-12-30 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137908', 'tblTempUsageDetail_20' ) end [2024-12-30 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137908', 'tblTempVendorCDR_20' ) start [2024-12-30 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137908', 'tblTempVendorCDR_20' ) end [2024-12-30 18:03:19] Production.INFO: ProcessCDR(1,14137908,1,1,2) [2024-12-30 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137908', 'tblTempUsageDetail_20' ) start [2024-12-30 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137908', 'tblTempUsageDetail_20' ) end [2024-12-30 18:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:03:22] Production.INFO: ==20618== Releasing lock... [2024-12-30 18:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:03:22] Production.INFO: 53.75 MB #Memory Used# [2024-12-30 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:04:05 [end_date_ymd] => 2024-12-30 18:04:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:04:05' and `end` < '2024-12-30 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-30 18:04:21] Production.INFO: count ==3425 [2024-12-30 18:04:23] Production.ERROR: pbx CDR StartTime 2024-12-30 15:04:05 - End Time 2024-12-30 18:04:05 [2024-12-30 18:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137913', 'tblTempUsageDetail_20' ) start [2024-12-30 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137913', 'tblTempUsageDetail_20' ) end [2024-12-30 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137913', 'tblTempVendorCDR_20' ) start [2024-12-30 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137913', 'tblTempVendorCDR_20' ) end [2024-12-30 18:04:23] Production.INFO: ProcessCDR(1,14137913,1,1,2) [2024-12-30 18:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137913', 'tblTempUsageDetail_20' ) start [2024-12-30 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137913', 'tblTempUsageDetail_20' ) end [2024-12-30 18:04:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:04:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:04:26] Production.INFO: ==20692== Releasing lock... [2024-12-30 18:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:04:26] Production.INFO: 53.75 MB #Memory Used# [2024-12-30 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:05:05 [end_date_ymd] => 2024-12-30 18:05:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:05:05' and `end` < '2024-12-30 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-30 18:05:19] Production.INFO: count ==3539 [2024-12-30 18:05:20] Production.ERROR: pbx CDR StartTime 2024-12-30 15:05:05 - End Time 2024-12-30 18:05:05 [2024-12-30 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137918', 'tblTempUsageDetail_20' ) start [2024-12-30 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137918', 'tblTempUsageDetail_20' ) end [2024-12-30 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137918', 'tblTempVendorCDR_20' ) start [2024-12-30 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137918', 'tblTempVendorCDR_20' ) end [2024-12-30 18:05:20] Production.INFO: ProcessCDR(1,14137918,1,1,2) [2024-12-30 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137918', 'tblTempUsageDetail_20' ) start [2024-12-30 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137918', 'tblTempUsageDetail_20' ) end [2024-12-30 18:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:05:25] Production.INFO: ==20763== Releasing lock... [2024-12-30 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:05:25] Production.INFO: 56.25 MB #Memory Used# [2024-12-30 18:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:06:04 [end_date_ymd] => 2024-12-30 18:06:04 [RateCDR] => 1 ) [2024-12-30 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-30 15:06:04' and `end` < '2024-12-30 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-30 18:06:18] Production.INFO: count ==3518 [2024-12-30 18:06:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:06:04 - End Time 2024-12-30 18:06:04 [2024-12-30 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137923', 'tblTempUsageDetail_20' ) start [2024-12-30 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137923', 'tblTempUsageDetail_20' ) end [2024-12-30 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137923', 'tblTempVendorCDR_20' ) start [2024-12-30 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137923', 'tblTempVendorCDR_20' ) end [2024-12-30 18:06:19] Production.INFO: ProcessCDR(1,14137923,1,1,2) [2024-12-30 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137923', 'tblTempUsageDetail_20' ) start [2024-12-30 18:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137923', 'tblTempUsageDetail_20' ) end [2024-12-30 18:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:06:22] Production.INFO: ==20832== Releasing lock... [2024-12-30 18:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:06:22] Production.INFO: 55.75 MB #Memory Used# [2024-12-30 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:07:05 [end_date_ymd] => 2024-12-30 18:07:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:07:05' and `end` < '2024-12-30 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-30 18:07:18] Production.INFO: count ==3507 [2024-12-30 18:07:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:07:05 - End Time 2024-12-30 18:07:05 [2024-12-30 18:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137928', 'tblTempUsageDetail_20' ) start [2024-12-30 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137928', 'tblTempUsageDetail_20' ) end [2024-12-30 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137928', 'tblTempVendorCDR_20' ) start [2024-12-30 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137928', 'tblTempVendorCDR_20' ) end [2024-12-30 18:07:19] Production.INFO: ProcessCDR(1,14137928,1,1,2) [2024-12-30 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137928', 'tblTempUsageDetail_20' ) start [2024-12-30 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137928', 'tblTempUsageDetail_20' ) end [2024-12-30 18:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:07:22] Production.INFO: ==20912== Releasing lock... [2024-12-30 18:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:07:22] Production.INFO: 54.75 MB #Memory Used# [2024-12-30 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:08:05 [end_date_ymd] => 2024-12-30 18:08:05 [RateCDR] => 1 ) [2024-12-30 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 15:08:05' and `end` < '2024-12-30 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 18:08:22] Production.INFO: count ==3520 [2024-12-30 18:08:23] Production.ERROR: pbx CDR StartTime 2024-12-30 15:08:05 - End Time 2024-12-30 18:08:05 [2024-12-30 18:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137933', 'tblTempUsageDetail_20' ) start [2024-12-30 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137933', 'tblTempUsageDetail_20' ) end [2024-12-30 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137933', 'tblTempVendorCDR_20' ) start [2024-12-30 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137933', 'tblTempVendorCDR_20' ) end [2024-12-30 18:08:23] Production.INFO: ProcessCDR(1,14137933,1,1,2) [2024-12-30 18:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137933', 'tblTempUsageDetail_20' ) start [2024-12-30 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137933', 'tblTempUsageDetail_20' ) end [2024-12-30 18:08:27] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:08:27] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:08:27] Production.INFO: ==20982== Releasing lock... [2024-12-30 18:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:08:27] Production.INFO: 55 MB #Memory Used# [2024-12-30 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:09:05 [end_date_ymd] => 2024-12-30 18:09:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:09:05' and `end` < '2024-12-30 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-30 18:09:18] Production.INFO: count ==3548 [2024-12-30 18:09:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:09:05 - End Time 2024-12-30 18:09:05 [2024-12-30 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137938', 'tblTempUsageDetail_20' ) start [2024-12-30 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137938', 'tblTempUsageDetail_20' ) end [2024-12-30 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137938', 'tblTempVendorCDR_20' ) start [2024-12-30 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137938', 'tblTempVendorCDR_20' ) end [2024-12-30 18:09:19] Production.INFO: ProcessCDR(1,14137938,1,1,2) [2024-12-30 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137938', 'tblTempUsageDetail_20' ) start [2024-12-30 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137938', 'tblTempUsageDetail_20' ) end [2024-12-30 18:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:09:23] Production.INFO: ==21052== Releasing lock... [2024-12-30 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:09:23] Production.INFO: 55.25 MB #Memory Used# [2024-12-30 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:10:05 [end_date_ymd] => 2024-12-30 18:10:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:10:05' and `end` < '2024-12-30 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-30 18:10:18] Production.INFO: count ==3583 [2024-12-30 18:10:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:10:05 - End Time 2024-12-30 18:10:05 [2024-12-30 18:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137943', 'tblTempUsageDetail_20' ) start [2024-12-30 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137943', 'tblTempUsageDetail_20' ) end [2024-12-30 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137943', 'tblTempVendorCDR_20' ) start [2024-12-30 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137943', 'tblTempVendorCDR_20' ) end [2024-12-30 18:10:20] Production.INFO: ProcessCDR(1,14137943,1,1,2) [2024-12-30 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137943', 'tblTempUsageDetail_20' ) start [2024-12-30 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137943', 'tblTempUsageDetail_20' ) end [2024-12-30 18:10:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:10:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:10:24] Production.INFO: ==21124== Releasing lock... [2024-12-30 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:10:24] Production.INFO: 55.5 MB #Memory Used# [2024-12-30 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:11:05 [end_date_ymd] => 2024-12-30 18:11:05 [RateCDR] => 1 ) [2024-12-30 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 15:11:05' and `end` < '2024-12-30 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 18:11:20] Production.INFO: count ==3613 [2024-12-30 18:11:21] Production.ERROR: pbx CDR StartTime 2024-12-30 15:11:05 - End Time 2024-12-30 18:11:05 [2024-12-30 18:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137947', 'tblTempUsageDetail_20' ) start [2024-12-30 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137947', 'tblTempUsageDetail_20' ) end [2024-12-30 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137947', 'tblTempVendorCDR_20' ) start [2024-12-30 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137947', 'tblTempVendorCDR_20' ) end [2024-12-30 18:11:21] Production.INFO: ProcessCDR(1,14137947,1,1,2) [2024-12-30 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137947', 'tblTempUsageDetail_20' ) start [2024-12-30 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137947', 'tblTempUsageDetail_20' ) end [2024-12-30 18:11:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:11:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:11:26] Production.INFO: ==21199== Releasing lock... [2024-12-30 18:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:11:26] Production.INFO: 55.5 MB #Memory Used# [2024-12-30 18:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:12:04 [end_date_ymd] => 2024-12-30 18:12:04 [RateCDR] => 1 ) [2024-12-30 18:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 15:12:04' and `end` < '2024-12-30 18:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 18:12:18] Production.INFO: count ==3644 [2024-12-30 18:12:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:12:04 - End Time 2024-12-30 18:12:04 [2024-12-30 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137954', 'tblTempUsageDetail_20' ) start [2024-12-30 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137954', 'tblTempUsageDetail_20' ) end [2024-12-30 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137954', 'tblTempVendorCDR_20' ) start [2024-12-30 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137954', 'tblTempVendorCDR_20' ) end [2024-12-30 18:12:19] Production.INFO: ProcessCDR(1,14137954,1,1,2) [2024-12-30 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137954', 'tblTempUsageDetail_20' ) start [2024-12-30 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137954', 'tblTempUsageDetail_20' ) end [2024-12-30 18:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:12:24] Production.INFO: ==21271== Releasing lock... [2024-12-30 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:12:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-30 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:13:05 [end_date_ymd] => 2024-12-30 18:13:05 [RateCDR] => 1 ) [2024-12-30 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 15:13:05' and `end` < '2024-12-30 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 18:13:20] Production.INFO: count ==3667 [2024-12-30 18:13:21] Production.ERROR: pbx CDR StartTime 2024-12-30 15:13:05 - End Time 2024-12-30 18:13:05 [2024-12-30 18:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137959', 'tblTempUsageDetail_20' ) start [2024-12-30 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137959', 'tblTempUsageDetail_20' ) end [2024-12-30 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137959', 'tblTempVendorCDR_20' ) start [2024-12-30 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137959', 'tblTempVendorCDR_20' ) end [2024-12-30 18:13:21] Production.INFO: ProcessCDR(1,14137959,1,1,2) [2024-12-30 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137959', 'tblTempUsageDetail_20' ) start [2024-12-30 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137959', 'tblTempUsageDetail_20' ) end [2024-12-30 18:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:13:24] Production.INFO: ==21343== Releasing lock... [2024-12-30 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:13:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-30 18:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:14:04 [end_date_ymd] => 2024-12-30 18:14:04 [RateCDR] => 1 ) [2024-12-30 18:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 15:14:04' and `end` < '2024-12-30 18:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 18:14:20] Production.INFO: count ==3691 [2024-12-30 18:14:21] Production.ERROR: pbx CDR StartTime 2024-12-30 15:14:04 - End Time 2024-12-30 18:14:04 [2024-12-30 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137964', 'tblTempUsageDetail_20' ) start [2024-12-30 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137964', 'tblTempUsageDetail_20' ) end [2024-12-30 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137964', 'tblTempVendorCDR_20' ) start [2024-12-30 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137964', 'tblTempVendorCDR_20' ) end [2024-12-30 18:14:21] Production.INFO: ProcessCDR(1,14137964,1,1,2) [2024-12-30 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137964', 'tblTempUsageDetail_20' ) start [2024-12-30 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137964', 'tblTempUsageDetail_20' ) end [2024-12-30 18:14:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:14:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:14:26] Production.INFO: ==21416== Releasing lock... [2024-12-30 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:14:26] Production.INFO: 56 MB #Memory Used# [2024-12-30 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:15:05 [end_date_ymd] => 2024-12-30 18:15:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:15:05' and `end` < '2024-12-30 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-30 18:15:18] Production.INFO: count ==3767 [2024-12-30 18:15:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:15:05 - End Time 2024-12-30 18:15:05 [2024-12-30 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137969', 'tblTempUsageDetail_20' ) start [2024-12-30 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137969', 'tblTempUsageDetail_20' ) end [2024-12-30 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137969', 'tblTempVendorCDR_20' ) start [2024-12-30 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137969', 'tblTempVendorCDR_20' ) end [2024-12-30 18:15:19] Production.INFO: ProcessCDR(1,14137969,1,1,2) [2024-12-30 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137969', 'tblTempUsageDetail_20' ) start [2024-12-30 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137969', 'tblTempUsageDetail_20' ) end [2024-12-30 18:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:15:23] Production.INFO: ==21491== Releasing lock... [2024-12-30 18:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:15:23] Production.INFO: 56 MB #Memory Used# [2024-12-30 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:16:05 [end_date_ymd] => 2024-12-30 18:16:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:16:05' and `end` < '2024-12-30 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-30 18:16:21] Production.INFO: count ==3951 [2024-12-30 18:16:22] Production.ERROR: pbx CDR StartTime 2024-12-30 15:16:05 - End Time 2024-12-30 18:16:05 [2024-12-30 18:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137974', 'tblTempUsageDetail_20' ) start [2024-12-30 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137974', 'tblTempUsageDetail_20' ) end [2024-12-30 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137974', 'tblTempVendorCDR_20' ) start [2024-12-30 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137974', 'tblTempVendorCDR_20' ) end [2024-12-30 18:16:22] Production.INFO: ProcessCDR(1,14137974,1,1,2) [2024-12-30 18:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137974', 'tblTempUsageDetail_20' ) start [2024-12-30 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137974', 'tblTempUsageDetail_20' ) end [2024-12-30 18:16:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:16:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:16:25] Production.INFO: ==21561== Releasing lock... [2024-12-30 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:16:25] Production.INFO: 57.75 MB #Memory Used# [2024-12-30 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:17:04 [end_date_ymd] => 2024-12-30 18:17:04 [RateCDR] => 1 ) [2024-12-30 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-30 15:17:04' and `end` < '2024-12-30 18: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-30 18:17:19] Production.INFO: count ==3937 [2024-12-30 18:17:20] Production.ERROR: pbx CDR StartTime 2024-12-30 15:17:04 - End Time 2024-12-30 18:17:04 [2024-12-30 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137979', 'tblTempUsageDetail_20' ) start [2024-12-30 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137979', 'tblTempUsageDetail_20' ) end [2024-12-30 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137979', 'tblTempVendorCDR_20' ) start [2024-12-30 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137979', 'tblTempVendorCDR_20' ) end [2024-12-30 18:17:20] Production.INFO: ProcessCDR(1,14137979,1,1,2) [2024-12-30 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137979', 'tblTempUsageDetail_20' ) start [2024-12-30 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137979', 'tblTempUsageDetail_20' ) end [2024-12-30 18:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:17:23] Production.INFO: ==21673== Releasing lock... [2024-12-30 18:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:17:23] Production.INFO: 57.5 MB #Memory Used# [2024-12-30 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:18:05 [end_date_ymd] => 2024-12-30 18:18:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:18:05' and `end` < '2024-12-30 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-30 18:18:19] Production.INFO: count ==3917 [2024-12-30 18:18:20] Production.ERROR: pbx CDR StartTime 2024-12-30 15:18:05 - End Time 2024-12-30 18:18:05 [2024-12-30 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137984', 'tblTempUsageDetail_20' ) start [2024-12-30 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137984', 'tblTempUsageDetail_20' ) end [2024-12-30 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137984', 'tblTempVendorCDR_20' ) start [2024-12-30 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137984', 'tblTempVendorCDR_20' ) end [2024-12-30 18:18:20] Production.INFO: ProcessCDR(1,14137984,1,1,2) [2024-12-30 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137984', 'tblTempUsageDetail_20' ) start [2024-12-30 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137984', 'tblTempUsageDetail_20' ) end [2024-12-30 18:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:18:23] Production.INFO: ==21745== Releasing lock... [2024-12-30 18:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:18:23] Production.INFO: 57.5 MB #Memory Used# [2024-12-30 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:19:05 [end_date_ymd] => 2024-12-30 18:19:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:19:05' and `end` < '2024-12-30 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-30 18:19:19] Production.INFO: count ==3901 [2024-12-30 18:19:20] Production.ERROR: pbx CDR StartTime 2024-12-30 15:19:05 - End Time 2024-12-30 18:19:05 [2024-12-30 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137989', 'tblTempUsageDetail_20' ) start [2024-12-30 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137989', 'tblTempUsageDetail_20' ) end [2024-12-30 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137989', 'tblTempVendorCDR_20' ) start [2024-12-30 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137989', 'tblTempVendorCDR_20' ) end [2024-12-30 18:19:20] Production.INFO: ProcessCDR(1,14137989,1,1,2) [2024-12-30 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137989', 'tblTempUsageDetail_20' ) start [2024-12-30 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137989', 'tblTempUsageDetail_20' ) end [2024-12-30 18:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:19:24] Production.INFO: ==21816== Releasing lock... [2024-12-30 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:19:24] Production.INFO: 57 MB #Memory Used# [2024-12-30 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:20:06 [end_date_ymd] => 2024-12-30 18:20:06 [RateCDR] => 1 ) [2024-12-30 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 15:20:06' and `end` < '2024-12-30 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 18:20:21] Production.INFO: count ==3892 [2024-12-30 18:20:22] Production.ERROR: pbx CDR StartTime 2024-12-30 15:20:06 - End Time 2024-12-30 18:20:06 [2024-12-30 18:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137995', 'tblTempUsageDetail_20' ) start [2024-12-30 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14137995', 'tblTempUsageDetail_20' ) end [2024-12-30 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137995', 'tblTempVendorCDR_20' ) start [2024-12-30 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14137995', 'tblTempVendorCDR_20' ) end [2024-12-30 18:20:22] Production.INFO: ProcessCDR(1,14137995,1,1,2) [2024-12-30 18:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14137995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14137995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14137995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14137995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137995', 'tblTempUsageDetail_20' ) start [2024-12-30 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14137995', 'tblTempUsageDetail_20' ) end [2024-12-30 18:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:20:25] Production.INFO: ==21892== Releasing lock... [2024-12-30 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:20:25] Production.INFO: 57 MB #Memory Used# [2024-12-30 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:21:05 [end_date_ymd] => 2024-12-30 18:21:05 [RateCDR] => 1 ) [2024-12-30 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 15:21:05' and `end` < '2024-12-30 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 18:21:18] Production.INFO: count ==3902 [2024-12-30 18:21:20] Production.ERROR: pbx CDR StartTime 2024-12-30 15:21:05 - End Time 2024-12-30 18:21:05 [2024-12-30 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138000', 'tblTempUsageDetail_20' ) start [2024-12-30 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138000', 'tblTempUsageDetail_20' ) end [2024-12-30 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138000', 'tblTempVendorCDR_20' ) start [2024-12-30 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138000', 'tblTempVendorCDR_20' ) end [2024-12-30 18:21:20] Production.INFO: ProcessCDR(1,14138000,1,1,2) [2024-12-30 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138000', 'tblTempUsageDetail_20' ) start [2024-12-30 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138000', 'tblTempUsageDetail_20' ) end [2024-12-30 18:21:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:21:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:21:25] Production.INFO: ==21965== Releasing lock... [2024-12-30 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:21:25] Production.INFO: 57 MB #Memory Used# [2024-12-30 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:22:05 [end_date_ymd] => 2024-12-30 18:22:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:22:05' and `end` < '2024-12-30 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-30 18:22:18] Production.INFO: count ==3899 [2024-12-30 18:22:20] Production.ERROR: pbx CDR StartTime 2024-12-30 15:22:05 - End Time 2024-12-30 18:22:05 [2024-12-30 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138005', 'tblTempUsageDetail_20' ) start [2024-12-30 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138005', 'tblTempUsageDetail_20' ) end [2024-12-30 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138005', 'tblTempVendorCDR_20' ) start [2024-12-30 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138005', 'tblTempVendorCDR_20' ) end [2024-12-30 18:22:20] Production.INFO: ProcessCDR(1,14138005,1,1,2) [2024-12-30 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138005', 'tblTempUsageDetail_20' ) start [2024-12-30 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138005', 'tblTempUsageDetail_20' ) end [2024-12-30 18:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:22:23] Production.INFO: ==22036== Releasing lock... [2024-12-30 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:22:23] Production.INFO: 57.25 MB #Memory Used# [2024-12-30 18:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:23:04 [end_date_ymd] => 2024-12-30 18:23:04 [RateCDR] => 1 ) [2024-12-30 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-30 15:23:04' and `end` < '2024-12-30 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-30 18:23:18] Production.INFO: count ==3892 [2024-12-30 18:23:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:23:04 - End Time 2024-12-30 18:23:04 [2024-12-30 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138010', 'tblTempUsageDetail_20' ) start [2024-12-30 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138010', 'tblTempUsageDetail_20' ) end [2024-12-30 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138010', 'tblTempVendorCDR_20' ) start [2024-12-30 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138010', 'tblTempVendorCDR_20' ) end [2024-12-30 18:23:19] Production.INFO: ProcessCDR(1,14138010,1,1,2) [2024-12-30 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138010', 'tblTempUsageDetail_20' ) start [2024-12-30 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138010', 'tblTempUsageDetail_20' ) end [2024-12-30 18:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:23:22] Production.INFO: ==22111== Releasing lock... [2024-12-30 18:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:23:22] Production.INFO: 57 MB #Memory Used# [2024-12-30 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:24:05 [end_date_ymd] => 2024-12-30 18:24:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:24:05' and `end` < '2024-12-30 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-30 18:24:18] Production.INFO: count ==3908 [2024-12-30 18:24:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:24:05 - End Time 2024-12-30 18:24:05 [2024-12-30 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138015', 'tblTempUsageDetail_20' ) start [2024-12-30 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138015', 'tblTempUsageDetail_20' ) end [2024-12-30 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138015', 'tblTempVendorCDR_20' ) start [2024-12-30 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138015', 'tblTempVendorCDR_20' ) end [2024-12-30 18:24:20] Production.INFO: ProcessCDR(1,14138015,1,1,2) [2024-12-30 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138015', 'tblTempUsageDetail_20' ) start [2024-12-30 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138015', 'tblTempUsageDetail_20' ) end [2024-12-30 18:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:24:23] Production.INFO: ==22187== Releasing lock... [2024-12-30 18:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:24:23] Production.INFO: 57.25 MB #Memory Used# [2024-12-30 18:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:25:04 [end_date_ymd] => 2024-12-30 18:25:04 [RateCDR] => 1 ) [2024-12-30 18:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 15:25:04' and `end` < '2024-12-30 18:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 18:25:17] Production.INFO: count ==3908 [2024-12-30 18:25:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:25:04 - End Time 2024-12-30 18:25:04 [2024-12-30 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138020', 'tblTempUsageDetail_20' ) start [2024-12-30 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138020', 'tblTempUsageDetail_20' ) end [2024-12-30 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138020', 'tblTempVendorCDR_20' ) start [2024-12-30 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138020', 'tblTempVendorCDR_20' ) end [2024-12-30 18:25:19] Production.INFO: ProcessCDR(1,14138020,1,1,2) [2024-12-30 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138020', 'tblTempUsageDetail_20' ) start [2024-12-30 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138020', 'tblTempUsageDetail_20' ) end [2024-12-30 18:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:25:22] Production.INFO: ==22259== Releasing lock... [2024-12-30 18:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:25:22] Production.INFO: 57.25 MB #Memory Used# [2024-12-30 18:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:26:04 [end_date_ymd] => 2024-12-30 18:26:04 [RateCDR] => 1 ) [2024-12-30 18: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-30 15:26:04' and `end` < '2024-12-30 18: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-30 18:26:18] Production.INFO: count ==3924 [2024-12-30 18:26:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:26:04 - End Time 2024-12-30 18:26:04 [2024-12-30 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138025', 'tblTempUsageDetail_20' ) start [2024-12-30 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138025', 'tblTempUsageDetail_20' ) end [2024-12-30 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138025', 'tblTempVendorCDR_20' ) start [2024-12-30 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138025', 'tblTempVendorCDR_20' ) end [2024-12-30 18:26:19] Production.INFO: ProcessCDR(1,14138025,1,1,2) [2024-12-30 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138025', 'tblTempUsageDetail_20' ) start [2024-12-30 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138025', 'tblTempUsageDetail_20' ) end [2024-12-30 18:26:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:26:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:26:24] Production.INFO: ==22329== Releasing lock... [2024-12-30 18:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:26:24] Production.INFO: 57.25 MB #Memory Used# [2024-12-30 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:27:05 [end_date_ymd] => 2024-12-30 18:27:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:27:05' and `end` < '2024-12-30 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-30 18:27:19] Production.INFO: count ==3933 [2024-12-30 18:27:21] Production.ERROR: pbx CDR StartTime 2024-12-30 15:27:05 - End Time 2024-12-30 18:27:05 [2024-12-30 18:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138030', 'tblTempUsageDetail_20' ) start [2024-12-30 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138030', 'tblTempUsageDetail_20' ) end [2024-12-30 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138030', 'tblTempVendorCDR_20' ) start [2024-12-30 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138030', 'tblTempVendorCDR_20' ) end [2024-12-30 18:27:21] Production.INFO: ProcessCDR(1,14138030,1,1,2) [2024-12-30 18:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138030', 'tblTempUsageDetail_20' ) start [2024-12-30 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138030', 'tblTempUsageDetail_20' ) end [2024-12-30 18:27:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:27:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:27:25] Production.INFO: ==22403== Releasing lock... [2024-12-30 18:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:27:25] Production.INFO: 57.25 MB #Memory Used# [2024-12-30 18:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:28:04 [end_date_ymd] => 2024-12-30 18:28:04 [RateCDR] => 1 ) [2024-12-30 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-30 15:28:04' and `end` < '2024-12-30 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-30 18:28:17] Production.INFO: count ==3956 [2024-12-30 18:28:18] Production.ERROR: pbx CDR StartTime 2024-12-30 15:28:04 - End Time 2024-12-30 18:28:04 [2024-12-30 18:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138035', 'tblTempUsageDetail_20' ) start [2024-12-30 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138035', 'tblTempUsageDetail_20' ) end [2024-12-30 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138035', 'tblTempVendorCDR_20' ) start [2024-12-30 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138035', 'tblTempVendorCDR_20' ) end [2024-12-30 18:28:19] Production.INFO: ProcessCDR(1,14138035,1,1,2) [2024-12-30 18:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138035', 'tblTempUsageDetail_20' ) start [2024-12-30 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138035', 'tblTempUsageDetail_20' ) end [2024-12-30 18:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:28:23] Production.INFO: ==22475== Releasing lock... [2024-12-30 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:28:23] Production.INFO: 57.75 MB #Memory Used# [2024-12-30 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:29:05 [end_date_ymd] => 2024-12-30 18:29:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:29:05' and `end` < '2024-12-30 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-30 18:29:18] Production.INFO: count ==3948 [2024-12-30 18:29:20] Production.ERROR: pbx CDR StartTime 2024-12-30 15:29:05 - End Time 2024-12-30 18:29:05 [2024-12-30 18:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138040', 'tblTempUsageDetail_20' ) start [2024-12-30 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138040', 'tblTempUsageDetail_20' ) end [2024-12-30 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138040', 'tblTempVendorCDR_20' ) start [2024-12-30 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138040', 'tblTempVendorCDR_20' ) end [2024-12-30 18:29:20] Production.INFO: ProcessCDR(1,14138040,1,1,2) [2024-12-30 18:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138040', 'tblTempUsageDetail_20' ) start [2024-12-30 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138040', 'tblTempUsageDetail_20' ) end [2024-12-30 18:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:29:23] Production.INFO: ==22544== Releasing lock... [2024-12-30 18:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:29:23] Production.INFO: 57.5 MB #Memory Used# [2024-12-30 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:30:06 [end_date_ymd] => 2024-12-30 18:30:06 [RateCDR] => 1 ) [2024-12-30 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-30 15:30:06' and `end` < '2024-12-30 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-30 18:30:19] Production.INFO: count ==3926 [2024-12-30 18:30:21] Production.ERROR: pbx CDR StartTime 2024-12-30 15:30:06 - End Time 2024-12-30 18:30:06 [2024-12-30 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138046', 'tblTempUsageDetail_20' ) start [2024-12-30 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138046', 'tblTempUsageDetail_20' ) end [2024-12-30 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138046', 'tblTempVendorCDR_20' ) start [2024-12-30 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138046', 'tblTempVendorCDR_20' ) end [2024-12-30 18:30:21] Production.INFO: ProcessCDR(1,14138046,1,1,2) [2024-12-30 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138046', 'tblTempUsageDetail_20' ) start [2024-12-30 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138046', 'tblTempUsageDetail_20' ) end [2024-12-30 18:30:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:30:24] Production.INFO: ==22621== Releasing lock... [2024-12-30 18:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:30:24] Production.INFO: 57.25 MB #Memory Used# [2024-12-30 18:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:31:04 [end_date_ymd] => 2024-12-30 18:31:04 [RateCDR] => 1 ) [2024-12-30 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-30 15:31:04' and `end` < '2024-12-30 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-30 18:31:17] Production.INFO: count ==3881 [2024-12-30 18:31:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:31:04 - End Time 2024-12-30 18:31:04 [2024-12-30 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138049', 'tblTempUsageDetail_20' ) start [2024-12-30 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138049', 'tblTempUsageDetail_20' ) end [2024-12-30 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138049', 'tblTempVendorCDR_20' ) start [2024-12-30 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138049', 'tblTempVendorCDR_20' ) end [2024-12-30 18:31:19] Production.INFO: ProcessCDR(1,14138049,1,1,2) [2024-12-30 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138049', 'tblTempUsageDetail_20' ) start [2024-12-30 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138049', 'tblTempUsageDetail_20' ) end [2024-12-30 18:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:31:22] Production.INFO: ==22695== Releasing lock... [2024-12-30 18:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:31:22] Production.INFO: 57 MB #Memory Used# [2024-12-30 18:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:32:04 [end_date_ymd] => 2024-12-30 18:32:04 [RateCDR] => 1 ) [2024-12-30 18: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-30 15:32:04' and `end` < '2024-12-30 18: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-30 18:32:18] Production.INFO: count ==3868 [2024-12-30 18:32:20] Production.ERROR: pbx CDR StartTime 2024-12-30 15:32:04 - End Time 2024-12-30 18:32:04 [2024-12-30 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138056', 'tblTempUsageDetail_20' ) start [2024-12-30 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138056', 'tblTempUsageDetail_20' ) end [2024-12-30 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138056', 'tblTempVendorCDR_20' ) start [2024-12-30 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138056', 'tblTempVendorCDR_20' ) end [2024-12-30 18:32:20] Production.INFO: ProcessCDR(1,14138056,1,1,2) [2024-12-30 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138056', 'tblTempUsageDetail_20' ) start [2024-12-30 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138056', 'tblTempUsageDetail_20' ) end [2024-12-30 18:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:32:23] Production.INFO: ==22766== Releasing lock... [2024-12-30 18:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:32:23] Production.INFO: 56.75 MB #Memory Used# [2024-12-30 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:33:05 [end_date_ymd] => 2024-12-30 18:33:05 [RateCDR] => 1 ) [2024-12-30 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 15:33:05' and `end` < '2024-12-30 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 18:33:18] Production.INFO: count ==3861 [2024-12-30 18:33:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:33:05 - End Time 2024-12-30 18:33:05 [2024-12-30 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138061', 'tblTempUsageDetail_20' ) start [2024-12-30 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138061', 'tblTempUsageDetail_20' ) end [2024-12-30 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138061', 'tblTempVendorCDR_20' ) start [2024-12-30 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138061', 'tblTempVendorCDR_20' ) end [2024-12-30 18:33:19] Production.INFO: ProcessCDR(1,14138061,1,1,2) [2024-12-30 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138061', 'tblTempUsageDetail_20' ) start [2024-12-30 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138061', 'tblTempUsageDetail_20' ) end [2024-12-30 18:33:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:33:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:33:24] Production.INFO: ==22876== Releasing lock... [2024-12-30 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:33:24] Production.INFO: 56.75 MB #Memory Used# [2024-12-30 18:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:34:04 [end_date_ymd] => 2024-12-30 18:34:04 [RateCDR] => 1 ) [2024-12-30 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-30 15:34:04' and `end` < '2024-12-30 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-30 18:34:18] Production.INFO: count ==3858 [2024-12-30 18:34:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:34:04 - End Time 2024-12-30 18:34:04 [2024-12-30 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138066', 'tblTempUsageDetail_20' ) start [2024-12-30 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138066', 'tblTempUsageDetail_20' ) end [2024-12-30 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138066', 'tblTempVendorCDR_20' ) start [2024-12-30 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138066', 'tblTempVendorCDR_20' ) end [2024-12-30 18:34:19] Production.INFO: ProcessCDR(1,14138066,1,1,2) [2024-12-30 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138066', 'tblTempUsageDetail_20' ) start [2024-12-30 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138066', 'tblTempUsageDetail_20' ) end [2024-12-30 18:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:34:24] Production.INFO: ==22946== Releasing lock... [2024-12-30 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:34:24] Production.INFO: 57 MB #Memory Used# [2024-12-30 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:35:05 [end_date_ymd] => 2024-12-30 18:35:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:35:05' and `end` < '2024-12-30 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-30 18:35:18] Production.INFO: count ==3819 [2024-12-30 18:35:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:35:05 - End Time 2024-12-30 18:35:05 [2024-12-30 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138071', 'tblTempUsageDetail_20' ) start [2024-12-30 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138071', 'tblTempUsageDetail_20' ) end [2024-12-30 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138071', 'tblTempVendorCDR_20' ) start [2024-12-30 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138071', 'tblTempVendorCDR_20' ) end [2024-12-30 18:35:19] Production.INFO: ProcessCDR(1,14138071,1,1,2) [2024-12-30 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138071', 'tblTempUsageDetail_20' ) start [2024-12-30 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138071', 'tblTempUsageDetail_20' ) end [2024-12-30 18:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:35:22] Production.INFO: ==23019== Releasing lock... [2024-12-30 18:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:35:22] Production.INFO: 56.5 MB #Memory Used# [2024-12-30 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:36:05 [end_date_ymd] => 2024-12-30 18:36:05 [RateCDR] => 1 ) [2024-12-30 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 15:36:05' and `end` < '2024-12-30 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 18:36:18] Production.INFO: count ==3809 [2024-12-30 18:36:20] Production.ERROR: pbx CDR StartTime 2024-12-30 15:36:05 - End Time 2024-12-30 18:36:05 [2024-12-30 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138076', 'tblTempUsageDetail_20' ) start [2024-12-30 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138076', 'tblTempUsageDetail_20' ) end [2024-12-30 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138076', 'tblTempVendorCDR_20' ) start [2024-12-30 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138076', 'tblTempVendorCDR_20' ) end [2024-12-30 18:36:20] Production.INFO: ProcessCDR(1,14138076,1,1,2) [2024-12-30 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138076', 'tblTempUsageDetail_20' ) start [2024-12-30 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138076', 'tblTempUsageDetail_20' ) end [2024-12-30 18:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:36:23] Production.INFO: ==23093== Releasing lock... [2024-12-30 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:36:23] Production.INFO: 56.5 MB #Memory Used# [2024-12-30 18:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:37:04 [end_date_ymd] => 2024-12-30 18:37:04 [RateCDR] => 1 ) [2024-12-30 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-30 15:37:04' and `end` < '2024-12-30 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-30 18:37:17] Production.INFO: count ==3786 [2024-12-30 18:37:18] Production.ERROR: pbx CDR StartTime 2024-12-30 15:37:04 - End Time 2024-12-30 18:37:04 [2024-12-30 18:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138081', 'tblTempUsageDetail_20' ) start [2024-12-30 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138081', 'tblTempUsageDetail_20' ) end [2024-12-30 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138081', 'tblTempVendorCDR_20' ) start [2024-12-30 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138081', 'tblTempVendorCDR_20' ) end [2024-12-30 18:37:18] Production.INFO: ProcessCDR(1,14138081,1,1,2) [2024-12-30 18:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138081', 'tblTempUsageDetail_20' ) start [2024-12-30 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138081', 'tblTempUsageDetail_20' ) end [2024-12-30 18:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:37:22] Production.INFO: ==23163== Releasing lock... [2024-12-30 18:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:37:22] Production.INFO: 56.25 MB #Memory Used# [2024-12-30 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:38:05 [end_date_ymd] => 2024-12-30 18:38:05 [RateCDR] => 1 ) [2024-12-30 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 15:38:05' and `end` < '2024-12-30 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 18:38:20] Production.INFO: count ==3777 [2024-12-30 18:38:21] Production.ERROR: pbx CDR StartTime 2024-12-30 15:38:05 - End Time 2024-12-30 18:38:05 [2024-12-30 18:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138086', 'tblTempUsageDetail_20' ) start [2024-12-30 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138086', 'tblTempUsageDetail_20' ) end [2024-12-30 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138086', 'tblTempVendorCDR_20' ) start [2024-12-30 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138086', 'tblTempVendorCDR_20' ) end [2024-12-30 18:38:21] Production.INFO: ProcessCDR(1,14138086,1,1,2) [2024-12-30 18:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138086', 'tblTempUsageDetail_20' ) start [2024-12-30 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138086', 'tblTempUsageDetail_20' ) end [2024-12-30 18:38:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:38:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:38:24] Production.INFO: ==23236== Releasing lock... [2024-12-30 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:38:24] Production.INFO: 56.25 MB #Memory Used# [2024-12-30 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:39:05 [end_date_ymd] => 2024-12-30 18:39:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:39:05' and `end` < '2024-12-30 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-30 18:39:19] Production.INFO: count ==3773 [2024-12-30 18:39:21] Production.ERROR: pbx CDR StartTime 2024-12-30 15:39:05 - End Time 2024-12-30 18:39:05 [2024-12-30 18:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138091', 'tblTempUsageDetail_20' ) start [2024-12-30 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138091', 'tblTempUsageDetail_20' ) end [2024-12-30 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138091', 'tblTempVendorCDR_20' ) start [2024-12-30 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138091', 'tblTempVendorCDR_20' ) end [2024-12-30 18:39:21] Production.INFO: ProcessCDR(1,14138091,1,1,2) [2024-12-30 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138091', 'tblTempUsageDetail_20' ) start [2024-12-30 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138091', 'tblTempUsageDetail_20' ) end [2024-12-30 18:39:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:39:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:39:24] Production.INFO: ==23308== Releasing lock... [2024-12-30 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:39:24] Production.INFO: 56 MB #Memory Used# [2024-12-30 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:40:06 [end_date_ymd] => 2024-12-30 18:40:06 [RateCDR] => 1 ) [2024-12-30 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 15:40:06' and `end` < '2024-12-30 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 18:40:19] Production.INFO: count ==3763 [2024-12-30 18:40:20] Production.ERROR: pbx CDR StartTime 2024-12-30 15:40:06 - End Time 2024-12-30 18:40:06 [2024-12-30 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138097', 'tblTempUsageDetail_20' ) start [2024-12-30 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138097', 'tblTempUsageDetail_20' ) end [2024-12-30 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138097', 'tblTempVendorCDR_20' ) start [2024-12-30 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138097', 'tblTempVendorCDR_20' ) end [2024-12-30 18:40:20] Production.INFO: ProcessCDR(1,14138097,1,1,2) [2024-12-30 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138097', 'tblTempUsageDetail_20' ) start [2024-12-30 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138097', 'tblTempUsageDetail_20' ) end [2024-12-30 18:40:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:40:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:40:24] Production.INFO: ==23382== Releasing lock... [2024-12-30 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:40:24] Production.INFO: 56 MB #Memory Used# [2024-12-30 18:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:41:04 [end_date_ymd] => 2024-12-30 18:41:04 [RateCDR] => 1 ) [2024-12-30 18: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-30 15:41:04' and `end` < '2024-12-30 18: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-30 18:41:17] Production.INFO: count ==3727 [2024-12-30 18:41:18] Production.ERROR: pbx CDR StartTime 2024-12-30 15:41:04 - End Time 2024-12-30 18:41:04 [2024-12-30 18:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138102', 'tblTempUsageDetail_20' ) start [2024-12-30 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138102', 'tblTempUsageDetail_20' ) end [2024-12-30 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138102', 'tblTempVendorCDR_20' ) start [2024-12-30 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138102', 'tblTempVendorCDR_20' ) end [2024-12-30 18:41:19] Production.INFO: ProcessCDR(1,14138102,1,1,2) [2024-12-30 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138102', 'tblTempUsageDetail_20' ) start [2024-12-30 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138102', 'tblTempUsageDetail_20' ) end [2024-12-30 18:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:41:22] Production.INFO: ==23456== Releasing lock... [2024-12-30 18:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:41:22] Production.INFO: 56.5 MB #Memory Used# [2024-12-30 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:42:06 [end_date_ymd] => 2024-12-30 18:42:06 [RateCDR] => 1 ) [2024-12-30 18:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 15:42:06' and `end` < '2024-12-30 18:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 18:42:19] Production.INFO: count ==3701 [2024-12-30 18:42:20] Production.ERROR: pbx CDR StartTime 2024-12-30 15:42:06 - End Time 2024-12-30 18:42:06 [2024-12-30 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138107', 'tblTempUsageDetail_20' ) start [2024-12-30 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138107', 'tblTempUsageDetail_20' ) end [2024-12-30 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138107', 'tblTempVendorCDR_20' ) start [2024-12-30 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138107', 'tblTempVendorCDR_20' ) end [2024-12-30 18:42:20] Production.INFO: ProcessCDR(1,14138107,1,1,2) [2024-12-30 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138107', 'tblTempUsageDetail_20' ) start [2024-12-30 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138107', 'tblTempUsageDetail_20' ) end [2024-12-30 18:42:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:42:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:42:24] Production.INFO: ==23527== Releasing lock... [2024-12-30 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:42:24] Production.INFO: 55.5 MB #Memory Used# [2024-12-30 18:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:43:04 [end_date_ymd] => 2024-12-30 18:43:04 [RateCDR] => 1 ) [2024-12-30 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-30 15:43:04' and `end` < '2024-12-30 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-30 18:43:17] Production.INFO: count ==3698 [2024-12-30 18:43:18] Production.ERROR: pbx CDR StartTime 2024-12-30 15:43:04 - End Time 2024-12-30 18:43:04 [2024-12-30 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138112', 'tblTempUsageDetail_20' ) start [2024-12-30 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138112', 'tblTempUsageDetail_20' ) end [2024-12-30 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138112', 'tblTempVendorCDR_20' ) start [2024-12-30 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138112', 'tblTempVendorCDR_20' ) end [2024-12-30 18:43:18] Production.INFO: ProcessCDR(1,14138112,1,1,2) [2024-12-30 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138112', 'tblTempUsageDetail_20' ) start [2024-12-30 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138112', 'tblTempUsageDetail_20' ) end [2024-12-30 18:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:43:22] Production.INFO: ==23606== Releasing lock... [2024-12-30 18:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:43:22] Production.INFO: 55.5 MB #Memory Used# [2024-12-30 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:44:05 [end_date_ymd] => 2024-12-30 18:44:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:44:05' and `end` < '2024-12-30 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-30 18:44:18] Production.INFO: count ==3688 [2024-12-30 18:44:20] Production.ERROR: pbx CDR StartTime 2024-12-30 15:44:05 - End Time 2024-12-30 18:44:05 [2024-12-30 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138117', 'tblTempUsageDetail_20' ) start [2024-12-30 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138117', 'tblTempUsageDetail_20' ) end [2024-12-30 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138117', 'tblTempVendorCDR_20' ) start [2024-12-30 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138117', 'tblTempVendorCDR_20' ) end [2024-12-30 18:44:20] Production.INFO: ProcessCDR(1,14138117,1,1,2) [2024-12-30 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138117', 'tblTempUsageDetail_20' ) start [2024-12-30 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138117', 'tblTempUsageDetail_20' ) end [2024-12-30 18:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:44:23] Production.INFO: ==23686== Releasing lock... [2024-12-30 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:44:23] Production.INFO: 56 MB #Memory Used# [2024-12-30 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:45:05 [end_date_ymd] => 2024-12-30 18:45:05 [RateCDR] => 1 ) [2024-12-30 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 15:45:05' and `end` < '2024-12-30 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 18:45:18] Production.INFO: count ==3690 [2024-12-30 18:45:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:45:05 - End Time 2024-12-30 18:45:05 [2024-12-30 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138122', 'tblTempUsageDetail_20' ) start [2024-12-30 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138122', 'tblTempUsageDetail_20' ) end [2024-12-30 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138122', 'tblTempVendorCDR_20' ) start [2024-12-30 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138122', 'tblTempVendorCDR_20' ) end [2024-12-30 18:45:19] Production.INFO: ProcessCDR(1,14138122,1,1,2) [2024-12-30 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138122', 'tblTempUsageDetail_20' ) start [2024-12-30 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138122', 'tblTempUsageDetail_20' ) end [2024-12-30 18:45:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:45:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:45:24] Production.INFO: ==23758== Releasing lock... [2024-12-30 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:45:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-30 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:46:05 [end_date_ymd] => 2024-12-30 18:46:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:46:05' and `end` < '2024-12-30 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-30 18:46:18] Production.INFO: count ==3686 [2024-12-30 18:46:20] Production.ERROR: pbx CDR StartTime 2024-12-30 15:46:05 - End Time 2024-12-30 18:46:05 [2024-12-30 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138127', 'tblTempUsageDetail_20' ) start [2024-12-30 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138127', 'tblTempUsageDetail_20' ) end [2024-12-30 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138127', 'tblTempVendorCDR_20' ) start [2024-12-30 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138127', 'tblTempVendorCDR_20' ) end [2024-12-30 18:46:20] Production.INFO: ProcessCDR(1,14138127,1,1,2) [2024-12-30 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138127', 'tblTempUsageDetail_20' ) start [2024-12-30 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138127', 'tblTempUsageDetail_20' ) end [2024-12-30 18:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:46:24] Production.INFO: ==23828== Releasing lock... [2024-12-30 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:46:24] Production.INFO: 55.5 MB #Memory Used# [2024-12-30 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:47:05 [end_date_ymd] => 2024-12-30 18:47:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:47:05' and `end` < '2024-12-30 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-30 18:47:19] Production.INFO: count ==3664 [2024-12-30 18:47:20] Production.ERROR: pbx CDR StartTime 2024-12-30 15:47:05 - End Time 2024-12-30 18:47:05 [2024-12-30 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138132', 'tblTempUsageDetail_20' ) start [2024-12-30 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138132', 'tblTempUsageDetail_20' ) end [2024-12-30 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138132', 'tblTempVendorCDR_20' ) start [2024-12-30 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138132', 'tblTempVendorCDR_20' ) end [2024-12-30 18:47:20] Production.INFO: ProcessCDR(1,14138132,1,1,2) [2024-12-30 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138132', 'tblTempUsageDetail_20' ) start [2024-12-30 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138132', 'tblTempUsageDetail_20' ) end [2024-12-30 18:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:47:23] Production.INFO: ==23899== Releasing lock... [2024-12-30 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:47:23] Production.INFO: 55.25 MB #Memory Used# [2024-12-30 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:48:05 [end_date_ymd] => 2024-12-30 18:48:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:48:05' and `end` < '2024-12-30 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-30 18:48:18] Production.INFO: count ==3656 [2024-12-30 18:48:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:48:05 - End Time 2024-12-30 18:48:05 [2024-12-30 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138137', 'tblTempUsageDetail_20' ) start [2024-12-30 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138137', 'tblTempUsageDetail_20' ) end [2024-12-30 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138137', 'tblTempVendorCDR_20' ) start [2024-12-30 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138137', 'tblTempVendorCDR_20' ) end [2024-12-30 18:48:19] Production.INFO: ProcessCDR(1,14138137,1,1,2) [2024-12-30 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138137', 'tblTempUsageDetail_20' ) start [2024-12-30 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138137', 'tblTempUsageDetail_20' ) end [2024-12-30 18:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:48:22] Production.INFO: ==24013== Releasing lock... [2024-12-30 18:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:48:22] Production.INFO: 55.25 MB #Memory Used# [2024-12-30 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:49:05 [end_date_ymd] => 2024-12-30 18:49:05 [RateCDR] => 1 ) [2024-12-30 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 15:49:05' and `end` < '2024-12-30 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-30 18:49:18] Production.INFO: count ==3627 [2024-12-30 18:49:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:49:05 - End Time 2024-12-30 18:49:05 [2024-12-30 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138142', 'tblTempUsageDetail_20' ) start [2024-12-30 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138142', 'tblTempUsageDetail_20' ) end [2024-12-30 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138142', 'tblTempVendorCDR_20' ) start [2024-12-30 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138142', 'tblTempVendorCDR_20' ) end [2024-12-30 18:49:19] Production.INFO: ProcessCDR(1,14138142,1,1,2) [2024-12-30 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138142', 'tblTempUsageDetail_20' ) start [2024-12-30 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138142', 'tblTempUsageDetail_20' ) end [2024-12-30 18:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:49:23] Production.INFO: ==24088== Releasing lock... [2024-12-30 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:49:23] Production.INFO: 55.25 MB #Memory Used# [2024-12-30 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:50:05 [end_date_ymd] => 2024-12-30 18:50:05 [RateCDR] => 1 ) [2024-12-30 18: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-30 15:50:05' and `end` < '2024-12-30 18: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-30 18:50:18] Production.INFO: count ==3639 [2024-12-30 18:50:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:50:05 - End Time 2024-12-30 18:50:05 [2024-12-30 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138147', 'tblTempUsageDetail_20' ) start [2024-12-30 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138147', 'tblTempUsageDetail_20' ) end [2024-12-30 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138147', 'tblTempVendorCDR_20' ) start [2024-12-30 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138147', 'tblTempVendorCDR_20' ) end [2024-12-30 18:50:19] Production.INFO: ProcessCDR(1,14138147,1,1,2) [2024-12-30 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138147', 'tblTempUsageDetail_20' ) start [2024-12-30 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138147', 'tblTempUsageDetail_20' ) end [2024-12-30 18:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:50:22] Production.INFO: ==24164== Releasing lock... [2024-12-30 18:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:50:22] Production.INFO: 55.25 MB #Memory Used# [2024-12-30 18:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:51:04 [end_date_ymd] => 2024-12-30 18:51:04 [RateCDR] => 1 ) [2024-12-30 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-30 15:51:04' and `end` < '2024-12-30 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-30 18:51:17] Production.INFO: count ==3646 [2024-12-30 18:51:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:51:04 - End Time 2024-12-30 18:51:04 [2024-12-30 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138153', 'tblTempUsageDetail_20' ) start [2024-12-30 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138153', 'tblTempUsageDetail_20' ) end [2024-12-30 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138153', 'tblTempVendorCDR_20' ) start [2024-12-30 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138153', 'tblTempVendorCDR_20' ) end [2024-12-30 18:51:19] Production.INFO: ProcessCDR(1,14138153,1,1,2) [2024-12-30 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138153', 'tblTempUsageDetail_20' ) start [2024-12-30 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138153', 'tblTempUsageDetail_20' ) end [2024-12-30 18:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:51:23] Production.INFO: ==24244== Releasing lock... [2024-12-30 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:51:23] Production.INFO: 55.75 MB #Memory Used# [2024-12-30 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:52:05 [end_date_ymd] => 2024-12-30 18:52:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:52:05' and `end` < '2024-12-30 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-30 18:52:18] Production.INFO: count ==3635 [2024-12-30 18:52:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:52:05 - End Time 2024-12-30 18:52:05 [2024-12-30 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138158', 'tblTempUsageDetail_20' ) start [2024-12-30 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138158', 'tblTempUsageDetail_20' ) end [2024-12-30 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138158', 'tblTempVendorCDR_20' ) start [2024-12-30 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138158', 'tblTempVendorCDR_20' ) end [2024-12-30 18:52:19] Production.INFO: ProcessCDR(1,14138158,1,1,2) [2024-12-30 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138158', 'tblTempUsageDetail_20' ) start [2024-12-30 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138158', 'tblTempUsageDetail_20' ) end [2024-12-30 18:52:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:52:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:52:24] Production.INFO: ==24328== Releasing lock... [2024-12-30 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:52:24] Production.INFO: 55.25 MB #Memory Used# [2024-12-30 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:53:05 [end_date_ymd] => 2024-12-30 18:53:05 [RateCDR] => 1 ) [2024-12-30 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 15:53:05' and `end` < '2024-12-30 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 18:53:18] Production.INFO: count ==3616 [2024-12-30 18:53:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:53:05 - End Time 2024-12-30 18:53:05 [2024-12-30 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138163', 'tblTempUsageDetail_20' ) start [2024-12-30 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138163', 'tblTempUsageDetail_20' ) end [2024-12-30 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138163', 'tblTempVendorCDR_20' ) start [2024-12-30 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138163', 'tblTempVendorCDR_20' ) end [2024-12-30 18:53:19] Production.INFO: ProcessCDR(1,14138163,1,1,2) [2024-12-30 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138163', 'tblTempUsageDetail_20' ) start [2024-12-30 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138163', 'tblTempUsageDetail_20' ) end [2024-12-30 18:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:53:22] Production.INFO: ==24409== Releasing lock... [2024-12-30 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:53:22] Production.INFO: 55 MB #Memory Used# [2024-12-30 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:54:05 [end_date_ymd] => 2024-12-30 18:54:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:54:05' and `end` < '2024-12-30 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-30 18:54:18] Production.INFO: count ==3618 [2024-12-30 18:54:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:54:05 - End Time 2024-12-30 18:54:05 [2024-12-30 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138168', 'tblTempUsageDetail_20' ) start [2024-12-30 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138168', 'tblTempUsageDetail_20' ) end [2024-12-30 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138168', 'tblTempVendorCDR_20' ) start [2024-12-30 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138168', 'tblTempVendorCDR_20' ) end [2024-12-30 18:54:19] Production.INFO: ProcessCDR(1,14138168,1,1,2) [2024-12-30 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138168', 'tblTempUsageDetail_20' ) start [2024-12-30 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138168', 'tblTempUsageDetail_20' ) end [2024-12-30 18:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:54:24] Production.INFO: ==24491== Releasing lock... [2024-12-30 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:54:24] Production.INFO: 55.5 MB #Memory Used# [2024-12-30 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:55:04 [end_date_ymd] => 2024-12-30 18:55:04 [RateCDR] => 1 ) [2024-12-30 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-30 15:55:04' and `end` < '2024-12-30 18: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-30 18:55:18] Production.INFO: count ==3577 [2024-12-30 18:55:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:55:04 - End Time 2024-12-30 18:55:04 [2024-12-30 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138173', 'tblTempUsageDetail_20' ) start [2024-12-30 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138173', 'tblTempUsageDetail_20' ) end [2024-12-30 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138173', 'tblTempVendorCDR_20' ) start [2024-12-30 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138173', 'tblTempVendorCDR_20' ) end [2024-12-30 18:55:19] Production.INFO: ProcessCDR(1,14138173,1,1,2) [2024-12-30 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138173', 'tblTempUsageDetail_20' ) start [2024-12-30 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138173', 'tblTempUsageDetail_20' ) end [2024-12-30 18:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:55:22] Production.INFO: ==24576== Releasing lock... [2024-12-30 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:55:22] Production.INFO: 55 MB #Memory Used# [2024-12-30 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:56:05 [end_date_ymd] => 2024-12-30 18:56:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:56:05' and `end` < '2024-12-30 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-30 18:56:18] Production.INFO: count ==3562 [2024-12-30 18:56:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:56:05 - End Time 2024-12-30 18:56:05 [2024-12-30 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138178', 'tblTempUsageDetail_20' ) start [2024-12-30 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138178', 'tblTempUsageDetail_20' ) end [2024-12-30 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138178', 'tblTempVendorCDR_20' ) start [2024-12-30 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138178', 'tblTempVendorCDR_20' ) end [2024-12-30 18:56:19] Production.INFO: ProcessCDR(1,14138178,1,1,2) [2024-12-30 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138178', 'tblTempUsageDetail_20' ) start [2024-12-30 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138178', 'tblTempUsageDetail_20' ) end [2024-12-30 18:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:56:23] Production.INFO: ==24658== Releasing lock... [2024-12-30 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:56:23] Production.INFO: 55.5 MB #Memory Used# [2024-12-30 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:57:05 [end_date_ymd] => 2024-12-30 18:57:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:57:05' and `end` < '2024-12-30 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-30 18:57:18] Production.INFO: count ==3551 [2024-12-30 18:57:20] Production.ERROR: pbx CDR StartTime 2024-12-30 15:57:05 - End Time 2024-12-30 18:57:05 [2024-12-30 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138183', 'tblTempUsageDetail_20' ) start [2024-12-30 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138183', 'tblTempUsageDetail_20' ) end [2024-12-30 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138183', 'tblTempVendorCDR_20' ) start [2024-12-30 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138183', 'tblTempVendorCDR_20' ) end [2024-12-30 18:57:20] Production.INFO: ProcessCDR(1,14138183,1,1,2) [2024-12-30 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138183', 'tblTempUsageDetail_20' ) start [2024-12-30 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138183', 'tblTempUsageDetail_20' ) end [2024-12-30 18:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:57:23] Production.INFO: ==24739== Releasing lock... [2024-12-30 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:57:23] Production.INFO: 55.5 MB #Memory Used# [2024-12-30 18:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:58:04 [end_date_ymd] => 2024-12-30 18:58:04 [RateCDR] => 1 ) [2024-12-30 18: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-30 15:58:04' and `end` < '2024-12-30 18: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-30 18:58:18] Production.INFO: count ==3533 [2024-12-30 18:58:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:58:04 - End Time 2024-12-30 18:58:04 [2024-12-30 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138188', 'tblTempUsageDetail_20' ) start [2024-12-30 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138188', 'tblTempUsageDetail_20' ) end [2024-12-30 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138188', 'tblTempVendorCDR_20' ) start [2024-12-30 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138188', 'tblTempVendorCDR_20' ) end [2024-12-30 18:58:19] Production.INFO: ProcessCDR(1,14138188,1,1,2) [2024-12-30 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138188', 'tblTempUsageDetail_20' ) start [2024-12-30 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138188', 'tblTempUsageDetail_20' ) end [2024-12-30 18:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:58:22] Production.INFO: ==24821== Releasing lock... [2024-12-30 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:58:22] Production.INFO: 55.25 MB #Memory Used# [2024-12-30 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 15:59:05 [end_date_ymd] => 2024-12-30 18:59:05 [RateCDR] => 1 ) [2024-12-30 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-30 15:59:05' and `end` < '2024-12-30 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-30 18:59:18] Production.INFO: count ==3520 [2024-12-30 18:59:19] Production.ERROR: pbx CDR StartTime 2024-12-30 15:59:05 - End Time 2024-12-30 18:59:05 [2024-12-30 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138193', 'tblTempUsageDetail_20' ) start [2024-12-30 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138193', 'tblTempUsageDetail_20' ) end [2024-12-30 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138193', 'tblTempVendorCDR_20' ) start [2024-12-30 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138193', 'tblTempVendorCDR_20' ) end [2024-12-30 18:59:19] Production.INFO: ProcessCDR(1,14138193,1,1,2) [2024-12-30 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138193', 'tblTempUsageDetail_20' ) start [2024-12-30 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138193', 'tblTempUsageDetail_20' ) end [2024-12-30 18:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 18:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 18:59:22] Production.INFO: ==24906== Releasing lock... [2024-12-30 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 18:59:22] Production.INFO: 55.25 MB #Memory Used# [2024-12-30 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:00:05 [end_date_ymd] => 2024-12-30 19:00:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:00:05' and `end` < '2024-12-30 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-30 19:00:18] Production.INFO: count ==3506 [2024-12-30 19:00:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:00:05 - End Time 2024-12-30 19:00:05 [2024-12-30 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138198', 'tblTempUsageDetail_20' ) start [2024-12-30 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138198', 'tblTempUsageDetail_20' ) end [2024-12-30 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138198', 'tblTempVendorCDR_20' ) start [2024-12-30 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138198', 'tblTempVendorCDR_20' ) end [2024-12-30 19:00:19] Production.INFO: ProcessCDR(1,14138198,1,1,2) [2024-12-30 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138198', 'tblTempUsageDetail_20' ) start [2024-12-30 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138198', 'tblTempUsageDetail_20' ) end [2024-12-30 19:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:00:24] Production.INFO: ==24991== Releasing lock... [2024-12-30 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:00:24] Production.INFO: 54.75 MB #Memory Used# [2024-12-30 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:01:05 [end_date_ymd] => 2024-12-30 19:01:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:01:05' and `end` < '2024-12-30 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-30 19:01:21] Production.INFO: count ==3437 [2024-12-30 19:01:22] Production.ERROR: pbx CDR StartTime 2024-12-30 16:01:05 - End Time 2024-12-30 19:01:05 [2024-12-30 19:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138204', 'tblTempUsageDetail_20' ) start [2024-12-30 19:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138204', 'tblTempUsageDetail_20' ) end [2024-12-30 19:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138204', 'tblTempVendorCDR_20' ) start [2024-12-30 19:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138204', 'tblTempVendorCDR_20' ) end [2024-12-30 19:01:22] Production.INFO: ProcessCDR(1,14138204,1,1,2) [2024-12-30 19:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138204', 'tblTempUsageDetail_20' ) start [2024-12-30 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138204', 'tblTempUsageDetail_20' ) end [2024-12-30 19:01:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:01:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:01:26] Production.INFO: ==25083== Releasing lock... [2024-12-30 19:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:01:26] Production.INFO: 53.75 MB #Memory Used# [2024-12-30 19:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:02:04 [end_date_ymd] => 2024-12-30 19:02:04 [RateCDR] => 1 ) [2024-12-30 19: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-30 16:02:04' and `end` < '2024-12-30 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-30 19:02:17] Production.INFO: count ==3426 [2024-12-30 19:02:18] Production.ERROR: pbx CDR StartTime 2024-12-30 16:02:04 - End Time 2024-12-30 19:02:04 [2024-12-30 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138209', 'tblTempUsageDetail_20' ) start [2024-12-30 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138209', 'tblTempUsageDetail_20' ) end [2024-12-30 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138209', 'tblTempVendorCDR_20' ) start [2024-12-30 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138209', 'tblTempVendorCDR_20' ) end [2024-12-30 19:02:18] Production.INFO: ProcessCDR(1,14138209,1,1,2) [2024-12-30 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138209', 'tblTempUsageDetail_20' ) start [2024-12-30 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138209', 'tblTempUsageDetail_20' ) end [2024-12-30 19:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:02:23] Production.INFO: ==25241== Releasing lock... [2024-12-30 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:02:23] Production.INFO: 54 MB #Memory Used# [2024-12-30 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:03:05 [end_date_ymd] => 2024-12-30 19:03:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:03:05' and `end` < '2024-12-30 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-30 19:03:18] Production.INFO: count ==3421 [2024-12-30 19:03:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:03:05 - End Time 2024-12-30 19:03:05 [2024-12-30 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138214', 'tblTempUsageDetail_20' ) start [2024-12-30 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138214', 'tblTempUsageDetail_20' ) end [2024-12-30 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138214', 'tblTempVendorCDR_20' ) start [2024-12-30 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138214', 'tblTempVendorCDR_20' ) end [2024-12-30 19:03:19] Production.INFO: ProcessCDR(1,14138214,1,1,2) [2024-12-30 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138214', 'tblTempUsageDetail_20' ) start [2024-12-30 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138214', 'tblTempUsageDetail_20' ) end [2024-12-30 19:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:03:22] Production.INFO: ==25376== Releasing lock... [2024-12-30 19:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:03:22] Production.INFO: 54.25 MB #Memory Used# [2024-12-30 19:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:04:04 [end_date_ymd] => 2024-12-30 19:04:04 [RateCDR] => 1 ) [2024-12-30 19: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-30 16:04:04' and `end` < '2024-12-30 19: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-30 19:04:17] Production.INFO: count ==3418 [2024-12-30 19:04:18] Production.ERROR: pbx CDR StartTime 2024-12-30 16:04:04 - End Time 2024-12-30 19:04:04 [2024-12-30 19:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138219', 'tblTempUsageDetail_20' ) start [2024-12-30 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138219', 'tblTempUsageDetail_20' ) end [2024-12-30 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138219', 'tblTempVendorCDR_20' ) start [2024-12-30 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138219', 'tblTempVendorCDR_20' ) end [2024-12-30 19:04:18] Production.INFO: ProcessCDR(1,14138219,1,1,2) [2024-12-30 19:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138219', 'tblTempUsageDetail_20' ) start [2024-12-30 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138219', 'tblTempUsageDetail_20' ) end [2024-12-30 19:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:04:23] Production.INFO: ==25536== Releasing lock... [2024-12-30 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:04:23] Production.INFO: 53.75 MB #Memory Used# [2024-12-30 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:05:05 [end_date_ymd] => 2024-12-30 19:05:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:05:05' and `end` < '2024-12-30 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-30 19:05:18] Production.INFO: count ==3402 [2024-12-30 19:05:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:05:05 - End Time 2024-12-30 19:05:05 [2024-12-30 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138224', 'tblTempUsageDetail_20' ) start [2024-12-30 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138224', 'tblTempUsageDetail_20' ) end [2024-12-30 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138224', 'tblTempVendorCDR_20' ) start [2024-12-30 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138224', 'tblTempVendorCDR_20' ) end [2024-12-30 19:05:19] Production.INFO: ProcessCDR(1,14138224,1,1,2) [2024-12-30 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138224', 'tblTempUsageDetail_20' ) start [2024-12-30 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138224', 'tblTempUsageDetail_20' ) end [2024-12-30 19:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:05:23] Production.INFO: ==25771== Releasing lock... [2024-12-30 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:05:23] Production.INFO: 53.75 MB #Memory Used# [2024-12-30 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:06:05 [end_date_ymd] => 2024-12-30 19:06:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:06:05' and `end` < '2024-12-30 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-30 19:06:18] Production.INFO: count ==3392 [2024-12-30 19:06:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:06:05 - End Time 2024-12-30 19:06:05 [2024-12-30 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138229', 'tblTempUsageDetail_20' ) start [2024-12-30 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138229', 'tblTempUsageDetail_20' ) end [2024-12-30 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138229', 'tblTempVendorCDR_20' ) start [2024-12-30 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138229', 'tblTempVendorCDR_20' ) end [2024-12-30 19:06:20] Production.INFO: ProcessCDR(1,14138229,1,1,2) [2024-12-30 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138229', 'tblTempUsageDetail_20' ) start [2024-12-30 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138229', 'tblTempUsageDetail_20' ) end [2024-12-30 19:06:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:06:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:06:24] Production.INFO: ==25967== Releasing lock... [2024-12-30 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:06:24] Production.INFO: 53.75 MB #Memory Used# [2024-12-30 19:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:07:04 [end_date_ymd] => 2024-12-30 19:07:04 [RateCDR] => 1 ) [2024-12-30 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-30 16:07:04' and `end` < '2024-12-30 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-30 19:07:18] Production.INFO: count ==3389 [2024-12-30 19:07:20] Production.ERROR: pbx CDR StartTime 2024-12-30 16:07:04 - End Time 2024-12-30 19:07:04 [2024-12-30 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138234', 'tblTempUsageDetail_20' ) start [2024-12-30 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138234', 'tblTempUsageDetail_20' ) end [2024-12-30 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138234', 'tblTempVendorCDR_20' ) start [2024-12-30 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138234', 'tblTempVendorCDR_20' ) end [2024-12-30 19:07:20] Production.INFO: ProcessCDR(1,14138234,1,1,2) [2024-12-30 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138234', 'tblTempUsageDetail_20' ) start [2024-12-30 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138234', 'tblTempUsageDetail_20' ) end [2024-12-30 19:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:07:23] Production.INFO: ==26197== Releasing lock... [2024-12-30 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:07:23] Production.INFO: 54 MB #Memory Used# [2024-12-30 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:08:06 [end_date_ymd] => 2024-12-30 19:08:06 [RateCDR] => 1 ) [2024-12-30 19:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 16:08:06' and `end` < '2024-12-30 19:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 19:08:20] Production.INFO: count ==3378 [2024-12-30 19:08:21] Production.ERROR: pbx CDR StartTime 2024-12-30 16:08:06 - End Time 2024-12-30 19:08:06 [2024-12-30 19:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138239', 'tblTempUsageDetail_20' ) start [2024-12-30 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138239', 'tblTempUsageDetail_20' ) end [2024-12-30 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138239', 'tblTempVendorCDR_20' ) start [2024-12-30 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138239', 'tblTempVendorCDR_20' ) end [2024-12-30 19:08:21] Production.INFO: ProcessCDR(1,14138239,1,1,2) [2024-12-30 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138239', 'tblTempUsageDetail_20' ) start [2024-12-30 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138239', 'tblTempUsageDetail_20' ) end [2024-12-30 19:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:08:24] Production.INFO: ==26524== Releasing lock... [2024-12-30 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:08:24] Production.INFO: 54.25 MB #Memory Used# [2024-12-30 19:09:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:09:06 [end_date_ymd] => 2024-12-30 19:09:06 [RateCDR] => 1 ) [2024-12-30 19:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 16:09:06' and `end` < '2024-12-30 19:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 19:09:19] Production.INFO: count ==3351 [2024-12-30 19:09:20] Production.ERROR: pbx CDR StartTime 2024-12-30 16:09:06 - End Time 2024-12-30 19:09:06 [2024-12-30 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138244', 'tblTempUsageDetail_20' ) start [2024-12-30 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138244', 'tblTempUsageDetail_20' ) end [2024-12-30 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138244', 'tblTempVendorCDR_20' ) start [2024-12-30 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138244', 'tblTempVendorCDR_20' ) end [2024-12-30 19:09:20] Production.INFO: ProcessCDR(1,14138244,1,1,2) [2024-12-30 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138244', 'tblTempUsageDetail_20' ) start [2024-12-30 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138244', 'tblTempUsageDetail_20' ) end [2024-12-30 19:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:09:23] Production.INFO: ==26755== Releasing lock... [2024-12-30 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:09:23] Production.INFO: 53.25 MB #Memory Used# [2024-12-30 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:10:06 [end_date_ymd] => 2024-12-30 19:10:06 [RateCDR] => 1 ) [2024-12-30 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 16:10:06' and `end` < '2024-12-30 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 19:10:18] Production.INFO: count ==3327 [2024-12-30 19:10:20] Production.ERROR: pbx CDR StartTime 2024-12-30 16:10:06 - End Time 2024-12-30 19:10:06 [2024-12-30 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138250', 'tblTempUsageDetail_20' ) start [2024-12-30 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138250', 'tblTempUsageDetail_20' ) end [2024-12-30 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138250', 'tblTempVendorCDR_20' ) start [2024-12-30 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138250', 'tblTempVendorCDR_20' ) end [2024-12-30 19:10:20] Production.INFO: ProcessCDR(1,14138250,1,1,2) [2024-12-30 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138250', 'tblTempUsageDetail_20' ) start [2024-12-30 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138250', 'tblTempUsageDetail_20' ) end [2024-12-30 19:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:10:23] Production.INFO: ==27001== Releasing lock... [2024-12-30 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:10:23] Production.INFO: 53.5 MB #Memory Used# [2024-12-30 19:11:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:11:06 [end_date_ymd] => 2024-12-30 19:11:06 [RateCDR] => 1 ) [2024-12-30 19:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 16:11:06' and `end` < '2024-12-30 19:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 19:11:20] Production.INFO: count ==3287 [2024-12-30 19:11:21] Production.ERROR: pbx CDR StartTime 2024-12-30 16:11:06 - End Time 2024-12-30 19:11:06 [2024-12-30 19:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138255', 'tblTempUsageDetail_20' ) start [2024-12-30 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138255', 'tblTempUsageDetail_20' ) end [2024-12-30 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138255', 'tblTempVendorCDR_20' ) start [2024-12-30 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138255', 'tblTempVendorCDR_20' ) end [2024-12-30 19:11:21] Production.INFO: ProcessCDR(1,14138255,1,1,2) [2024-12-30 19:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138255', 'tblTempUsageDetail_20' ) start [2024-12-30 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138255', 'tblTempUsageDetail_20' ) end [2024-12-30 19:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:11:24] Production.INFO: ==27246== Releasing lock... [2024-12-30 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:11:24] Production.INFO: 52.75 MB #Memory Used# [2024-12-30 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:12:05 [end_date_ymd] => 2024-12-30 19:12:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:12:05' and `end` < '2024-12-30 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-30 19:12:18] Production.INFO: count ==3264 [2024-12-30 19:12:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:12:05 - End Time 2024-12-30 19:12:05 [2024-12-30 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138260', 'tblTempUsageDetail_20' ) start [2024-12-30 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138260', 'tblTempUsageDetail_20' ) end [2024-12-30 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138260', 'tblTempVendorCDR_20' ) start [2024-12-30 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138260', 'tblTempVendorCDR_20' ) end [2024-12-30 19:12:19] Production.INFO: ProcessCDR(1,14138260,1,1,2) [2024-12-30 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138260', 'tblTempUsageDetail_20' ) start [2024-12-30 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138260', 'tblTempUsageDetail_20' ) end [2024-12-30 19:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:12:24] Production.INFO: ==27564== Releasing lock... [2024-12-30 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:12:24] Production.INFO: 53 MB #Memory Used# [2024-12-30 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:13:05 [end_date_ymd] => 2024-12-30 19:13:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:13:05' and `end` < '2024-12-30 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-30 19:13:19] Production.INFO: count ==3255 [2024-12-30 19:13:20] Production.ERROR: pbx CDR StartTime 2024-12-30 16:13:05 - End Time 2024-12-30 19:13:05 [2024-12-30 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138265', 'tblTempUsageDetail_20' ) start [2024-12-30 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138265', 'tblTempUsageDetail_20' ) end [2024-12-30 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138265', 'tblTempVendorCDR_20' ) start [2024-12-30 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138265', 'tblTempVendorCDR_20' ) end [2024-12-30 19:13:20] Production.INFO: ProcessCDR(1,14138265,1,1,2) [2024-12-30 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138265', 'tblTempUsageDetail_20' ) start [2024-12-30 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138265', 'tblTempUsageDetail_20' ) end [2024-12-30 19:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:13:23] Production.INFO: ==27821== Releasing lock... [2024-12-30 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:13:23] Production.INFO: 53.25 MB #Memory Used# [2024-12-30 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:14:05 [end_date_ymd] => 2024-12-30 19:14:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:14:05' and `end` < '2024-12-30 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-30 19:14:20] Production.INFO: count ==3255 [2024-12-30 19:14:21] Production.ERROR: pbx CDR StartTime 2024-12-30 16:14:05 - End Time 2024-12-30 19:14:05 [2024-12-30 19:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138270', 'tblTempUsageDetail_20' ) start [2024-12-30 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138270', 'tblTempUsageDetail_20' ) end [2024-12-30 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138270', 'tblTempVendorCDR_20' ) start [2024-12-30 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138270', 'tblTempVendorCDR_20' ) end [2024-12-30 19:14:21] Production.INFO: ProcessCDR(1,14138270,1,1,2) [2024-12-30 19:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138270', 'tblTempUsageDetail_20' ) start [2024-12-30 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138270', 'tblTempUsageDetail_20' ) end [2024-12-30 19:14:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:14:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:14:25] Production.INFO: ==28063== Releasing lock... [2024-12-30 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:14:25] Production.INFO: 53 MB #Memory Used# [2024-12-30 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:15:05 [end_date_ymd] => 2024-12-30 19:15:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:15:05' and `end` < '2024-12-30 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-30 19:15:18] Production.INFO: count ==3247 [2024-12-30 19:15:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:15:05 - End Time 2024-12-30 19:15:05 [2024-12-30 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138275', 'tblTempUsageDetail_20' ) start [2024-12-30 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138275', 'tblTempUsageDetail_20' ) end [2024-12-30 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138275', 'tblTempVendorCDR_20' ) start [2024-12-30 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138275', 'tblTempVendorCDR_20' ) end [2024-12-30 19:15:20] Production.INFO: ProcessCDR(1,14138275,1,1,2) [2024-12-30 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138275', 'tblTempUsageDetail_20' ) start [2024-12-30 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138275', 'tblTempUsageDetail_20' ) end [2024-12-30 19:15:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:15:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:15:24] Production.INFO: ==28366== Releasing lock... [2024-12-30 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:15:24] Production.INFO: 52.5 MB #Memory Used# [2024-12-30 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:16:05 [end_date_ymd] => 2024-12-30 19:16:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:16:05' and `end` < '2024-12-30 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-30 19:16:19] Production.INFO: count ==3246 [2024-12-30 19:16:20] Production.ERROR: pbx CDR StartTime 2024-12-30 16:16:05 - End Time 2024-12-30 19:16:05 [2024-12-30 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138280', 'tblTempUsageDetail_20' ) start [2024-12-30 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138280', 'tblTempUsageDetail_20' ) end [2024-12-30 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138280', 'tblTempVendorCDR_20' ) start [2024-12-30 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138280', 'tblTempVendorCDR_20' ) end [2024-12-30 19:16:20] Production.INFO: ProcessCDR(1,14138280,1,1,2) [2024-12-30 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138280', 'tblTempUsageDetail_20' ) start [2024-12-30 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138280', 'tblTempUsageDetail_20' ) end [2024-12-30 19:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:16:24] Production.INFO: ==28595== Releasing lock... [2024-12-30 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:16:24] Production.INFO: 52.5 MB #Memory Used# [2024-12-30 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:17:05 [end_date_ymd] => 2024-12-30 19:17:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:17:05' and `end` < '2024-12-30 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-30 19:17:18] Production.INFO: count ==3239 [2024-12-30 19:17:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:17:05 - End Time 2024-12-30 19:17:05 [2024-12-30 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138285', 'tblTempUsageDetail_20' ) start [2024-12-30 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138285', 'tblTempUsageDetail_20' ) end [2024-12-30 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138285', 'tblTempVendorCDR_20' ) start [2024-12-30 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138285', 'tblTempVendorCDR_20' ) end [2024-12-30 19:17:19] Production.INFO: ProcessCDR(1,14138285,1,1,2) [2024-12-30 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138285', 'tblTempUsageDetail_20' ) start [2024-12-30 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138285', 'tblTempUsageDetail_20' ) end [2024-12-30 19:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:17:23] Production.INFO: ==28842== Releasing lock... [2024-12-30 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:17:23] Production.INFO: 52.75 MB #Memory Used# [2024-12-30 19:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:18:04 [end_date_ymd] => 2024-12-30 19:18:04 [RateCDR] => 1 ) [2024-12-30 19: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-30 16:18:04' and `end` < '2024-12-30 19: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-30 19:18:18] Production.INFO: count ==3221 [2024-12-30 19:18:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:18:04 - End Time 2024-12-30 19:18:04 [2024-12-30 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138290', 'tblTempUsageDetail_20' ) start [2024-12-30 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138290', 'tblTempUsageDetail_20' ) end [2024-12-30 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138290', 'tblTempVendorCDR_20' ) start [2024-12-30 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138290', 'tblTempVendorCDR_20' ) end [2024-12-30 19:18:19] Production.INFO: ProcessCDR(1,14138290,1,1,2) [2024-12-30 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138290', 'tblTempUsageDetail_20' ) start [2024-12-30 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138290', 'tblTempUsageDetail_20' ) end [2024-12-30 19:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:18:23] Production.INFO: ==29067== Releasing lock... [2024-12-30 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:18:23] Production.INFO: 52.5 MB #Memory Used# [2024-12-30 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:19:05 [end_date_ymd] => 2024-12-30 19:19:05 [RateCDR] => 1 ) [2024-12-30 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 16:19:05' and `end` < '2024-12-30 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 19:19:18] Production.INFO: count ==3214 [2024-12-30 19:19:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:19:05 - End Time 2024-12-30 19:19:05 [2024-12-30 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138295', 'tblTempUsageDetail_20' ) start [2024-12-30 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138295', 'tblTempUsageDetail_20' ) end [2024-12-30 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138295', 'tblTempVendorCDR_20' ) start [2024-12-30 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138295', 'tblTempVendorCDR_20' ) end [2024-12-30 19:19:20] Production.INFO: ProcessCDR(1,14138295,1,1,2) [2024-12-30 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138295', 'tblTempUsageDetail_20' ) start [2024-12-30 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138295', 'tblTempUsageDetail_20' ) end [2024-12-30 19:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:19:23] Production.INFO: ==29312== Releasing lock... [2024-12-30 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:19:23] Production.INFO: 53.25 MB #Memory Used# [2024-12-30 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:20:05 [end_date_ymd] => 2024-12-30 19:20:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:20:05' and `end` < '2024-12-30 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-30 19:20:18] Production.INFO: count ==3205 [2024-12-30 19:20:20] Production.ERROR: pbx CDR StartTime 2024-12-30 16:20:05 - End Time 2024-12-30 19:20:05 [2024-12-30 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138300', 'tblTempUsageDetail_20' ) start [2024-12-30 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138300', 'tblTempUsageDetail_20' ) end [2024-12-30 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138300', 'tblTempVendorCDR_20' ) start [2024-12-30 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138300', 'tblTempVendorCDR_20' ) end [2024-12-30 19:20:20] Production.INFO: ProcessCDR(1,14138300,1,1,2) [2024-12-30 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138300', 'tblTempUsageDetail_20' ) start [2024-12-30 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138300', 'tblTempUsageDetail_20' ) end [2024-12-30 19:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:20:23] Production.INFO: ==29587== Releasing lock... [2024-12-30 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:20:23] Production.INFO: 52 MB #Memory Used# [2024-12-30 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:21:05 [end_date_ymd] => 2024-12-30 19:21:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:21:05' and `end` < '2024-12-30 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-30 19:21:19] Production.INFO: count ==3149 [2024-12-30 19:21:20] Production.ERROR: pbx CDR StartTime 2024-12-30 16:21:05 - End Time 2024-12-30 19:21:05 [2024-12-30 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138306', 'tblTempUsageDetail_20' ) start [2024-12-30 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138306', 'tblTempUsageDetail_20' ) end [2024-12-30 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138306', 'tblTempVendorCDR_20' ) start [2024-12-30 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138306', 'tblTempVendorCDR_20' ) end [2024-12-30 19:21:20] Production.INFO: ProcessCDR(1,14138306,1,1,2) [2024-12-30 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138306', 'tblTempUsageDetail_20' ) start [2024-12-30 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138306', 'tblTempUsageDetail_20' ) end [2024-12-30 19:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:21:23] Production.INFO: ==29822== Releasing lock... [2024-12-30 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:21:23] Production.INFO: 51.5 MB #Memory Used# [2024-12-30 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:22:05 [end_date_ymd] => 2024-12-30 19:22:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:22:05' and `end` < '2024-12-30 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-30 19:22:18] Production.INFO: count ==3138 [2024-12-30 19:22:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:22:05 - End Time 2024-12-30 19:22:05 [2024-12-30 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138311', 'tblTempUsageDetail_20' ) start [2024-12-30 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138311', 'tblTempUsageDetail_20' ) end [2024-12-30 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138311', 'tblTempVendorCDR_20' ) start [2024-12-30 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138311', 'tblTempVendorCDR_20' ) end [2024-12-30 19:22:19] Production.INFO: ProcessCDR(1,14138311,1,1,2) [2024-12-30 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138311', 'tblTempUsageDetail_20' ) start [2024-12-30 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138311', 'tblTempUsageDetail_20' ) end [2024-12-30 19:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:22:22] Production.INFO: ==30052== Releasing lock... [2024-12-30 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:22:22] Production.INFO: 51.25 MB #Memory Used# [2024-12-30 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:23:05 [end_date_ymd] => 2024-12-30 19:23:05 [RateCDR] => 1 ) [2024-12-30 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 16:23:05' and `end` < '2024-12-30 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 19:23:19] Production.INFO: count ==3140 [2024-12-30 19:23:20] Production.ERROR: pbx CDR StartTime 2024-12-30 16:23:05 - End Time 2024-12-30 19:23:05 [2024-12-30 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138316', 'tblTempUsageDetail_20' ) start [2024-12-30 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138316', 'tblTempUsageDetail_20' ) end [2024-12-30 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138316', 'tblTempVendorCDR_20' ) start [2024-12-30 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138316', 'tblTempVendorCDR_20' ) end [2024-12-30 19:23:21] Production.INFO: ProcessCDR(1,14138316,1,1,2) [2024-12-30 19:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138316', 'tblTempUsageDetail_20' ) start [2024-12-30 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138316', 'tblTempUsageDetail_20' ) end [2024-12-30 19:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:23:24] Production.INFO: ==30268== Releasing lock... [2024-12-30 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:23:24] Production.INFO: 51.5 MB #Memory Used# [2024-12-30 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:24:05 [end_date_ymd] => 2024-12-30 19:24:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:24:05' and `end` < '2024-12-30 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-30 19:24:19] Production.INFO: count ==3138 [2024-12-30 19:24:20] Production.ERROR: pbx CDR StartTime 2024-12-30 16:24:05 - End Time 2024-12-30 19:24:05 [2024-12-30 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138321', 'tblTempUsageDetail_20' ) start [2024-12-30 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138321', 'tblTempUsageDetail_20' ) end [2024-12-30 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138321', 'tblTempVendorCDR_20' ) start [2024-12-30 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138321', 'tblTempVendorCDR_20' ) end [2024-12-30 19:24:20] Production.INFO: ProcessCDR(1,14138321,1,1,2) [2024-12-30 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138321', 'tblTempUsageDetail_20' ) start [2024-12-30 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138321', 'tblTempUsageDetail_20' ) end [2024-12-30 19:24:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:24:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:24:24] Production.INFO: ==30463== Releasing lock... [2024-12-30 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:24:24] Production.INFO: 52 MB #Memory Used# [2024-12-30 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:25:05 [end_date_ymd] => 2024-12-30 19:25:05 [RateCDR] => 1 ) [2024-12-30 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 16:25:05' and `end` < '2024-12-30 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 19:25:18] Production.INFO: count ==3132 [2024-12-30 19:25:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:25:05 - End Time 2024-12-30 19:25:05 [2024-12-30 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138326', 'tblTempUsageDetail_20' ) start [2024-12-30 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138326', 'tblTempUsageDetail_20' ) end [2024-12-30 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138326', 'tblTempVendorCDR_20' ) start [2024-12-30 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138326', 'tblTempVendorCDR_20' ) end [2024-12-30 19:25:19] Production.INFO: ProcessCDR(1,14138326,1,1,2) [2024-12-30 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138326', 'tblTempUsageDetail_20' ) start [2024-12-30 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138326', 'tblTempUsageDetail_20' ) end [2024-12-30 19:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:25:22] Production.INFO: ==30658== Releasing lock... [2024-12-30 19:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:25:22] Production.INFO: 51.5 MB #Memory Used# [2024-12-30 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:26:05 [end_date_ymd] => 2024-12-30 19:26:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:26:05' and `end` < '2024-12-30 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-30 19:26:19] Production.INFO: count ==3108 [2024-12-30 19:26:21] Production.ERROR: pbx CDR StartTime 2024-12-30 16:26:05 - End Time 2024-12-30 19:26:05 [2024-12-30 19:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138331', 'tblTempUsageDetail_20' ) start [2024-12-30 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138331', 'tblTempUsageDetail_20' ) end [2024-12-30 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138331', 'tblTempVendorCDR_20' ) start [2024-12-30 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138331', 'tblTempVendorCDR_20' ) end [2024-12-30 19:26:21] Production.INFO: ProcessCDR(1,14138331,1,1,2) [2024-12-30 19:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138331', 'tblTempUsageDetail_20' ) start [2024-12-30 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138331', 'tblTempUsageDetail_20' ) end [2024-12-30 19:26:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:26:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:26:24] Production.INFO: ==30815== Releasing lock... [2024-12-30 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:26:24] Production.INFO: 51.25 MB #Memory Used# [2024-12-30 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:27:05 [end_date_ymd] => 2024-12-30 19:27:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:27:05' and `end` < '2024-12-30 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-30 19:27:18] Production.INFO: count ==3100 [2024-12-30 19:27:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:27:05 - End Time 2024-12-30 19:27:05 [2024-12-30 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138336', 'tblTempUsageDetail_20' ) start [2024-12-30 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138336', 'tblTempUsageDetail_20' ) end [2024-12-30 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138336', 'tblTempVendorCDR_20' ) start [2024-12-30 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138336', 'tblTempVendorCDR_20' ) end [2024-12-30 19:27:19] Production.INFO: ProcessCDR(1,14138336,1,1,2) [2024-12-30 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138336', 'tblTempUsageDetail_20' ) start [2024-12-30 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138336', 'tblTempUsageDetail_20' ) end [2024-12-30 19:27:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:27:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:27:23] Production.INFO: ==30976== Releasing lock... [2024-12-30 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:27:23] Production.INFO: 51 MB #Memory Used# [2024-12-30 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:28:05 [end_date_ymd] => 2024-12-30 19:28:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:28:05' and `end` < '2024-12-30 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-30 19:28:18] Production.INFO: count ==3080 [2024-12-30 19:28:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:28:05 - End Time 2024-12-30 19:28:05 [2024-12-30 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138341', 'tblTempUsageDetail_20' ) start [2024-12-30 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138341', 'tblTempUsageDetail_20' ) end [2024-12-30 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138341', 'tblTempVendorCDR_20' ) start [2024-12-30 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138341', 'tblTempVendorCDR_20' ) end [2024-12-30 19:28:19] Production.INFO: ProcessCDR(1,14138341,1,1,2) [2024-12-30 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138341', 'tblTempUsageDetail_20' ) start [2024-12-30 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138341', 'tblTempUsageDetail_20' ) end [2024-12-30 19:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:28:22] Production.INFO: ==31131== Releasing lock... [2024-12-30 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:28:22] Production.INFO: 51 MB #Memory Used# [2024-12-30 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:29:05 [end_date_ymd] => 2024-12-30 19:29:05 [RateCDR] => 1 ) [2024-12-30 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 16:29:05' and `end` < '2024-12-30 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 19:29:19] Production.INFO: count ==3059 [2024-12-30 19:29:20] Production.ERROR: pbx CDR StartTime 2024-12-30 16:29:05 - End Time 2024-12-30 19:29:05 [2024-12-30 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138346', 'tblTempUsageDetail_20' ) start [2024-12-30 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138346', 'tblTempUsageDetail_20' ) end [2024-12-30 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138346', 'tblTempVendorCDR_20' ) start [2024-12-30 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138346', 'tblTempVendorCDR_20' ) end [2024-12-30 19:29:20] Production.INFO: ProcessCDR(1,14138346,1,1,2) [2024-12-30 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138346', 'tblTempUsageDetail_20' ) start [2024-12-30 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138346', 'tblTempUsageDetail_20' ) end [2024-12-30 19:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:29:23] Production.INFO: ==31255== Releasing lock... [2024-12-30 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:29:23] Production.INFO: 51 MB #Memory Used# [2024-12-30 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:30:06 [end_date_ymd] => 2024-12-30 19:30:06 [RateCDR] => 1 ) [2024-12-30 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 16:30:06' and `end` < '2024-12-30 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 19:30:19] Production.INFO: count ==3061 [2024-12-30 19:30:20] Production.ERROR: pbx CDR StartTime 2024-12-30 16:30:06 - End Time 2024-12-30 19:30:06 [2024-12-30 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138352', 'tblTempUsageDetail_20' ) start [2024-12-30 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138352', 'tblTempUsageDetail_20' ) end [2024-12-30 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138352', 'tblTempVendorCDR_20' ) start [2024-12-30 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138352', 'tblTempVendorCDR_20' ) end [2024-12-30 19:30:20] Production.INFO: ProcessCDR(1,14138352,1,1,2) [2024-12-30 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138352', 'tblTempUsageDetail_20' ) start [2024-12-30 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138352', 'tblTempUsageDetail_20' ) end [2024-12-30 19:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:30:23] Production.INFO: ==31382== Releasing lock... [2024-12-30 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:30:23] Production.INFO: 50.75 MB #Memory Used# [2024-12-30 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:31:05 [end_date_ymd] => 2024-12-30 19:31:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:31:05' and `end` < '2024-12-30 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-30 19:31:18] Production.INFO: count ==3019 [2024-12-30 19:31:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:31:05 - End Time 2024-12-30 19:31:05 [2024-12-30 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138357', 'tblTempUsageDetail_20' ) start [2024-12-30 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138357', 'tblTempUsageDetail_20' ) end [2024-12-30 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138357', 'tblTempVendorCDR_20' ) start [2024-12-30 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138357', 'tblTempVendorCDR_20' ) end [2024-12-30 19:31:19] Production.INFO: ProcessCDR(1,14138357,1,1,2) [2024-12-30 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138357', 'tblTempUsageDetail_20' ) start [2024-12-30 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138357', 'tblTempUsageDetail_20' ) end [2024-12-30 19:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:31:22] Production.INFO: ==31503== Releasing lock... [2024-12-30 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:31:22] Production.INFO: 51 MB #Memory Used# [2024-12-30 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:32:05 [end_date_ymd] => 2024-12-30 19:32:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:32:05' and `end` < '2024-12-30 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-30 19:32:18] Production.INFO: count ==3012 [2024-12-30 19:32:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:32:05 - End Time 2024-12-30 19:32:05 [2024-12-30 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138362', 'tblTempUsageDetail_20' ) start [2024-12-30 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138362', 'tblTempUsageDetail_20' ) end [2024-12-30 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138362', 'tblTempVendorCDR_20' ) start [2024-12-30 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138362', 'tblTempVendorCDR_20' ) end [2024-12-30 19:32:19] Production.INFO: ProcessCDR(1,14138362,1,1,2) [2024-12-30 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138362', 'tblTempUsageDetail_20' ) start [2024-12-30 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138362', 'tblTempUsageDetail_20' ) end [2024-12-30 19:32:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:32:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:32:24] Production.INFO: ==31609== Releasing lock... [2024-12-30 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:32:24] Production.INFO: 51.5 MB #Memory Used# [2024-12-30 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:33:05 [end_date_ymd] => 2024-12-30 19:33:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:33:05' and `end` < '2024-12-30 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-30 19:33:17] Production.INFO: count ==2996 [2024-12-30 19:33:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:33:05 - End Time 2024-12-30 19:33:05 [2024-12-30 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138367', 'tblTempUsageDetail_20' ) start [2024-12-30 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138367', 'tblTempUsageDetail_20' ) end [2024-12-30 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138367', 'tblTempVendorCDR_20' ) start [2024-12-30 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138367', 'tblTempVendorCDR_20' ) end [2024-12-30 19:33:19] Production.INFO: ProcessCDR(1,14138367,1,1,2) [2024-12-30 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138367', 'tblTempUsageDetail_20' ) start [2024-12-30 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138367', 'tblTempUsageDetail_20' ) end [2024-12-30 19:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:33:22] Production.INFO: ==31702== Releasing lock... [2024-12-30 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:33:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-30 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:34:05 [end_date_ymd] => 2024-12-30 19:34:05 [RateCDR] => 1 ) [2024-12-30 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 16:34:05' and `end` < '2024-12-30 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 19:34:18] Production.INFO: count ==2996 [2024-12-30 19:34:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:34:05 - End Time 2024-12-30 19:34:05 [2024-12-30 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138372', 'tblTempUsageDetail_20' ) start [2024-12-30 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138372', 'tblTempUsageDetail_20' ) end [2024-12-30 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138372', 'tblTempVendorCDR_20' ) start [2024-12-30 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138372', 'tblTempVendorCDR_20' ) end [2024-12-30 19:34:19] Production.INFO: ProcessCDR(1,14138372,1,1,2) [2024-12-30 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138372', 'tblTempUsageDetail_20' ) start [2024-12-30 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138372', 'tblTempUsageDetail_20' ) end [2024-12-30 19:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:34:24] Production.INFO: ==31789== Releasing lock... [2024-12-30 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:34:24] Production.INFO: 50.25 MB #Memory Used# [2024-12-30 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:35:05 [end_date_ymd] => 2024-12-30 19:35:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:35:05' and `end` < '2024-12-30 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-30 19:35:18] Production.INFO: count ==2994 [2024-12-30 19:35:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:35:05 - End Time 2024-12-30 19:35:05 [2024-12-30 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138377', 'tblTempUsageDetail_20' ) start [2024-12-30 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138377', 'tblTempUsageDetail_20' ) end [2024-12-30 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138377', 'tblTempVendorCDR_20' ) start [2024-12-30 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138377', 'tblTempVendorCDR_20' ) end [2024-12-30 19:35:19] Production.INFO: ProcessCDR(1,14138377,1,1,2) [2024-12-30 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138377', 'tblTempUsageDetail_20' ) start [2024-12-30 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138377', 'tblTempUsageDetail_20' ) end [2024-12-30 19:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:35:22] Production.INFO: ==31873== Releasing lock... [2024-12-30 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:35:22] Production.INFO: 50.5 MB #Memory Used# [2024-12-30 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:36:05 [end_date_ymd] => 2024-12-30 19:36:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:36:05' and `end` < '2024-12-30 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-30 19:36:18] Production.INFO: count ==2987 [2024-12-30 19:36:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:36:05 - End Time 2024-12-30 19:36:05 [2024-12-30 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138382', 'tblTempUsageDetail_20' ) start [2024-12-30 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138382', 'tblTempUsageDetail_20' ) end [2024-12-30 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138382', 'tblTempVendorCDR_20' ) start [2024-12-30 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138382', 'tblTempVendorCDR_20' ) end [2024-12-30 19:36:19] Production.INFO: ProcessCDR(1,14138382,1,1,2) [2024-12-30 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138382', 'tblTempUsageDetail_20' ) start [2024-12-30 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138382', 'tblTempUsageDetail_20' ) end [2024-12-30 19:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:36:23] Production.INFO: ==32001== Releasing lock... [2024-12-30 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:36:23] Production.INFO: 50.5 MB #Memory Used# [2024-12-30 19:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:37:04 [end_date_ymd] => 2024-12-30 19:37:04 [RateCDR] => 1 ) [2024-12-30 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-30 16:37:04' and `end` < '2024-12-30 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-30 19:37:17] Production.INFO: count ==2968 [2024-12-30 19:37:18] Production.ERROR: pbx CDR StartTime 2024-12-30 16:37:04 - End Time 2024-12-30 19:37:04 [2024-12-30 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138387', 'tblTempUsageDetail_20' ) start [2024-12-30 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138387', 'tblTempUsageDetail_20' ) end [2024-12-30 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138387', 'tblTempVendorCDR_20' ) start [2024-12-30 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138387', 'tblTempVendorCDR_20' ) end [2024-12-30 19:37:18] Production.INFO: ProcessCDR(1,14138387,1,1,2) [2024-12-30 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138387', 'tblTempUsageDetail_20' ) start [2024-12-30 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138387', 'tblTempUsageDetail_20' ) end [2024-12-30 19:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:37:21] Production.INFO: ==32087== Releasing lock... [2024-12-30 19:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:37:21] Production.INFO: 50.25 MB #Memory Used# [2024-12-30 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:38:05 [end_date_ymd] => 2024-12-30 19:38:05 [RateCDR] => 1 ) [2024-12-30 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 16:38:05' and `end` < '2024-12-30 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 19:38:18] Production.INFO: count ==2947 [2024-12-30 19:38:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:38:05 - End Time 2024-12-30 19:38:05 [2024-12-30 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138392', 'tblTempUsageDetail_20' ) start [2024-12-30 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138392', 'tblTempUsageDetail_20' ) end [2024-12-30 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138392', 'tblTempVendorCDR_20' ) start [2024-12-30 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138392', 'tblTempVendorCDR_20' ) end [2024-12-30 19:38:19] Production.INFO: ProcessCDR(1,14138392,1,1,2) [2024-12-30 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138392', 'tblTempUsageDetail_20' ) start [2024-12-30 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138392', 'tblTempUsageDetail_20' ) end [2024-12-30 19:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:38:22] Production.INFO: ==32167== Releasing lock... [2024-12-30 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:38:22] Production.INFO: 50.5 MB #Memory Used# [2024-12-30 19:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:39:04 [end_date_ymd] => 2024-12-30 19:39:04 [RateCDR] => 1 ) [2024-12-30 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-30 16:39:04' and `end` < '2024-12-30 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-30 19:39:18] Production.INFO: count ==2941 [2024-12-30 19:39:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:39:04 - End Time 2024-12-30 19:39:04 [2024-12-30 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138397', 'tblTempUsageDetail_20' ) start [2024-12-30 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138397', 'tblTempUsageDetail_20' ) end [2024-12-30 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138397', 'tblTempVendorCDR_20' ) start [2024-12-30 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138397', 'tblTempVendorCDR_20' ) end [2024-12-30 19:39:19] Production.INFO: ProcessCDR(1,14138397,1,1,2) [2024-12-30 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138397', 'tblTempUsageDetail_20' ) start [2024-12-30 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138397', 'tblTempUsageDetail_20' ) end [2024-12-30 19:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:39:22] Production.INFO: ==32250== Releasing lock... [2024-12-30 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:39:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-30 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:40:06 [end_date_ymd] => 2024-12-30 19:40:06 [RateCDR] => 1 ) [2024-12-30 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 16:40:06' and `end` < '2024-12-30 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 19:40:19] Production.INFO: count ==2934 [2024-12-30 19:40:20] Production.ERROR: pbx CDR StartTime 2024-12-30 16:40:06 - End Time 2024-12-30 19:40:06 [2024-12-30 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138403', 'tblTempUsageDetail_20' ) start [2024-12-30 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138403', 'tblTempUsageDetail_20' ) end [2024-12-30 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138403', 'tblTempVendorCDR_20' ) start [2024-12-30 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138403', 'tblTempVendorCDR_20' ) end [2024-12-30 19:40:20] Production.INFO: ProcessCDR(1,14138403,1,1,2) [2024-12-30 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138403', 'tblTempUsageDetail_20' ) start [2024-12-30 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138403', 'tblTempUsageDetail_20' ) end [2024-12-30 19:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:40:23] Production.INFO: ==32342== Releasing lock... [2024-12-30 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:40:23] Production.INFO: 50 MB #Memory Used# [2024-12-30 19:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:41:04 [end_date_ymd] => 2024-12-30 19:41:04 [RateCDR] => 1 ) [2024-12-30 19: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-30 16:41:04' and `end` < '2024-12-30 19: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-30 19:41:17] Production.INFO: count ==2894 [2024-12-30 19:41:18] Production.ERROR: pbx CDR StartTime 2024-12-30 16:41:04 - End Time 2024-12-30 19:41:04 [2024-12-30 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138408', 'tblTempUsageDetail_20' ) start [2024-12-30 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138408', 'tblTempUsageDetail_20' ) end [2024-12-30 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138408', 'tblTempVendorCDR_20' ) start [2024-12-30 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138408', 'tblTempVendorCDR_20' ) end [2024-12-30 19:41:18] Production.INFO: ProcessCDR(1,14138408,1,1,2) [2024-12-30 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138408', 'tblTempUsageDetail_20' ) start [2024-12-30 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138408', 'tblTempUsageDetail_20' ) end [2024-12-30 19:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:41:21] Production.INFO: ==32422== Releasing lock... [2024-12-30 19:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:41:21] Production.INFO: 49.25 MB #Memory Used# [2024-12-30 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:42:05 [end_date_ymd] => 2024-12-30 19:42:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:42:05' and `end` < '2024-12-30 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-30 19:42:18] Production.INFO: count ==2882 [2024-12-30 19:42:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:42:05 - End Time 2024-12-30 19:42:05 [2024-12-30 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138413', 'tblTempUsageDetail_20' ) start [2024-12-30 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138413', 'tblTempUsageDetail_20' ) end [2024-12-30 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138413', 'tblTempVendorCDR_20' ) start [2024-12-30 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138413', 'tblTempVendorCDR_20' ) end [2024-12-30 19:42:19] Production.INFO: ProcessCDR(1,14138413,1,1,2) [2024-12-30 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138413', 'tblTempUsageDetail_20' ) start [2024-12-30 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138413', 'tblTempUsageDetail_20' ) end [2024-12-30 19:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:42:22] Production.INFO: ==32504== Releasing lock... [2024-12-30 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:42:22] Production.INFO: 49.25 MB #Memory Used# [2024-12-30 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:43:05 [end_date_ymd] => 2024-12-30 19:43:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:43:05' and `end` < '2024-12-30 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-30 19:43:19] Production.INFO: count ==2860 [2024-12-30 19:43:20] Production.ERROR: pbx CDR StartTime 2024-12-30 16:43:05 - End Time 2024-12-30 19:43:05 [2024-12-30 19:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138418', 'tblTempUsageDetail_20' ) start [2024-12-30 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138418', 'tblTempUsageDetail_20' ) end [2024-12-30 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138418', 'tblTempVendorCDR_20' ) start [2024-12-30 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138418', 'tblTempVendorCDR_20' ) end [2024-12-30 19:43:20] Production.INFO: ProcessCDR(1,14138418,1,1,2) [2024-12-30 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138418', 'tblTempUsageDetail_20' ) start [2024-12-30 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138418', 'tblTempUsageDetail_20' ) end [2024-12-30 19:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:43:23] Production.INFO: ==32583== Releasing lock... [2024-12-30 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:43:23] Production.INFO: 49 MB #Memory Used# [2024-12-30 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:44:05 [end_date_ymd] => 2024-12-30 19:44:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:44:05' and `end` < '2024-12-30 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-30 19:44:18] Production.INFO: count ==2854 [2024-12-30 19:44:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:44:05 - End Time 2024-12-30 19:44:05 [2024-12-30 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138423', 'tblTempUsageDetail_20' ) start [2024-12-30 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138423', 'tblTempUsageDetail_20' ) end [2024-12-30 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138423', 'tblTempVendorCDR_20' ) start [2024-12-30 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138423', 'tblTempVendorCDR_20' ) end [2024-12-30 19:44:19] Production.INFO: ProcessCDR(1,14138423,1,1,2) [2024-12-30 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138423', 'tblTempUsageDetail_20' ) start [2024-12-30 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138423', 'tblTempUsageDetail_20' ) end [2024-12-30 19:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:44:23] Production.INFO: ==32663== Releasing lock... [2024-12-30 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:44:23] Production.INFO: 49 MB #Memory Used# [2024-12-30 19:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:45:04 [end_date_ymd] => 2024-12-30 19:45:04 [RateCDR] => 1 ) [2024-12-30 19: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-30 16:45:04' and `end` < '2024-12-30 19: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-30 19:45:17] Production.INFO: count ==2842 [2024-12-30 19:45:18] Production.ERROR: pbx CDR StartTime 2024-12-30 16:45:04 - End Time 2024-12-30 19:45:04 [2024-12-30 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138428', 'tblTempUsageDetail_20' ) start [2024-12-30 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138428', 'tblTempUsageDetail_20' ) end [2024-12-30 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138428', 'tblTempVendorCDR_20' ) start [2024-12-30 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138428', 'tblTempVendorCDR_20' ) end [2024-12-30 19:45:18] Production.INFO: ProcessCDR(1,14138428,1,1,2) [2024-12-30 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138428', 'tblTempUsageDetail_20' ) start [2024-12-30 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138428', 'tblTempUsageDetail_20' ) end [2024-12-30 19:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:45:23] Production.INFO: ==32742== Releasing lock... [2024-12-30 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:45:23] Production.INFO: 49 MB #Memory Used# [2024-12-30 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:46:05 [end_date_ymd] => 2024-12-30 19:46:05 [RateCDR] => 1 ) [2024-12-30 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 16:46:05' and `end` < '2024-12-30 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 19:46:18] Production.INFO: count ==2840 [2024-12-30 19:46:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:46:05 - End Time 2024-12-30 19:46:05 [2024-12-30 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138433', 'tblTempUsageDetail_20' ) start [2024-12-30 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138433', 'tblTempUsageDetail_20' ) end [2024-12-30 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138433', 'tblTempVendorCDR_20' ) start [2024-12-30 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138433', 'tblTempVendorCDR_20' ) end [2024-12-30 19:46:19] Production.INFO: ProcessCDR(1,14138433,1,1,2) [2024-12-30 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138433', 'tblTempUsageDetail_20' ) start [2024-12-30 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138433', 'tblTempUsageDetail_20' ) end [2024-12-30 19:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:46:24] Production.INFO: ==375== Releasing lock... [2024-12-30 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:46:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-30 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:47:05 [end_date_ymd] => 2024-12-30 19:47:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:47:05' and `end` < '2024-12-30 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-30 19:47:18] Production.INFO: count ==2836 [2024-12-30 19:47:18] Production.ERROR: pbx CDR StartTime 2024-12-30 16:47:05 - End Time 2024-12-30 19:47:05 [2024-12-30 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138438', 'tblTempUsageDetail_20' ) start [2024-12-30 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138438', 'tblTempUsageDetail_20' ) end [2024-12-30 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138438', 'tblTempVendorCDR_20' ) start [2024-12-30 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138438', 'tblTempVendorCDR_20' ) end [2024-12-30 19:47:19] Production.INFO: ProcessCDR(1,14138438,1,1,2) [2024-12-30 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138438', 'tblTempUsageDetail_20' ) start [2024-12-30 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138438', 'tblTempUsageDetail_20' ) end [2024-12-30 19:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:47:23] Production.INFO: ==457== Releasing lock... [2024-12-30 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:47:23] Production.INFO: 49 MB #Memory Used# [2024-12-30 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:48:05 [end_date_ymd] => 2024-12-30 19:48:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:48:05' and `end` < '2024-12-30 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-30 19:48:17] Production.INFO: count ==2833 [2024-12-30 19:48:18] Production.ERROR: pbx CDR StartTime 2024-12-30 16:48:05 - End Time 2024-12-30 19:48:05 [2024-12-30 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138443', 'tblTempUsageDetail_20' ) start [2024-12-30 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138443', 'tblTempUsageDetail_20' ) end [2024-12-30 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138443', 'tblTempVendorCDR_20' ) start [2024-12-30 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138443', 'tblTempVendorCDR_20' ) end [2024-12-30 19:48:18] Production.INFO: ProcessCDR(1,14138443,1,1,2) [2024-12-30 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138443', 'tblTempUsageDetail_20' ) start [2024-12-30 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138443', 'tblTempUsageDetail_20' ) end [2024-12-30 19:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:48:23] Production.INFO: ==537== Releasing lock... [2024-12-30 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:48:23] Production.INFO: 49 MB #Memory Used# [2024-12-30 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:49:05 [end_date_ymd] => 2024-12-30 19:49:05 [RateCDR] => 1 ) [2024-12-30 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 16:49:05' and `end` < '2024-12-30 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 19:49:18] Production.INFO: count ==2828 [2024-12-30 19:49:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:49:05 - End Time 2024-12-30 19:49:05 [2024-12-30 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138448', 'tblTempUsageDetail_20' ) start [2024-12-30 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138448', 'tblTempUsageDetail_20' ) end [2024-12-30 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138448', 'tblTempVendorCDR_20' ) start [2024-12-30 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138448', 'tblTempVendorCDR_20' ) end [2024-12-30 19:49:19] Production.INFO: ProcessCDR(1,14138448,1,1,2) [2024-12-30 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138448', 'tblTempUsageDetail_20' ) start [2024-12-30 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138448', 'tblTempUsageDetail_20' ) end [2024-12-30 19:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:49:22] Production.INFO: ==622== Releasing lock... [2024-12-30 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:49:22] Production.INFO: 49 MB #Memory Used# [2024-12-30 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:50:05 [end_date_ymd] => 2024-12-30 19:50:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:50:05' and `end` < '2024-12-30 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-30 19:50:18] Production.INFO: count ==2827 [2024-12-30 19:50:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:50:05 - End Time 2024-12-30 19:50:05 [2024-12-30 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138453', 'tblTempUsageDetail_20' ) start [2024-12-30 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138453', 'tblTempUsageDetail_20' ) end [2024-12-30 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138453', 'tblTempVendorCDR_20' ) start [2024-12-30 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138453', 'tblTempVendorCDR_20' ) end [2024-12-30 19:50:19] Production.INFO: ProcessCDR(1,14138453,1,1,2) [2024-12-30 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138453', 'tblTempUsageDetail_20' ) start [2024-12-30 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138453', 'tblTempUsageDetail_20' ) end [2024-12-30 19:50:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:50:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:50:24] Production.INFO: ==726== Releasing lock... [2024-12-30 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:50:24] Production.INFO: 49 MB #Memory Used# [2024-12-30 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:51:05 [end_date_ymd] => 2024-12-30 19:51:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:51:05' and `end` < '2024-12-30 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-30 19:51:18] Production.INFO: count ==2810 [2024-12-30 19:51:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:51:05 - End Time 2024-12-30 19:51:05 [2024-12-30 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138459', 'tblTempUsageDetail_20' ) start [2024-12-30 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138459', 'tblTempUsageDetail_20' ) end [2024-12-30 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138459', 'tblTempVendorCDR_20' ) start [2024-12-30 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138459', 'tblTempVendorCDR_20' ) end [2024-12-30 19:51:19] Production.INFO: ProcessCDR(1,14138459,1,1,2) [2024-12-30 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138459', 'tblTempUsageDetail_20' ) start [2024-12-30 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138459', 'tblTempUsageDetail_20' ) end [2024-12-30 19:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:51:22] Production.INFO: ==856== Releasing lock... [2024-12-30 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:51:22] Production.INFO: 49 MB #Memory Used# [2024-12-30 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:52:05 [end_date_ymd] => 2024-12-30 19:52:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:52:05' and `end` < '2024-12-30 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-30 19:52:18] Production.INFO: count ==2780 [2024-12-30 19:52:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:52:05 - End Time 2024-12-30 19:52:05 [2024-12-30 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138464', 'tblTempUsageDetail_20' ) start [2024-12-30 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138464', 'tblTempUsageDetail_20' ) end [2024-12-30 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138464', 'tblTempVendorCDR_20' ) start [2024-12-30 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138464', 'tblTempVendorCDR_20' ) end [2024-12-30 19:52:19] Production.INFO: ProcessCDR(1,14138464,1,1,2) [2024-12-30 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138464', 'tblTempUsageDetail_20' ) start [2024-12-30 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138464', 'tblTempUsageDetail_20' ) end [2024-12-30 19:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:52:22] Production.INFO: ==939== Releasing lock... [2024-12-30 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:52:22] Production.INFO: 48.75 MB #Memory Used# [2024-12-30 19:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:53:04 [end_date_ymd] => 2024-12-30 19:53:04 [RateCDR] => 1 ) [2024-12-30 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-30 16:53:04' and `end` < '2024-12-30 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-30 19:53:18] Production.INFO: count ==2758 [2024-12-30 19:53:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:53:04 - End Time 2024-12-30 19:53:04 [2024-12-30 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138469', 'tblTempUsageDetail_20' ) start [2024-12-30 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138469', 'tblTempUsageDetail_20' ) end [2024-12-30 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138469', 'tblTempVendorCDR_20' ) start [2024-12-30 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138469', 'tblTempVendorCDR_20' ) end [2024-12-30 19:53:19] Production.INFO: ProcessCDR(1,14138469,1,1,2) [2024-12-30 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138469', 'tblTempUsageDetail_20' ) start [2024-12-30 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138469', 'tblTempUsageDetail_20' ) end [2024-12-30 19:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:53:22] Production.INFO: ==1015== Releasing lock... [2024-12-30 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:53:22] Production.INFO: 48.75 MB #Memory Used# [2024-12-30 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:54:04 [end_date_ymd] => 2024-12-30 19:54:04 [RateCDR] => 1 ) [2024-12-30 19: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-30 16:54:04' and `end` < '2024-12-30 19: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-30 19:54:17] Production.INFO: count ==2740 [2024-12-30 19:54:18] Production.ERROR: pbx CDR StartTime 2024-12-30 16:54:04 - End Time 2024-12-30 19:54:04 [2024-12-30 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138474', 'tblTempUsageDetail_20' ) start [2024-12-30 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138474', 'tblTempUsageDetail_20' ) end [2024-12-30 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138474', 'tblTempVendorCDR_20' ) start [2024-12-30 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138474', 'tblTempVendorCDR_20' ) end [2024-12-30 19:54:18] Production.INFO: ProcessCDR(1,14138474,1,1,2) [2024-12-30 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138474', 'tblTempUsageDetail_20' ) start [2024-12-30 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138474', 'tblTempUsageDetail_20' ) end [2024-12-30 19:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:54:21] Production.INFO: ==1088== Releasing lock... [2024-12-30 19:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:54:21] Production.INFO: 48.25 MB #Memory Used# [2024-12-30 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:55:05 [end_date_ymd] => 2024-12-30 19:55:05 [RateCDR] => 1 ) [2024-12-30 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 16:55:05' and `end` < '2024-12-30 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 19:55:18] Production.INFO: count ==2738 [2024-12-30 19:55:18] Production.ERROR: pbx CDR StartTime 2024-12-30 16:55:05 - End Time 2024-12-30 19:55:05 [2024-12-30 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138479', 'tblTempUsageDetail_20' ) start [2024-12-30 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138479', 'tblTempUsageDetail_20' ) end [2024-12-30 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138479', 'tblTempVendorCDR_20' ) start [2024-12-30 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138479', 'tblTempVendorCDR_20' ) end [2024-12-30 19:55:19] Production.INFO: ProcessCDR(1,14138479,1,1,2) [2024-12-30 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138479', 'tblTempUsageDetail_20' ) start [2024-12-30 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138479', 'tblTempUsageDetail_20' ) end [2024-12-30 19:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:55:22] Production.INFO: ==1170== Releasing lock... [2024-12-30 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:55:22] Production.INFO: 49 MB #Memory Used# [2024-12-30 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:56:05 [end_date_ymd] => 2024-12-30 19:56:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:56:05' and `end` < '2024-12-30 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-30 19:56:18] Production.INFO: count ==2734 [2024-12-30 19:56:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:56:05 - End Time 2024-12-30 19:56:05 [2024-12-30 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138484', 'tblTempUsageDetail_20' ) start [2024-12-30 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138484', 'tblTempUsageDetail_20' ) end [2024-12-30 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138484', 'tblTempVendorCDR_20' ) start [2024-12-30 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138484', 'tblTempVendorCDR_20' ) end [2024-12-30 19:56:19] Production.INFO: ProcessCDR(1,14138484,1,1,2) [2024-12-30 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138484', 'tblTempUsageDetail_20' ) start [2024-12-30 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138484', 'tblTempUsageDetail_20' ) end [2024-12-30 19:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:56:22] Production.INFO: ==1255== Releasing lock... [2024-12-30 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:56:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-30 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:57:05 [end_date_ymd] => 2024-12-30 19:57:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:57:05' and `end` < '2024-12-30 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-30 19:57:17] Production.INFO: count ==2721 [2024-12-30 19:57:18] Production.ERROR: pbx CDR StartTime 2024-12-30 16:57:05 - End Time 2024-12-30 19:57:05 [2024-12-30 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138489', 'tblTempUsageDetail_20' ) start [2024-12-30 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138489', 'tblTempUsageDetail_20' ) end [2024-12-30 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138489', 'tblTempVendorCDR_20' ) start [2024-12-30 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138489', 'tblTempVendorCDR_20' ) end [2024-12-30 19:57:18] Production.INFO: ProcessCDR(1,14138489,1,1,2) [2024-12-30 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138489', 'tblTempUsageDetail_20' ) start [2024-12-30 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138489', 'tblTempUsageDetail_20' ) end [2024-12-30 19:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:57:21] Production.INFO: ==1326== Releasing lock... [2024-12-30 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:57:21] Production.INFO: 48.5 MB #Memory Used# [2024-12-30 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:58:05 [end_date_ymd] => 2024-12-30 19:58:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:58:05' and `end` < '2024-12-30 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-30 19:58:18] Production.INFO: count ==2721 [2024-12-30 19:58:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:58:05 - End Time 2024-12-30 19:58:05 [2024-12-30 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138494', 'tblTempUsageDetail_20' ) start [2024-12-30 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138494', 'tblTempUsageDetail_20' ) end [2024-12-30 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138494', 'tblTempVendorCDR_20' ) start [2024-12-30 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138494', 'tblTempVendorCDR_20' ) end [2024-12-30 19:58:19] Production.INFO: ProcessCDR(1,14138494,1,1,2) [2024-12-30 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138494', 'tblTempUsageDetail_20' ) start [2024-12-30 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138494', 'tblTempUsageDetail_20' ) end [2024-12-30 19:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:58:23] Production.INFO: ==1401== Releasing lock... [2024-12-30 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:58:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-30 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 16:59:05 [end_date_ymd] => 2024-12-30 19:59:05 [RateCDR] => 1 ) [2024-12-30 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-30 16:59:05' and `end` < '2024-12-30 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-30 19:59:18] Production.INFO: count ==2716 [2024-12-30 19:59:19] Production.ERROR: pbx CDR StartTime 2024-12-30 16:59:05 - End Time 2024-12-30 19:59:05 [2024-12-30 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138499', 'tblTempUsageDetail_20' ) start [2024-12-30 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138499', 'tblTempUsageDetail_20' ) end [2024-12-30 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138499', 'tblTempVendorCDR_20' ) start [2024-12-30 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138499', 'tblTempVendorCDR_20' ) end [2024-12-30 19:59:19] Production.INFO: ProcessCDR(1,14138499,1,1,2) [2024-12-30 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138499', 'tblTempUsageDetail_20' ) start [2024-12-30 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138499', 'tblTempUsageDetail_20' ) end [2024-12-30 19:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 19:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 19:59:23] Production.INFO: ==1475== Releasing lock... [2024-12-30 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 19:59:23] Production.INFO: 48.5 MB #Memory Used# [2024-12-30 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:00:06 [end_date_ymd] => 2024-12-30 20:00:06 [RateCDR] => 1 ) [2024-12-30 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:00:06' and `end` < '2024-12-30 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 20:00:18] Production.INFO: count ==2714 [2024-12-30 20:00:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:00:06 - End Time 2024-12-30 20:00:06 [2024-12-30 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138505', 'tblTempUsageDetail_20' ) start [2024-12-30 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138505', 'tblTempUsageDetail_20' ) end [2024-12-30 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138505', 'tblTempVendorCDR_20' ) start [2024-12-30 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138505', 'tblTempVendorCDR_20' ) end [2024-12-30 20:00:19] Production.INFO: ProcessCDR(1,14138505,1,1,2) [2024-12-30 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138505', 'tblTempUsageDetail_20' ) start [2024-12-30 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138505', 'tblTempUsageDetail_20' ) end [2024-12-30 20:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:00:22] Production.INFO: ==1587== Releasing lock... [2024-12-30 20:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:00:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-30 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:01:05 [end_date_ymd] => 2024-12-30 20:01:05 [RateCDR] => 1 ) [2024-12-30 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:01:05' and `end` < '2024-12-30 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 20:01:18] Production.INFO: count ==2693 [2024-12-30 20:01:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:01:05 - End Time 2024-12-30 20:01:05 [2024-12-30 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138510', 'tblTempUsageDetail_20' ) start [2024-12-30 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138510', 'tblTempUsageDetail_20' ) end [2024-12-30 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138510', 'tblTempVendorCDR_20' ) start [2024-12-30 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138510', 'tblTempVendorCDR_20' ) end [2024-12-30 20:01:19] Production.INFO: ProcessCDR(1,14138510,1,1,2) [2024-12-30 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138510', 'tblTempUsageDetail_20' ) start [2024-12-30 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138510', 'tblTempUsageDetail_20' ) end [2024-12-30 20:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:01:22] Production.INFO: ==1715== Releasing lock... [2024-12-30 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:01:22] Production.INFO: 48.25 MB #Memory Used# [2024-12-30 20:02:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:02:06 [end_date_ymd] => 2024-12-30 20:02:06 [RateCDR] => 1 ) [2024-12-30 20:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:02:06' and `end` < '2024-12-30 20:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 20:02:19] Production.INFO: count ==2686 [2024-12-30 20:02:20] Production.ERROR: pbx CDR StartTime 2024-12-30 17:02:06 - End Time 2024-12-30 20:02:06 [2024-12-30 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138515', 'tblTempUsageDetail_20' ) start [2024-12-30 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138515', 'tblTempUsageDetail_20' ) end [2024-12-30 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138515', 'tblTempVendorCDR_20' ) start [2024-12-30 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138515', 'tblTempVendorCDR_20' ) end [2024-12-30 20:02:20] Production.INFO: ProcessCDR(1,14138515,1,1,2) [2024-12-30 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138515', 'tblTempUsageDetail_20' ) start [2024-12-30 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138515', 'tblTempUsageDetail_20' ) end [2024-12-30 20:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:02:23] Production.INFO: ==1787== Releasing lock... [2024-12-30 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:02:23] Production.INFO: 48.25 MB #Memory Used# [2024-12-30 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:03:05 [end_date_ymd] => 2024-12-30 20:03:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:03:05' and `end` < '2024-12-30 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-30 20:03:18] Production.INFO: count ==2669 [2024-12-30 20:03:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:03:05 - End Time 2024-12-30 20:03:05 [2024-12-30 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138520', 'tblTempUsageDetail_20' ) start [2024-12-30 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138520', 'tblTempUsageDetail_20' ) end [2024-12-30 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138520', 'tblTempVendorCDR_20' ) start [2024-12-30 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138520', 'tblTempVendorCDR_20' ) end [2024-12-30 20:03:18] Production.INFO: ProcessCDR(1,14138520,1,1,2) [2024-12-30 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138520', 'tblTempUsageDetail_20' ) start [2024-12-30 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138520', 'tblTempUsageDetail_20' ) end [2024-12-30 20:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:03:23] Production.INFO: ==1862== Releasing lock... [2024-12-30 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:03:23] Production.INFO: 48 MB #Memory Used# [2024-12-30 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:04:05 [end_date_ymd] => 2024-12-30 20:04:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:04:05' and `end` < '2024-12-30 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-30 20:04:18] Production.INFO: count ==2663 [2024-12-30 20:04:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:04:05 - End Time 2024-12-30 20:04:05 [2024-12-30 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138525', 'tblTempUsageDetail_20' ) start [2024-12-30 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138525', 'tblTempUsageDetail_20' ) end [2024-12-30 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138525', 'tblTempVendorCDR_20' ) start [2024-12-30 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138525', 'tblTempVendorCDR_20' ) end [2024-12-30 20:04:18] Production.INFO: ProcessCDR(1,14138525,1,1,2) [2024-12-30 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138525', 'tblTempUsageDetail_20' ) start [2024-12-30 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138525', 'tblTempUsageDetail_20' ) end [2024-12-30 20:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:04:22] Production.INFO: ==1934== Releasing lock... [2024-12-30 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:04:22] Production.INFO: 48 MB #Memory Used# [2024-12-30 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:05:05 [end_date_ymd] => 2024-12-30 20:05:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:05:05' and `end` < '2024-12-30 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-30 20:05:18] Production.INFO: count ==2659 [2024-12-30 20:05:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:05:05 - End Time 2024-12-30 20:05:05 [2024-12-30 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138530', 'tblTempUsageDetail_20' ) start [2024-12-30 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138530', 'tblTempUsageDetail_20' ) end [2024-12-30 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138530', 'tblTempVendorCDR_20' ) start [2024-12-30 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138530', 'tblTempVendorCDR_20' ) end [2024-12-30 20:05:19] Production.INFO: ProcessCDR(1,14138530,1,1,2) [2024-12-30 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138530', 'tblTempUsageDetail_20' ) start [2024-12-30 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138530', 'tblTempUsageDetail_20' ) end [2024-12-30 20:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:05:22] Production.INFO: ==2009== Releasing lock... [2024-12-30 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:05:22] Production.INFO: 48 MB #Memory Used# [2024-12-30 20:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:06:04 [end_date_ymd] => 2024-12-30 20:06:04 [RateCDR] => 1 ) [2024-12-30 20: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-30 17:06:04' and `end` < '2024-12-30 20: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-30 20:06:17] Production.INFO: count ==2647 [2024-12-30 20:06:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:06:04 - End Time 2024-12-30 20:06:04 [2024-12-30 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138535', 'tblTempUsageDetail_20' ) start [2024-12-30 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138535', 'tblTempUsageDetail_20' ) end [2024-12-30 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138535', 'tblTempVendorCDR_20' ) start [2024-12-30 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138535', 'tblTempVendorCDR_20' ) end [2024-12-30 20:06:18] Production.INFO: ProcessCDR(1,14138535,1,1,2) [2024-12-30 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138535', 'tblTempUsageDetail_20' ) start [2024-12-30 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138535', 'tblTempUsageDetail_20' ) end [2024-12-30 20:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:06:21] Production.INFO: ==2079== Releasing lock... [2024-12-30 20:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:06:21] Production.INFO: 48 MB #Memory Used# [2024-12-30 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:07:04 [end_date_ymd] => 2024-12-30 20:07:04 [RateCDR] => 1 ) [2024-12-30 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:07:04' and `end` < '2024-12-30 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-30 20:07:17] Production.INFO: count ==2640 [2024-12-30 20:07:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:07:04 - End Time 2024-12-30 20:07:04 [2024-12-30 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138540', 'tblTempUsageDetail_20' ) start [2024-12-30 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138540', 'tblTempUsageDetail_20' ) end [2024-12-30 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138540', 'tblTempVendorCDR_20' ) start [2024-12-30 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138540', 'tblTempVendorCDR_20' ) end [2024-12-30 20:07:18] Production.INFO: ProcessCDR(1,14138540,1,1,2) [2024-12-30 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138540', 'tblTempUsageDetail_20' ) start [2024-12-30 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138540', 'tblTempUsageDetail_20' ) end [2024-12-30 20:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:07:21] Production.INFO: ==2188== Releasing lock... [2024-12-30 20:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:07:21] Production.INFO: 47.75 MB #Memory Used# [2024-12-30 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:08:05 [end_date_ymd] => 2024-12-30 20:08:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:08:05' and `end` < '2024-12-30 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-30 20:08:18] Production.INFO: count ==2627 [2024-12-30 20:08:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:08:05 - End Time 2024-12-30 20:08:05 [2024-12-30 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138545', 'tblTempUsageDetail_20' ) start [2024-12-30 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138545', 'tblTempUsageDetail_20' ) end [2024-12-30 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138545', 'tblTempVendorCDR_20' ) start [2024-12-30 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138545', 'tblTempVendorCDR_20' ) end [2024-12-30 20:08:19] Production.INFO: ProcessCDR(1,14138545,1,1,2) [2024-12-30 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138545', 'tblTempUsageDetail_20' ) start [2024-12-30 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138545', 'tblTempUsageDetail_20' ) end [2024-12-30 20:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:08:23] Production.INFO: ==2263== Releasing lock... [2024-12-30 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:08:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-30 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:09:05 [end_date_ymd] => 2024-12-30 20:09:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:09:05' and `end` < '2024-12-30 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-30 20:09:18] Production.INFO: count ==2623 [2024-12-30 20:09:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:09:05 - End Time 2024-12-30 20:09:05 [2024-12-30 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138550', 'tblTempUsageDetail_20' ) start [2024-12-30 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138550', 'tblTempUsageDetail_20' ) end [2024-12-30 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138550', 'tblTempVendorCDR_20' ) start [2024-12-30 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138550', 'tblTempVendorCDR_20' ) end [2024-12-30 20:09:19] Production.INFO: ProcessCDR(1,14138550,1,1,2) [2024-12-30 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138550', 'tblTempUsageDetail_20' ) start [2024-12-30 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138550', 'tblTempUsageDetail_20' ) end [2024-12-30 20:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:09:22] Production.INFO: ==2338== Releasing lock... [2024-12-30 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:09:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-30 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:10:05 [end_date_ymd] => 2024-12-30 20:10:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:10:05' and `end` < '2024-12-30 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-30 20:10:18] Production.INFO: count ==2608 [2024-12-30 20:10:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:10:05 - End Time 2024-12-30 20:10:05 [2024-12-30 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138556', 'tblTempUsageDetail_20' ) start [2024-12-30 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138556', 'tblTempUsageDetail_20' ) end [2024-12-30 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138556', 'tblTempVendorCDR_20' ) start [2024-12-30 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138556', 'tblTempVendorCDR_20' ) end [2024-12-30 20:10:19] Production.INFO: ProcessCDR(1,14138556,1,1,2) [2024-12-30 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138556', 'tblTempUsageDetail_20' ) start [2024-12-30 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138556', 'tblTempUsageDetail_20' ) end [2024-12-30 20:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:10:22] Production.INFO: ==2413== Releasing lock... [2024-12-30 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:10:22] Production.INFO: 47.5 MB #Memory Used# [2024-12-30 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:11:05 [end_date_ymd] => 2024-12-30 20:11:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:11:05' and `end` < '2024-12-30 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-30 20:11:18] Production.INFO: count ==2578 [2024-12-30 20:11:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:11:05 - End Time 2024-12-30 20:11:05 [2024-12-30 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138561', 'tblTempUsageDetail_20' ) start [2024-12-30 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138561', 'tblTempUsageDetail_20' ) end [2024-12-30 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138561', 'tblTempVendorCDR_20' ) start [2024-12-30 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138561', 'tblTempVendorCDR_20' ) end [2024-12-30 20:11:18] Production.INFO: ProcessCDR(1,14138561,1,1,2) [2024-12-30 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138561', 'tblTempUsageDetail_20' ) start [2024-12-30 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138561', 'tblTempUsageDetail_20' ) end [2024-12-30 20:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:11:22] Production.INFO: ==2487== Releasing lock... [2024-12-30 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:11:22] Production.INFO: 47.25 MB #Memory Used# [2024-12-30 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:12:05 [end_date_ymd] => 2024-12-30 20:12:05 [RateCDR] => 1 ) [2024-12-30 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:12:05' and `end` < '2024-12-30 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 20:12:19] Production.INFO: count ==2572 [2024-12-30 20:12:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:12:05 - End Time 2024-12-30 20:12:05 [2024-12-30 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138566', 'tblTempUsageDetail_20' ) start [2024-12-30 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138566', 'tblTempUsageDetail_20' ) end [2024-12-30 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138566', 'tblTempVendorCDR_20' ) start [2024-12-30 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138566', 'tblTempVendorCDR_20' ) end [2024-12-30 20:12:19] Production.INFO: ProcessCDR(1,14138566,1,1,2) [2024-12-30 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138566', 'tblTempUsageDetail_20' ) start [2024-12-30 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138566', 'tblTempUsageDetail_20' ) end [2024-12-30 20:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:12:23] Production.INFO: ==2558== Releasing lock... [2024-12-30 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:12:23] Production.INFO: 47.25 MB #Memory Used# [2024-12-30 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:13:05 [end_date_ymd] => 2024-12-30 20:13:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:13:05' and `end` < '2024-12-30 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-30 20:13:18] Production.INFO: count ==2568 [2024-12-30 20:13:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:13:05 - End Time 2024-12-30 20:13:05 [2024-12-30 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138571', 'tblTempUsageDetail_20' ) start [2024-12-30 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138571', 'tblTempUsageDetail_20' ) end [2024-12-30 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138571', 'tblTempVendorCDR_20' ) start [2024-12-30 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138571', 'tblTempVendorCDR_20' ) end [2024-12-30 20:13:19] Production.INFO: ProcessCDR(1,14138571,1,1,2) [2024-12-30 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138571', 'tblTempUsageDetail_20' ) start [2024-12-30 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138571', 'tblTempUsageDetail_20' ) end [2024-12-30 20:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:13:22] Production.INFO: ==2630== Releasing lock... [2024-12-30 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:13:22] Production.INFO: 47.25 MB #Memory Used# [2024-12-30 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:14:05 [end_date_ymd] => 2024-12-30 20:14:05 [RateCDR] => 1 ) [2024-12-30 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:14:05' and `end` < '2024-12-30 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 20:14:17] Production.INFO: count ==2561 [2024-12-30 20:14:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:14:05 - End Time 2024-12-30 20:14:05 [2024-12-30 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138576', 'tblTempUsageDetail_20' ) start [2024-12-30 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138576', 'tblTempUsageDetail_20' ) end [2024-12-30 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138576', 'tblTempVendorCDR_20' ) start [2024-12-30 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138576', 'tblTempVendorCDR_20' ) end [2024-12-30 20:14:18] Production.INFO: ProcessCDR(1,14138576,1,1,2) [2024-12-30 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138576', 'tblTempUsageDetail_20' ) start [2024-12-30 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138576', 'tblTempUsageDetail_20' ) end [2024-12-30 20:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:14:21] Production.INFO: ==2700== Releasing lock... [2024-12-30 20:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:14:21] Production.INFO: 47 MB #Memory Used# [2024-12-30 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:15:05 [end_date_ymd] => 2024-12-30 20:15:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:15:05' and `end` < '2024-12-30 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-30 20:15:17] Production.INFO: count ==2559 [2024-12-30 20:15:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:15:05 - End Time 2024-12-30 20:15:05 [2024-12-30 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138581', 'tblTempUsageDetail_20' ) start [2024-12-30 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138581', 'tblTempUsageDetail_20' ) end [2024-12-30 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138581', 'tblTempVendorCDR_20' ) start [2024-12-30 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138581', 'tblTempVendorCDR_20' ) end [2024-12-30 20:15:18] Production.INFO: ProcessCDR(1,14138581,1,1,2) [2024-12-30 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138581', 'tblTempUsageDetail_20' ) start [2024-12-30 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138581', 'tblTempUsageDetail_20' ) end [2024-12-30 20:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:15:22] Production.INFO: ==2771== Releasing lock... [2024-12-30 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:15:22] Production.INFO: 47.25 MB #Memory Used# [2024-12-30 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:16:05 [end_date_ymd] => 2024-12-30 20:16:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:16:05' and `end` < '2024-12-30 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-30 20:16:18] Production.INFO: count ==2556 [2024-12-30 20:16:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:16:05 - End Time 2024-12-30 20:16:05 [2024-12-30 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138586', 'tblTempUsageDetail_20' ) start [2024-12-30 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138586', 'tblTempUsageDetail_20' ) end [2024-12-30 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138586', 'tblTempVendorCDR_20' ) start [2024-12-30 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138586', 'tblTempVendorCDR_20' ) end [2024-12-30 20:16:19] Production.INFO: ProcessCDR(1,14138586,1,1,2) [2024-12-30 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138586', 'tblTempUsageDetail_20' ) start [2024-12-30 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138586', 'tblTempUsageDetail_20' ) end [2024-12-30 20:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:16:22] Production.INFO: ==2843== Releasing lock... [2024-12-30 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:16:22] Production.INFO: 47.25 MB #Memory Used# [2024-12-30 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:17:05 [end_date_ymd] => 2024-12-30 20:17:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:17:05' and `end` < '2024-12-30 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-30 20:17:18] Production.INFO: count ==2561 [2024-12-30 20:17:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:17:05 - End Time 2024-12-30 20:17:05 [2024-12-30 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138591', 'tblTempUsageDetail_20' ) start [2024-12-30 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138591', 'tblTempUsageDetail_20' ) end [2024-12-30 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138591', 'tblTempVendorCDR_20' ) start [2024-12-30 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138591', 'tblTempVendorCDR_20' ) end [2024-12-30 20:17:19] Production.INFO: ProcessCDR(1,14138591,1,1,2) [2024-12-30 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138591', 'tblTempUsageDetail_20' ) start [2024-12-30 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138591', 'tblTempUsageDetail_20' ) end [2024-12-30 20:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:17:22] Production.INFO: ==2925== Releasing lock... [2024-12-30 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:17:22] Production.INFO: 47.25 MB #Memory Used# [2024-12-30 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:18:05 [end_date_ymd] => 2024-12-30 20:18:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:18:05' and `end` < '2024-12-30 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-30 20:18:18] Production.INFO: count ==2568 [2024-12-30 20:18:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:18:05 - End Time 2024-12-30 20:18:05 [2024-12-30 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138596', 'tblTempUsageDetail_20' ) start [2024-12-30 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138596', 'tblTempUsageDetail_20' ) end [2024-12-30 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138596', 'tblTempVendorCDR_20' ) start [2024-12-30 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138596', 'tblTempVendorCDR_20' ) end [2024-12-30 20:18:19] Production.INFO: ProcessCDR(1,14138596,1,1,2) [2024-12-30 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138596', 'tblTempUsageDetail_20' ) start [2024-12-30 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138596', 'tblTempUsageDetail_20' ) end [2024-12-30 20:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:18:22] Production.INFO: ==2998== Releasing lock... [2024-12-30 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:18:22] Production.INFO: 47.25 MB #Memory Used# [2024-12-30 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:19:05 [end_date_ymd] => 2024-12-30 20:19:05 [RateCDR] => 1 ) [2024-12-30 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:19:05' and `end` < '2024-12-30 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 20:19:18] Production.INFO: count ==2568 [2024-12-30 20:19:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:19:05 - End Time 2024-12-30 20:19:05 [2024-12-30 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138601', 'tblTempUsageDetail_20' ) start [2024-12-30 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138601', 'tblTempUsageDetail_20' ) end [2024-12-30 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138601', 'tblTempVendorCDR_20' ) start [2024-12-30 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138601', 'tblTempVendorCDR_20' ) end [2024-12-30 20:19:19] Production.INFO: ProcessCDR(1,14138601,1,1,2) [2024-12-30 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138601', 'tblTempUsageDetail_20' ) start [2024-12-30 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138601', 'tblTempUsageDetail_20' ) end [2024-12-30 20:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:19:23] Production.INFO: ==3073== Releasing lock... [2024-12-30 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:19:23] Production.INFO: 47.25 MB #Memory Used# [2024-12-30 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:20:06 [end_date_ymd] => 2024-12-30 20:20:06 [RateCDR] => 1 ) [2024-12-30 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:20:06' and `end` < '2024-12-30 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 20:20:19] Production.INFO: count ==2562 [2024-12-30 20:20:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:20:06 - End Time 2024-12-30 20:20:06 [2024-12-30 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138607', 'tblTempUsageDetail_20' ) start [2024-12-30 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138607', 'tblTempUsageDetail_20' ) end [2024-12-30 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138607', 'tblTempVendorCDR_20' ) start [2024-12-30 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138607', 'tblTempVendorCDR_20' ) end [2024-12-30 20:20:19] Production.INFO: ProcessCDR(1,14138607,1,1,2) [2024-12-30 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138607', 'tblTempUsageDetail_20' ) start [2024-12-30 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138607', 'tblTempUsageDetail_20' ) end [2024-12-30 20:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:20:24] Production.INFO: ==3146== Releasing lock... [2024-12-30 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:20:24] Production.INFO: 47 MB #Memory Used# [2024-12-30 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:21:05 [end_date_ymd] => 2024-12-30 20:21:05 [RateCDR] => 1 ) [2024-12-30 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:21:05' and `end` < '2024-12-30 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 20:21:18] Production.INFO: count ==2565 [2024-12-30 20:21:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:21:05 - End Time 2024-12-30 20:21:05 [2024-12-30 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138612', 'tblTempUsageDetail_20' ) start [2024-12-30 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138612', 'tblTempUsageDetail_20' ) end [2024-12-30 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138612', 'tblTempVendorCDR_20' ) start [2024-12-30 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138612', 'tblTempVendorCDR_20' ) end [2024-12-30 20:21:18] Production.INFO: ProcessCDR(1,14138612,1,1,2) [2024-12-30 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138612', 'tblTempUsageDetail_20' ) start [2024-12-30 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138612', 'tblTempUsageDetail_20' ) end [2024-12-30 20:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:21:23] Production.INFO: ==3218== Releasing lock... [2024-12-30 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:21:23] Production.INFO: 47 MB #Memory Used# [2024-12-30 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:22:05 [end_date_ymd] => 2024-12-30 20:22:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:22:05' and `end` < '2024-12-30 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-30 20:22:18] Production.INFO: count ==2563 [2024-12-30 20:22:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:22:05 - End Time 2024-12-30 20:22:05 [2024-12-30 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138617', 'tblTempUsageDetail_20' ) start [2024-12-30 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138617', 'tblTempUsageDetail_20' ) end [2024-12-30 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138617', 'tblTempVendorCDR_20' ) start [2024-12-30 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138617', 'tblTempVendorCDR_20' ) end [2024-12-30 20:22:20] Production.INFO: ProcessCDR(1,14138617,1,1,2) [2024-12-30 20:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138617', 'tblTempUsageDetail_20' ) start [2024-12-30 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138617', 'tblTempUsageDetail_20' ) end [2024-12-30 20:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:22:24] Production.INFO: ==3289== Releasing lock... [2024-12-30 20:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:22:24] Production.INFO: 47.25 MB #Memory Used# [2024-12-30 20:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:23:04 [end_date_ymd] => 2024-12-30 20:23:04 [RateCDR] => 1 ) [2024-12-30 20: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-30 17:23:04' and `end` < '2024-12-30 20: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-30 20:23:18] Production.INFO: count ==2569 [2024-12-30 20:23:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:23:04 - End Time 2024-12-30 20:23:04 [2024-12-30 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138622', 'tblTempUsageDetail_20' ) start [2024-12-30 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138622', 'tblTempUsageDetail_20' ) end [2024-12-30 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138622', 'tblTempVendorCDR_20' ) start [2024-12-30 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138622', 'tblTempVendorCDR_20' ) end [2024-12-30 20:23:19] Production.INFO: ProcessCDR(1,14138622,1,1,2) [2024-12-30 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138622', 'tblTempUsageDetail_20' ) start [2024-12-30 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138622', 'tblTempUsageDetail_20' ) end [2024-12-30 20:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:23:22] Production.INFO: ==3416== Releasing lock... [2024-12-30 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:23:22] Production.INFO: 47 MB #Memory Used# [2024-12-30 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:24:05 [end_date_ymd] => 2024-12-30 20:24:05 [RateCDR] => 1 ) [2024-12-30 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:24:05' and `end` < '2024-12-30 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 20:24:19] Production.INFO: count ==2555 [2024-12-30 20:24:20] Production.ERROR: pbx CDR StartTime 2024-12-30 17:24:05 - End Time 2024-12-30 20:24:05 [2024-12-30 20:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138627', 'tblTempUsageDetail_20' ) start [2024-12-30 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138627', 'tblTempUsageDetail_20' ) end [2024-12-30 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138627', 'tblTempVendorCDR_20' ) start [2024-12-30 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138627', 'tblTempVendorCDR_20' ) end [2024-12-30 20:24:20] Production.INFO: ProcessCDR(1,14138627,1,1,2) [2024-12-30 20:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138627', 'tblTempUsageDetail_20' ) start [2024-12-30 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138627', 'tblTempUsageDetail_20' ) end [2024-12-30 20:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:24:23] Production.INFO: ==3489== Releasing lock... [2024-12-30 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:24:23] Production.INFO: 47.25 MB #Memory Used# [2024-12-30 20:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:25:04 [end_date_ymd] => 2024-12-30 20:25:04 [RateCDR] => 1 ) [2024-12-30 20: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-30 17:25:04' and `end` < '2024-12-30 20: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-30 20:25:17] Production.INFO: count ==2550 [2024-12-30 20:25:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:25:04 - End Time 2024-12-30 20:25:04 [2024-12-30 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138632', 'tblTempUsageDetail_20' ) start [2024-12-30 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138632', 'tblTempUsageDetail_20' ) end [2024-12-30 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138632', 'tblTempVendorCDR_20' ) start [2024-12-30 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138632', 'tblTempVendorCDR_20' ) end [2024-12-30 20:25:18] Production.INFO: ProcessCDR(1,14138632,1,1,2) [2024-12-30 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138632', 'tblTempUsageDetail_20' ) start [2024-12-30 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138632', 'tblTempUsageDetail_20' ) end [2024-12-30 20:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:25:21] Production.INFO: ==3561== Releasing lock... [2024-12-30 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:25:21] Production.INFO: 47.25 MB #Memory Used# [2024-12-30 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:26:05 [end_date_ymd] => 2024-12-30 20:26:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:26:05' and `end` < '2024-12-30 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-30 20:26:17] Production.INFO: count ==2549 [2024-12-30 20:26:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:26:05 - End Time 2024-12-30 20:26:05 [2024-12-30 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138637', 'tblTempUsageDetail_20' ) start [2024-12-30 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138637', 'tblTempUsageDetail_20' ) end [2024-12-30 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138637', 'tblTempVendorCDR_20' ) start [2024-12-30 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138637', 'tblTempVendorCDR_20' ) end [2024-12-30 20:26:18] Production.INFO: ProcessCDR(1,14138637,1,1,2) [2024-12-30 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138637', 'tblTempUsageDetail_20' ) start [2024-12-30 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138637', 'tblTempUsageDetail_20' ) end [2024-12-30 20:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:26:21] Production.INFO: ==3635== Releasing lock... [2024-12-30 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:26:21] Production.INFO: 47.25 MB #Memory Used# [2024-12-30 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:27:05 [end_date_ymd] => 2024-12-30 20:27:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:27:05' and `end` < '2024-12-30 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-30 20:27:18] Production.INFO: count ==2532 [2024-12-30 20:27:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:27:05 - End Time 2024-12-30 20:27:05 [2024-12-30 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138642', 'tblTempUsageDetail_20' ) start [2024-12-30 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138642', 'tblTempUsageDetail_20' ) end [2024-12-30 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138642', 'tblTempVendorCDR_20' ) start [2024-12-30 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138642', 'tblTempVendorCDR_20' ) end [2024-12-30 20:27:19] Production.INFO: ProcessCDR(1,14138642,1,1,2) [2024-12-30 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138642', 'tblTempUsageDetail_20' ) start [2024-12-30 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138642', 'tblTempUsageDetail_20' ) end [2024-12-30 20:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:27:22] Production.INFO: ==3708== Releasing lock... [2024-12-30 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:27:22] Production.INFO: 47 MB #Memory Used# [2024-12-30 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:28:05 [end_date_ymd] => 2024-12-30 20:28:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:28:05' and `end` < '2024-12-30 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-30 20:28:18] Production.INFO: count ==2530 [2024-12-30 20:28:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:28:05 - End Time 2024-12-30 20:28:05 [2024-12-30 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138647', 'tblTempUsageDetail_20' ) start [2024-12-30 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138647', 'tblTempUsageDetail_20' ) end [2024-12-30 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138647', 'tblTempVendorCDR_20' ) start [2024-12-30 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138647', 'tblTempVendorCDR_20' ) end [2024-12-30 20:28:18] Production.INFO: ProcessCDR(1,14138647,1,1,2) [2024-12-30 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138647', 'tblTempUsageDetail_20' ) start [2024-12-30 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138647', 'tblTempUsageDetail_20' ) end [2024-12-30 20:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:28:21] Production.INFO: ==3779== Releasing lock... [2024-12-30 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:28:21] Production.INFO: 47 MB #Memory Used# [2024-12-30 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:29:05 [end_date_ymd] => 2024-12-30 20:29:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:29:05' and `end` < '2024-12-30 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-30 20:29:18] Production.INFO: count ==2530 [2024-12-30 20:29:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:29:05 - End Time 2024-12-30 20:29:05 [2024-12-30 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138652', 'tblTempUsageDetail_20' ) start [2024-12-30 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138652', 'tblTempUsageDetail_20' ) end [2024-12-30 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138652', 'tblTempVendorCDR_20' ) start [2024-12-30 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138652', 'tblTempVendorCDR_20' ) end [2024-12-30 20:29:18] Production.INFO: ProcessCDR(1,14138652,1,1,2) [2024-12-30 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138652', 'tblTempUsageDetail_20' ) start [2024-12-30 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138652', 'tblTempUsageDetail_20' ) end [2024-12-30 20:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:29:22] Production.INFO: ==3849== Releasing lock... [2024-12-30 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:29:22] Production.INFO: 47 MB #Memory Used# [2024-12-30 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:30:05 [end_date_ymd] => 2024-12-30 20:30:05 [RateCDR] => 1 ) [2024-12-30 20: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-30 17:30:05' and `end` < '2024-12-30 20: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-30 20:30:18] Production.INFO: count ==2534 [2024-12-30 20:30:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:30:05 - End Time 2024-12-30 20:30:05 [2024-12-30 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138658', 'tblTempUsageDetail_20' ) start [2024-12-30 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138658', 'tblTempUsageDetail_20' ) end [2024-12-30 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138658', 'tblTempVendorCDR_20' ) start [2024-12-30 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138658', 'tblTempVendorCDR_20' ) end [2024-12-30 20:30:18] Production.INFO: ProcessCDR(1,14138658,1,1,2) [2024-12-30 20:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138658', 'tblTempUsageDetail_20' ) start [2024-12-30 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138658', 'tblTempUsageDetail_20' ) end [2024-12-30 20:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:30:22] Production.INFO: ==3924== Releasing lock... [2024-12-30 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:30:22] Production.INFO: 47 MB #Memory Used# [2024-12-30 20:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:31:04 [end_date_ymd] => 2024-12-30 20:31:04 [RateCDR] => 1 ) [2024-12-30 20: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-30 17:31:04' and `end` < '2024-12-30 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-30 20:31:18] Production.INFO: count ==2514 [2024-12-30 20:31:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:31:04 - End Time 2024-12-30 20:31:04 [2024-12-30 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138663', 'tblTempUsageDetail_20' ) start [2024-12-30 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138663', 'tblTempUsageDetail_20' ) end [2024-12-30 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138663', 'tblTempVendorCDR_20' ) start [2024-12-30 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138663', 'tblTempVendorCDR_20' ) end [2024-12-30 20:31:19] Production.INFO: ProcessCDR(1,14138663,1,1,2) [2024-12-30 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138663', 'tblTempUsageDetail_20' ) start [2024-12-30 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138663', 'tblTempUsageDetail_20' ) end [2024-12-30 20:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:31:22] Production.INFO: ==3997== Releasing lock... [2024-12-30 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:31:22] Production.INFO: 47 MB #Memory Used# [2024-12-30 20:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:32:04 [end_date_ymd] => 2024-12-30 20:32:04 [RateCDR] => 1 ) [2024-12-30 20: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-30 17:32:04' and `end` < '2024-12-30 20: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-30 20:32:18] Production.INFO: count ==2506 [2024-12-30 20:32:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:32:04 - End Time 2024-12-30 20:32:04 [2024-12-30 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138668', 'tblTempUsageDetail_20' ) start [2024-12-30 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138668', 'tblTempUsageDetail_20' ) end [2024-12-30 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138668', 'tblTempVendorCDR_20' ) start [2024-12-30 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138668', 'tblTempVendorCDR_20' ) end [2024-12-30 20:32:18] Production.INFO: ProcessCDR(1,14138668,1,1,2) [2024-12-30 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138668', 'tblTempUsageDetail_20' ) start [2024-12-30 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138668', 'tblTempUsageDetail_20' ) end [2024-12-30 20:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:32:22] Production.INFO: ==4070== Releasing lock... [2024-12-30 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:32:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:33:05 [end_date_ymd] => 2024-12-30 20:33:05 [RateCDR] => 1 ) [2024-12-30 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:33:05' and `end` < '2024-12-30 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 20:33:17] Production.INFO: count ==2507 [2024-12-30 20:33:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:33:05 - End Time 2024-12-30 20:33:05 [2024-12-30 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138673', 'tblTempUsageDetail_20' ) start [2024-12-30 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138673', 'tblTempUsageDetail_20' ) end [2024-12-30 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138673', 'tblTempVendorCDR_20' ) start [2024-12-30 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138673', 'tblTempVendorCDR_20' ) end [2024-12-30 20:33:18] Production.INFO: ProcessCDR(1,14138673,1,1,2) [2024-12-30 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138673', 'tblTempUsageDetail_20' ) start [2024-12-30 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138673', 'tblTempUsageDetail_20' ) end [2024-12-30 20:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:33:21] Production.INFO: ==4142== Releasing lock... [2024-12-30 20:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:33:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:34:05 [end_date_ymd] => 2024-12-30 20:34:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:34:05' and `end` < '2024-12-30 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-30 20:34:17] Production.INFO: count ==2500 [2024-12-30 20:34:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:34:05 - End Time 2024-12-30 20:34:05 [2024-12-30 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138678', 'tblTempUsageDetail_20' ) start [2024-12-30 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138678', 'tblTempUsageDetail_20' ) end [2024-12-30 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138678', 'tblTempVendorCDR_20' ) start [2024-12-30 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138678', 'tblTempVendorCDR_20' ) end [2024-12-30 20:34:18] Production.INFO: ProcessCDR(1,14138678,1,1,2) [2024-12-30 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138678', 'tblTempUsageDetail_20' ) start [2024-12-30 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138678', 'tblTempUsageDetail_20' ) end [2024-12-30 20:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:34:23] Production.INFO: ==4218== Releasing lock... [2024-12-30 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:34:23] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:35:05 [end_date_ymd] => 2024-12-30 20:35:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:35:05' and `end` < '2024-12-30 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-30 20:35:18] Production.INFO: count ==2499 [2024-12-30 20:35:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:35:05 - End Time 2024-12-30 20:35:05 [2024-12-30 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138683', 'tblTempUsageDetail_20' ) start [2024-12-30 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138683', 'tblTempUsageDetail_20' ) end [2024-12-30 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138683', 'tblTempVendorCDR_20' ) start [2024-12-30 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138683', 'tblTempVendorCDR_20' ) end [2024-12-30 20:35:19] Production.INFO: ProcessCDR(1,14138683,1,1,2) [2024-12-30 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138683', 'tblTempUsageDetail_20' ) start [2024-12-30 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138683', 'tblTempUsageDetail_20' ) end [2024-12-30 20:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:35:22] Production.INFO: ==4297== Releasing lock... [2024-12-30 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:35:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:36:05 [end_date_ymd] => 2024-12-30 20:36:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:36:05' and `end` < '2024-12-30 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-30 20:36:18] Production.INFO: count ==2497 [2024-12-30 20:36:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:36:05 - End Time 2024-12-30 20:36:05 [2024-12-30 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138688', 'tblTempUsageDetail_20' ) start [2024-12-30 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138688', 'tblTempUsageDetail_20' ) end [2024-12-30 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138688', 'tblTempVendorCDR_20' ) start [2024-12-30 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138688', 'tblTempVendorCDR_20' ) end [2024-12-30 20:36:19] Production.INFO: ProcessCDR(1,14138688,1,1,2) [2024-12-30 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138688', 'tblTempUsageDetail_20' ) start [2024-12-30 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138688', 'tblTempUsageDetail_20' ) end [2024-12-30 20:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:36:22] Production.INFO: ==4376== Releasing lock... [2024-12-30 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:36:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:37:04 [end_date_ymd] => 2024-12-30 20:37:04 [RateCDR] => 1 ) [2024-12-30 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:37:04' and `end` < '2024-12-30 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-30 20:37:18] Production.INFO: count ==2494 [2024-12-30 20:37:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:37:04 - End Time 2024-12-30 20:37:04 [2024-12-30 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138693', 'tblTempUsageDetail_20' ) start [2024-12-30 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138693', 'tblTempUsageDetail_20' ) end [2024-12-30 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138693', 'tblTempVendorCDR_20' ) start [2024-12-30 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138693', 'tblTempVendorCDR_20' ) end [2024-12-30 20:37:19] Production.INFO: ProcessCDR(1,14138693,1,1,2) [2024-12-30 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138693', 'tblTempUsageDetail_20' ) start [2024-12-30 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138693', 'tblTempUsageDetail_20' ) end [2024-12-30 20:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:37:22] Production.INFO: ==4454== Releasing lock... [2024-12-30 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:37:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:38:05 [end_date_ymd] => 2024-12-30 20:38:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:38:05' and `end` < '2024-12-30 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-30 20:38:18] Production.INFO: count ==2498 [2024-12-30 20:38:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:38:05 - End Time 2024-12-30 20:38:05 [2024-12-30 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138698', 'tblTempUsageDetail_20' ) start [2024-12-30 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138698', 'tblTempUsageDetail_20' ) end [2024-12-30 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138698', 'tblTempVendorCDR_20' ) start [2024-12-30 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138698', 'tblTempVendorCDR_20' ) end [2024-12-30 20:38:19] Production.INFO: ProcessCDR(1,14138698,1,1,2) [2024-12-30 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138698', 'tblTempUsageDetail_20' ) start [2024-12-30 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138698', 'tblTempUsageDetail_20' ) end [2024-12-30 20:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:38:22] Production.INFO: ==4578== Releasing lock... [2024-12-30 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:38:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 20:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:39:04 [end_date_ymd] => 2024-12-30 20:39:04 [RateCDR] => 1 ) [2024-12-30 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-30 17:39:04' and `end` < '2024-12-30 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-30 20:39:17] Production.INFO: count ==2503 [2024-12-30 20:39:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:39:04 - End Time 2024-12-30 20:39:04 [2024-12-30 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138703', 'tblTempUsageDetail_20' ) start [2024-12-30 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138703', 'tblTempUsageDetail_20' ) end [2024-12-30 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138703', 'tblTempVendorCDR_20' ) start [2024-12-30 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138703', 'tblTempVendorCDR_20' ) end [2024-12-30 20:39:18] Production.INFO: ProcessCDR(1,14138703,1,1,2) [2024-12-30 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138703', 'tblTempUsageDetail_20' ) start [2024-12-30 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138703', 'tblTempUsageDetail_20' ) end [2024-12-30 20:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:39:21] Production.INFO: ==4659== Releasing lock... [2024-12-30 20:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:39:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:40:05 [end_date_ymd] => 2024-12-30 20:40:05 [RateCDR] => 1 ) [2024-12-30 20:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:40:05' and `end` < '2024-12-30 20:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 20:40:18] Production.INFO: count ==2507 [2024-12-30 20:40:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:40:05 - End Time 2024-12-30 20:40:05 [2024-12-30 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138708', 'tblTempUsageDetail_20' ) start [2024-12-30 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138708', 'tblTempUsageDetail_20' ) end [2024-12-30 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138708', 'tblTempVendorCDR_20' ) start [2024-12-30 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138708', 'tblTempVendorCDR_20' ) end [2024-12-30 20:40:19] Production.INFO: ProcessCDR(1,14138708,1,1,2) [2024-12-30 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138708', 'tblTempUsageDetail_20' ) start [2024-12-30 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138708', 'tblTempUsageDetail_20' ) end [2024-12-30 20:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:40:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:40:24] Production.INFO: ==4740== Releasing lock... [2024-12-30 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:40:24] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:41:05 [end_date_ymd] => 2024-12-30 20:41:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:41:05' and `end` < '2024-12-30 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-30 20:41:18] Production.INFO: count ==2494 [2024-12-30 20:41:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:41:05 - End Time 2024-12-30 20:41:05 [2024-12-30 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138714', 'tblTempUsageDetail_20' ) start [2024-12-30 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138714', 'tblTempUsageDetail_20' ) end [2024-12-30 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138714', 'tblTempVendorCDR_20' ) start [2024-12-30 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138714', 'tblTempVendorCDR_20' ) end [2024-12-30 20:41:19] Production.INFO: ProcessCDR(1,14138714,1,1,2) [2024-12-30 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138714', 'tblTempUsageDetail_20' ) start [2024-12-30 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138714', 'tblTempUsageDetail_20' ) end [2024-12-30 20:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:41:22] Production.INFO: ==4830== Releasing lock... [2024-12-30 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:41:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:42:05 [end_date_ymd] => 2024-12-30 20:42:05 [RateCDR] => 1 ) [2024-12-30 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:42:05' and `end` < '2024-12-30 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 20:42:17] Production.INFO: count ==2501 [2024-12-30 20:42:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:42:05 - End Time 2024-12-30 20:42:05 [2024-12-30 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138719', 'tblTempUsageDetail_20' ) start [2024-12-30 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138719', 'tblTempUsageDetail_20' ) end [2024-12-30 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138719', 'tblTempVendorCDR_20' ) start [2024-12-30 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138719', 'tblTempVendorCDR_20' ) end [2024-12-30 20:42:18] Production.INFO: ProcessCDR(1,14138719,1,1,2) [2024-12-30 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138719', 'tblTempUsageDetail_20' ) start [2024-12-30 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138719', 'tblTempUsageDetail_20' ) end [2024-12-30 20:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:42:21] Production.INFO: ==4909== Releasing lock... [2024-12-30 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:42:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:43:05 [end_date_ymd] => 2024-12-30 20:43:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:43:05' and `end` < '2024-12-30 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-30 20:43:18] Production.INFO: count ==2504 [2024-12-30 20:43:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:43:05 - End Time 2024-12-30 20:43:05 [2024-12-30 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138724', 'tblTempUsageDetail_20' ) start [2024-12-30 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138724', 'tblTempUsageDetail_20' ) end [2024-12-30 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138724', 'tblTempVendorCDR_20' ) start [2024-12-30 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138724', 'tblTempVendorCDR_20' ) end [2024-12-30 20:43:19] Production.INFO: ProcessCDR(1,14138724,1,1,2) [2024-12-30 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138724', 'tblTempUsageDetail_20' ) start [2024-12-30 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138724', 'tblTempUsageDetail_20' ) end [2024-12-30 20:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:43:22] Production.INFO: ==4992== Releasing lock... [2024-12-30 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:43:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 20:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:44:04 [end_date_ymd] => 2024-12-30 20:44:04 [RateCDR] => 1 ) [2024-12-30 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-30 17:44:04' and `end` < '2024-12-30 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-30 20:44:18] Production.INFO: count ==2506 [2024-12-30 20:44:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:44:04 - End Time 2024-12-30 20:44:04 [2024-12-30 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138729', 'tblTempUsageDetail_20' ) start [2024-12-30 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138729', 'tblTempUsageDetail_20' ) end [2024-12-30 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138729', 'tblTempVendorCDR_20' ) start [2024-12-30 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138729', 'tblTempVendorCDR_20' ) end [2024-12-30 20:44:19] Production.INFO: ProcessCDR(1,14138729,1,1,2) [2024-12-30 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138729', 'tblTempUsageDetail_20' ) start [2024-12-30 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138729', 'tblTempUsageDetail_20' ) end [2024-12-30 20:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:44:22] Production.INFO: ==5068== Releasing lock... [2024-12-30 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:44:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:45:05 [end_date_ymd] => 2024-12-30 20:45:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:45:05' and `end` < '2024-12-30 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-30 20:45:18] Production.INFO: count ==2505 [2024-12-30 20:45:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:45:05 - End Time 2024-12-30 20:45:05 [2024-12-30 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138734', 'tblTempUsageDetail_20' ) start [2024-12-30 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138734', 'tblTempUsageDetail_20' ) end [2024-12-30 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138734', 'tblTempVendorCDR_20' ) start [2024-12-30 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138734', 'tblTempVendorCDR_20' ) end [2024-12-30 20:45:19] Production.INFO: ProcessCDR(1,14138734,1,1,2) [2024-12-30 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138734', 'tblTempUsageDetail_20' ) start [2024-12-30 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138734', 'tblTempUsageDetail_20' ) end [2024-12-30 20:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:45:22] Production.INFO: ==5147== Releasing lock... [2024-12-30 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:45:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:46:05 [end_date_ymd] => 2024-12-30 20:46:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:46:05' and `end` < '2024-12-30 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-30 20:46:18] Production.INFO: count ==2505 [2024-12-30 20:46:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:46:05 - End Time 2024-12-30 20:46:05 [2024-12-30 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138739', 'tblTempUsageDetail_20' ) start [2024-12-30 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138739', 'tblTempUsageDetail_20' ) end [2024-12-30 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138739', 'tblTempVendorCDR_20' ) start [2024-12-30 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138739', 'tblTempVendorCDR_20' ) end [2024-12-30 20:46:18] Production.INFO: ProcessCDR(1,14138739,1,1,2) [2024-12-30 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138739', 'tblTempUsageDetail_20' ) start [2024-12-30 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138739', 'tblTempUsageDetail_20' ) end [2024-12-30 20:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:46:21] Production.INFO: ==5225== Releasing lock... [2024-12-30 20:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:46:21] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:47:06 [end_date_ymd] => 2024-12-30 20:47:06 [RateCDR] => 1 ) [2024-12-30 20:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:47:06' and `end` < '2024-12-30 20:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 20:47:20] Production.INFO: count ==2505 [2024-12-30 20:47:20] Production.ERROR: pbx CDR StartTime 2024-12-30 17:47:06 - End Time 2024-12-30 20:47:06 [2024-12-30 20:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138744', 'tblTempUsageDetail_20' ) start [2024-12-30 20:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138744', 'tblTempUsageDetail_20' ) end [2024-12-30 20:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138744', 'tblTempVendorCDR_20' ) start [2024-12-30 20:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138744', 'tblTempVendorCDR_20' ) end [2024-12-30 20:47:21] Production.INFO: ProcessCDR(1,14138744,1,1,2) [2024-12-30 20:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138744', 'tblTempUsageDetail_20' ) start [2024-12-30 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138744', 'tblTempUsageDetail_20' ) end [2024-12-30 20:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:47:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:47:24] Production.INFO: ==5297== Releasing lock... [2024-12-30 20:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:47:24] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:48:05 [end_date_ymd] => 2024-12-30 20:48:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:48:05' and `end` < '2024-12-30 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-30 20:48:17] Production.INFO: count ==2490 [2024-12-30 20:48:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:48:05 - End Time 2024-12-30 20:48:05 [2024-12-30 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138749', 'tblTempUsageDetail_20' ) start [2024-12-30 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138749', 'tblTempUsageDetail_20' ) end [2024-12-30 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138749', 'tblTempVendorCDR_20' ) start [2024-12-30 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138749', 'tblTempVendorCDR_20' ) end [2024-12-30 20:48:18] Production.INFO: ProcessCDR(1,14138749,1,1,2) [2024-12-30 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138749', 'tblTempUsageDetail_20' ) start [2024-12-30 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138749', 'tblTempUsageDetail_20' ) end [2024-12-30 20:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:48:22] Production.INFO: ==5367== Releasing lock... [2024-12-30 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:48:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:49:05 [end_date_ymd] => 2024-12-30 20:49:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:49:05' and `end` < '2024-12-30 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-30 20:49:18] Production.INFO: count ==2477 [2024-12-30 20:49:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:49:05 - End Time 2024-12-30 20:49:05 [2024-12-30 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138754', 'tblTempUsageDetail_20' ) start [2024-12-30 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138754', 'tblTempUsageDetail_20' ) end [2024-12-30 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138754', 'tblTempVendorCDR_20' ) start [2024-12-30 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138754', 'tblTempVendorCDR_20' ) end [2024-12-30 20:49:19] Production.INFO: ProcessCDR(1,14138754,1,1,2) [2024-12-30 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138754', 'tblTempUsageDetail_20' ) start [2024-12-30 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138754', 'tblTempUsageDetail_20' ) end [2024-12-30 20:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:49:22] Production.INFO: ==5438== Releasing lock... [2024-12-30 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:49:22] Production.INFO: 46.5 MB #Memory Used# [2024-12-30 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:50:06 [end_date_ymd] => 2024-12-30 20:50:06 [RateCDR] => 1 ) [2024-12-30 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-30 17:50:06' and `end` < '2024-12-30 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-30 20:50:18] Production.INFO: count ==2479 [2024-12-30 20:50:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:50:06 - End Time 2024-12-30 20:50:06 [2024-12-30 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138760', 'tblTempUsageDetail_20' ) start [2024-12-30 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138760', 'tblTempUsageDetail_20' ) end [2024-12-30 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138760', 'tblTempVendorCDR_20' ) start [2024-12-30 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138760', 'tblTempVendorCDR_20' ) end [2024-12-30 20:50:19] Production.INFO: ProcessCDR(1,14138760,1,1,2) [2024-12-30 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138760', 'tblTempUsageDetail_20' ) start [2024-12-30 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138760', 'tblTempUsageDetail_20' ) end [2024-12-30 20:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:50:22] Production.INFO: ==5510== Releasing lock... [2024-12-30 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:50:22] Production.INFO: 46.75 MB #Memory Used# [2024-12-30 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:51:05 [end_date_ymd] => 2024-12-30 20:51:05 [RateCDR] => 1 ) [2024-12-30 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:51:05' and `end` < '2024-12-30 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 20:51:18] Production.INFO: count ==2463 [2024-12-30 20:51:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:51:05 - End Time 2024-12-30 20:51:05 [2024-12-30 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138765', 'tblTempUsageDetail_20' ) start [2024-12-30 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138765', 'tblTempUsageDetail_20' ) end [2024-12-30 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138765', 'tblTempVendorCDR_20' ) start [2024-12-30 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138765', 'tblTempVendorCDR_20' ) end [2024-12-30 20:51:19] Production.INFO: ProcessCDR(1,14138765,1,1,2) [2024-12-30 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138765', 'tblTempUsageDetail_20' ) start [2024-12-30 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138765', 'tblTempUsageDetail_20' ) end [2024-12-30 20:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:51:22] Production.INFO: ==5586== Releasing lock... [2024-12-30 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:51:22] Production.INFO: 46.5 MB #Memory Used# [2024-12-30 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:52:05 [end_date_ymd] => 2024-12-30 20:52:05 [RateCDR] => 1 ) [2024-12-30 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:52:05' and `end` < '2024-12-30 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 20:52:18] Production.INFO: count ==2459 [2024-12-30 20:52:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:52:05 - End Time 2024-12-30 20:52:05 [2024-12-30 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138770', 'tblTempUsageDetail_20' ) start [2024-12-30 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138770', 'tblTempUsageDetail_20' ) end [2024-12-30 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138770', 'tblTempVendorCDR_20' ) start [2024-12-30 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138770', 'tblTempVendorCDR_20' ) end [2024-12-30 20:52:19] Production.INFO: ProcessCDR(1,14138770,1,1,2) [2024-12-30 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138770', 'tblTempUsageDetail_20' ) start [2024-12-30 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138770', 'tblTempUsageDetail_20' ) end [2024-12-30 20:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:52:22] Production.INFO: ==5657== Releasing lock... [2024-12-30 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:52:22] Production.INFO: 46.5 MB #Memory Used# [2024-12-30 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:53:05 [end_date_ymd] => 2024-12-30 20:53:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:53:05' and `end` < '2024-12-30 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-30 20:53:19] Production.INFO: count ==2452 [2024-12-30 20:53:20] Production.ERROR: pbx CDR StartTime 2024-12-30 17:53:05 - End Time 2024-12-30 20:53:05 [2024-12-30 20:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138775', 'tblTempUsageDetail_20' ) start [2024-12-30 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138775', 'tblTempUsageDetail_20' ) end [2024-12-30 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138775', 'tblTempVendorCDR_20' ) start [2024-12-30 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138775', 'tblTempVendorCDR_20' ) end [2024-12-30 20:53:20] Production.INFO: ProcessCDR(1,14138775,1,1,2) [2024-12-30 20:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138775', 'tblTempUsageDetail_20' ) start [2024-12-30 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138775', 'tblTempUsageDetail_20' ) end [2024-12-30 20:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:53:23] Production.INFO: ==5729== Releasing lock... [2024-12-30 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:53:23] Production.INFO: 46.5 MB #Memory Used# [2024-12-30 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:54:05 [end_date_ymd] => 2024-12-30 20:54:05 [RateCDR] => 1 ) [2024-12-30 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:54:05' and `end` < '2024-12-30 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 20:54:18] Production.INFO: count ==2451 [2024-12-30 20:54:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:54:05 - End Time 2024-12-30 20:54:05 [2024-12-30 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138780', 'tblTempUsageDetail_20' ) start [2024-12-30 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138780', 'tblTempUsageDetail_20' ) end [2024-12-30 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138780', 'tblTempVendorCDR_20' ) start [2024-12-30 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138780', 'tblTempVendorCDR_20' ) end [2024-12-30 20:54:18] Production.INFO: ProcessCDR(1,14138780,1,1,2) [2024-12-30 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138780', 'tblTempUsageDetail_20' ) start [2024-12-30 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138780', 'tblTempUsageDetail_20' ) end [2024-12-30 20:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:54:22] Production.INFO: ==5841== Releasing lock... [2024-12-30 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:54:22] Production.INFO: 46.5 MB #Memory Used# [2024-12-30 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:55:05 [end_date_ymd] => 2024-12-30 20:55:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:55:05' and `end` < '2024-12-30 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-30 20:55:18] Production.INFO: count ==2438 [2024-12-30 20:55:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:55:05 - End Time 2024-12-30 20:55:05 [2024-12-30 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138785', 'tblTempUsageDetail_20' ) start [2024-12-30 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138785', 'tblTempUsageDetail_20' ) end [2024-12-30 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138785', 'tblTempVendorCDR_20' ) start [2024-12-30 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138785', 'tblTempVendorCDR_20' ) end [2024-12-30 20:55:19] Production.INFO: ProcessCDR(1,14138785,1,1,2) [2024-12-30 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138785', 'tblTempUsageDetail_20' ) start [2024-12-30 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138785', 'tblTempUsageDetail_20' ) end [2024-12-30 20:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:55:22] Production.INFO: ==5912== Releasing lock... [2024-12-30 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:55:22] Production.INFO: 46.25 MB #Memory Used# [2024-12-30 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:56:05 [end_date_ymd] => 2024-12-30 20:56:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:56:05' and `end` < '2024-12-30 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-30 20:56:18] Production.INFO: count ==2437 [2024-12-30 20:56:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:56:05 - End Time 2024-12-30 20:56:05 [2024-12-30 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138790', 'tblTempUsageDetail_20' ) start [2024-12-30 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138790', 'tblTempUsageDetail_20' ) end [2024-12-30 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138790', 'tblTempVendorCDR_20' ) start [2024-12-30 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138790', 'tblTempVendorCDR_20' ) end [2024-12-30 20:56:18] Production.INFO: ProcessCDR(1,14138790,1,1,2) [2024-12-30 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138790', 'tblTempUsageDetail_20' ) start [2024-12-30 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138790', 'tblTempUsageDetail_20' ) end [2024-12-30 20:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:56:23] Production.INFO: ==5987== Releasing lock... [2024-12-30 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:56:23] Production.INFO: 46.25 MB #Memory Used# [2024-12-30 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:57:05 [end_date_ymd] => 2024-12-30 20:57:05 [RateCDR] => 1 ) [2024-12-30 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-30 17:57:05' and `end` < '2024-12-30 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-30 20:57:17] Production.INFO: count ==2430 [2024-12-30 20:57:18] Production.ERROR: pbx CDR StartTime 2024-12-30 17:57:05 - End Time 2024-12-30 20:57:05 [2024-12-30 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138795', 'tblTempUsageDetail_20' ) start [2024-12-30 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138795', 'tblTempUsageDetail_20' ) end [2024-12-30 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138795', 'tblTempVendorCDR_20' ) start [2024-12-30 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138795', 'tblTempVendorCDR_20' ) end [2024-12-30 20:57:18] Production.INFO: ProcessCDR(1,14138795,1,1,2) [2024-12-30 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138795', 'tblTempUsageDetail_20' ) start [2024-12-30 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138795', 'tblTempUsageDetail_20' ) end [2024-12-30 20:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:57:21] Production.INFO: ==6061== Releasing lock... [2024-12-30 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:57:21] Production.INFO: 46.25 MB #Memory Used# [2024-12-30 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:58:05 [end_date_ymd] => 2024-12-30 20:58:05 [RateCDR] => 1 ) [2024-12-30 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 17:58:05' and `end` < '2024-12-30 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 20:58:19] Production.INFO: count ==2342 [2024-12-30 20:58:20] Production.ERROR: pbx CDR StartTime 2024-12-30 17:58:05 - End Time 2024-12-30 20:58:05 [2024-12-30 20:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138800', 'tblTempUsageDetail_20' ) start [2024-12-30 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138800', 'tblTempUsageDetail_20' ) end [2024-12-30 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138800', 'tblTempVendorCDR_20' ) start [2024-12-30 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138800', 'tblTempVendorCDR_20' ) end [2024-12-30 20:58:20] Production.INFO: ProcessCDR(1,14138800,1,1,2) [2024-12-30 20:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138800', 'tblTempUsageDetail_20' ) start [2024-12-30 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138800', 'tblTempUsageDetail_20' ) end [2024-12-30 20:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:58:23] Production.INFO: ==6132== Releasing lock... [2024-12-30 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:58:23] Production.INFO: 45.5 MB #Memory Used# [2024-12-30 20:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 17:59:04 [end_date_ymd] => 2024-12-30 20:59:04 [RateCDR] => 1 ) [2024-12-30 20: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-30 17:59:04' and `end` < '2024-12-30 20: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-30 20:59:18] Production.INFO: count ==2341 [2024-12-30 20:59:19] Production.ERROR: pbx CDR StartTime 2024-12-30 17:59:04 - End Time 2024-12-30 20:59:04 [2024-12-30 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138805', 'tblTempUsageDetail_20' ) start [2024-12-30 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138805', 'tblTempUsageDetail_20' ) end [2024-12-30 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138805', 'tblTempVendorCDR_20' ) start [2024-12-30 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138805', 'tblTempVendorCDR_20' ) end [2024-12-30 20:59:19] Production.INFO: ProcessCDR(1,14138805,1,1,2) [2024-12-30 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138805', 'tblTempUsageDetail_20' ) start [2024-12-30 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138805', 'tblTempUsageDetail_20' ) end [2024-12-30 20:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 20:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 20:59:22] Production.INFO: ==6201== Releasing lock... [2024-12-30 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 20:59:22] Production.INFO: 45.5 MB #Memory Used# [2024-12-30 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:00:05 [end_date_ymd] => 2024-12-30 21:00:05 [RateCDR] => 1 ) [2024-12-30 21: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-30 18:00:05' and `end` < '2024-12-30 21: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-30 21:00:18] Production.INFO: count ==2336 [2024-12-30 21:00:19] Production.ERROR: pbx CDR StartTime 2024-12-30 18:00:05 - End Time 2024-12-30 21:00:05 [2024-12-30 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138811', 'tblTempUsageDetail_20' ) start [2024-12-30 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138811', 'tblTempUsageDetail_20' ) end [2024-12-30 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138811', 'tblTempVendorCDR_20' ) start [2024-12-30 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138811', 'tblTempVendorCDR_20' ) end [2024-12-30 21:00:19] Production.INFO: ProcessCDR(1,14138811,1,1,2) [2024-12-30 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138811', 'tblTempUsageDetail_20' ) start [2024-12-30 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138811', 'tblTempUsageDetail_20' ) end [2024-12-30 21:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:00:22] Production.INFO: ==6279== Releasing lock... [2024-12-30 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:00:22] Production.INFO: 45.5 MB #Memory Used# [2024-12-30 21:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:01:04 [end_date_ymd] => 2024-12-30 21:01:04 [RateCDR] => 1 ) [2024-12-30 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-30 18:01:04' and `end` < '2024-12-30 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-30 21:01:18] Production.INFO: count ==2271 [2024-12-30 21:01:19] Production.ERROR: pbx CDR StartTime 2024-12-30 18:01:04 - End Time 2024-12-30 21:01:04 [2024-12-30 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138816', 'tblTempUsageDetail_20' ) start [2024-12-30 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138816', 'tblTempUsageDetail_20' ) end [2024-12-30 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138816', 'tblTempVendorCDR_20' ) start [2024-12-30 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138816', 'tblTempVendorCDR_20' ) end [2024-12-30 21:01:19] Production.INFO: ProcessCDR(1,14138816,1,1,2) [2024-12-30 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138816', 'tblTempUsageDetail_20' ) start [2024-12-30 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138816', 'tblTempUsageDetail_20' ) end [2024-12-30 21:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:01:22] Production.INFO: ==6365== Releasing lock... [2024-12-30 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:01:22] Production.INFO: 45 MB #Memory Used# [2024-12-30 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:02:05 [end_date_ymd] => 2024-12-30 21:02:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:02:05' and `end` < '2024-12-30 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-30 21:02:20] Production.INFO: count ==2208 [2024-12-30 21:02:20] Production.ERROR: pbx CDR StartTime 2024-12-30 18:02:05 - End Time 2024-12-30 21:02:05 [2024-12-30 21:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138821', 'tblTempUsageDetail_20' ) start [2024-12-30 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138821', 'tblTempUsageDetail_20' ) end [2024-12-30 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138821', 'tblTempVendorCDR_20' ) start [2024-12-30 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138821', 'tblTempVendorCDR_20' ) end [2024-12-30 21:02:20] Production.INFO: ProcessCDR(1,14138821,1,1,2) [2024-12-30 21:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138821', 'tblTempUsageDetail_20' ) start [2024-12-30 21:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138821', 'tblTempUsageDetail_20' ) end [2024-12-30 21:02:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:02:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:02:25] Production.INFO: ==6439== Releasing lock... [2024-12-30 21:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:02:25] Production.INFO: 44.5 MB #Memory Used# [2024-12-30 21:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:03:04 [end_date_ymd] => 2024-12-30 21:03:04 [RateCDR] => 1 ) [2024-12-30 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-30 18:03:04' and `end` < '2024-12-30 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-30 21:03:17] Production.INFO: count ==2127 [2024-12-30 21:03:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:03:04 - End Time 2024-12-30 21:03:04 [2024-12-30 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138826', 'tblTempUsageDetail_20' ) start [2024-12-30 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138826', 'tblTempUsageDetail_20' ) end [2024-12-30 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138826', 'tblTempVendorCDR_20' ) start [2024-12-30 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138826', 'tblTempVendorCDR_20' ) end [2024-12-30 21:03:18] Production.INFO: ProcessCDR(1,14138826,1,1,2) [2024-12-30 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138826', 'tblTempUsageDetail_20' ) start [2024-12-30 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138826', 'tblTempUsageDetail_20' ) end [2024-12-30 21:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:03:21] Production.INFO: ==6509== Releasing lock... [2024-12-30 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:03:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-30 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:04:05 [end_date_ymd] => 2024-12-30 21:04:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:04:05' and `end` < '2024-12-30 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-30 21:04:18] Production.INFO: count ==2046 [2024-12-30 21:04:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:04:05 - End Time 2024-12-30 21:04:05 [2024-12-30 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138831', 'tblTempUsageDetail_20' ) start [2024-12-30 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138831', 'tblTempUsageDetail_20' ) end [2024-12-30 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138831', 'tblTempVendorCDR_20' ) start [2024-12-30 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138831', 'tblTempVendorCDR_20' ) end [2024-12-30 21:04:19] Production.INFO: ProcessCDR(1,14138831,1,1,2) [2024-12-30 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138831', 'tblTempUsageDetail_20' ) start [2024-12-30 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138831', 'tblTempUsageDetail_20' ) end [2024-12-30 21:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:04:22] Production.INFO: ==6580== Releasing lock... [2024-12-30 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:04:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-30 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:05:05 [end_date_ymd] => 2024-12-30 21:05:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:05:05' and `end` < '2024-12-30 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-30 21:05:18] Production.INFO: count ==2014 [2024-12-30 21:05:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:05:05 - End Time 2024-12-30 21:05:05 [2024-12-30 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138836', 'tblTempUsageDetail_20' ) start [2024-12-30 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138836', 'tblTempUsageDetail_20' ) end [2024-12-30 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138836', 'tblTempVendorCDR_20' ) start [2024-12-30 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138836', 'tblTempVendorCDR_20' ) end [2024-12-30 21:05:18] Production.INFO: ProcessCDR(1,14138836,1,1,2) [2024-12-30 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138836', 'tblTempUsageDetail_20' ) start [2024-12-30 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138836', 'tblTempUsageDetail_20' ) end [2024-12-30 21:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:05:21] Production.INFO: ==6649== Releasing lock... [2024-12-30 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:05:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-30 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:06:05 [end_date_ymd] => 2024-12-30 21:06:05 [RateCDR] => 1 ) [2024-12-30 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:06:05' and `end` < '2024-12-30 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:06:17] Production.INFO: count ==2009 [2024-12-30 21:06:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:06:05 - End Time 2024-12-30 21:06:05 [2024-12-30 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138841', 'tblTempUsageDetail_20' ) start [2024-12-30 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138841', 'tblTempUsageDetail_20' ) end [2024-12-30 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138841', 'tblTempVendorCDR_20' ) start [2024-12-30 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138841', 'tblTempVendorCDR_20' ) end [2024-12-30 21:06:18] Production.INFO: ProcessCDR(1,14138841,1,1,2) [2024-12-30 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138841', 'tblTempUsageDetail_20' ) start [2024-12-30 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138841', 'tblTempUsageDetail_20' ) end [2024-12-30 21:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:06:21] Production.INFO: ==6720== Releasing lock... [2024-12-30 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:06:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-30 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:07:05 [end_date_ymd] => 2024-12-30 21:07:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:07:05' and `end` < '2024-12-30 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-30 21:07:18] Production.INFO: count ==2009 [2024-12-30 21:07:19] Production.ERROR: pbx CDR StartTime 2024-12-30 18:07:05 - End Time 2024-12-30 21:07:05 [2024-12-30 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138846', 'tblTempUsageDetail_20' ) start [2024-12-30 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138846', 'tblTempUsageDetail_20' ) end [2024-12-30 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138846', 'tblTempVendorCDR_20' ) start [2024-12-30 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138846', 'tblTempVendorCDR_20' ) end [2024-12-30 21:07:19] Production.INFO: ProcessCDR(1,14138846,1,1,2) [2024-12-30 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138846', 'tblTempUsageDetail_20' ) start [2024-12-30 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138846', 'tblTempUsageDetail_20' ) end [2024-12-30 21:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:07:22] Production.INFO: ==6790== Releasing lock... [2024-12-30 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:07:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-30 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:08:05 [end_date_ymd] => 2024-12-30 21:08:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:08:05' and `end` < '2024-12-30 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-30 21:08:20] Production.INFO: count ==1972 [2024-12-30 21:08:21] Production.ERROR: pbx CDR StartTime 2024-12-30 18:08:05 - End Time 2024-12-30 21:08:05 [2024-12-30 21:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138851', 'tblTempUsageDetail_20' ) start [2024-12-30 21:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138851', 'tblTempUsageDetail_20' ) end [2024-12-30 21:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138851', 'tblTempVendorCDR_20' ) start [2024-12-30 21:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138851', 'tblTempVendorCDR_20' ) end [2024-12-30 21:08:21] Production.INFO: ProcessCDR(1,14138851,1,1,2) [2024-12-30 21:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138851', 'tblTempUsageDetail_20' ) start [2024-12-30 21:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138851', 'tblTempUsageDetail_20' ) end [2024-12-30 21:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:08:24] Production.INFO: ==6863== Releasing lock... [2024-12-30 21:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:08:24] Production.INFO: 43.25 MB #Memory Used# [2024-12-30 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:09:05 [end_date_ymd] => 2024-12-30 21:09:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:09:05' and `end` < '2024-12-30 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-30 21:09:18] Production.INFO: count ==1892 [2024-12-30 21:09:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:09:05 - End Time 2024-12-30 21:09:05 [2024-12-30 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138856', 'tblTempUsageDetail_20' ) start [2024-12-30 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138856', 'tblTempUsageDetail_20' ) end [2024-12-30 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138856', 'tblTempVendorCDR_20' ) start [2024-12-30 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138856', 'tblTempVendorCDR_20' ) end [2024-12-30 21:09:18] Production.INFO: ProcessCDR(1,14138856,1,1,2) [2024-12-30 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138856', 'tblTempUsageDetail_20' ) start [2024-12-30 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138856', 'tblTempUsageDetail_20' ) end [2024-12-30 21:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:09:21] Production.INFO: ==6934== Releasing lock... [2024-12-30 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:09:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-30 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:10:05 [end_date_ymd] => 2024-12-30 21:10:05 [RateCDR] => 1 ) [2024-12-30 21: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-30 18:10:05' and `end` < '2024-12-30 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-30 21:10:18] Production.INFO: count ==1807 [2024-12-30 21:10:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:10:05 - End Time 2024-12-30 21:10:05 [2024-12-30 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138861', 'tblTempUsageDetail_20' ) start [2024-12-30 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138861', 'tblTempUsageDetail_20' ) end [2024-12-30 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138861', 'tblTempVendorCDR_20' ) start [2024-12-30 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138861', 'tblTempVendorCDR_20' ) end [2024-12-30 21:10:18] Production.INFO: ProcessCDR(1,14138861,1,1,2) [2024-12-30 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138861', 'tblTempUsageDetail_20' ) start [2024-12-30 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138861', 'tblTempUsageDetail_20' ) end [2024-12-30 21:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:10:21] Production.INFO: ==7044== Releasing lock... [2024-12-30 21:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:10:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-30 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:11:05 [end_date_ymd] => 2024-12-30 21:11:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:11:05' and `end` < '2024-12-30 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-30 21:11:18] Production.INFO: count ==1657 [2024-12-30 21:11:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:11:05 - End Time 2024-12-30 21:11:05 [2024-12-30 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138867', 'tblTempUsageDetail_20' ) start [2024-12-30 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138867', 'tblTempUsageDetail_20' ) end [2024-12-30 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138867', 'tblTempVendorCDR_20' ) start [2024-12-30 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138867', 'tblTempVendorCDR_20' ) end [2024-12-30 21:11:18] Production.INFO: ProcessCDR(1,14138867,1,1,2) [2024-12-30 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138867', 'tblTempUsageDetail_20' ) start [2024-12-30 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138867', 'tblTempUsageDetail_20' ) end [2024-12-30 21:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:11:21] Production.INFO: ==7118== Releasing lock... [2024-12-30 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:11:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-30 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:12:05 [end_date_ymd] => 2024-12-30 21:12:05 [RateCDR] => 1 ) [2024-12-30 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:12:05' and `end` < '2024-12-30 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:12:17] Production.INFO: count ==1577 [2024-12-30 21:12:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:12:05 - End Time 2024-12-30 21:12:05 [2024-12-30 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138872', 'tblTempUsageDetail_20' ) start [2024-12-30 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138872', 'tblTempUsageDetail_20' ) end [2024-12-30 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138872', 'tblTempVendorCDR_20' ) start [2024-12-30 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138872', 'tblTempVendorCDR_20' ) end [2024-12-30 21:12:18] Production.INFO: ProcessCDR(1,14138872,1,1,2) [2024-12-30 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138872', 'tblTempUsageDetail_20' ) start [2024-12-30 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138872', 'tblTempUsageDetail_20' ) end [2024-12-30 21:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:12:21] Production.INFO: ==7197== Releasing lock... [2024-12-30 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:12:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-30 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:13:05 [end_date_ymd] => 2024-12-30 21:13:05 [RateCDR] => 1 ) [2024-12-30 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:13:05' and `end` < '2024-12-30 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:13:18] Production.INFO: count ==1516 [2024-12-30 21:13:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:13:05 - End Time 2024-12-30 21:13:05 [2024-12-30 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138877', 'tblTempUsageDetail_20' ) start [2024-12-30 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138877', 'tblTempUsageDetail_20' ) end [2024-12-30 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138877', 'tblTempVendorCDR_20' ) start [2024-12-30 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138877', 'tblTempVendorCDR_20' ) end [2024-12-30 21:13:18] Production.INFO: ProcessCDR(1,14138877,1,1,2) [2024-12-30 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138877', 'tblTempUsageDetail_20' ) start [2024-12-30 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138877', 'tblTempUsageDetail_20' ) end [2024-12-30 21:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:13:21] Production.INFO: ==7279== Releasing lock... [2024-12-30 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:13:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-30 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:14:05 [end_date_ymd] => 2024-12-30 21:14:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:14:05' and `end` < '2024-12-30 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-30 21:14:19] Production.INFO: count ==1440 [2024-12-30 21:14:20] Production.ERROR: pbx CDR StartTime 2024-12-30 18:14:05 - End Time 2024-12-30 21:14:05 [2024-12-30 21:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138882', 'tblTempUsageDetail_20' ) start [2024-12-30 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138882', 'tblTempUsageDetail_20' ) end [2024-12-30 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138882', 'tblTempVendorCDR_20' ) start [2024-12-30 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138882', 'tblTempVendorCDR_20' ) end [2024-12-30 21:14:20] Production.INFO: ProcessCDR(1,14138882,1,1,2) [2024-12-30 21:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138882', 'tblTempUsageDetail_20' ) start [2024-12-30 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138882', 'tblTempUsageDetail_20' ) end [2024-12-30 21:14:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:14:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:14:24] Production.INFO: ==7362== Releasing lock... [2024-12-30 21:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:14:24] Production.INFO: 39 MB #Memory Used# [2024-12-30 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:15:05 [end_date_ymd] => 2024-12-30 21:15:05 [RateCDR] => 1 ) [2024-12-30 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:15:05' and `end` < '2024-12-30 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:15:18] Production.INFO: count ==1371 [2024-12-30 21:15:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:15:05 - End Time 2024-12-30 21:15:05 [2024-12-30 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138887', 'tblTempUsageDetail_20' ) start [2024-12-30 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138887', 'tblTempUsageDetail_20' ) end [2024-12-30 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138887', 'tblTempVendorCDR_20' ) start [2024-12-30 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138887', 'tblTempVendorCDR_20' ) end [2024-12-30 21:15:18] Production.INFO: ProcessCDR(1,14138887,1,1,2) [2024-12-30 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138887', 'tblTempUsageDetail_20' ) start [2024-12-30 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138887', 'tblTempUsageDetail_20' ) end [2024-12-30 21:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:15:23] Production.INFO: ==7444== Releasing lock... [2024-12-30 21:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:15:23] Production.INFO: 38 MB #Memory Used# [2024-12-30 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:16:05 [end_date_ymd] => 2024-12-30 21:16:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:16:05' and `end` < '2024-12-30 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-30 21:16:18] Production.INFO: count ==1380 [2024-12-30 21:16:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:16:05 - End Time 2024-12-30 21:16:05 [2024-12-30 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138892', 'tblTempUsageDetail_20' ) start [2024-12-30 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138892', 'tblTempUsageDetail_20' ) end [2024-12-30 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138892', 'tblTempVendorCDR_20' ) start [2024-12-30 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138892', 'tblTempVendorCDR_20' ) end [2024-12-30 21:16:18] Production.INFO: ProcessCDR(1,14138892,1,1,2) [2024-12-30 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138892', 'tblTempUsageDetail_20' ) start [2024-12-30 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138892', 'tblTempUsageDetail_20' ) end [2024-12-30 21:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:16:23] Production.INFO: ==7526== Releasing lock... [2024-12-30 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:16:23] Production.INFO: 38.25 MB #Memory Used# [2024-12-30 21:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:17:04 [end_date_ymd] => 2024-12-30 21:17:04 [RateCDR] => 1 ) [2024-12-30 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-30 18:17:04' and `end` < '2024-12-30 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-30 21:17:17] Production.INFO: count ==1370 [2024-12-30 21:17:17] Production.ERROR: pbx CDR StartTime 2024-12-30 18:17:04 - End Time 2024-12-30 21:17:04 [2024-12-30 21:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138897', 'tblTempUsageDetail_20' ) start [2024-12-30 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138897', 'tblTempUsageDetail_20' ) end [2024-12-30 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138897', 'tblTempVendorCDR_20' ) start [2024-12-30 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138897', 'tblTempVendorCDR_20' ) end [2024-12-30 21:17:17] Production.INFO: ProcessCDR(1,14138897,1,1,2) [2024-12-30 21:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138897', 'tblTempUsageDetail_20' ) start [2024-12-30 21:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138897', 'tblTempUsageDetail_20' ) end [2024-12-30 21:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:17:20] Production.INFO: ==7606== Releasing lock... [2024-12-30 21:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:17:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-30 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:18:05 [end_date_ymd] => 2024-12-30 21:18:05 [RateCDR] => 1 ) [2024-12-30 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:18:05' and `end` < '2024-12-30 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:18:18] Production.INFO: count ==1368 [2024-12-30 21:18:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:18:05 - End Time 2024-12-30 21:18:05 [2024-12-30 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138902', 'tblTempUsageDetail_20' ) start [2024-12-30 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138902', 'tblTempUsageDetail_20' ) end [2024-12-30 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138902', 'tblTempVendorCDR_20' ) start [2024-12-30 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138902', 'tblTempVendorCDR_20' ) end [2024-12-30 21:18:18] Production.INFO: ProcessCDR(1,14138902,1,1,2) [2024-12-30 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138902', 'tblTempUsageDetail_20' ) start [2024-12-30 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138902', 'tblTempUsageDetail_20' ) end [2024-12-30 21:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:18:21] Production.INFO: ==7687== Releasing lock... [2024-12-30 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:18:21] Production.INFO: 38 MB #Memory Used# [2024-12-30 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:19:05 [end_date_ymd] => 2024-12-30 21:19:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:19:05' and `end` < '2024-12-30 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-30 21:19:17] Production.INFO: count ==1366 [2024-12-30 21:19:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:19:05 - End Time 2024-12-30 21:19:05 [2024-12-30 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138907', 'tblTempUsageDetail_20' ) start [2024-12-30 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138907', 'tblTempUsageDetail_20' ) end [2024-12-30 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138907', 'tblTempVendorCDR_20' ) start [2024-12-30 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138907', 'tblTempVendorCDR_20' ) end [2024-12-30 21:19:18] Production.INFO: ProcessCDR(1,14138907,1,1,2) [2024-12-30 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138907', 'tblTempUsageDetail_20' ) start [2024-12-30 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138907', 'tblTempUsageDetail_20' ) end [2024-12-30 21:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:19:21] Production.INFO: ==7771== Releasing lock... [2024-12-30 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:19:21] Production.INFO: 38 MB #Memory Used# [2024-12-30 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:20:05 [end_date_ymd] => 2024-12-30 21:20:05 [RateCDR] => 1 ) [2024-12-30 21:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:20:05' and `end` < '2024-12-30 21:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:20:18] Production.INFO: count ==1364 [2024-12-30 21:20:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:20:05 - End Time 2024-12-30 21:20:05 [2024-12-30 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138913', 'tblTempUsageDetail_20' ) start [2024-12-30 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138913', 'tblTempUsageDetail_20' ) end [2024-12-30 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138913', 'tblTempVendorCDR_20' ) start [2024-12-30 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138913', 'tblTempVendorCDR_20' ) end [2024-12-30 21:20:18] Production.INFO: ProcessCDR(1,14138913,1,1,2) [2024-12-30 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138913', 'tblTempUsageDetail_20' ) start [2024-12-30 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138913', 'tblTempUsageDetail_20' ) end [2024-12-30 21:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:20:21] Production.INFO: ==7856== Releasing lock... [2024-12-30 21:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:20:21] Production.INFO: 38 MB #Memory Used# [2024-12-30 21:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:21:04 [end_date_ymd] => 2024-12-30 21:21:04 [RateCDR] => 1 ) [2024-12-30 21: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-30 18:21:04' and `end` < '2024-12-30 21: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-30 21:21:18] Production.INFO: count ==1344 [2024-12-30 21:21:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:21:04 - End Time 2024-12-30 21:21:04 [2024-12-30 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138918', 'tblTempUsageDetail_20' ) start [2024-12-30 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138918', 'tblTempUsageDetail_20' ) end [2024-12-30 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138918', 'tblTempVendorCDR_20' ) start [2024-12-30 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138918', 'tblTempVendorCDR_20' ) end [2024-12-30 21:21:18] Production.INFO: ProcessCDR(1,14138918,1,1,2) [2024-12-30 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138918', 'tblTempUsageDetail_20' ) start [2024-12-30 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138918', 'tblTempUsageDetail_20' ) end [2024-12-30 21:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:21:22] Production.INFO: ==7939== Releasing lock... [2024-12-30 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:21:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-30 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:22:05 [end_date_ymd] => 2024-12-30 21:22:05 [RateCDR] => 1 ) [2024-12-30 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:22:05' and `end` < '2024-12-30 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:22:17] Production.INFO: count ==1342 [2024-12-30 21:22:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:22:05 - End Time 2024-12-30 21:22:05 [2024-12-30 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138923', 'tblTempUsageDetail_20' ) start [2024-12-30 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138923', 'tblTempUsageDetail_20' ) end [2024-12-30 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138923', 'tblTempVendorCDR_20' ) start [2024-12-30 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138923', 'tblTempVendorCDR_20' ) end [2024-12-30 21:22:18] Production.INFO: ProcessCDR(1,14138923,1,1,2) [2024-12-30 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138923', 'tblTempUsageDetail_20' ) start [2024-12-30 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138923', 'tblTempUsageDetail_20' ) end [2024-12-30 21:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:22:21] Production.INFO: ==8026== Releasing lock... [2024-12-30 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:22:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-30 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:23:05 [end_date_ymd] => 2024-12-30 21:23:05 [RateCDR] => 1 ) [2024-12-30 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:23:05' and `end` < '2024-12-30 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:23:18] Production.INFO: count ==1336 [2024-12-30 21:23:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:23:05 - End Time 2024-12-30 21:23:05 [2024-12-30 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138928', 'tblTempUsageDetail_20' ) start [2024-12-30 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138928', 'tblTempUsageDetail_20' ) end [2024-12-30 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138928', 'tblTempVendorCDR_20' ) start [2024-12-30 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138928', 'tblTempVendorCDR_20' ) end [2024-12-30 21:23:18] Production.INFO: ProcessCDR(1,14138928,1,1,2) [2024-12-30 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138928', 'tblTempUsageDetail_20' ) start [2024-12-30 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138928', 'tblTempUsageDetail_20' ) end [2024-12-30 21:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:23:22] Production.INFO: ==8107== Releasing lock... [2024-12-30 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:23:22] Production.INFO: 38 MB #Memory Used# [2024-12-30 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:24:05 [end_date_ymd] => 2024-12-30 21:24:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:24:05' and `end` < '2024-12-30 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-30 21:24:17] Production.INFO: count ==1305 [2024-12-30 21:24:17] Production.ERROR: pbx CDR StartTime 2024-12-30 18:24:05 - End Time 2024-12-30 21:24:05 [2024-12-30 21:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138933', 'tblTempUsageDetail_20' ) start [2024-12-30 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138933', 'tblTempUsageDetail_20' ) end [2024-12-30 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138933', 'tblTempVendorCDR_20' ) start [2024-12-30 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138933', 'tblTempVendorCDR_20' ) end [2024-12-30 21:24:17] Production.INFO: ProcessCDR(1,14138933,1,1,2) [2024-12-30 21:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138933', 'tblTempUsageDetail_20' ) start [2024-12-30 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138933', 'tblTempUsageDetail_20' ) end [2024-12-30 21:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:24:22] Production.INFO: ==8193== Releasing lock... [2024-12-30 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:24:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-30 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:25:05 [end_date_ymd] => 2024-12-30 21:25:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:25:05' and `end` < '2024-12-30 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-30 21:25:17] Production.INFO: count ==1305 [2024-12-30 21:25:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:25:05 - End Time 2024-12-30 21:25:05 [2024-12-30 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138938', 'tblTempUsageDetail_20' ) start [2024-12-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138938', 'tblTempUsageDetail_20' ) end [2024-12-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138938', 'tblTempVendorCDR_20' ) start [2024-12-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138938', 'tblTempVendorCDR_20' ) end [2024-12-30 21:25:18] Production.INFO: ProcessCDR(1,14138938,1,1,2) [2024-12-30 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138938', 'tblTempUsageDetail_20' ) start [2024-12-30 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138938', 'tblTempUsageDetail_20' ) end [2024-12-30 21:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:25:21] Production.INFO: ==8315== Releasing lock... [2024-12-30 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:25:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-30 21:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:26:04 [end_date_ymd] => 2024-12-30 21:26:04 [RateCDR] => 1 ) [2024-12-30 21: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-30 18:26:04' and `end` < '2024-12-30 21: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-30 21:26:18] Production.INFO: count ==1278 [2024-12-30 21:26:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:26:04 - End Time 2024-12-30 21:26:04 [2024-12-30 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138943', 'tblTempUsageDetail_20' ) start [2024-12-30 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138943', 'tblTempUsageDetail_20' ) end [2024-12-30 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138943', 'tblTempVendorCDR_20' ) start [2024-12-30 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138943', 'tblTempVendorCDR_20' ) end [2024-12-30 21:26:18] Production.INFO: ProcessCDR(1,14138943,1,1,2) [2024-12-30 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138943', 'tblTempUsageDetail_20' ) start [2024-12-30 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138943', 'tblTempUsageDetail_20' ) end [2024-12-30 21:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:26:21] Production.INFO: ==8398== Releasing lock... [2024-12-30 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:26:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-30 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:27:05 [end_date_ymd] => 2024-12-30 21:27:05 [RateCDR] => 1 ) [2024-12-30 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:27:05' and `end` < '2024-12-30 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:27:17] Production.INFO: count ==1260 [2024-12-30 21:27:17] Production.ERROR: pbx CDR StartTime 2024-12-30 18:27:05 - End Time 2024-12-30 21:27:05 [2024-12-30 21:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138948', 'tblTempUsageDetail_20' ) start [2024-12-30 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138948', 'tblTempUsageDetail_20' ) end [2024-12-30 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138948', 'tblTempVendorCDR_20' ) start [2024-12-30 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138948', 'tblTempVendorCDR_20' ) end [2024-12-30 21:27:17] Production.INFO: ProcessCDR(1,14138948,1,1,2) [2024-12-30 21:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138948', 'tblTempUsageDetail_20' ) start [2024-12-30 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138948', 'tblTempUsageDetail_20' ) end [2024-12-30 21:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:27:21] Production.INFO: ==8486== Releasing lock... [2024-12-30 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:27:21] Production.INFO: 37 MB #Memory Used# [2024-12-30 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:28:06 [end_date_ymd] => 2024-12-30 21:28:06 [RateCDR] => 1 ) [2024-12-30 21:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:28:06' and `end` < '2024-12-30 21:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:28:19] Production.INFO: count ==1233 [2024-12-30 21:28:19] Production.ERROR: pbx CDR StartTime 2024-12-30 18:28:06 - End Time 2024-12-30 21:28:06 [2024-12-30 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138953', 'tblTempUsageDetail_20' ) start [2024-12-30 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138953', 'tblTempUsageDetail_20' ) end [2024-12-30 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138953', 'tblTempVendorCDR_20' ) start [2024-12-30 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138953', 'tblTempVendorCDR_20' ) end [2024-12-30 21:28:19] Production.INFO: ProcessCDR(1,14138953,1,1,2) [2024-12-30 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138953', 'tblTempUsageDetail_20' ) start [2024-12-30 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138953', 'tblTempUsageDetail_20' ) end [2024-12-30 21:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:28:23] Production.INFO: ==8570== Releasing lock... [2024-12-30 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:28:23] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:29:05 [end_date_ymd] => 2024-12-30 21:29:05 [RateCDR] => 1 ) [2024-12-30 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:29:05' and `end` < '2024-12-30 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:29:18] Production.INFO: count ==1232 [2024-12-30 21:29:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:29:05 - End Time 2024-12-30 21:29:05 [2024-12-30 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138958', 'tblTempUsageDetail_20' ) start [2024-12-30 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138958', 'tblTempUsageDetail_20' ) end [2024-12-30 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138958', 'tblTempVendorCDR_20' ) start [2024-12-30 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138958', 'tblTempVendorCDR_20' ) end [2024-12-30 21:29:18] Production.INFO: ProcessCDR(1,14138958,1,1,2) [2024-12-30 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138958', 'tblTempUsageDetail_20' ) start [2024-12-30 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138958', 'tblTempUsageDetail_20' ) end [2024-12-30 21:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:29:21] Production.INFO: ==8653== Releasing lock... [2024-12-30 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:29:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:30:05 [end_date_ymd] => 2024-12-30 21:30:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:30:05' and `end` < '2024-12-30 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-30 21:30:18] Production.INFO: count ==1232 [2024-12-30 21:30:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:30:05 - End Time 2024-12-30 21:30:05 [2024-12-30 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138964', 'tblTempUsageDetail_20' ) start [2024-12-30 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138964', 'tblTempUsageDetail_20' ) end [2024-12-30 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138964', 'tblTempVendorCDR_20' ) start [2024-12-30 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138964', 'tblTempVendorCDR_20' ) end [2024-12-30 21:30:18] Production.INFO: ProcessCDR(1,14138964,1,1,2) [2024-12-30 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138964', 'tblTempUsageDetail_20' ) start [2024-12-30 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138964', 'tblTempUsageDetail_20' ) end [2024-12-30 21:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:30:21] Production.INFO: ==8736== Releasing lock... [2024-12-30 21:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:30:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:31:05 [end_date_ymd] => 2024-12-30 21:31:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:31:05' and `end` < '2024-12-30 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-30 21:31:18] Production.INFO: count ==1242 [2024-12-30 21:31:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:31:05 - End Time 2024-12-30 21:31:05 [2024-12-30 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138969', 'tblTempUsageDetail_20' ) start [2024-12-30 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138969', 'tblTempUsageDetail_20' ) end [2024-12-30 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138969', 'tblTempVendorCDR_20' ) start [2024-12-30 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138969', 'tblTempVendorCDR_20' ) end [2024-12-30 21:31:18] Production.INFO: ProcessCDR(1,14138969,1,1,2) [2024-12-30 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138969', 'tblTempUsageDetail_20' ) start [2024-12-30 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138969', 'tblTempUsageDetail_20' ) end [2024-12-30 21:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:31:22] Production.INFO: ==8818== Releasing lock... [2024-12-30 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:31:22] Production.INFO: 37 MB #Memory Used# [2024-12-30 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:32:05 [end_date_ymd] => 2024-12-30 21:32:05 [RateCDR] => 1 ) [2024-12-30 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:32:05' and `end` < '2024-12-30 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:32:20] Production.INFO: count ==1239 [2024-12-30 21:32:20] Production.ERROR: pbx CDR StartTime 2024-12-30 18:32:05 - End Time 2024-12-30 21:32:05 [2024-12-30 21:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138974', 'tblTempUsageDetail_20' ) start [2024-12-30 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138974', 'tblTempUsageDetail_20' ) end [2024-12-30 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138974', 'tblTempVendorCDR_20' ) start [2024-12-30 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138974', 'tblTempVendorCDR_20' ) end [2024-12-30 21:32:20] Production.INFO: ProcessCDR(1,14138974,1,1,2) [2024-12-30 21:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138974', 'tblTempUsageDetail_20' ) start [2024-12-30 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138974', 'tblTempUsageDetail_20' ) end [2024-12-30 21:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:32:23] Production.INFO: ==8901== Releasing lock... [2024-12-30 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:32:23] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:33:04 [end_date_ymd] => 2024-12-30 21:33:04 [RateCDR] => 1 ) [2024-12-30 21: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-30 18:33:04' and `end` < '2024-12-30 21: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-30 21:33:18] Production.INFO: count ==1232 [2024-12-30 21:33:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:33:04 - End Time 2024-12-30 21:33:04 [2024-12-30 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138979', 'tblTempUsageDetail_20' ) start [2024-12-30 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138979', 'tblTempUsageDetail_20' ) end [2024-12-30 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138979', 'tblTempVendorCDR_20' ) start [2024-12-30 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138979', 'tblTempVendorCDR_20' ) end [2024-12-30 21:33:18] Production.INFO: ProcessCDR(1,14138979,1,1,2) [2024-12-30 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138979', 'tblTempUsageDetail_20' ) start [2024-12-30 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138979', 'tblTempUsageDetail_20' ) end [2024-12-30 21:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:33:21] Production.INFO: ==8982== Releasing lock... [2024-12-30 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:33:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:34:05 [end_date_ymd] => 2024-12-30 21:34:05 [RateCDR] => 1 ) [2024-12-30 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:34:05' and `end` < '2024-12-30 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:34:18] Production.INFO: count ==1234 [2024-12-30 21:34:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:34:05 - End Time 2024-12-30 21:34:05 [2024-12-30 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138984', 'tblTempUsageDetail_20' ) start [2024-12-30 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138984', 'tblTempUsageDetail_20' ) end [2024-12-30 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138984', 'tblTempVendorCDR_20' ) start [2024-12-30 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138984', 'tblTempVendorCDR_20' ) end [2024-12-30 21:34:18] Production.INFO: ProcessCDR(1,14138984,1,1,2) [2024-12-30 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138984', 'tblTempUsageDetail_20' ) start [2024-12-30 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138984', 'tblTempUsageDetail_20' ) end [2024-12-30 21:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:34:21] Production.INFO: ==9068== Releasing lock... [2024-12-30 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:34:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:35:04 [end_date_ymd] => 2024-12-30 21:35:04 [RateCDR] => 1 ) [2024-12-30 21: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-30 18:35:04' and `end` < '2024-12-30 21: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-30 21:35:17] Production.INFO: count ==1234 [2024-12-30 21:35:17] Production.ERROR: pbx CDR StartTime 2024-12-30 18:35:04 - End Time 2024-12-30 21:35:04 [2024-12-30 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138989', 'tblTempUsageDetail_20' ) start [2024-12-30 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138989', 'tblTempUsageDetail_20' ) end [2024-12-30 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138989', 'tblTempVendorCDR_20' ) start [2024-12-30 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138989', 'tblTempVendorCDR_20' ) end [2024-12-30 21:35:17] Production.INFO: ProcessCDR(1,14138989,1,1,2) [2024-12-30 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138989', 'tblTempUsageDetail_20' ) start [2024-12-30 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138989', 'tblTempUsageDetail_20' ) end [2024-12-30 21:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:35:20] Production.INFO: ==9148== Releasing lock... [2024-12-30 21:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:35:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:36:04 [end_date_ymd] => 2024-12-30 21:36:04 [RateCDR] => 1 ) [2024-12-30 21: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-30 18:36:04' and `end` < '2024-12-30 21: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-30 21:36:17] Production.INFO: count ==1234 [2024-12-30 21:36:17] Production.ERROR: pbx CDR StartTime 2024-12-30 18:36:04 - End Time 2024-12-30 21:36:04 [2024-12-30 21:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138994', 'tblTempUsageDetail_20' ) start [2024-12-30 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138994', 'tblTempUsageDetail_20' ) end [2024-12-30 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138994', 'tblTempVendorCDR_20' ) start [2024-12-30 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138994', 'tblTempVendorCDR_20' ) end [2024-12-30 21:36:17] Production.INFO: ProcessCDR(1,14138994,1,1,2) [2024-12-30 21:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138994', 'tblTempUsageDetail_20' ) start [2024-12-30 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138994', 'tblTempUsageDetail_20' ) end [2024-12-30 21:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:36:20] Production.INFO: ==9230== Releasing lock... [2024-12-30 21:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:36:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:37:05 [end_date_ymd] => 2024-12-30 21:37:05 [RateCDR] => 1 ) [2024-12-30 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:37:05' and `end` < '2024-12-30 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:37:17] Production.INFO: count ==1229 [2024-12-30 21:37:17] Production.ERROR: pbx CDR StartTime 2024-12-30 18:37:05 - End Time 2024-12-30 21:37:05 [2024-12-30 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138999', 'tblTempUsageDetail_20' ) start [2024-12-30 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14138999', 'tblTempUsageDetail_20' ) end [2024-12-30 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138999', 'tblTempVendorCDR_20' ) start [2024-12-30 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14138999', 'tblTempVendorCDR_20' ) end [2024-12-30 21:37:17] Production.INFO: ProcessCDR(1,14138999,1,1,2) [2024-12-30 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14138999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14138999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14138999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14138999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138999', 'tblTempUsageDetail_20' ) start [2024-12-30 21:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14138999', 'tblTempUsageDetail_20' ) end [2024-12-30 21:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:37:20] Production.INFO: ==9314== Releasing lock... [2024-12-30 21:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:37:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:38:05 [end_date_ymd] => 2024-12-30 21:38:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:38:05' and `end` < '2024-12-30 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-30 21:38:18] Production.INFO: count ==1231 [2024-12-30 21:38:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:38:05 - End Time 2024-12-30 21:38:05 [2024-12-30 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139004', 'tblTempUsageDetail_20' ) start [2024-12-30 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139004', 'tblTempUsageDetail_20' ) end [2024-12-30 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139004', 'tblTempVendorCDR_20' ) start [2024-12-30 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139004', 'tblTempVendorCDR_20' ) end [2024-12-30 21:38:19] Production.INFO: ProcessCDR(1,14139004,1,1,2) [2024-12-30 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139004', 'tblTempUsageDetail_20' ) start [2024-12-30 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139004', 'tblTempUsageDetail_20' ) end [2024-12-30 21:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:38:22] Production.INFO: ==9401== Releasing lock... [2024-12-30 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:38:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:39:04 [end_date_ymd] => 2024-12-30 21:39:04 [RateCDR] => 1 ) [2024-12-30 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-30 18:39:04' and `end` < '2024-12-30 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-30 21:39:17] Production.INFO: count ==1230 [2024-12-30 21:39:17] Production.ERROR: pbx CDR StartTime 2024-12-30 18:39:04 - End Time 2024-12-30 21:39:04 [2024-12-30 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139009', 'tblTempUsageDetail_20' ) start [2024-12-30 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139009', 'tblTempUsageDetail_20' ) end [2024-12-30 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139009', 'tblTempVendorCDR_20' ) start [2024-12-30 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139009', 'tblTempVendorCDR_20' ) end [2024-12-30 21:39:17] Production.INFO: ProcessCDR(1,14139009,1,1,2) [2024-12-30 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139009', 'tblTempUsageDetail_20' ) start [2024-12-30 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139009', 'tblTempUsageDetail_20' ) end [2024-12-30 21:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:39:20] Production.INFO: ==9484== Releasing lock... [2024-12-30 21:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:39:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:40:05 [end_date_ymd] => 2024-12-30 21:40:05 [RateCDR] => 1 ) [2024-12-30 21: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-30 18:40:05' and `end` < '2024-12-30 21: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-30 21:40:18] Production.INFO: count ==1227 [2024-12-30 21:40:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:40:05 - End Time 2024-12-30 21:40:05 [2024-12-30 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139014', 'tblTempUsageDetail_20' ) start [2024-12-30 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139014', 'tblTempUsageDetail_20' ) end [2024-12-30 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139014', 'tblTempVendorCDR_20' ) start [2024-12-30 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139014', 'tblTempVendorCDR_20' ) end [2024-12-30 21:40:18] Production.INFO: ProcessCDR(1,14139014,1,1,2) [2024-12-30 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139014', 'tblTempUsageDetail_20' ) start [2024-12-30 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139014', 'tblTempUsageDetail_20' ) end [2024-12-30 21:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:40:21] Production.INFO: ==9569== Releasing lock... [2024-12-30 21:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:40:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:41:05 [end_date_ymd] => 2024-12-30 21:41:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:41:05' and `end` < '2024-12-30 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-30 21:41:18] Production.INFO: count ==1226 [2024-12-30 21:41:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:41:05 - End Time 2024-12-30 21:41:05 [2024-12-30 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139020', 'tblTempUsageDetail_20' ) start [2024-12-30 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139020', 'tblTempUsageDetail_20' ) end [2024-12-30 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139020', 'tblTempVendorCDR_20' ) start [2024-12-30 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139020', 'tblTempVendorCDR_20' ) end [2024-12-30 21:41:18] Production.INFO: ProcessCDR(1,14139020,1,1,2) [2024-12-30 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139020', 'tblTempUsageDetail_20' ) start [2024-12-30 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139020', 'tblTempUsageDetail_20' ) end [2024-12-30 21:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:41:21] Production.INFO: ==9692== Releasing lock... [2024-12-30 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:41:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:42:05 [end_date_ymd] => 2024-12-30 21:42:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:42:05' and `end` < '2024-12-30 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:42:17] Production.INFO: count ==1226 [2024-12-30 21:42:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:42:05 - End Time 2024-12-30 21:42:05 [2024-12-30 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139025', 'tblTempUsageDetail_20' ) start [2024-12-30 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139025', 'tblTempUsageDetail_20' ) end [2024-12-30 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139025', 'tblTempVendorCDR_20' ) start [2024-12-30 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139025', 'tblTempVendorCDR_20' ) end [2024-12-30 21:42:18] Production.INFO: ProcessCDR(1,14139025,1,1,2) [2024-12-30 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139025', 'tblTempUsageDetail_20' ) start [2024-12-30 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139025', 'tblTempUsageDetail_20' ) end [2024-12-30 21:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:42:21] Production.INFO: ==9777== Releasing lock... [2024-12-30 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:42:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:43:05 [end_date_ymd] => 2024-12-30 21:43:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:43:05' and `end` < '2024-12-30 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-30 21:43:18] Production.INFO: count ==1229 [2024-12-30 21:43:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:43:05 - End Time 2024-12-30 21:43:05 [2024-12-30 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139030', 'tblTempUsageDetail_20' ) start [2024-12-30 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139030', 'tblTempUsageDetail_20' ) end [2024-12-30 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139030', 'tblTempVendorCDR_20' ) start [2024-12-30 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139030', 'tblTempVendorCDR_20' ) end [2024-12-30 21:43:18] Production.INFO: ProcessCDR(1,14139030,1,1,2) [2024-12-30 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139030', 'tblTempUsageDetail_20' ) start [2024-12-30 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139030', 'tblTempUsageDetail_20' ) end [2024-12-30 21:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:43:22] Production.INFO: ==9864== Releasing lock... [2024-12-30 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:43:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:44:05 [end_date_ymd] => 2024-12-30 21:44:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:44:05' and `end` < '2024-12-30 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-30 21:44:17] Production.INFO: count ==1232 [2024-12-30 21:44:17] Production.ERROR: pbx CDR StartTime 2024-12-30 18:44:05 - End Time 2024-12-30 21:44:05 [2024-12-30 21:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139035', 'tblTempUsageDetail_20' ) start [2024-12-30 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139035', 'tblTempUsageDetail_20' ) end [2024-12-30 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139035', 'tblTempVendorCDR_20' ) start [2024-12-30 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139035', 'tblTempVendorCDR_20' ) end [2024-12-30 21:44:17] Production.INFO: ProcessCDR(1,14139035,1,1,2) [2024-12-30 21:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139035', 'tblTempUsageDetail_20' ) start [2024-12-30 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139035', 'tblTempUsageDetail_20' ) end [2024-12-30 21:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:44:21] Production.INFO: ==9945== Releasing lock... [2024-12-30 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:44:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:45:05 [end_date_ymd] => 2024-12-30 21:45:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:45:05' and `end` < '2024-12-30 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-30 21:45:18] Production.INFO: count ==1218 [2024-12-30 21:45:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:45:05 - End Time 2024-12-30 21:45:05 [2024-12-30 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139040', 'tblTempUsageDetail_20' ) start [2024-12-30 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139040', 'tblTempUsageDetail_20' ) end [2024-12-30 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139040', 'tblTempVendorCDR_20' ) start [2024-12-30 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139040', 'tblTempVendorCDR_20' ) end [2024-12-30 21:45:18] Production.INFO: ProcessCDR(1,14139040,1,1,2) [2024-12-30 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139040', 'tblTempUsageDetail_20' ) start [2024-12-30 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139040', 'tblTempUsageDetail_20' ) end [2024-12-30 21:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:45:21] Production.INFO: ==10035== Releasing lock... [2024-12-30 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:45:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:46:04 [end_date_ymd] => 2024-12-30 21:46:04 [RateCDR] => 1 ) [2024-12-30 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-30 18:46:04' and `end` < '2024-12-30 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-30 21:46:17] Production.INFO: count ==1216 [2024-12-30 21:46:17] Production.ERROR: pbx CDR StartTime 2024-12-30 18:46:04 - End Time 2024-12-30 21:46:04 [2024-12-30 21:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139045', 'tblTempUsageDetail_20' ) start [2024-12-30 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139045', 'tblTempUsageDetail_20' ) end [2024-12-30 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139045', 'tblTempVendorCDR_20' ) start [2024-12-30 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139045', 'tblTempVendorCDR_20' ) end [2024-12-30 21:46:17] Production.INFO: ProcessCDR(1,14139045,1,1,2) [2024-12-30 21:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139045', 'tblTempUsageDetail_20' ) start [2024-12-30 21:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139045', 'tblTempUsageDetail_20' ) end [2024-12-30 21:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:46:20] Production.INFO: ==10113== Releasing lock... [2024-12-30 21:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:46:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:47:05 [end_date_ymd] => 2024-12-30 21:47:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:47:05' and `end` < '2024-12-30 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-30 21:47:17] Production.INFO: count ==1212 [2024-12-30 21:47:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:47:05 - End Time 2024-12-30 21:47:05 [2024-12-30 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139050', 'tblTempUsageDetail_20' ) start [2024-12-30 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139050', 'tblTempUsageDetail_20' ) end [2024-12-30 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139050', 'tblTempVendorCDR_20' ) start [2024-12-30 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139050', 'tblTempVendorCDR_20' ) end [2024-12-30 21:47:18] Production.INFO: ProcessCDR(1,14139050,1,1,2) [2024-12-30 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139050', 'tblTempUsageDetail_20' ) start [2024-12-30 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139050', 'tblTempUsageDetail_20' ) end [2024-12-30 21:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:47:21] Production.INFO: ==10196== Releasing lock... [2024-12-30 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:47:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:48:05 [end_date_ymd] => 2024-12-30 21:48:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:48:05' and `end` < '2024-12-30 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-30 21:48:18] Production.INFO: count ==1208 [2024-12-30 21:48:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:48:05 - End Time 2024-12-30 21:48:05 [2024-12-30 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139055', 'tblTempUsageDetail_20' ) start [2024-12-30 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139055', 'tblTempUsageDetail_20' ) end [2024-12-30 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139055', 'tblTempVendorCDR_20' ) start [2024-12-30 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139055', 'tblTempVendorCDR_20' ) end [2024-12-30 21:48:18] Production.INFO: ProcessCDR(1,14139055,1,1,2) [2024-12-30 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139055', 'tblTempUsageDetail_20' ) start [2024-12-30 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139055', 'tblTempUsageDetail_20' ) end [2024-12-30 21:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:48:21] Production.INFO: ==10275== Releasing lock... [2024-12-30 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:48:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-30 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:49:05 [end_date_ymd] => 2024-12-30 21:49:05 [RateCDR] => 1 ) [2024-12-30 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:49:05' and `end` < '2024-12-30 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:49:17] Production.INFO: count ==1197 [2024-12-30 21:49:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:49:05 - End Time 2024-12-30 21:49:05 [2024-12-30 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139060', 'tblTempUsageDetail_20' ) start [2024-12-30 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139060', 'tblTempUsageDetail_20' ) end [2024-12-30 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139060', 'tblTempVendorCDR_20' ) start [2024-12-30 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139060', 'tblTempVendorCDR_20' ) end [2024-12-30 21:49:18] Production.INFO: ProcessCDR(1,14139060,1,1,2) [2024-12-30 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139060', 'tblTempUsageDetail_20' ) start [2024-12-30 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139060', 'tblTempUsageDetail_20' ) end [2024-12-30 21:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:49:21] Production.INFO: ==10356== Releasing lock... [2024-12-30 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:49:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-30 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:50:06 [end_date_ymd] => 2024-12-30 21:50:06 [RateCDR] => 1 ) [2024-12-30 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:50:06' and `end` < '2024-12-30 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:50:19] Production.INFO: count ==1196 [2024-12-30 21:50:19] Production.ERROR: pbx CDR StartTime 2024-12-30 18:50:06 - End Time 2024-12-30 21:50:06 [2024-12-30 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139065', 'tblTempUsageDetail_20' ) start [2024-12-30 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139065', 'tblTempUsageDetail_20' ) end [2024-12-30 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139065', 'tblTempVendorCDR_20' ) start [2024-12-30 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139065', 'tblTempVendorCDR_20' ) end [2024-12-30 21:50:19] Production.INFO: ProcessCDR(1,14139065,1,1,2) [2024-12-30 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139065', 'tblTempUsageDetail_20' ) start [2024-12-30 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139065', 'tblTempUsageDetail_20' ) end [2024-12-30 21:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:50:23] Production.INFO: ==10446== Releasing lock... [2024-12-30 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:50:23] Production.INFO: 36.5 MB #Memory Used# [2024-12-30 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:51:05 [end_date_ymd] => 2024-12-30 21:51:05 [RateCDR] => 1 ) [2024-12-30 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:51:05' and `end` < '2024-12-30 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:51:17] Production.INFO: count ==1149 [2024-12-30 21:51:17] Production.ERROR: pbx CDR StartTime 2024-12-30 18:51:05 - End Time 2024-12-30 21:51:05 [2024-12-30 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139071', 'tblTempUsageDetail_20' ) start [2024-12-30 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139071', 'tblTempUsageDetail_20' ) end [2024-12-30 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139071', 'tblTempVendorCDR_20' ) start [2024-12-30 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139071', 'tblTempVendorCDR_20' ) end [2024-12-30 21:51:17] Production.INFO: ProcessCDR(1,14139071,1,1,2) [2024-12-30 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139071', 'tblTempUsageDetail_20' ) start [2024-12-30 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139071', 'tblTempUsageDetail_20' ) end [2024-12-30 21:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:51:21] Production.INFO: ==10533== Releasing lock... [2024-12-30 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:51:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-30 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:52:05 [end_date_ymd] => 2024-12-30 21:52:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:52:05' and `end` < '2024-12-30 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-30 21:52:18] Production.INFO: count ==1149 [2024-12-30 21:52:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:52:05 - End Time 2024-12-30 21:52:05 [2024-12-30 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139076', 'tblTempUsageDetail_20' ) start [2024-12-30 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139076', 'tblTempUsageDetail_20' ) end [2024-12-30 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139076', 'tblTempVendorCDR_20' ) start [2024-12-30 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139076', 'tblTempVendorCDR_20' ) end [2024-12-30 21:52:18] Production.INFO: ProcessCDR(1,14139076,1,1,2) [2024-12-30 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139076', 'tblTempUsageDetail_20' ) start [2024-12-30 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139076', 'tblTempUsageDetail_20' ) end [2024-12-30 21:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:52:21] Production.INFO: ==10613== Releasing lock... [2024-12-30 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:52:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-30 21:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:53:04 [end_date_ymd] => 2024-12-30 21:53:04 [RateCDR] => 1 ) [2024-12-30 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-30 18:53:04' and `end` < '2024-12-30 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-30 21:53:17] Production.INFO: count ==1149 [2024-12-30 21:53:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:53:04 - End Time 2024-12-30 21:53:04 [2024-12-30 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139079', 'tblTempUsageDetail_20' ) start [2024-12-30 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139079', 'tblTempUsageDetail_20' ) end [2024-12-30 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139079', 'tblTempVendorCDR_20' ) start [2024-12-30 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139079', 'tblTempVendorCDR_20' ) end [2024-12-30 21:53:18] Production.INFO: ProcessCDR(1,14139079,1,1,2) [2024-12-30 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139079', 'tblTempUsageDetail_20' ) start [2024-12-30 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139079', 'tblTempUsageDetail_20' ) end [2024-12-30 21:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:53:21] Production.INFO: ==10695== Releasing lock... [2024-12-30 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:53:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-30 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:54:05 [end_date_ymd] => 2024-12-30 21:54:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:54:05' and `end` < '2024-12-30 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-30 21:54:18] Production.INFO: count ==1129 [2024-12-30 21:54:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:54:05 - End Time 2024-12-30 21:54:05 [2024-12-30 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139086', 'tblTempUsageDetail_20' ) start [2024-12-30 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139086', 'tblTempUsageDetail_20' ) end [2024-12-30 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139086', 'tblTempVendorCDR_20' ) start [2024-12-30 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139086', 'tblTempVendorCDR_20' ) end [2024-12-30 21:54:18] Production.INFO: ProcessCDR(1,14139086,1,1,2) [2024-12-30 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139086', 'tblTempUsageDetail_20' ) start [2024-12-30 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139086', 'tblTempUsageDetail_20' ) end [2024-12-30 21:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:54:21] Production.INFO: ==10778== Releasing lock... [2024-12-30 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:54:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-30 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:55:05 [end_date_ymd] => 2024-12-30 21:55:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:55:05' and `end` < '2024-12-30 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-30 21:55:17] Production.INFO: count ==1130 [2024-12-30 21:55:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:55:05 - End Time 2024-12-30 21:55:05 [2024-12-30 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139091', 'tblTempUsageDetail_20' ) start [2024-12-30 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139091', 'tblTempUsageDetail_20' ) end [2024-12-30 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139091', 'tblTempVendorCDR_20' ) start [2024-12-30 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139091', 'tblTempVendorCDR_20' ) end [2024-12-30 21:55:18] Production.INFO: ProcessCDR(1,14139091,1,1,2) [2024-12-30 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139091', 'tblTempUsageDetail_20' ) start [2024-12-30 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139091', 'tblTempUsageDetail_20' ) end [2024-12-30 21:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:55:22] Production.INFO: ==10862== Releasing lock... [2024-12-30 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:55:22] Production.INFO: 36 MB #Memory Used# [2024-12-30 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:56:05 [end_date_ymd] => 2024-12-30 21:56:05 [RateCDR] => 1 ) [2024-12-30 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:56:05' and `end` < '2024-12-30 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:56:18] Production.INFO: count ==1130 [2024-12-30 21:56:19] Production.ERROR: pbx CDR StartTime 2024-12-30 18:56:05 - End Time 2024-12-30 21:56:05 [2024-12-30 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139096', 'tblTempUsageDetail_20' ) start [2024-12-30 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139096', 'tblTempUsageDetail_20' ) end [2024-12-30 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139096', 'tblTempVendorCDR_20' ) start [2024-12-30 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139096', 'tblTempVendorCDR_20' ) end [2024-12-30 21:56:19] Production.INFO: ProcessCDR(1,14139096,1,1,2) [2024-12-30 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139096', 'tblTempUsageDetail_20' ) start [2024-12-30 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139096', 'tblTempUsageDetail_20' ) end [2024-12-30 21:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:56:22] Production.INFO: ==10948== Releasing lock... [2024-12-30 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:56:22] Production.INFO: 36 MB #Memory Used# [2024-12-30 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:57:05 [end_date_ymd] => 2024-12-30 21:57:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:57:05' and `end` < '2024-12-30 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-30 21:57:17] Production.INFO: count ==1128 [2024-12-30 21:57:17] Production.ERROR: pbx CDR StartTime 2024-12-30 18:57:05 - End Time 2024-12-30 21:57:05 [2024-12-30 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139101', 'tblTempUsageDetail_20' ) start [2024-12-30 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139101', 'tblTempUsageDetail_20' ) end [2024-12-30 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139101', 'tblTempVendorCDR_20' ) start [2024-12-30 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139101', 'tblTempVendorCDR_20' ) end [2024-12-30 21:57:17] Production.INFO: ProcessCDR(1,14139101,1,1,2) [2024-12-30 21:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139101', 'tblTempUsageDetail_20' ) start [2024-12-30 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139101', 'tblTempUsageDetail_20' ) end [2024-12-30 21:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:57:22] Production.INFO: ==11073== Releasing lock... [2024-12-30 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:57:22] Production.INFO: 36 MB #Memory Used# [2024-12-30 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:58:05 [end_date_ymd] => 2024-12-30 21:58:05 [RateCDR] => 1 ) [2024-12-30 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-30 18:58:05' and `end` < '2024-12-30 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-30 21:58:17] Production.INFO: count ==1128 [2024-12-30 21:58:17] Production.ERROR: pbx CDR StartTime 2024-12-30 18:58:05 - End Time 2024-12-30 21:58:05 [2024-12-30 21:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139106', 'tblTempUsageDetail_20' ) start [2024-12-30 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139106', 'tblTempUsageDetail_20' ) end [2024-12-30 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139106', 'tblTempVendorCDR_20' ) start [2024-12-30 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139106', 'tblTempVendorCDR_20' ) end [2024-12-30 21:58:17] Production.INFO: ProcessCDR(1,14139106,1,1,2) [2024-12-30 21:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139106', 'tblTempUsageDetail_20' ) start [2024-12-30 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139106', 'tblTempUsageDetail_20' ) end [2024-12-30 21:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:58:20] Production.INFO: ==11158== Releasing lock... [2024-12-30 21:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:58:20] Production.INFO: 36 MB #Memory Used# [2024-12-30 21:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 18:59:04 [end_date_ymd] => 2024-12-30 21:59:04 [RateCDR] => 1 ) [2024-12-30 21:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 18:59:04' and `end` < '2024-12-30 21:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 21:59:18] Production.INFO: count ==1128 [2024-12-30 21:59:18] Production.ERROR: pbx CDR StartTime 2024-12-30 18:59:04 - End Time 2024-12-30 21:59:04 [2024-12-30 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139111', 'tblTempUsageDetail_20' ) start [2024-12-30 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139111', 'tblTempUsageDetail_20' ) end [2024-12-30 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139111', 'tblTempVendorCDR_20' ) start [2024-12-30 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139111', 'tblTempVendorCDR_20' ) end [2024-12-30 21:59:18] Production.INFO: ProcessCDR(1,14139111,1,1,2) [2024-12-30 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139111', 'tblTempUsageDetail_20' ) start [2024-12-30 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139111', 'tblTempUsageDetail_20' ) end [2024-12-30 21:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 21:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 21:59:22] Production.INFO: ==11242== Releasing lock... [2024-12-30 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 21:59:22] Production.INFO: 36 MB #Memory Used# [2024-12-30 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:00:05 [end_date_ymd] => 2024-12-30 22:00:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:00:05' and `end` < '2024-12-30 22:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:00:18] Production.INFO: count ==1129 [2024-12-30 22:00:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:00:05 - End Time 2024-12-30 22:00:05 [2024-12-30 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139116', 'tblTempUsageDetail_20' ) start [2024-12-30 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139116', 'tblTempUsageDetail_20' ) end [2024-12-30 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139116', 'tblTempVendorCDR_20' ) start [2024-12-30 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139116', 'tblTempVendorCDR_20' ) end [2024-12-30 22:00:18] Production.INFO: ProcessCDR(1,14139116,1,1,2) [2024-12-30 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139116', 'tblTempUsageDetail_20' ) start [2024-12-30 22:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139116', 'tblTempUsageDetail_20' ) end [2024-12-30 22:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:00:21] Production.INFO: ==11330== Releasing lock... [2024-12-30 22:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:00:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-30 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:01:05 [end_date_ymd] => 2024-12-30 22:01:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:01:05' and `end` < '2024-12-30 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-30 22:01:17] Production.INFO: count ==1091 [2024-12-30 22:01:17] Production.ERROR: pbx CDR StartTime 2024-12-30 19:01:05 - End Time 2024-12-30 22:01:05 [2024-12-30 22:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139122', 'tblTempUsageDetail_20' ) start [2024-12-30 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139122', 'tblTempUsageDetail_20' ) end [2024-12-30 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139122', 'tblTempVendorCDR_20' ) start [2024-12-30 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139122', 'tblTempVendorCDR_20' ) end [2024-12-30 22:01:17] Production.INFO: ProcessCDR(1,14139122,1,1,2) [2024-12-30 22:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139122', 'tblTempUsageDetail_20' ) start [2024-12-30 22:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139122', 'tblTempUsageDetail_20' ) end [2024-12-30 22:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:01:20] Production.INFO: ==11430== Releasing lock... [2024-12-30 22:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:01:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-30 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:02:05 [end_date_ymd] => 2024-12-30 22:02:05 [RateCDR] => 1 ) [2024-12-30 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:02:05' and `end` < '2024-12-30 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:02:19] Production.INFO: count ==1089 [2024-12-30 22:02:19] Production.ERROR: pbx CDR StartTime 2024-12-30 19:02:05 - End Time 2024-12-30 22:02:05 [2024-12-30 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139127', 'tblTempUsageDetail_20' ) start [2024-12-30 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139127', 'tblTempUsageDetail_20' ) end [2024-12-30 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139127', 'tblTempVendorCDR_20' ) start [2024-12-30 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139127', 'tblTempVendorCDR_20' ) end [2024-12-30 22:02:19] Production.INFO: ProcessCDR(1,14139127,1,1,2) [2024-12-30 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139127', 'tblTempUsageDetail_20' ) start [2024-12-30 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139127', 'tblTempUsageDetail_20' ) end [2024-12-30 22:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:02:22] Production.INFO: ==11527== Releasing lock... [2024-12-30 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:02:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-30 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:03:05 [end_date_ymd] => 2024-12-30 22:03:05 [RateCDR] => 1 ) [2024-12-30 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:03:05' and `end` < '2024-12-30 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:03:18] Production.INFO: count ==1087 [2024-12-30 22:03:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:03:05 - End Time 2024-12-30 22:03:05 [2024-12-30 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139132', 'tblTempUsageDetail_20' ) start [2024-12-30 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139132', 'tblTempUsageDetail_20' ) end [2024-12-30 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139132', 'tblTempVendorCDR_20' ) start [2024-12-30 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139132', 'tblTempVendorCDR_20' ) end [2024-12-30 22:03:18] Production.INFO: ProcessCDR(1,14139132,1,1,2) [2024-12-30 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139132', 'tblTempUsageDetail_20' ) start [2024-12-30 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139132', 'tblTempUsageDetail_20' ) end [2024-12-30 22:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:03:22] Production.INFO: ==11622== Releasing lock... [2024-12-30 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:03:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-30 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:04:05 [end_date_ymd] => 2024-12-30 22:04:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:04:05' and `end` < '2024-12-30 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-30 22:04:19] Production.INFO: count ==1086 [2024-12-30 22:04:19] Production.ERROR: pbx CDR StartTime 2024-12-30 19:04:05 - End Time 2024-12-30 22:04:05 [2024-12-30 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139137', 'tblTempUsageDetail_20' ) start [2024-12-30 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139137', 'tblTempUsageDetail_20' ) end [2024-12-30 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139137', 'tblTempVendorCDR_20' ) start [2024-12-30 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139137', 'tblTempVendorCDR_20' ) end [2024-12-30 22:04:19] Production.INFO: ProcessCDR(1,14139137,1,1,2) [2024-12-30 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139137', 'tblTempUsageDetail_20' ) start [2024-12-30 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139137', 'tblTempUsageDetail_20' ) end [2024-12-30 22:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:04:22] Production.INFO: ==11725== Releasing lock... [2024-12-30 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:04:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-30 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:05:05 [end_date_ymd] => 2024-12-30 22:05:05 [RateCDR] => 1 ) [2024-12-30 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:05:05' and `end` < '2024-12-30 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:05:18] Production.INFO: count ==1089 [2024-12-30 22:05:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:05:05 - End Time 2024-12-30 22:05:05 [2024-12-30 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139142', 'tblTempUsageDetail_20' ) start [2024-12-30 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139142', 'tblTempUsageDetail_20' ) end [2024-12-30 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139142', 'tblTempVendorCDR_20' ) start [2024-12-30 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139142', 'tblTempVendorCDR_20' ) end [2024-12-30 22:05:18] Production.INFO: ProcessCDR(1,14139142,1,1,2) [2024-12-30 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139142', 'tblTempUsageDetail_20' ) start [2024-12-30 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139142', 'tblTempUsageDetail_20' ) end [2024-12-30 22:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:05:22] Production.INFO: ==11836== Releasing lock... [2024-12-30 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:05:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-30 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:06:05 [end_date_ymd] => 2024-12-30 22:06:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:06:05' and `end` < '2024-12-30 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-30 22:06:17] Production.INFO: count ==1085 [2024-12-30 22:06:17] Production.ERROR: pbx CDR StartTime 2024-12-30 19:06:05 - End Time 2024-12-30 22:06:05 [2024-12-30 22:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139147', 'tblTempUsageDetail_20' ) start [2024-12-30 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139147', 'tblTempUsageDetail_20' ) end [2024-12-30 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139147', 'tblTempVendorCDR_20' ) start [2024-12-30 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139147', 'tblTempVendorCDR_20' ) end [2024-12-30 22:06:18] Production.INFO: ProcessCDR(1,14139147,1,1,2) [2024-12-30 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139147', 'tblTempUsageDetail_20' ) start [2024-12-30 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139147', 'tblTempUsageDetail_20' ) end [2024-12-30 22:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:06:21] Production.INFO: ==11951== Releasing lock... [2024-12-30 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:06:21] Production.INFO: 36 MB #Memory Used# [2024-12-30 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:07:05 [end_date_ymd] => 2024-12-30 22:07:05 [RateCDR] => 1 ) [2024-12-30 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:07:05' and `end` < '2024-12-30 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:07:19] Production.INFO: count ==1084 [2024-12-30 22:07:19] Production.ERROR: pbx CDR StartTime 2024-12-30 19:07:05 - End Time 2024-12-30 22:07:05 [2024-12-30 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139152', 'tblTempUsageDetail_20' ) start [2024-12-30 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139152', 'tblTempUsageDetail_20' ) end [2024-12-30 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139152', 'tblTempVendorCDR_20' ) start [2024-12-30 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139152', 'tblTempVendorCDR_20' ) end [2024-12-30 22:07:19] Production.INFO: ProcessCDR(1,14139152,1,1,2) [2024-12-30 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139152', 'tblTempUsageDetail_20' ) start [2024-12-30 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139152', 'tblTempUsageDetail_20' ) end [2024-12-30 22:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:07:22] Production.INFO: ==12064== Releasing lock... [2024-12-30 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:07:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-30 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:08:05 [end_date_ymd] => 2024-12-30 22:08:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:08:05' and `end` < '2024-12-30 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-30 22:08:19] Production.INFO: count ==1084 [2024-12-30 22:08:19] Production.ERROR: pbx CDR StartTime 2024-12-30 19:08:05 - End Time 2024-12-30 22:08:05 [2024-12-30 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139157', 'tblTempUsageDetail_20' ) start [2024-12-30 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139157', 'tblTempUsageDetail_20' ) end [2024-12-30 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139157', 'tblTempVendorCDR_20' ) start [2024-12-30 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139157', 'tblTempVendorCDR_20' ) end [2024-12-30 22:08:19] Production.INFO: ProcessCDR(1,14139157,1,1,2) [2024-12-30 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139157', 'tblTempUsageDetail_20' ) start [2024-12-30 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139157', 'tblTempUsageDetail_20' ) end [2024-12-30 22:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:08:22] Production.INFO: ==12184== Releasing lock... [2024-12-30 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:08:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-30 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:09:05 [end_date_ymd] => 2024-12-30 22:09:05 [RateCDR] => 1 ) [2024-12-30 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:09:05' and `end` < '2024-12-30 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:09:17] Production.INFO: count ==1084 [2024-12-30 22:09:17] Production.ERROR: pbx CDR StartTime 2024-12-30 19:09:05 - End Time 2024-12-30 22:09:05 [2024-12-30 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139162', 'tblTempUsageDetail_20' ) start [2024-12-30 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139162', 'tblTempUsageDetail_20' ) end [2024-12-30 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139162', 'tblTempVendorCDR_20' ) start [2024-12-30 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139162', 'tblTempVendorCDR_20' ) end [2024-12-30 22:09:17] Production.INFO: ProcessCDR(1,14139162,1,1,2) [2024-12-30 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139162', 'tblTempUsageDetail_20' ) start [2024-12-30 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139162', 'tblTempUsageDetail_20' ) end [2024-12-30 22:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:09:21] Production.INFO: ==12320== Releasing lock... [2024-12-30 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:09:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-30 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:10:05 [end_date_ymd] => 2024-12-30 22:10:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:10:05' and `end` < '2024-12-30 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-30 22:10:18] Production.INFO: count ==1084 [2024-12-30 22:10:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:10:05 - End Time 2024-12-30 22:10:05 [2024-12-30 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139168', 'tblTempUsageDetail_20' ) start [2024-12-30 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139168', 'tblTempUsageDetail_20' ) end [2024-12-30 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139168', 'tblTempVendorCDR_20' ) start [2024-12-30 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139168', 'tblTempVendorCDR_20' ) end [2024-12-30 22:10:18] Production.INFO: ProcessCDR(1,14139168,1,1,2) [2024-12-30 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139168', 'tblTempUsageDetail_20' ) start [2024-12-30 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139168', 'tblTempUsageDetail_20' ) end [2024-12-30 22:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:10:21] Production.INFO: ==12451== Releasing lock... [2024-12-30 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:10:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-30 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:11:05 [end_date_ymd] => 2024-12-30 22:11:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:11:05' and `end` < '2024-12-30 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-30 22:11:19] Production.INFO: count ==1066 [2024-12-30 22:11:19] Production.ERROR: pbx CDR StartTime 2024-12-30 19:11:05 - End Time 2024-12-30 22:11:05 [2024-12-30 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139173', 'tblTempUsageDetail_20' ) start [2024-12-30 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139173', 'tblTempUsageDetail_20' ) end [2024-12-30 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139173', 'tblTempVendorCDR_20' ) start [2024-12-30 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139173', 'tblTempVendorCDR_20' ) end [2024-12-30 22:11:19] Production.INFO: ProcessCDR(1,14139173,1,1,2) [2024-12-30 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139173', 'tblTempUsageDetail_20' ) start [2024-12-30 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139173', 'tblTempUsageDetail_20' ) end [2024-12-30 22:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:11:22] Production.INFO: ==12585== Releasing lock... [2024-12-30 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:11:22] Production.INFO: 36 MB #Memory Used# [2024-12-30 22:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:12:04 [end_date_ymd] => 2024-12-30 22:12:04 [RateCDR] => 1 ) [2024-12-30 22: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-30 19:12:04' and `end` < '2024-12-30 22: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-30 22:12:17] Production.INFO: count ==1063 [2024-12-30 22:12:17] Production.ERROR: pbx CDR StartTime 2024-12-30 19:12:04 - End Time 2024-12-30 22:12:04 [2024-12-30 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139178', 'tblTempUsageDetail_20' ) start [2024-12-30 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139178', 'tblTempUsageDetail_20' ) end [2024-12-30 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139178', 'tblTempVendorCDR_20' ) start [2024-12-30 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139178', 'tblTempVendorCDR_20' ) end [2024-12-30 22:12:17] Production.INFO: ProcessCDR(1,14139178,1,1,2) [2024-12-30 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139178', 'tblTempUsageDetail_20' ) start [2024-12-30 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139178', 'tblTempUsageDetail_20' ) end [2024-12-30 22:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:12:20] Production.INFO: ==12758== Releasing lock... [2024-12-30 22:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:12:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-30 22:13:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:13:06 [end_date_ymd] => 2024-12-30 22:13:06 [RateCDR] => 1 ) [2024-12-30 22:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:13:06' and `end` < '2024-12-30 22:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:13:19] Production.INFO: count ==1064 [2024-12-30 22:13:19] Production.ERROR: pbx CDR StartTime 2024-12-30 19:13:06 - End Time 2024-12-30 22:13:06 [2024-12-30 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139183', 'tblTempUsageDetail_20' ) start [2024-12-30 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139183', 'tblTempUsageDetail_20' ) end [2024-12-30 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139183', 'tblTempVendorCDR_20' ) start [2024-12-30 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139183', 'tblTempVendorCDR_20' ) end [2024-12-30 22:13:19] Production.INFO: ProcessCDR(1,14139183,1,1,2) [2024-12-30 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139183', 'tblTempUsageDetail_20' ) start [2024-12-30 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139183', 'tblTempUsageDetail_20' ) end [2024-12-30 22:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:13:23] Production.INFO: ==12897== Releasing lock... [2024-12-30 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:13:23] Production.INFO: 35.5 MB #Memory Used# [2024-12-30 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:14:05 [end_date_ymd] => 2024-12-30 22:14:05 [RateCDR] => 1 ) [2024-12-30 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:14:05' and `end` < '2024-12-30 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:14:23] Production.INFO: count ==1053 [2024-12-30 22:14:23] Production.ERROR: pbx CDR StartTime 2024-12-30 19:14:05 - End Time 2024-12-30 22:14:05 [2024-12-30 22:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139188', 'tblTempUsageDetail_20' ) start [2024-12-30 22:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139188', 'tblTempUsageDetail_20' ) end [2024-12-30 22:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139188', 'tblTempVendorCDR_20' ) start [2024-12-30 22:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139188', 'tblTempVendorCDR_20' ) end [2024-12-30 22:14:23] Production.INFO: ProcessCDR(1,14139188,1,1,2) [2024-12-30 22:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139188', 'tblTempUsageDetail_20' ) start [2024-12-30 22:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139188', 'tblTempUsageDetail_20' ) end [2024-12-30 22:14:26] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:14:26] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:14:26] Production.INFO: ==13027== Releasing lock... [2024-12-30 22:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:14:26] Production.INFO: 35.5 MB #Memory Used# [2024-12-30 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:15:05 [end_date_ymd] => 2024-12-30 22:15:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:15:05' and `end` < '2024-12-30 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-30 22:15:18] Production.INFO: count ==1051 [2024-12-30 22:15:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:15:05 - End Time 2024-12-30 22:15:05 [2024-12-30 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139193', 'tblTempUsageDetail_20' ) start [2024-12-30 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139193', 'tblTempUsageDetail_20' ) end [2024-12-30 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139193', 'tblTempVendorCDR_20' ) start [2024-12-30 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139193', 'tblTempVendorCDR_20' ) end [2024-12-30 22:15:18] Production.INFO: ProcessCDR(1,14139193,1,1,2) [2024-12-30 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139193', 'tblTempUsageDetail_20' ) start [2024-12-30 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139193', 'tblTempUsageDetail_20' ) end [2024-12-30 22:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:15:21] Production.INFO: ==13156== Releasing lock... [2024-12-30 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:15:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-30 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:16:05 [end_date_ymd] => 2024-12-30 22:16:05 [RateCDR] => 1 ) [2024-12-30 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:16:05' and `end` < '2024-12-30 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:16:18] Production.INFO: count ==1051 [2024-12-30 22:16:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:16:05 - End Time 2024-12-30 22:16:05 [2024-12-30 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139198', 'tblTempUsageDetail_20' ) start [2024-12-30 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139198', 'tblTempUsageDetail_20' ) end [2024-12-30 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139198', 'tblTempVendorCDR_20' ) start [2024-12-30 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139198', 'tblTempVendorCDR_20' ) end [2024-12-30 22:16:18] Production.INFO: ProcessCDR(1,14139198,1,1,2) [2024-12-30 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139198', 'tblTempUsageDetail_20' ) start [2024-12-30 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139198', 'tblTempUsageDetail_20' ) end [2024-12-30 22:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:16:21] Production.INFO: ==13288== Releasing lock... [2024-12-30 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:16:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-30 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:17:05 [end_date_ymd] => 2024-12-30 22:17:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:17:05' and `end` < '2024-12-30 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-30 22:17:18] Production.INFO: count ==1051 [2024-12-30 22:17:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:17:05 - End Time 2024-12-30 22:17:05 [2024-12-30 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139203', 'tblTempUsageDetail_20' ) start [2024-12-30 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139203', 'tblTempUsageDetail_20' ) end [2024-12-30 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139203', 'tblTempVendorCDR_20' ) start [2024-12-30 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139203', 'tblTempVendorCDR_20' ) end [2024-12-30 22:17:18] Production.INFO: ProcessCDR(1,14139203,1,1,2) [2024-12-30 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139203', 'tblTempUsageDetail_20' ) start [2024-12-30 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139203', 'tblTempUsageDetail_20' ) end [2024-12-30 22:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:17:21] Production.INFO: ==13418== Releasing lock... [2024-12-30 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:17:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-30 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:18:05 [end_date_ymd] => 2024-12-30 22:18:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:18:05' and `end` < '2024-12-30 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-30 22:18:18] Production.INFO: count ==1050 [2024-12-30 22:18:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:18:05 - End Time 2024-12-30 22:18:05 [2024-12-30 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139208', 'tblTempUsageDetail_20' ) start [2024-12-30 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139208', 'tblTempUsageDetail_20' ) end [2024-12-30 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139208', 'tblTempVendorCDR_20' ) start [2024-12-30 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139208', 'tblTempVendorCDR_20' ) end [2024-12-30 22:18:18] Production.INFO: ProcessCDR(1,14139208,1,1,2) [2024-12-30 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139208', 'tblTempUsageDetail_20' ) start [2024-12-30 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139208', 'tblTempUsageDetail_20' ) end [2024-12-30 22:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:18:21] Production.INFO: ==13549== Releasing lock... [2024-12-30 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:18:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-30 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:19:05 [end_date_ymd] => 2024-12-30 22:19:05 [RateCDR] => 1 ) [2024-12-30 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:19:05' and `end` < '2024-12-30 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:19:18] Production.INFO: count ==1050 [2024-12-30 22:19:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:19:05 - End Time 2024-12-30 22:19:05 [2024-12-30 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139213', 'tblTempUsageDetail_20' ) start [2024-12-30 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139213', 'tblTempUsageDetail_20' ) end [2024-12-30 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139213', 'tblTempVendorCDR_20' ) start [2024-12-30 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139213', 'tblTempVendorCDR_20' ) end [2024-12-30 22:19:18] Production.INFO: ProcessCDR(1,14139213,1,1,2) [2024-12-30 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139213', 'tblTempUsageDetail_20' ) start [2024-12-30 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139213', 'tblTempUsageDetail_20' ) end [2024-12-30 22:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:19:21] Production.INFO: ==13679== Releasing lock... [2024-12-30 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:19:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-30 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:20:05 [end_date_ymd] => 2024-12-30 22:20:05 [RateCDR] => 1 ) [2024-12-30 22:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:20:05' and `end` < '2024-12-30 22:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:20:18] Production.INFO: count ==1047 [2024-12-30 22:20:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:20:05 - End Time 2024-12-30 22:20:05 [2024-12-30 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139219', 'tblTempUsageDetail_20' ) start [2024-12-30 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139219', 'tblTempUsageDetail_20' ) end [2024-12-30 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139219', 'tblTempVendorCDR_20' ) start [2024-12-30 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139219', 'tblTempVendorCDR_20' ) end [2024-12-30 22:20:18] Production.INFO: ProcessCDR(1,14139219,1,1,2) [2024-12-30 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139219', 'tblTempUsageDetail_20' ) start [2024-12-30 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139219', 'tblTempUsageDetail_20' ) end [2024-12-30 22:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:20:21] Production.INFO: ==13804== Releasing lock... [2024-12-30 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:20:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-30 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:21:05 [end_date_ymd] => 2024-12-30 22:21:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:21:05' and `end` < '2024-12-30 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-30 22:21:18] Production.INFO: count ==1036 [2024-12-30 22:21:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:21:05 - End Time 2024-12-30 22:21:05 [2024-12-30 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139224', 'tblTempUsageDetail_20' ) start [2024-12-30 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139224', 'tblTempUsageDetail_20' ) end [2024-12-30 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139224', 'tblTempVendorCDR_20' ) start [2024-12-30 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139224', 'tblTempVendorCDR_20' ) end [2024-12-30 22:21:18] Production.INFO: ProcessCDR(1,14139224,1,1,2) [2024-12-30 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139224', 'tblTempUsageDetail_20' ) start [2024-12-30 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139224', 'tblTempUsageDetail_20' ) end [2024-12-30 22:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:21:21] Production.INFO: ==13917== Releasing lock... [2024-12-30 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:21:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-30 22:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:22:04 [end_date_ymd] => 2024-12-30 22:22:04 [RateCDR] => 1 ) [2024-12-30 22: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-30 19:22:04' and `end` < '2024-12-30 22: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-30 22:22:17] Production.INFO: count ==1038 [2024-12-30 22:22:17] Production.ERROR: pbx CDR StartTime 2024-12-30 19:22:04 - End Time 2024-12-30 22:22:04 [2024-12-30 22:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139229', 'tblTempUsageDetail_20' ) start [2024-12-30 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139229', 'tblTempUsageDetail_20' ) end [2024-12-30 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139229', 'tblTempVendorCDR_20' ) start [2024-12-30 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139229', 'tblTempVendorCDR_20' ) end [2024-12-30 22:22:17] Production.INFO: ProcessCDR(1,14139229,1,1,2) [2024-12-30 22:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139229', 'tblTempUsageDetail_20' ) start [2024-12-30 22:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139229', 'tblTempUsageDetail_20' ) end [2024-12-30 22:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:22:20] Production.INFO: ==14033== Releasing lock... [2024-12-30 22:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:22:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-30 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:23:05 [end_date_ymd] => 2024-12-30 22:23:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:23:05' and `end` < '2024-12-30 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-30 22:23:20] Production.INFO: count ==1027 [2024-12-30 22:23:20] Production.ERROR: pbx CDR StartTime 2024-12-30 19:23:05 - End Time 2024-12-30 22:23:05 [2024-12-30 22:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139234', 'tblTempUsageDetail_20' ) start [2024-12-30 22:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139234', 'tblTempUsageDetail_20' ) end [2024-12-30 22:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139234', 'tblTempVendorCDR_20' ) start [2024-12-30 22:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139234', 'tblTempVendorCDR_20' ) end [2024-12-30 22:23:20] Production.INFO: ProcessCDR(1,14139234,1,1,2) [2024-12-30 22:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139234', 'tblTempUsageDetail_20' ) start [2024-12-30 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139234', 'tblTempUsageDetail_20' ) end [2024-12-30 22:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:23:23] Production.INFO: ==14150== Releasing lock... [2024-12-30 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:23:23] Production.INFO: 35.5 MB #Memory Used# [2024-12-30 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:24:05 [end_date_ymd] => 2024-12-30 22:24:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:24:05' and `end` < '2024-12-30 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-30 22:24:18] Production.INFO: count ==1024 [2024-12-30 22:24:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:24:05 - End Time 2024-12-30 22:24:05 [2024-12-30 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139239', 'tblTempUsageDetail_20' ) start [2024-12-30 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139239', 'tblTempUsageDetail_20' ) end [2024-12-30 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139239', 'tblTempVendorCDR_20' ) start [2024-12-30 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139239', 'tblTempVendorCDR_20' ) end [2024-12-30 22:24:18] Production.INFO: ProcessCDR(1,14139239,1,1,2) [2024-12-30 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139239', 'tblTempUsageDetail_20' ) start [2024-12-30 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139239', 'tblTempUsageDetail_20' ) end [2024-12-30 22:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:24:21] Production.INFO: ==14269== Releasing lock... [2024-12-30 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:24:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-30 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:25:05 [end_date_ymd] => 2024-12-30 22:25:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:25:05' and `end` < '2024-12-30 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-30 22:25:17] Production.INFO: count ==1024 [2024-12-30 22:25:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:25:05 - End Time 2024-12-30 22:25:05 [2024-12-30 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139244', 'tblTempUsageDetail_20' ) start [2024-12-30 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139244', 'tblTempUsageDetail_20' ) end [2024-12-30 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139244', 'tblTempVendorCDR_20' ) start [2024-12-30 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139244', 'tblTempVendorCDR_20' ) end [2024-12-30 22:25:18] Production.INFO: ProcessCDR(1,14139244,1,1,2) [2024-12-30 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139244', 'tblTempUsageDetail_20' ) start [2024-12-30 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139244', 'tblTempUsageDetail_20' ) end [2024-12-30 22:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:25:21] Production.INFO: ==14377== Releasing lock... [2024-12-30 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:25:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-30 22:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:26:04 [end_date_ymd] => 2024-12-30 22:26:04 [RateCDR] => 1 ) [2024-12-30 22: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-30 19:26:04' and `end` < '2024-12-30 22: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-30 22:26:17] Production.INFO: count ==1024 [2024-12-30 22:26:17] Production.ERROR: pbx CDR StartTime 2024-12-30 19:26:04 - End Time 2024-12-30 22:26:04 [2024-12-30 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139249', 'tblTempUsageDetail_20' ) start [2024-12-30 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139249', 'tblTempUsageDetail_20' ) end [2024-12-30 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139249', 'tblTempVendorCDR_20' ) start [2024-12-30 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139249', 'tblTempVendorCDR_20' ) end [2024-12-30 22:26:17] Production.INFO: ProcessCDR(1,14139249,1,1,2) [2024-12-30 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139249', 'tblTempUsageDetail_20' ) start [2024-12-30 22:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139249', 'tblTempUsageDetail_20' ) end [2024-12-30 22:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:26:20] Production.INFO: ==14475== Releasing lock... [2024-12-30 22:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:26:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-30 22:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:27:04 [end_date_ymd] => 2024-12-30 22:27:04 [RateCDR] => 1 ) [2024-12-30 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-30 19:27:04' and `end` < '2024-12-30 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-30 22:27:17] Production.INFO: count ==1020 [2024-12-30 22:27:17] Production.ERROR: pbx CDR StartTime 2024-12-30 19:27:04 - End Time 2024-12-30 22:27:04 [2024-12-30 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139254', 'tblTempUsageDetail_20' ) start [2024-12-30 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139254', 'tblTempUsageDetail_20' ) end [2024-12-30 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139254', 'tblTempVendorCDR_20' ) start [2024-12-30 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139254', 'tblTempVendorCDR_20' ) end [2024-12-30 22:27:17] Production.INFO: ProcessCDR(1,14139254,1,1,2) [2024-12-30 22:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139254', 'tblTempUsageDetail_20' ) start [2024-12-30 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139254', 'tblTempUsageDetail_20' ) end [2024-12-30 22:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:27:20] Production.INFO: ==14580== Releasing lock... [2024-12-30 22:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:27:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-30 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:28:05 [end_date_ymd] => 2024-12-30 22:28:05 [RateCDR] => 1 ) [2024-12-30 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:28:05' and `end` < '2024-12-30 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:28:20] Production.INFO: count ==1019 [2024-12-30 22:28:20] Production.ERROR: pbx CDR StartTime 2024-12-30 19:28:05 - End Time 2024-12-30 22:28:05 [2024-12-30 22:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139259', 'tblTempUsageDetail_20' ) start [2024-12-30 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139259', 'tblTempUsageDetail_20' ) end [2024-12-30 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139259', 'tblTempVendorCDR_20' ) start [2024-12-30 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139259', 'tblTempVendorCDR_20' ) end [2024-12-30 22:28:20] Production.INFO: ProcessCDR(1,14139259,1,1,2) [2024-12-30 22:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139259', 'tblTempUsageDetail_20' ) start [2024-12-30 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139259', 'tblTempUsageDetail_20' ) end [2024-12-30 22:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:28:23] Production.INFO: ==14718== Releasing lock... [2024-12-30 22:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:28:23] Production.INFO: 35.25 MB #Memory Used# [2024-12-30 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:29:05 [end_date_ymd] => 2024-12-30 22:29:05 [RateCDR] => 1 ) [2024-12-30 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:29:05' and `end` < '2024-12-30 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:29:19] Production.INFO: count ==1022 [2024-12-30 22:29:19] Production.ERROR: pbx CDR StartTime 2024-12-30 19:29:05 - End Time 2024-12-30 22:29:05 [2024-12-30 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139264', 'tblTempUsageDetail_20' ) start [2024-12-30 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139264', 'tblTempUsageDetail_20' ) end [2024-12-30 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139264', 'tblTempVendorCDR_20' ) start [2024-12-30 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139264', 'tblTempVendorCDR_20' ) end [2024-12-30 22:29:19] Production.INFO: ProcessCDR(1,14139264,1,1,2) [2024-12-30 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139264', 'tblTempUsageDetail_20' ) start [2024-12-30 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139264', 'tblTempUsageDetail_20' ) end [2024-12-30 22:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:29:22] Production.INFO: ==14803== Releasing lock... [2024-12-30 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:29:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-30 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:30:06 [end_date_ymd] => 2024-12-30 22:30:06 [RateCDR] => 1 ) [2024-12-30 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:30:06' and `end` < '2024-12-30 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:30:18] Production.INFO: count ==1012 [2024-12-30 22:30:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:30:06 - End Time 2024-12-30 22:30:06 [2024-12-30 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139270', 'tblTempUsageDetail_20' ) start [2024-12-30 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139270', 'tblTempUsageDetail_20' ) end [2024-12-30 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139270', 'tblTempVendorCDR_20' ) start [2024-12-30 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139270', 'tblTempVendorCDR_20' ) end [2024-12-30 22:30:18] Production.INFO: ProcessCDR(1,14139270,1,1,2) [2024-12-30 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139270', 'tblTempUsageDetail_20' ) start [2024-12-30 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139270', 'tblTempUsageDetail_20' ) end [2024-12-30 22:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:30:22] Production.INFO: ==14892== Releasing lock... [2024-12-30 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:30:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-30 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:31:05 [end_date_ymd] => 2024-12-30 22:31:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:31:05' and `end` < '2024-12-30 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-30 22:31:18] Production.INFO: count ==974 [2024-12-30 22:31:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:31:05 - End Time 2024-12-30 22:31:05 [2024-12-30 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139275', 'tblTempUsageDetail_20' ) start [2024-12-30 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139275', 'tblTempUsageDetail_20' ) end [2024-12-30 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139275', 'tblTempVendorCDR_20' ) start [2024-12-30 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139275', 'tblTempVendorCDR_20' ) end [2024-12-30 22:31:18] Production.INFO: ProcessCDR(1,14139275,1,1,2) [2024-12-30 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139275', 'tblTempUsageDetail_20' ) start [2024-12-30 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139275', 'tblTempUsageDetail_20' ) end [2024-12-30 22:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:31:21] Production.INFO: ==14979== Releasing lock... [2024-12-30 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:31:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-30 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:32:05 [end_date_ymd] => 2024-12-30 22:32:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:32:05' and `end` < '2024-12-30 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-30 22:32:20] Production.INFO: count ==973 [2024-12-30 22:32:20] Production.ERROR: pbx CDR StartTime 2024-12-30 19:32:05 - End Time 2024-12-30 22:32:05 [2024-12-30 22:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139280', 'tblTempUsageDetail_20' ) start [2024-12-30 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139280', 'tblTempUsageDetail_20' ) end [2024-12-30 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139280', 'tblTempVendorCDR_20' ) start [2024-12-30 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139280', 'tblTempVendorCDR_20' ) end [2024-12-30 22:32:20] Production.INFO: ProcessCDR(1,14139280,1,1,2) [2024-12-30 22:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139280', 'tblTempUsageDetail_20' ) start [2024-12-30 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139280', 'tblTempUsageDetail_20' ) end [2024-12-30 22:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:32:23] Production.INFO: ==15062== Releasing lock... [2024-12-30 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:32:23] Production.INFO: 34.75 MB #Memory Used# [2024-12-30 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:33:05 [end_date_ymd] => 2024-12-30 22:33:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:33:05' and `end` < '2024-12-30 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-30 22:33:19] Production.INFO: count ==967 [2024-12-30 22:33:19] Production.ERROR: pbx CDR StartTime 2024-12-30 19:33:05 - End Time 2024-12-30 22:33:05 [2024-12-30 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139285', 'tblTempUsageDetail_20' ) start [2024-12-30 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139285', 'tblTempUsageDetail_20' ) end [2024-12-30 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139285', 'tblTempVendorCDR_20' ) start [2024-12-30 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139285', 'tblTempVendorCDR_20' ) end [2024-12-30 22:33:19] Production.INFO: ProcessCDR(1,14139285,1,1,2) [2024-12-30 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139285', 'tblTempUsageDetail_20' ) start [2024-12-30 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139285', 'tblTempUsageDetail_20' ) end [2024-12-30 22:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:33:22] Production.INFO: ==15146== Releasing lock... [2024-12-30 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:33:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-30 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:34:05 [end_date_ymd] => 2024-12-30 22:34:05 [RateCDR] => 1 ) [2024-12-30 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:34:05' and `end` < '2024-12-30 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:34:18] Production.INFO: count ==964 [2024-12-30 22:34:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:34:05 - End Time 2024-12-30 22:34:05 [2024-12-30 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139290', 'tblTempUsageDetail_20' ) start [2024-12-30 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139290', 'tblTempUsageDetail_20' ) end [2024-12-30 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139290', 'tblTempVendorCDR_20' ) start [2024-12-30 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139290', 'tblTempVendorCDR_20' ) end [2024-12-30 22:34:18] Production.INFO: ProcessCDR(1,14139290,1,1,2) [2024-12-30 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139290', 'tblTempUsageDetail_20' ) start [2024-12-30 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139290', 'tblTempUsageDetail_20' ) end [2024-12-30 22:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:34:21] Production.INFO: ==15232== Releasing lock... [2024-12-30 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:34:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-30 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:35:05 [end_date_ymd] => 2024-12-30 22:35:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:35:05' and `end` < '2024-12-30 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-30 22:35:18] Production.INFO: count ==965 [2024-12-30 22:35:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:35:05 - End Time 2024-12-30 22:35:05 [2024-12-30 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139295', 'tblTempUsageDetail_20' ) start [2024-12-30 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139295', 'tblTempUsageDetail_20' ) end [2024-12-30 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139295', 'tblTempVendorCDR_20' ) start [2024-12-30 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139295', 'tblTempVendorCDR_20' ) end [2024-12-30 22:35:18] Production.INFO: ProcessCDR(1,14139295,1,1,2) [2024-12-30 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139295', 'tblTempUsageDetail_20' ) start [2024-12-30 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139295', 'tblTempUsageDetail_20' ) end [2024-12-30 22:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:35:23] Production.INFO: ==15311== Releasing lock... [2024-12-30 22:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:35:23] Production.INFO: 34.75 MB #Memory Used# [2024-12-30 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:36:05 [end_date_ymd] => 2024-12-30 22:36:05 [RateCDR] => 1 ) [2024-12-30 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:36:05' and `end` < '2024-12-30 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:36:19] Production.INFO: count ==964 [2024-12-30 22:36:19] Production.ERROR: pbx CDR StartTime 2024-12-30 19:36:05 - End Time 2024-12-30 22:36:05 [2024-12-30 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139300', 'tblTempUsageDetail_20' ) start [2024-12-30 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139300', 'tblTempUsageDetail_20' ) end [2024-12-30 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139300', 'tblTempVendorCDR_20' ) start [2024-12-30 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139300', 'tblTempVendorCDR_20' ) end [2024-12-30 22:36:19] Production.INFO: ProcessCDR(1,14139300,1,1,2) [2024-12-30 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139300', 'tblTempUsageDetail_20' ) start [2024-12-30 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139300', 'tblTempUsageDetail_20' ) end [2024-12-30 22:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:36:22] Production.INFO: ==15396== Releasing lock... [2024-12-30 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:36:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-30 22:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:37:04 [end_date_ymd] => 2024-12-30 22:37:04 [RateCDR] => 1 ) [2024-12-30 22:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:37:04' and `end` < '2024-12-30 22:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:37:17] Production.INFO: count ==963 [2024-12-30 22:37:17] Production.ERROR: pbx CDR StartTime 2024-12-30 19:37:04 - End Time 2024-12-30 22:37:04 [2024-12-30 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139305', 'tblTempUsageDetail_20' ) start [2024-12-30 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139305', 'tblTempUsageDetail_20' ) end [2024-12-30 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139305', 'tblTempVendorCDR_20' ) start [2024-12-30 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139305', 'tblTempVendorCDR_20' ) end [2024-12-30 22:37:17] Production.INFO: ProcessCDR(1,14139305,1,1,2) [2024-12-30 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139305', 'tblTempUsageDetail_20' ) start [2024-12-30 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139305', 'tblTempUsageDetail_20' ) end [2024-12-30 22:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:37:20] Production.INFO: ==15481== Releasing lock... [2024-12-30 22:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:37:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-30 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:38:05 [end_date_ymd] => 2024-12-30 22:38:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:38:05' and `end` < '2024-12-30 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-30 22:38:19] Production.INFO: count ==963 [2024-12-30 22:38:19] Production.ERROR: pbx CDR StartTime 2024-12-30 19:38:05 - End Time 2024-12-30 22:38:05 [2024-12-30 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139310', 'tblTempUsageDetail_20' ) start [2024-12-30 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139310', 'tblTempUsageDetail_20' ) end [2024-12-30 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139310', 'tblTempVendorCDR_20' ) start [2024-12-30 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139310', 'tblTempVendorCDR_20' ) end [2024-12-30 22:38:19] Production.INFO: ProcessCDR(1,14139310,1,1,2) [2024-12-30 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139310', 'tblTempUsageDetail_20' ) start [2024-12-30 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139310', 'tblTempUsageDetail_20' ) end [2024-12-30 22:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:38:22] Production.INFO: ==15568== Releasing lock... [2024-12-30 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:38:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-30 22:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:39:04 [end_date_ymd] => 2024-12-30 22:39:04 [RateCDR] => 1 ) [2024-12-30 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-30 19:39:04' and `end` < '2024-12-30 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-30 22:39:17] Production.INFO: count ==964 [2024-12-30 22:39:17] Production.ERROR: pbx CDR StartTime 2024-12-30 19:39:04 - End Time 2024-12-30 22:39:04 [2024-12-30 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139315', 'tblTempUsageDetail_20' ) start [2024-12-30 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139315', 'tblTempUsageDetail_20' ) end [2024-12-30 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139315', 'tblTempVendorCDR_20' ) start [2024-12-30 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139315', 'tblTempVendorCDR_20' ) end [2024-12-30 22:39:17] Production.INFO: ProcessCDR(1,14139315,1,1,2) [2024-12-30 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139315', 'tblTempUsageDetail_20' ) start [2024-12-30 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139315', 'tblTempUsageDetail_20' ) end [2024-12-30 22:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:39:22] Production.INFO: ==15654== Releasing lock... [2024-12-30 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:39:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-30 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:40:05 [end_date_ymd] => 2024-12-30 22:40:05 [RateCDR] => 1 ) [2024-12-30 22:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:40:05' and `end` < '2024-12-30 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-30 22:40:18] Production.INFO: count ==962 [2024-12-30 22:40:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:40:05 - End Time 2024-12-30 22:40:05 [2024-12-30 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139320', 'tblTempUsageDetail_20' ) start [2024-12-30 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139320', 'tblTempUsageDetail_20' ) end [2024-12-30 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139320', 'tblTempVendorCDR_20' ) start [2024-12-30 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139320', 'tblTempVendorCDR_20' ) end [2024-12-30 22:40:18] Production.INFO: ProcessCDR(1,14139320,1,1,2) [2024-12-30 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139320', 'tblTempUsageDetail_20' ) start [2024-12-30 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139320', 'tblTempUsageDetail_20' ) end [2024-12-30 22:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:40:21] Production.INFO: ==15740== Releasing lock... [2024-12-30 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:40:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-30 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:41:05 [end_date_ymd] => 2024-12-30 22:41:05 [RateCDR] => 1 ) [2024-12-30 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:41:05' and `end` < '2024-12-30 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:41:19] Production.INFO: count ==906 [2024-12-30 22:41:19] Production.ERROR: pbx CDR StartTime 2024-12-30 19:41:05 - End Time 2024-12-30 22:41:05 [2024-12-30 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139326', 'tblTempUsageDetail_20' ) start [2024-12-30 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139326', 'tblTempUsageDetail_20' ) end [2024-12-30 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139326', 'tblTempVendorCDR_20' ) start [2024-12-30 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139326', 'tblTempVendorCDR_20' ) end [2024-12-30 22:41:19] Production.INFO: ProcessCDR(1,14139326,1,1,2) [2024-12-30 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139326', 'tblTempUsageDetail_20' ) start [2024-12-30 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139326', 'tblTempUsageDetail_20' ) end [2024-12-30 22:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:41:22] Production.INFO: ==15826== Releasing lock... [2024-12-30 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:41:22] Production.INFO: 34 MB #Memory Used# [2024-12-30 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:42:05 [end_date_ymd] => 2024-12-30 22:42:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:42:05' and `end` < '2024-12-30 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-30 22:42:17] Production.INFO: count ==905 [2024-12-30 22:42:17] Production.ERROR: pbx CDR StartTime 2024-12-30 19:42:05 - End Time 2024-12-30 22:42:05 [2024-12-30 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139331', 'tblTempUsageDetail_20' ) start [2024-12-30 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139331', 'tblTempUsageDetail_20' ) end [2024-12-30 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139331', 'tblTempVendorCDR_20' ) start [2024-12-30 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139331', 'tblTempVendorCDR_20' ) end [2024-12-30 22:42:17] Production.INFO: ProcessCDR(1,14139331,1,1,2) [2024-12-30 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139331', 'tblTempUsageDetail_20' ) start [2024-12-30 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139331', 'tblTempUsageDetail_20' ) end [2024-12-30 22:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:42:20] Production.INFO: ==15910== Releasing lock... [2024-12-30 22:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:42:20] Production.INFO: 34 MB #Memory Used# [2024-12-30 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:43:05 [end_date_ymd] => 2024-12-30 22:43:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:43:05' and `end` < '2024-12-30 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-30 22:43:19] Production.INFO: count ==907 [2024-12-30 22:43:19] Production.ERROR: pbx CDR StartTime 2024-12-30 19:43:05 - End Time 2024-12-30 22:43:05 [2024-12-30 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139336', 'tblTempUsageDetail_20' ) start [2024-12-30 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139336', 'tblTempUsageDetail_20' ) end [2024-12-30 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139336', 'tblTempVendorCDR_20' ) start [2024-12-30 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139336', 'tblTempVendorCDR_20' ) end [2024-12-30 22:43:19] Production.INFO: ProcessCDR(1,14139336,1,1,2) [2024-12-30 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139336', 'tblTempUsageDetail_20' ) start [2024-12-30 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139336', 'tblTempUsageDetail_20' ) end [2024-12-30 22:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:43:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:43:24] Production.INFO: ==15996== Releasing lock... [2024-12-30 22:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:43:24] Production.INFO: 34 MB #Memory Used# [2024-12-30 22:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:44:04 [end_date_ymd] => 2024-12-30 22:44:04 [RateCDR] => 1 ) [2024-12-30 22: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-30 19:44:04' and `end` < '2024-12-30 22: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-30 22:44:18] Production.INFO: count ==907 [2024-12-30 22:44:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:44:04 - End Time 2024-12-30 22:44:04 [2024-12-30 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139341', 'tblTempUsageDetail_20' ) start [2024-12-30 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139341', 'tblTempUsageDetail_20' ) end [2024-12-30 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139341', 'tblTempVendorCDR_20' ) start [2024-12-30 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139341', 'tblTempVendorCDR_20' ) end [2024-12-30 22:44:18] Production.INFO: ProcessCDR(1,14139341,1,1,2) [2024-12-30 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139341', 'tblTempUsageDetail_20' ) start [2024-12-30 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139341', 'tblTempUsageDetail_20' ) end [2024-12-30 22:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:44:21] Production.INFO: ==16121== Releasing lock... [2024-12-30 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:44:21] Production.INFO: 34 MB #Memory Used# [2024-12-30 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:45:05 [end_date_ymd] => 2024-12-30 22:45:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:45:05' and `end` < '2024-12-30 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-30 22:45:18] Production.INFO: count ==905 [2024-12-30 22:45:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:45:05 - End Time 2024-12-30 22:45:05 [2024-12-30 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139346', 'tblTempUsageDetail_20' ) start [2024-12-30 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139346', 'tblTempUsageDetail_20' ) end [2024-12-30 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139346', 'tblTempVendorCDR_20' ) start [2024-12-30 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139346', 'tblTempVendorCDR_20' ) end [2024-12-30 22:45:18] Production.INFO: ProcessCDR(1,14139346,1,1,2) [2024-12-30 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139346', 'tblTempUsageDetail_20' ) start [2024-12-30 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139346', 'tblTempUsageDetail_20' ) end [2024-12-30 22:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:45:21] Production.INFO: ==16203== Releasing lock... [2024-12-30 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:45:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-30 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:46:05 [end_date_ymd] => 2024-12-30 22:46:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:46:05' and `end` < '2024-12-30 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:46:17] Production.INFO: count ==902 [2024-12-30 22:46:17] Production.ERROR: pbx CDR StartTime 2024-12-30 19:46:05 - End Time 2024-12-30 22:46:05 [2024-12-30 22:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139351', 'tblTempUsageDetail_20' ) start [2024-12-30 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139351', 'tblTempUsageDetail_20' ) end [2024-12-30 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139351', 'tblTempVendorCDR_20' ) start [2024-12-30 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139351', 'tblTempVendorCDR_20' ) end [2024-12-30 22:46:17] Production.INFO: ProcessCDR(1,14139351,1,1,2) [2024-12-30 22:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139351', 'tblTempUsageDetail_20' ) start [2024-12-30 22:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139351', 'tblTempUsageDetail_20' ) end [2024-12-30 22:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:46:20] Production.INFO: ==16287== Releasing lock... [2024-12-30 22:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:46:20] Production.INFO: 34 MB #Memory Used# [2024-12-30 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:47:05 [end_date_ymd] => 2024-12-30 22:47:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:47:05' and `end` < '2024-12-30 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-30 22:47:19] Production.INFO: count ==905 [2024-12-30 22:47:19] Production.ERROR: pbx CDR StartTime 2024-12-30 19:47:05 - End Time 2024-12-30 22:47:05 [2024-12-30 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139356', 'tblTempUsageDetail_20' ) start [2024-12-30 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139356', 'tblTempUsageDetail_20' ) end [2024-12-30 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139356', 'tblTempVendorCDR_20' ) start [2024-12-30 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139356', 'tblTempVendorCDR_20' ) end [2024-12-30 22:47:19] Production.INFO: ProcessCDR(1,14139356,1,1,2) [2024-12-30 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139356', 'tblTempUsageDetail_20' ) start [2024-12-30 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139356', 'tblTempUsageDetail_20' ) end [2024-12-30 22:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:47:22] Production.INFO: ==16372== Releasing lock... [2024-12-30 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:47:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-30 22:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:48:04 [end_date_ymd] => 2024-12-30 22:48:04 [RateCDR] => 1 ) [2024-12-30 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-30 19:48:04' and `end` < '2024-12-30 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-30 22:48:17] Production.INFO: count ==901 [2024-12-30 22:48:17] Production.ERROR: pbx CDR StartTime 2024-12-30 19:48:04 - End Time 2024-12-30 22:48:04 [2024-12-30 22:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139361', 'tblTempUsageDetail_20' ) start [2024-12-30 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139361', 'tblTempUsageDetail_20' ) end [2024-12-30 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139361', 'tblTempVendorCDR_20' ) start [2024-12-30 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139361', 'tblTempVendorCDR_20' ) end [2024-12-30 22:48:17] Production.INFO: ProcessCDR(1,14139361,1,1,2) [2024-12-30 22:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139361', 'tblTempUsageDetail_20' ) start [2024-12-30 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139361', 'tblTempUsageDetail_20' ) end [2024-12-30 22:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:48:20] Production.INFO: ==16456== Releasing lock... [2024-12-30 22:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:48:20] Production.INFO: 34 MB #Memory Used# [2024-12-30 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:49:05 [end_date_ymd] => 2024-12-30 22:49:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:49:05' and `end` < '2024-12-30 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-30 22:49:19] Production.INFO: count ==897 [2024-12-30 22:49:19] Production.ERROR: pbx CDR StartTime 2024-12-30 19:49:05 - End Time 2024-12-30 22:49:05 [2024-12-30 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139366', 'tblTempUsageDetail_20' ) start [2024-12-30 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139366', 'tblTempUsageDetail_20' ) end [2024-12-30 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139366', 'tblTempVendorCDR_20' ) start [2024-12-30 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139366', 'tblTempVendorCDR_20' ) end [2024-12-30 22:49:19] Production.INFO: ProcessCDR(1,14139366,1,1,2) [2024-12-30 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139366', 'tblTempUsageDetail_20' ) start [2024-12-30 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139366', 'tblTempUsageDetail_20' ) end [2024-12-30 22:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:49:22] Production.INFO: ==16541== Releasing lock... [2024-12-30 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:49:22] Production.INFO: 34 MB #Memory Used# [2024-12-30 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:50:06 [end_date_ymd] => 2024-12-30 22:50:06 [RateCDR] => 1 ) [2024-12-30 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:50:06' and `end` < '2024-12-30 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:50:18] Production.INFO: count ==894 [2024-12-30 22:50:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:50:06 - End Time 2024-12-30 22:50:06 [2024-12-30 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139372', 'tblTempUsageDetail_20' ) start [2024-12-30 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139372', 'tblTempUsageDetail_20' ) end [2024-12-30 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139372', 'tblTempVendorCDR_20' ) start [2024-12-30 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139372', 'tblTempVendorCDR_20' ) end [2024-12-30 22:50:18] Production.INFO: ProcessCDR(1,14139372,1,1,2) [2024-12-30 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139372', 'tblTempUsageDetail_20' ) start [2024-12-30 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139372', 'tblTempUsageDetail_20' ) end [2024-12-30 22:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:50:23] Production.INFO: ==16626== Releasing lock... [2024-12-30 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:50:23] Production.INFO: 34 MB #Memory Used# [2024-12-30 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:51:05 [end_date_ymd] => 2024-12-30 22:51:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:51:05' and `end` < '2024-12-30 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-30 22:51:18] Production.INFO: count ==849 [2024-12-30 22:51:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:51:05 - End Time 2024-12-30 22:51:05 [2024-12-30 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139377', 'tblTempUsageDetail_20' ) start [2024-12-30 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139377', 'tblTempUsageDetail_20' ) end [2024-12-30 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139377', 'tblTempVendorCDR_20' ) start [2024-12-30 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139377', 'tblTempVendorCDR_20' ) end [2024-12-30 22:51:18] Production.INFO: ProcessCDR(1,14139377,1,1,2) [2024-12-30 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139377', 'tblTempUsageDetail_20' ) start [2024-12-30 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139377', 'tblTempUsageDetail_20' ) end [2024-12-30 22:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:51:22] Production.INFO: ==16716== Releasing lock... [2024-12-30 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:51:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:52:05 [end_date_ymd] => 2024-12-30 22:52:05 [RateCDR] => 1 ) [2024-12-30 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:52:05' and `end` < '2024-12-30 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:52:19] Production.INFO: count ==849 [2024-12-30 22:52:19] Production.ERROR: pbx CDR StartTime 2024-12-30 19:52:05 - End Time 2024-12-30 22:52:05 [2024-12-30 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139382', 'tblTempUsageDetail_20' ) start [2024-12-30 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139382', 'tblTempUsageDetail_20' ) end [2024-12-30 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139382', 'tblTempVendorCDR_20' ) start [2024-12-30 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139382', 'tblTempVendorCDR_20' ) end [2024-12-30 22:52:19] Production.INFO: ProcessCDR(1,14139382,1,1,2) [2024-12-30 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139382', 'tblTempUsageDetail_20' ) start [2024-12-30 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139382', 'tblTempUsageDetail_20' ) end [2024-12-30 22:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:52:22] Production.INFO: ==16799== Releasing lock... [2024-12-30 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:52:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 22:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:53:04 [end_date_ymd] => 2024-12-30 22:53:04 [RateCDR] => 1 ) [2024-12-30 22: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-30 19:53:04' and `end` < '2024-12-30 22: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-30 22:53:19] Production.INFO: count ==849 [2024-12-30 22:53:20] Production.ERROR: pbx CDR StartTime 2024-12-30 19:53:04 - End Time 2024-12-30 22:53:04 [2024-12-30 22:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139387', 'tblTempUsageDetail_20' ) start [2024-12-30 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139387', 'tblTempUsageDetail_20' ) end [2024-12-30 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139387', 'tblTempVendorCDR_20' ) start [2024-12-30 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139387', 'tblTempVendorCDR_20' ) end [2024-12-30 22:53:20] Production.INFO: ProcessCDR(1,14139387,1,1,2) [2024-12-30 22:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139387', 'tblTempUsageDetail_20' ) start [2024-12-30 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139387', 'tblTempUsageDetail_20' ) end [2024-12-30 22:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:53:22] Production.INFO: ==16881== Releasing lock... [2024-12-30 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:53:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:54:05 [end_date_ymd] => 2024-12-30 22:54:05 [RateCDR] => 1 ) [2024-12-30 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:54:05' and `end` < '2024-12-30 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:54:18] Production.INFO: count ==853 [2024-12-30 22:54:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:54:05 - End Time 2024-12-30 22:54:05 [2024-12-30 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139392', 'tblTempUsageDetail_20' ) start [2024-12-30 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139392', 'tblTempUsageDetail_20' ) end [2024-12-30 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139392', 'tblTempVendorCDR_20' ) start [2024-12-30 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139392', 'tblTempVendorCDR_20' ) end [2024-12-30 22:54:18] Production.INFO: ProcessCDR(1,14139392,1,1,2) [2024-12-30 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139392', 'tblTempUsageDetail_20' ) start [2024-12-30 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139392', 'tblTempUsageDetail_20' ) end [2024-12-30 22:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:54:21] Production.INFO: ==16973== Releasing lock... [2024-12-30 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:54:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 22:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:55:04 [end_date_ymd] => 2024-12-30 22:55:04 [RateCDR] => 1 ) [2024-12-30 22: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-30 19:55:04' and `end` < '2024-12-30 22: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-30 22:55:17] Production.INFO: count ==853 [2024-12-30 22:55:17] Production.ERROR: pbx CDR StartTime 2024-12-30 19:55:04 - End Time 2024-12-30 22:55:04 [2024-12-30 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139397', 'tblTempUsageDetail_20' ) start [2024-12-30 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139397', 'tblTempUsageDetail_20' ) end [2024-12-30 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139397', 'tblTempVendorCDR_20' ) start [2024-12-30 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139397', 'tblTempVendorCDR_20' ) end [2024-12-30 22:55:17] Production.INFO: ProcessCDR(1,14139397,1,1,2) [2024-12-30 22:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139397', 'tblTempUsageDetail_20' ) start [2024-12-30 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139397', 'tblTempUsageDetail_20' ) end [2024-12-30 22:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:55:20] Production.INFO: ==17057== Releasing lock... [2024-12-30 22:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:55:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 22:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:56:04 [end_date_ymd] => 2024-12-30 22:56:04 [RateCDR] => 1 ) [2024-12-30 22: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-30 19:56:04' and `end` < '2024-12-30 22: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-30 22:56:18] Production.INFO: count ==853 [2024-12-30 22:56:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:56:04 - End Time 2024-12-30 22:56:04 [2024-12-30 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139402', 'tblTempUsageDetail_20' ) start [2024-12-30 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139402', 'tblTempUsageDetail_20' ) end [2024-12-30 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139402', 'tblTempVendorCDR_20' ) start [2024-12-30 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139402', 'tblTempVendorCDR_20' ) end [2024-12-30 22:56:18] Production.INFO: ProcessCDR(1,14139402,1,1,2) [2024-12-30 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139402', 'tblTempUsageDetail_20' ) start [2024-12-30 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139402', 'tblTempUsageDetail_20' ) end [2024-12-30 22:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:56:21] Production.INFO: ==17150== Releasing lock... [2024-12-30 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:56:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:57:05 [end_date_ymd] => 2024-12-30 22:57:05 [RateCDR] => 1 ) [2024-12-30 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:57:05' and `end` < '2024-12-30 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:57:18] Production.INFO: count ==853 [2024-12-30 22:57:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:57:05 - End Time 2024-12-30 22:57:05 [2024-12-30 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139407', 'tblTempUsageDetail_20' ) start [2024-12-30 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139407', 'tblTempUsageDetail_20' ) end [2024-12-30 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139407', 'tblTempVendorCDR_20' ) start [2024-12-30 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139407', 'tblTempVendorCDR_20' ) end [2024-12-30 22:57:18] Production.INFO: ProcessCDR(1,14139407,1,1,2) [2024-12-30 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139407', 'tblTempUsageDetail_20' ) start [2024-12-30 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139407', 'tblTempUsageDetail_20' ) end [2024-12-30 22:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:57:21] Production.INFO: ==17235== Releasing lock... [2024-12-30 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:57:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:58:05 [end_date_ymd] => 2024-12-30 22:58:05 [RateCDR] => 1 ) [2024-12-30 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-30 19:58:05' and `end` < '2024-12-30 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-30 22:58:18] Production.INFO: count ==852 [2024-12-30 22:58:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:58:05 - End Time 2024-12-30 22:58:05 [2024-12-30 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139412', 'tblTempUsageDetail_20' ) start [2024-12-30 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139412', 'tblTempUsageDetail_20' ) end [2024-12-30 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139412', 'tblTempVendorCDR_20' ) start [2024-12-30 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139412', 'tblTempVendorCDR_20' ) end [2024-12-30 22:58:18] Production.INFO: ProcessCDR(1,14139412,1,1,2) [2024-12-30 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139412', 'tblTempUsageDetail_20' ) start [2024-12-30 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139412', 'tblTempUsageDetail_20' ) end [2024-12-30 22:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:58:21] Production.INFO: ==17332== Releasing lock... [2024-12-30 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:58:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 19:59:05 [end_date_ymd] => 2024-12-30 22:59:05 [RateCDR] => 1 ) [2024-12-30 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 19:59:05' and `end` < '2024-12-30 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 22:59:18] Production.INFO: count ==853 [2024-12-30 22:59:18] Production.ERROR: pbx CDR StartTime 2024-12-30 19:59:05 - End Time 2024-12-30 22:59:05 [2024-12-30 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139417', 'tblTempUsageDetail_20' ) start [2024-12-30 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139417', 'tblTempUsageDetail_20' ) end [2024-12-30 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139417', 'tblTempVendorCDR_20' ) start [2024-12-30 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139417', 'tblTempVendorCDR_20' ) end [2024-12-30 22:59:18] Production.INFO: ProcessCDR(1,14139417,1,1,2) [2024-12-30 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 22:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 22:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139417', 'tblTempUsageDetail_20' ) start [2024-12-30 22:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139417', 'tblTempUsageDetail_20' ) end [2024-12-30 22:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 22:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 22:59:23] Production.INFO: ==17427== Releasing lock... [2024-12-30 22:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 22:59:23] Production.INFO: 33.75 MB #Memory Used# [2024-12-30 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:00:05 [end_date_ymd] => 2024-12-30 23:00:05 [RateCDR] => 1 ) [2024-12-30 23: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-30 20:00:05' and `end` < '2024-12-30 23: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-30 23:00:17] Production.INFO: count ==857 [2024-12-30 23:00:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:00:05 - End Time 2024-12-30 23:00:05 [2024-12-30 23:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139422', 'tblTempUsageDetail_20' ) start [2024-12-30 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139422', 'tblTempUsageDetail_20' ) end [2024-12-30 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139422', 'tblTempVendorCDR_20' ) start [2024-12-30 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139422', 'tblTempVendorCDR_20' ) end [2024-12-30 23:00:18] Production.INFO: ProcessCDR(1,14139422,1,1,2) [2024-12-30 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139422', 'tblTempUsageDetail_20' ) start [2024-12-30 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139422', 'tblTempUsageDetail_20' ) end [2024-12-30 23:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:00:22] Production.INFO: ==17570== Releasing lock... [2024-12-30 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:00:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-30 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:01:05 [end_date_ymd] => 2024-12-30 23:01:05 [RateCDR] => 1 ) [2024-12-30 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 20:01:05' and `end` < '2024-12-30 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 23:01:18] Production.INFO: count ==853 [2024-12-30 23:01:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:01:05 - End Time 2024-12-30 23:01:05 [2024-12-30 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139428', 'tblTempUsageDetail_20' ) start [2024-12-30 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139428', 'tblTempUsageDetail_20' ) end [2024-12-30 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139428', 'tblTempVendorCDR_20' ) start [2024-12-30 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139428', 'tblTempVendorCDR_20' ) end [2024-12-30 23:01:18] Production.INFO: ProcessCDR(1,14139428,1,1,2) [2024-12-30 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139428', 'tblTempUsageDetail_20' ) start [2024-12-30 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139428', 'tblTempUsageDetail_20' ) end [2024-12-30 23:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:01:21] Production.INFO: ==17726== Releasing lock... [2024-12-30 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:01:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:02:05 [end_date_ymd] => 2024-12-30 23:02:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:02:05' and `end` < '2024-12-30 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-30 23:02:17] Production.INFO: count ==854 [2024-12-30 23:02:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:02:05 - End Time 2024-12-30 23:02:05 [2024-12-30 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139433', 'tblTempUsageDetail_20' ) start [2024-12-30 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139433', 'tblTempUsageDetail_20' ) end [2024-12-30 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139433', 'tblTempVendorCDR_20' ) start [2024-12-30 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139433', 'tblTempVendorCDR_20' ) end [2024-12-30 23:02:18] Production.INFO: ProcessCDR(1,14139433,1,1,2) [2024-12-30 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139433', 'tblTempUsageDetail_20' ) start [2024-12-30 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139433', 'tblTempUsageDetail_20' ) end [2024-12-30 23:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:02:22] Production.INFO: ==17867== Releasing lock... [2024-12-30 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:02:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:03:05 [end_date_ymd] => 2024-12-30 23:03:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:03:05' and `end` < '2024-12-30 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-30 23:03:17] Production.INFO: count ==853 [2024-12-30 23:03:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:03:05 - End Time 2024-12-30 23:03:05 [2024-12-30 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139438', 'tblTempUsageDetail_20' ) start [2024-12-30 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139438', 'tblTempUsageDetail_20' ) end [2024-12-30 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139438', 'tblTempVendorCDR_20' ) start [2024-12-30 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139438', 'tblTempVendorCDR_20' ) end [2024-12-30 23:03:18] Production.INFO: ProcessCDR(1,14139438,1,1,2) [2024-12-30 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139438', 'tblTempUsageDetail_20' ) start [2024-12-30 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139438', 'tblTempUsageDetail_20' ) end [2024-12-30 23:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:03:21] Production.INFO: ==17965== Releasing lock... [2024-12-30 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:03:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:04:05 [end_date_ymd] => 2024-12-30 23:04:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:04:05' and `end` < '2024-12-30 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-30 23:04:17] Production.INFO: count ==853 [2024-12-30 23:04:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:04:05 - End Time 2024-12-30 23:04:05 [2024-12-30 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139443', 'tblTempUsageDetail_20' ) start [2024-12-30 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139443', 'tblTempUsageDetail_20' ) end [2024-12-30 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139443', 'tblTempVendorCDR_20' ) start [2024-12-30 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139443', 'tblTempVendorCDR_20' ) end [2024-12-30 23:04:17] Production.INFO: ProcessCDR(1,14139443,1,1,2) [2024-12-30 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139443', 'tblTempUsageDetail_20' ) start [2024-12-30 23:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139443', 'tblTempUsageDetail_20' ) end [2024-12-30 23:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:04:20] Production.INFO: ==18061== Releasing lock... [2024-12-30 23:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:04:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:05:05 [end_date_ymd] => 2024-12-30 23:05:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:05:05' and `end` < '2024-12-30 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-30 23:05:18] Production.INFO: count ==854 [2024-12-30 23:05:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:05:05 - End Time 2024-12-30 23:05:05 [2024-12-30 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139448', 'tblTempUsageDetail_20' ) start [2024-12-30 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139448', 'tblTempUsageDetail_20' ) end [2024-12-30 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139448', 'tblTempVendorCDR_20' ) start [2024-12-30 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139448', 'tblTempVendorCDR_20' ) end [2024-12-30 23:05:18] Production.INFO: ProcessCDR(1,14139448,1,1,2) [2024-12-30 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139448', 'tblTempUsageDetail_20' ) start [2024-12-30 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139448', 'tblTempUsageDetail_20' ) end [2024-12-30 23:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:05:22] Production.INFO: ==18238== Releasing lock... [2024-12-30 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:05:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:06:05 [end_date_ymd] => 2024-12-30 23:06:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:06:05' and `end` < '2024-12-30 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-30 23:06:19] Production.INFO: count ==854 [2024-12-30 23:06:19] Production.ERROR: pbx CDR StartTime 2024-12-30 20:06:05 - End Time 2024-12-30 23:06:05 [2024-12-30 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139453', 'tblTempUsageDetail_20' ) start [2024-12-30 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139453', 'tblTempUsageDetail_20' ) end [2024-12-30 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139453', 'tblTempVendorCDR_20' ) start [2024-12-30 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139453', 'tblTempVendorCDR_20' ) end [2024-12-30 23:06:19] Production.INFO: ProcessCDR(1,14139453,1,1,2) [2024-12-30 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139453', 'tblTempUsageDetail_20' ) start [2024-12-30 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139453', 'tblTempUsageDetail_20' ) end [2024-12-30 23:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:06:22] Production.INFO: ==18339== Releasing lock... [2024-12-30 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:06:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:07:04 [end_date_ymd] => 2024-12-30 23:07:04 [RateCDR] => 1 ) [2024-12-30 23: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-30 20:07:04' and `end` < '2024-12-30 23: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-30 23:07:18] Production.INFO: count ==854 [2024-12-30 23:07:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:07:04 - End Time 2024-12-30 23:07:04 [2024-12-30 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139458', 'tblTempUsageDetail_20' ) start [2024-12-30 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139458', 'tblTempUsageDetail_20' ) end [2024-12-30 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139458', 'tblTempVendorCDR_20' ) start [2024-12-30 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139458', 'tblTempVendorCDR_20' ) end [2024-12-30 23:07:18] Production.INFO: ProcessCDR(1,14139458,1,1,2) [2024-12-30 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139458', 'tblTempUsageDetail_20' ) start [2024-12-30 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139458', 'tblTempUsageDetail_20' ) end [2024-12-30 23:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:07:21] Production.INFO: ==18436== Releasing lock... [2024-12-30 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:07:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 23:08:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:08:06 [end_date_ymd] => 2024-12-30 23:08:06 [RateCDR] => 1 ) [2024-12-30 23:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 20:08:06' and `end` < '2024-12-30 23:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 23:08:22] Production.INFO: count ==850 [2024-12-30 23:08:22] Production.ERROR: pbx CDR StartTime 2024-12-30 20:08:06 - End Time 2024-12-30 23:08:06 [2024-12-30 23:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139463', 'tblTempUsageDetail_20' ) start [2024-12-30 23:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139463', 'tblTempUsageDetail_20' ) end [2024-12-30 23:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139463', 'tblTempVendorCDR_20' ) start [2024-12-30 23:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139463', 'tblTempVendorCDR_20' ) end [2024-12-30 23:08:22] Production.INFO: ProcessCDR(1,14139463,1,1,2) [2024-12-30 23:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139463', 'tblTempUsageDetail_20' ) start [2024-12-30 23:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139463', 'tblTempUsageDetail_20' ) end [2024-12-30 23:08:25] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:08:25] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:08:25] Production.INFO: ==18615== Releasing lock... [2024-12-30 23:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:08:25] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:09:05 [end_date_ymd] => 2024-12-30 23:09:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:09:05' and `end` < '2024-12-30 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-30 23:09:18] Production.INFO: count ==849 [2024-12-30 23:09:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:09:05 - End Time 2024-12-30 23:09:05 [2024-12-30 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139468', 'tblTempUsageDetail_20' ) start [2024-12-30 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139468', 'tblTempUsageDetail_20' ) end [2024-12-30 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139468', 'tblTempVendorCDR_20' ) start [2024-12-30 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139468', 'tblTempVendorCDR_20' ) end [2024-12-30 23:09:18] Production.INFO: ProcessCDR(1,14139468,1,1,2) [2024-12-30 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139468', 'tblTempUsageDetail_20' ) start [2024-12-30 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139468', 'tblTempUsageDetail_20' ) end [2024-12-30 23:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:09:21] Production.INFO: ==18706== Releasing lock... [2024-12-30 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:09:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:10:05 [end_date_ymd] => 2024-12-30 23:10:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:10:05' and `end` < '2024-12-30 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-30 23:10:18] Production.INFO: count ==852 [2024-12-30 23:10:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:10:05 - End Time 2024-12-30 23:10:05 [2024-12-30 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139474', 'tblTempUsageDetail_20' ) start [2024-12-30 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139474', 'tblTempUsageDetail_20' ) end [2024-12-30 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139474', 'tblTempVendorCDR_20' ) start [2024-12-30 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139474', 'tblTempVendorCDR_20' ) end [2024-12-30 23:10:18] Production.INFO: ProcessCDR(1,14139474,1,1,2) [2024-12-30 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139474', 'tblTempUsageDetail_20' ) start [2024-12-30 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139474', 'tblTempUsageDetail_20' ) end [2024-12-30 23:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:10:22] Production.INFO: ==18808== Releasing lock... [2024-12-30 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:10:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 23:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:11:04 [end_date_ymd] => 2024-12-30 23:11:04 [RateCDR] => 1 ) [2024-12-30 23: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-30 20:11:04' and `end` < '2024-12-30 23: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-30 23:11:18] Production.INFO: count ==831 [2024-12-30 23:11:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:11:04 - End Time 2024-12-30 23:11:04 [2024-12-30 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139479', 'tblTempUsageDetail_20' ) start [2024-12-30 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139479', 'tblTempUsageDetail_20' ) end [2024-12-30 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139479', 'tblTempVendorCDR_20' ) start [2024-12-30 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139479', 'tblTempVendorCDR_20' ) end [2024-12-30 23:11:18] Production.INFO: ProcessCDR(1,14139479,1,1,2) [2024-12-30 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139479', 'tblTempUsageDetail_20' ) start [2024-12-30 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139479', 'tblTempUsageDetail_20' ) end [2024-12-30 23:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:11:21] Production.INFO: ==18904== Releasing lock... [2024-12-30 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:11:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:12:05 [end_date_ymd] => 2024-12-30 23:12:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:12:05' and `end` < '2024-12-30 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-30 23:12:18] Production.INFO: count ==831 [2024-12-30 23:12:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:12:05 - End Time 2024-12-30 23:12:05 [2024-12-30 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139484', 'tblTempUsageDetail_20' ) start [2024-12-30 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139484', 'tblTempUsageDetail_20' ) end [2024-12-30 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139484', 'tblTempVendorCDR_20' ) start [2024-12-30 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139484', 'tblTempVendorCDR_20' ) end [2024-12-30 23:12:18] Production.INFO: ProcessCDR(1,14139484,1,1,2) [2024-12-30 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139484', 'tblTempUsageDetail_20' ) start [2024-12-30 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139484', 'tblTempUsageDetail_20' ) end [2024-12-30 23:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:12:21] Production.INFO: ==19076== Releasing lock... [2024-12-30 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:12:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 23:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:13:04 [end_date_ymd] => 2024-12-30 23:13:04 [RateCDR] => 1 ) [2024-12-30 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-30 20:13:04' and `end` < '2024-12-30 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-30 23:13:18] Production.INFO: count ==829 [2024-12-30 23:13:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:13:04 - End Time 2024-12-30 23:13:04 [2024-12-30 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139489', 'tblTempUsageDetail_20' ) start [2024-12-30 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139489', 'tblTempUsageDetail_20' ) end [2024-12-30 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139489', 'tblTempVendorCDR_20' ) start [2024-12-30 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139489', 'tblTempVendorCDR_20' ) end [2024-12-30 23:13:18] Production.INFO: ProcessCDR(1,14139489,1,1,2) [2024-12-30 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139489', 'tblTempUsageDetail_20' ) start [2024-12-30 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139489', 'tblTempUsageDetail_20' ) end [2024-12-30 23:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:13:21] Production.INFO: ==19169== Releasing lock... [2024-12-30 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:13:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:14:05 [end_date_ymd] => 2024-12-30 23:14:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:14:05' and `end` < '2024-12-30 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-30 23:14:17] Production.INFO: count ==826 [2024-12-30 23:14:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:14:05 - End Time 2024-12-30 23:14:05 [2024-12-30 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139494', 'tblTempUsageDetail_20' ) start [2024-12-30 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139494', 'tblTempUsageDetail_20' ) end [2024-12-30 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139494', 'tblTempVendorCDR_20' ) start [2024-12-30 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139494', 'tblTempVendorCDR_20' ) end [2024-12-30 23:14:18] Production.INFO: ProcessCDR(1,14139494,1,1,2) [2024-12-30 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139494', 'tblTempUsageDetail_20' ) start [2024-12-30 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139494', 'tblTempUsageDetail_20' ) end [2024-12-30 23:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:14:21] Production.INFO: ==19272== Releasing lock... [2024-12-30 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:14:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:15:05 [end_date_ymd] => 2024-12-30 23:15:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:15:05' and `end` < '2024-12-30 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-30 23:15:17] Production.INFO: count ==823 [2024-12-30 23:15:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:15:05 - End Time 2024-12-30 23:15:05 [2024-12-30 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139499', 'tblTempUsageDetail_20' ) start [2024-12-30 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139499', 'tblTempUsageDetail_20' ) end [2024-12-30 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139499', 'tblTempVendorCDR_20' ) start [2024-12-30 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139499', 'tblTempVendorCDR_20' ) end [2024-12-30 23:15:17] Production.INFO: ProcessCDR(1,14139499,1,1,2) [2024-12-30 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139499', 'tblTempUsageDetail_20' ) start [2024-12-30 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139499', 'tblTempUsageDetail_20' ) end [2024-12-30 23:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:15:20] Production.INFO: ==19487== Releasing lock... [2024-12-30 23:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:15:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-30 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:16:05 [end_date_ymd] => 2024-12-30 23:16:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:16:05' and `end` < '2024-12-30 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-30 23:16:19] Production.INFO: count ==819 [2024-12-30 23:16:19] Production.ERROR: pbx CDR StartTime 2024-12-30 20:16:05 - End Time 2024-12-30 23:16:05 [2024-12-30 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139504', 'tblTempUsageDetail_20' ) start [2024-12-30 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139504', 'tblTempUsageDetail_20' ) end [2024-12-30 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139504', 'tblTempVendorCDR_20' ) start [2024-12-30 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139504', 'tblTempVendorCDR_20' ) end [2024-12-30 23:16:19] Production.INFO: ProcessCDR(1,14139504,1,1,2) [2024-12-30 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139504', 'tblTempUsageDetail_20' ) start [2024-12-30 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139504', 'tblTempUsageDetail_20' ) end [2024-12-30 23:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:16:23] Production.INFO: ==19585== Releasing lock... [2024-12-30 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:16:23] Production.INFO: 33.25 MB #Memory Used# [2024-12-30 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:17:05 [end_date_ymd] => 2024-12-30 23:17:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:17:05' and `end` < '2024-12-30 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-30 23:17:17] Production.INFO: count ==808 [2024-12-30 23:17:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:17:05 - End Time 2024-12-30 23:17:05 [2024-12-30 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139509', 'tblTempUsageDetail_20' ) start [2024-12-30 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139509', 'tblTempUsageDetail_20' ) end [2024-12-30 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139509', 'tblTempVendorCDR_20' ) start [2024-12-30 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139509', 'tblTempVendorCDR_20' ) end [2024-12-30 23:17:18] Production.INFO: ProcessCDR(1,14139509,1,1,2) [2024-12-30 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139509', 'tblTempUsageDetail_20' ) start [2024-12-30 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139509', 'tblTempUsageDetail_20' ) end [2024-12-30 23:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:17:21] Production.INFO: ==19680== Releasing lock... [2024-12-30 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:17:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-30 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:18:05 [end_date_ymd] => 2024-12-30 23:18:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:18:05' and `end` < '2024-12-30 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-30 23:18:17] Production.INFO: count ==799 [2024-12-30 23:18:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:18:05 - End Time 2024-12-30 23:18:05 [2024-12-30 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139514', 'tblTempUsageDetail_20' ) start [2024-12-30 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139514', 'tblTempUsageDetail_20' ) end [2024-12-30 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139514', 'tblTempVendorCDR_20' ) start [2024-12-30 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139514', 'tblTempVendorCDR_20' ) end [2024-12-30 23:18:17] Production.INFO: ProcessCDR(1,14139514,1,1,2) [2024-12-30 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139514', 'tblTempUsageDetail_20' ) start [2024-12-30 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139514', 'tblTempUsageDetail_20' ) end [2024-12-30 23:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:18:20] Production.INFO: ==19767== Releasing lock... [2024-12-30 23:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:18:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-30 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:19:05 [end_date_ymd] => 2024-12-30 23:19:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:19:05' and `end` < '2024-12-30 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 23:19:18] Production.INFO: count ==794 [2024-12-30 23:19:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:19:05 - End Time 2024-12-30 23:19:05 [2024-12-30 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139519', 'tblTempUsageDetail_20' ) start [2024-12-30 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139519', 'tblTempUsageDetail_20' ) end [2024-12-30 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139519', 'tblTempVendorCDR_20' ) start [2024-12-30 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139519', 'tblTempVendorCDR_20' ) end [2024-12-30 23:19:18] Production.INFO: ProcessCDR(1,14139519,1,1,2) [2024-12-30 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139519', 'tblTempUsageDetail_20' ) start [2024-12-30 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139519', 'tblTempUsageDetail_20' ) end [2024-12-30 23:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:19:21] Production.INFO: ==19852== Releasing lock... [2024-12-30 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:19:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-30 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:20:06 [end_date_ymd] => 2024-12-30 23:20:06 [RateCDR] => 1 ) [2024-12-30 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 20:20:06' and `end` < '2024-12-30 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 23:20:18] Production.INFO: count ==782 [2024-12-30 23:20:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:20:06 - End Time 2024-12-30 23:20:06 [2024-12-30 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139525', 'tblTempUsageDetail_20' ) start [2024-12-30 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139525', 'tblTempUsageDetail_20' ) end [2024-12-30 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139525', 'tblTempVendorCDR_20' ) start [2024-12-30 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139525', 'tblTempVendorCDR_20' ) end [2024-12-30 23:20:18] Production.INFO: ProcessCDR(1,14139525,1,1,2) [2024-12-30 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139525', 'tblTempUsageDetail_20' ) start [2024-12-30 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139525', 'tblTempUsageDetail_20' ) end [2024-12-30 23:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:20:21] Production.INFO: ==19947== Releasing lock... [2024-12-30 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:20:21] Production.INFO: 33 MB #Memory Used# [2024-12-30 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:21:05 [end_date_ymd] => 2024-12-30 23:21:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:21:05' and `end` < '2024-12-30 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-30 23:21:18] Production.INFO: count ==738 [2024-12-30 23:21:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:21:05 - End Time 2024-12-30 23:21:05 [2024-12-30 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139530', 'tblTempUsageDetail_20' ) start [2024-12-30 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139530', 'tblTempUsageDetail_20' ) end [2024-12-30 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139530', 'tblTempVendorCDR_20' ) start [2024-12-30 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139530', 'tblTempVendorCDR_20' ) end [2024-12-30 23:21:18] Production.INFO: ProcessCDR(1,14139530,1,1,2) [2024-12-30 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139530', 'tblTempUsageDetail_20' ) start [2024-12-30 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139530', 'tblTempUsageDetail_20' ) end [2024-12-30 23:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:21:21] Production.INFO: ==20040== Releasing lock... [2024-12-30 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:21:21] Production.INFO: 33 MB #Memory Used# [2024-12-30 23:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:22:04 [end_date_ymd] => 2024-12-30 23:22:04 [RateCDR] => 1 ) [2024-12-30 23: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-30 20:22:04' and `end` < '2024-12-30 23: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-30 23:22:18] Production.INFO: count ==739 [2024-12-30 23:22:19] Production.ERROR: pbx CDR StartTime 2024-12-30 20:22:04 - End Time 2024-12-30 23:22:04 [2024-12-30 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139535', 'tblTempUsageDetail_20' ) start [2024-12-30 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139535', 'tblTempUsageDetail_20' ) end [2024-12-30 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139535', 'tblTempVendorCDR_20' ) start [2024-12-30 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139535', 'tblTempVendorCDR_20' ) end [2024-12-30 23:22:19] Production.INFO: ProcessCDR(1,14139535,1,1,2) [2024-12-30 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139535', 'tblTempUsageDetail_20' ) start [2024-12-30 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139535', 'tblTempUsageDetail_20' ) end [2024-12-30 23:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:22:23] Production.INFO: ==20124== Releasing lock... [2024-12-30 23:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:22:23] Production.INFO: 33 MB #Memory Used# [2024-12-30 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:23:05 [end_date_ymd] => 2024-12-30 23:23:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:23:05' and `end` < '2024-12-30 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-30 23:23:18] Production.INFO: count ==740 [2024-12-30 23:23:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:23:05 - End Time 2024-12-30 23:23:05 [2024-12-30 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139540', 'tblTempUsageDetail_20' ) start [2024-12-30 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139540', 'tblTempUsageDetail_20' ) end [2024-12-30 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139540', 'tblTempVendorCDR_20' ) start [2024-12-30 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139540', 'tblTempVendorCDR_20' ) end [2024-12-30 23:23:18] Production.INFO: ProcessCDR(1,14139540,1,1,2) [2024-12-30 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139540', 'tblTempUsageDetail_20' ) start [2024-12-30 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139540', 'tblTempUsageDetail_20' ) end [2024-12-30 23:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:23:23] Production.INFO: ==20213== Releasing lock... [2024-12-30 23:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:23:23] Production.INFO: 33 MB #Memory Used# [2024-12-30 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:24:05 [end_date_ymd] => 2024-12-30 23:24:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:24:05' and `end` < '2024-12-30 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-30 23:24:18] Production.INFO: count ==739 [2024-12-30 23:24:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:24:05 - End Time 2024-12-30 23:24:05 [2024-12-30 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139545', 'tblTempUsageDetail_20' ) start [2024-12-30 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139545', 'tblTempUsageDetail_20' ) end [2024-12-30 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139545', 'tblTempVendorCDR_20' ) start [2024-12-30 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139545', 'tblTempVendorCDR_20' ) end [2024-12-30 23:24:18] Production.INFO: ProcessCDR(1,14139545,1,1,2) [2024-12-30 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139545', 'tblTempUsageDetail_20' ) start [2024-12-30 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139545', 'tblTempUsageDetail_20' ) end [2024-12-30 23:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:24:21] Production.INFO: ==20300== Releasing lock... [2024-12-30 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:24:21] Production.INFO: 33 MB #Memory Used# [2024-12-30 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:25:05 [end_date_ymd] => 2024-12-30 23:25:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:25:05' and `end` < '2024-12-30 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-30 23:25:17] Production.INFO: count ==739 [2024-12-30 23:25:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:25:05 - End Time 2024-12-30 23:25:05 [2024-12-30 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139550', 'tblTempUsageDetail_20' ) start [2024-12-30 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139550', 'tblTempUsageDetail_20' ) end [2024-12-30 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139550', 'tblTempVendorCDR_20' ) start [2024-12-30 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139550', 'tblTempVendorCDR_20' ) end [2024-12-30 23:25:17] Production.INFO: ProcessCDR(1,14139550,1,1,2) [2024-12-30 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139550', 'tblTempUsageDetail_20' ) start [2024-12-30 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139550', 'tblTempUsageDetail_20' ) end [2024-12-30 23:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:25:20] Production.INFO: ==20382== Releasing lock... [2024-12-30 23:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:25:20] Production.INFO: 33 MB #Memory Used# [2024-12-30 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:26:05 [end_date_ymd] => 2024-12-30 23:26:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:26:05' and `end` < '2024-12-30 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-30 23:26:20] Production.INFO: count ==738 [2024-12-30 23:26:21] Production.ERROR: pbx CDR StartTime 2024-12-30 20:26:05 - End Time 2024-12-30 23:26:05 [2024-12-30 23:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139555', 'tblTempUsageDetail_20' ) start [2024-12-30 23:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139555', 'tblTempUsageDetail_20' ) end [2024-12-30 23:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139555', 'tblTempVendorCDR_20' ) start [2024-12-30 23:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139555', 'tblTempVendorCDR_20' ) end [2024-12-30 23:26:21] Production.INFO: ProcessCDR(1,14139555,1,1,2) [2024-12-30 23:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139555', 'tblTempUsageDetail_20' ) start [2024-12-30 23:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139555', 'tblTempUsageDetail_20' ) end [2024-12-30 23:26:24] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:26:24] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:26:24] Production.INFO: ==20469== Releasing lock... [2024-12-30 23:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:26:24] Production.INFO: 33 MB #Memory Used# [2024-12-30 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:27:05 [end_date_ymd] => 2024-12-30 23:27:05 [RateCDR] => 1 ) [2024-12-30 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 20:27:05' and `end` < '2024-12-30 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 23:27:19] Production.INFO: count ==738 [2024-12-30 23:27:19] Production.ERROR: pbx CDR StartTime 2024-12-30 20:27:05 - End Time 2024-12-30 23:27:05 [2024-12-30 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139560', 'tblTempUsageDetail_20' ) start [2024-12-30 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139560', 'tblTempUsageDetail_20' ) end [2024-12-30 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139560', 'tblTempVendorCDR_20' ) start [2024-12-30 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139560', 'tblTempVendorCDR_20' ) end [2024-12-30 23:27:19] Production.INFO: ProcessCDR(1,14139560,1,1,2) [2024-12-30 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139560', 'tblTempUsageDetail_20' ) start [2024-12-30 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139560', 'tblTempUsageDetail_20' ) end [2024-12-30 23:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:27:22] Production.INFO: ==20552== Releasing lock... [2024-12-30 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:27:22] Production.INFO: 33 MB #Memory Used# [2024-12-30 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:28:05 [end_date_ymd] => 2024-12-30 23:28:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:28:05' and `end` < '2024-12-30 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-30 23:28:17] Production.INFO: count ==736 [2024-12-30 23:28:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:28:05 - End Time 2024-12-30 23:28:05 [2024-12-30 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139565', 'tblTempUsageDetail_20' ) start [2024-12-30 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139565', 'tblTempUsageDetail_20' ) end [2024-12-30 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139565', 'tblTempVendorCDR_20' ) start [2024-12-30 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139565', 'tblTempVendorCDR_20' ) end [2024-12-30 23:28:17] Production.INFO: ProcessCDR(1,14139565,1,1,2) [2024-12-30 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139565', 'tblTempUsageDetail_20' ) start [2024-12-30 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139565', 'tblTempUsageDetail_20' ) end [2024-12-30 23:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:28:21] Production.INFO: ==20640== Releasing lock... [2024-12-30 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:28:21] Production.INFO: 33 MB #Memory Used# [2024-12-30 23:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:29:04 [end_date_ymd] => 2024-12-30 23:29:04 [RateCDR] => 1 ) [2024-12-30 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-30 20:29:04' and `end` < '2024-12-30 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-30 23:29:18] Production.INFO: count ==734 [2024-12-30 23:29:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:29:04 - End Time 2024-12-30 23:29:04 [2024-12-30 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139570', 'tblTempUsageDetail_20' ) start [2024-12-30 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139570', 'tblTempUsageDetail_20' ) end [2024-12-30 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139570', 'tblTempVendorCDR_20' ) start [2024-12-30 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139570', 'tblTempVendorCDR_20' ) end [2024-12-30 23:29:18] Production.INFO: ProcessCDR(1,14139570,1,1,2) [2024-12-30 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139570', 'tblTempUsageDetail_20' ) start [2024-12-30 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139570', 'tblTempUsageDetail_20' ) end [2024-12-30 23:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:29:22] Production.INFO: ==20725== Releasing lock... [2024-12-30 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:29:22] Production.INFO: 33 MB #Memory Used# [2024-12-30 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:30:06 [end_date_ymd] => 2024-12-30 23:30:06 [RateCDR] => 1 ) [2024-12-30 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-30 20:30:06' and `end` < '2024-12-30 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-30 23:30:18] Production.INFO: count ==727 [2024-12-30 23:30:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:30:06 - End Time 2024-12-30 23:30:06 [2024-12-30 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139576', 'tblTempUsageDetail_20' ) start [2024-12-30 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139576', 'tblTempUsageDetail_20' ) end [2024-12-30 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139576', 'tblTempVendorCDR_20' ) start [2024-12-30 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139576', 'tblTempVendorCDR_20' ) end [2024-12-30 23:30:18] Production.INFO: ProcessCDR(1,14139576,1,1,2) [2024-12-30 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139576', 'tblTempUsageDetail_20' ) start [2024-12-30 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139576', 'tblTempUsageDetail_20' ) end [2024-12-30 23:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:30:21] Production.INFO: ==20813== Releasing lock... [2024-12-30 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:30:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-30 23:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:31:04 [end_date_ymd] => 2024-12-30 23:31:04 [RateCDR] => 1 ) [2024-12-30 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-30 20:31:04' and `end` < '2024-12-30 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-30 23:31:17] Production.INFO: count ==691 [2024-12-30 23:31:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:31:04 - End Time 2024-12-30 23:31:04 [2024-12-30 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139581', 'tblTempUsageDetail_20' ) start [2024-12-30 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139581', 'tblTempUsageDetail_20' ) end [2024-12-30 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139581', 'tblTempVendorCDR_20' ) start [2024-12-30 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139581', 'tblTempVendorCDR_20' ) end [2024-12-30 23:31:17] Production.INFO: ProcessCDR(1,14139581,1,1,2) [2024-12-30 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139581', 'tblTempUsageDetail_20' ) start [2024-12-30 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139581', 'tblTempUsageDetail_20' ) end [2024-12-30 23:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:31:20] Production.INFO: ==20938== Releasing lock... [2024-12-30 23:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:31:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-30 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:32:05 [end_date_ymd] => 2024-12-30 23:32:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:32:05' and `end` < '2024-12-30 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-30 23:32:18] Production.INFO: count ==692 [2024-12-30 23:32:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:32:05 - End Time 2024-12-30 23:32:05 [2024-12-30 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139586', 'tblTempUsageDetail_20' ) start [2024-12-30 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139586', 'tblTempUsageDetail_20' ) end [2024-12-30 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139586', 'tblTempVendorCDR_20' ) start [2024-12-30 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139586', 'tblTempVendorCDR_20' ) end [2024-12-30 23:32:18] Production.INFO: ProcessCDR(1,14139586,1,1,2) [2024-12-30 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139586', 'tblTempUsageDetail_20' ) start [2024-12-30 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139586', 'tblTempUsageDetail_20' ) end [2024-12-30 23:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:32:22] Production.INFO: ==21025== Releasing lock... [2024-12-30 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:32:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-30 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:33:04 [end_date_ymd] => 2024-12-30 23:33:04 [RateCDR] => 1 ) [2024-12-30 23: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-30 20:33:04' and `end` < '2024-12-30 23: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-30 23:33:16] Production.INFO: count ==691 [2024-12-30 23:33:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:33:04 - End Time 2024-12-30 23:33:04 [2024-12-30 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139591', 'tblTempUsageDetail_20' ) start [2024-12-30 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139591', 'tblTempUsageDetail_20' ) end [2024-12-30 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139591', 'tblTempVendorCDR_20' ) start [2024-12-30 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139591', 'tblTempVendorCDR_20' ) end [2024-12-30 23:33:17] Production.INFO: ProcessCDR(1,14139591,1,1,2) [2024-12-30 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139591', 'tblTempUsageDetail_20' ) start [2024-12-30 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139591', 'tblTempUsageDetail_20' ) end [2024-12-30 23:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:33:20] Production.INFO: ==21110== Releasing lock... [2024-12-30 23:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:33:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-30 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:34:05 [end_date_ymd] => 2024-12-30 23:34:05 [RateCDR] => 1 ) [2024-12-30 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 20:34:05' and `end` < '2024-12-30 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 23:34:19] Production.INFO: count ==690 [2024-12-30 23:34:19] Production.ERROR: pbx CDR StartTime 2024-12-30 20:34:05 - End Time 2024-12-30 23:34:05 [2024-12-30 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139596', 'tblTempUsageDetail_20' ) start [2024-12-30 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139596', 'tblTempUsageDetail_20' ) end [2024-12-30 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139596', 'tblTempVendorCDR_20' ) start [2024-12-30 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139596', 'tblTempVendorCDR_20' ) end [2024-12-30 23:34:19] Production.INFO: ProcessCDR(1,14139596,1,1,2) [2024-12-30 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139596', 'tblTempUsageDetail_20' ) start [2024-12-30 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139596', 'tblTempUsageDetail_20' ) end [2024-12-30 23:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:34:22] Production.INFO: ==21194== Releasing lock... [2024-12-30 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:34:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-30 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:35:05 [end_date_ymd] => 2024-12-30 23:35:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:35:05' and `end` < '2024-12-30 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-30 23:35:17] Production.INFO: count ==690 [2024-12-30 23:35:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:35:05 - End Time 2024-12-30 23:35:05 [2024-12-30 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139601', 'tblTempUsageDetail_20' ) start [2024-12-30 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139601', 'tblTempUsageDetail_20' ) end [2024-12-30 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139601', 'tblTempVendorCDR_20' ) start [2024-12-30 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139601', 'tblTempVendorCDR_20' ) end [2024-12-30 23:35:17] Production.INFO: ProcessCDR(1,14139601,1,1,2) [2024-12-30 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139601', 'tblTempUsageDetail_20' ) start [2024-12-30 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139601', 'tblTempUsageDetail_20' ) end [2024-12-30 23:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:35:20] Production.INFO: ==21276== Releasing lock... [2024-12-30 23:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:35:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-30 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:36:05 [end_date_ymd] => 2024-12-30 23:36:05 [RateCDR] => 1 ) [2024-12-30 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 20:36:05' and `end` < '2024-12-30 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 23:36:20] Production.INFO: count ==690 [2024-12-30 23:36:20] Production.ERROR: pbx CDR StartTime 2024-12-30 20:36:05 - End Time 2024-12-30 23:36:05 [2024-12-30 23:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139606', 'tblTempUsageDetail_20' ) start [2024-12-30 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139606', 'tblTempUsageDetail_20' ) end [2024-12-30 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139606', 'tblTempVendorCDR_20' ) start [2024-12-30 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139606', 'tblTempVendorCDR_20' ) end [2024-12-30 23:36:20] Production.INFO: ProcessCDR(1,14139606,1,1,2) [2024-12-30 23:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139606', 'tblTempUsageDetail_20' ) start [2024-12-30 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139606', 'tblTempUsageDetail_20' ) end [2024-12-30 23:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:36:23] Production.INFO: ==21361== Releasing lock... [2024-12-30 23:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:36:23] Production.INFO: 32.5 MB #Memory Used# [2024-12-30 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:37:05 [end_date_ymd] => 2024-12-30 23:37:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:37:05' and `end` < '2024-12-30 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-30 23:37:18] Production.INFO: count ==691 [2024-12-30 23:37:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:37:05 - End Time 2024-12-30 23:37:05 [2024-12-30 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139611', 'tblTempUsageDetail_20' ) start [2024-12-30 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139611', 'tblTempUsageDetail_20' ) end [2024-12-30 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139611', 'tblTempVendorCDR_20' ) start [2024-12-30 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139611', 'tblTempVendorCDR_20' ) end [2024-12-30 23:37:18] Production.INFO: ProcessCDR(1,14139611,1,1,2) [2024-12-30 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139611', 'tblTempUsageDetail_20' ) start [2024-12-30 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139611', 'tblTempUsageDetail_20' ) end [2024-12-30 23:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:37:21] Production.INFO: ==21446== Releasing lock... [2024-12-30 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:37:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-30 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:38:05 [end_date_ymd] => 2024-12-30 23:38:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:38:05' and `end` < '2024-12-30 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-30 23:38:17] Production.INFO: count ==687 [2024-12-30 23:38:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:38:05 - End Time 2024-12-30 23:38:05 [2024-12-30 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139616', 'tblTempUsageDetail_20' ) start [2024-12-30 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139616', 'tblTempUsageDetail_20' ) end [2024-12-30 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139616', 'tblTempVendorCDR_20' ) start [2024-12-30 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139616', 'tblTempVendorCDR_20' ) end [2024-12-30 23:38:17] Production.INFO: ProcessCDR(1,14139616,1,1,2) [2024-12-30 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139616', 'tblTempUsageDetail_20' ) start [2024-12-30 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139616', 'tblTempUsageDetail_20' ) end [2024-12-30 23:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:38:21] Production.INFO: ==21529== Releasing lock... [2024-12-30 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:38:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-30 23:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:39:04 [end_date_ymd] => 2024-12-30 23:39:04 [RateCDR] => 1 ) [2024-12-30 23: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-30 20:39:04' and `end` < '2024-12-30 23: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-30 23:39:17] Production.INFO: count ==678 [2024-12-30 23:39:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:39:04 - End Time 2024-12-30 23:39:04 [2024-12-30 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139621', 'tblTempUsageDetail_20' ) start [2024-12-30 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139621', 'tblTempUsageDetail_20' ) end [2024-12-30 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139621', 'tblTempVendorCDR_20' ) start [2024-12-30 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139621', 'tblTempVendorCDR_20' ) end [2024-12-30 23:39:17] Production.INFO: ProcessCDR(1,14139621,1,1,2) [2024-12-30 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139621', 'tblTempUsageDetail_20' ) start [2024-12-30 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139621', 'tblTempUsageDetail_20' ) end [2024-12-30 23:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:39:20] Production.INFO: ==21616== Releasing lock... [2024-12-30 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:39:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-30 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:40:06 [end_date_ymd] => 2024-12-30 23:40:06 [RateCDR] => 1 ) [2024-12-30 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 20:40:06' and `end` < '2024-12-30 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 23:40:18] Production.INFO: count ==673 [2024-12-30 23:40:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:40:06 - End Time 2024-12-30 23:40:06 [2024-12-30 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139627', 'tblTempUsageDetail_20' ) start [2024-12-30 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139627', 'tblTempUsageDetail_20' ) end [2024-12-30 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139627', 'tblTempVendorCDR_20' ) start [2024-12-30 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139627', 'tblTempVendorCDR_20' ) end [2024-12-30 23:40:18] Production.INFO: ProcessCDR(1,14139627,1,1,2) [2024-12-30 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139627', 'tblTempUsageDetail_20' ) start [2024-12-30 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139627', 'tblTempUsageDetail_20' ) end [2024-12-30 23:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:40:21] Production.INFO: ==21702== Releasing lock... [2024-12-30 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:40:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-30 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:41:04 [end_date_ymd] => 2024-12-30 23:41:04 [RateCDR] => 1 ) [2024-12-30 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-30 20:41:04' and `end` < '2024-12-30 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-30 23:41:19] Production.INFO: count ==665 [2024-12-30 23:41:19] Production.ERROR: pbx CDR StartTime 2024-12-30 20:41:04 - End Time 2024-12-30 23:41:04 [2024-12-30 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139632', 'tblTempUsageDetail_20' ) start [2024-12-30 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139632', 'tblTempUsageDetail_20' ) end [2024-12-30 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139632', 'tblTempVendorCDR_20' ) start [2024-12-30 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139632', 'tblTempVendorCDR_20' ) end [2024-12-30 23:41:19] Production.INFO: ProcessCDR(1,14139632,1,1,2) [2024-12-30 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139632', 'tblTempUsageDetail_20' ) start [2024-12-30 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139632', 'tblTempUsageDetail_20' ) end [2024-12-30 23:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:41:22] Production.INFO: ==21786== Releasing lock... [2024-12-30 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:41:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:42:05 [end_date_ymd] => 2024-12-30 23:42:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:42:05' and `end` < '2024-12-30 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-30 23:42:17] Production.INFO: count ==661 [2024-12-30 23:42:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:42:05 - End Time 2024-12-30 23:42:05 [2024-12-30 23:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139637', 'tblTempUsageDetail_20' ) start [2024-12-30 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139637', 'tblTempUsageDetail_20' ) end [2024-12-30 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139637', 'tblTempVendorCDR_20' ) start [2024-12-30 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139637', 'tblTempVendorCDR_20' ) end [2024-12-30 23:42:17] Production.INFO: ProcessCDR(1,14139637,1,1,2) [2024-12-30 23:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139637', 'tblTempUsageDetail_20' ) start [2024-12-30 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139637', 'tblTempUsageDetail_20' ) end [2024-12-30 23:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:42:21] Production.INFO: ==21871== Releasing lock... [2024-12-30 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:42:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:43:05 [end_date_ymd] => 2024-12-30 23:43:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:43:05' and `end` < '2024-12-30 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-30 23:43:19] Production.INFO: count ==660 [2024-12-30 23:43:19] Production.ERROR: pbx CDR StartTime 2024-12-30 20:43:05 - End Time 2024-12-30 23:43:05 [2024-12-30 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139642', 'tblTempUsageDetail_20' ) start [2024-12-30 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139642', 'tblTempUsageDetail_20' ) end [2024-12-30 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139642', 'tblTempVendorCDR_20' ) start [2024-12-30 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139642', 'tblTempVendorCDR_20' ) end [2024-12-30 23:43:19] Production.INFO: ProcessCDR(1,14139642,1,1,2) [2024-12-30 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139642', 'tblTempUsageDetail_20' ) start [2024-12-30 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139642', 'tblTempUsageDetail_20' ) end [2024-12-30 23:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:43:22] Production.INFO: ==21955== Releasing lock... [2024-12-30 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:43:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:44:05 [end_date_ymd] => 2024-12-30 23:44:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:44:05' and `end` < '2024-12-30 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-30 23:44:18] Production.INFO: count ==660 [2024-12-30 23:44:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:44:05 - End Time 2024-12-30 23:44:05 [2024-12-30 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139647', 'tblTempUsageDetail_20' ) start [2024-12-30 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139647', 'tblTempUsageDetail_20' ) end [2024-12-30 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139647', 'tblTempVendorCDR_20' ) start [2024-12-30 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139647', 'tblTempVendorCDR_20' ) end [2024-12-30 23:44:18] Production.INFO: ProcessCDR(1,14139647,1,1,2) [2024-12-30 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139647', 'tblTempUsageDetail_20' ) start [2024-12-30 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139647', 'tblTempUsageDetail_20' ) end [2024-12-30 23:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:44:21] Production.INFO: ==22037== Releasing lock... [2024-12-30 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:44:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:45:05 [end_date_ymd] => 2024-12-30 23:45:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:45:05' and `end` < '2024-12-30 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-30 23:45:17] Production.INFO: count ==660 [2024-12-30 23:45:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:45:05 - End Time 2024-12-30 23:45:05 [2024-12-30 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139652', 'tblTempUsageDetail_20' ) start [2024-12-30 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139652', 'tblTempUsageDetail_20' ) end [2024-12-30 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139652', 'tblTempVendorCDR_20' ) start [2024-12-30 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139652', 'tblTempVendorCDR_20' ) end [2024-12-30 23:45:17] Production.INFO: ProcessCDR(1,14139652,1,1,2) [2024-12-30 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139652', 'tblTempUsageDetail_20' ) start [2024-12-30 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139652', 'tblTempUsageDetail_20' ) end [2024-12-30 23:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:45:20] Production.INFO: ==22130== Releasing lock... [2024-12-30 23:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:45:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:46:05 [end_date_ymd] => 2024-12-30 23:46:05 [RateCDR] => 1 ) [2024-12-30 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 20:46:05' and `end` < '2024-12-30 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 23:46:17] Production.INFO: count ==660 [2024-12-30 23:46:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:46:05 - End Time 2024-12-30 23:46:05 [2024-12-30 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139657', 'tblTempUsageDetail_20' ) start [2024-12-30 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139657', 'tblTempUsageDetail_20' ) end [2024-12-30 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139657', 'tblTempVendorCDR_20' ) start [2024-12-30 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139657', 'tblTempVendorCDR_20' ) end [2024-12-30 23:46:17] Production.INFO: ProcessCDR(1,14139657,1,1,2) [2024-12-30 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139657', 'tblTempUsageDetail_20' ) start [2024-12-30 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139657', 'tblTempUsageDetail_20' ) end [2024-12-30 23:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:46:20] Production.INFO: ==22215== Releasing lock... [2024-12-30 23:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:46:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:47:05 [end_date_ymd] => 2024-12-30 23:47:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:47:05' and `end` < '2024-12-30 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-30 23:47:17] Production.INFO: count ==657 [2024-12-30 23:47:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:47:05 - End Time 2024-12-30 23:47:05 [2024-12-30 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139662', 'tblTempUsageDetail_20' ) start [2024-12-30 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139662', 'tblTempUsageDetail_20' ) end [2024-12-30 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139662', 'tblTempVendorCDR_20' ) start [2024-12-30 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139662', 'tblTempVendorCDR_20' ) end [2024-12-30 23:47:18] Production.INFO: ProcessCDR(1,14139662,1,1,2) [2024-12-30 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139662', 'tblTempUsageDetail_20' ) start [2024-12-30 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139662', 'tblTempUsageDetail_20' ) end [2024-12-30 23:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:47:21] Production.INFO: ==22337== Releasing lock... [2024-12-30 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:47:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:48:05 [end_date_ymd] => 2024-12-30 23:48:05 [RateCDR] => 1 ) [2024-12-30 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 20:48:05' and `end` < '2024-12-30 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 23:48:19] Production.INFO: count ==657 [2024-12-30 23:48:19] Production.ERROR: pbx CDR StartTime 2024-12-30 20:48:05 - End Time 2024-12-30 23:48:05 [2024-12-30 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139667', 'tblTempUsageDetail_20' ) start [2024-12-30 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139667', 'tblTempUsageDetail_20' ) end [2024-12-30 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139667', 'tblTempVendorCDR_20' ) start [2024-12-30 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139667', 'tblTempVendorCDR_20' ) end [2024-12-30 23:48:19] Production.INFO: ProcessCDR(1,14139667,1,1,2) [2024-12-30 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139667', 'tblTempUsageDetail_20' ) start [2024-12-30 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139667', 'tblTempUsageDetail_20' ) end [2024-12-30 23:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:48:22] Production.INFO: ==22421== Releasing lock... [2024-12-30 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:48:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:49:05 [end_date_ymd] => 2024-12-30 23:49:05 [RateCDR] => 1 ) [2024-12-30 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 20:49:05' and `end` < '2024-12-30 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 23:49:17] Production.INFO: count ==657 [2024-12-30 23:49:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:49:05 - End Time 2024-12-30 23:49:05 [2024-12-30 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139672', 'tblTempUsageDetail_20' ) start [2024-12-30 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139672', 'tblTempUsageDetail_20' ) end [2024-12-30 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139672', 'tblTempVendorCDR_20' ) start [2024-12-30 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139672', 'tblTempVendorCDR_20' ) end [2024-12-30 23:49:17] Production.INFO: ProcessCDR(1,14139672,1,1,2) [2024-12-30 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139672', 'tblTempUsageDetail_20' ) start [2024-12-30 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139672', 'tblTempUsageDetail_20' ) end [2024-12-30 23:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:49:20] Production.INFO: ==22507== Releasing lock... [2024-12-30 23:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:49:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:50:06 [end_date_ymd] => 2024-12-30 23:50:06 [RateCDR] => 1 ) [2024-12-30 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-30 20:50:06' and `end` < '2024-12-30 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-30 23:50:18] Production.INFO: count ==658 [2024-12-30 23:50:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:50:06 - End Time 2024-12-30 23:50:06 [2024-12-30 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139678', 'tblTempUsageDetail_20' ) start [2024-12-30 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139678', 'tblTempUsageDetail_20' ) end [2024-12-30 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139678', 'tblTempVendorCDR_20' ) start [2024-12-30 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139678', 'tblTempVendorCDR_20' ) end [2024-12-30 23:50:18] Production.INFO: ProcessCDR(1,14139678,1,1,2) [2024-12-30 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139678', 'tblTempUsageDetail_20' ) start [2024-12-30 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139678', 'tblTempUsageDetail_20' ) end [2024-12-30 23:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:50:22] Production.INFO: ==22593== Releasing lock... [2024-12-30 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:50:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:51:05 [end_date_ymd] => 2024-12-30 23:51:05 [RateCDR] => 1 ) [2024-12-30 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 20:51:05' and `end` < '2024-12-30 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 23:51:17] Production.INFO: count ==660 [2024-12-30 23:51:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:51:05 - End Time 2024-12-30 23:51:05 [2024-12-30 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139683', 'tblTempUsageDetail_20' ) start [2024-12-30 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139683', 'tblTempUsageDetail_20' ) end [2024-12-30 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139683', 'tblTempVendorCDR_20' ) start [2024-12-30 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139683', 'tblTempVendorCDR_20' ) end [2024-12-30 23:51:18] Production.INFO: ProcessCDR(1,14139683,1,1,2) [2024-12-30 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139683', 'tblTempUsageDetail_20' ) start [2024-12-30 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139683', 'tblTempUsageDetail_20' ) end [2024-12-30 23:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:51:21] Production.INFO: ==22679== Releasing lock... [2024-12-30 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:51:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 23:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:52:04 [end_date_ymd] => 2024-12-30 23:52:04 [RateCDR] => 1 ) [2024-12-30 23:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 20:52:04' and `end` < '2024-12-30 23:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 23:52:17] Production.INFO: count ==658 [2024-12-30 23:52:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:52:04 - End Time 2024-12-30 23:52:04 [2024-12-30 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139688', 'tblTempUsageDetail_20' ) start [2024-12-30 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139688', 'tblTempUsageDetail_20' ) end [2024-12-30 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139688', 'tblTempVendorCDR_20' ) start [2024-12-30 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139688', 'tblTempVendorCDR_20' ) end [2024-12-30 23:52:17] Production.INFO: ProcessCDR(1,14139688,1,1,2) [2024-12-30 23:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139688', 'tblTempUsageDetail_20' ) start [2024-12-30 23:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139688', 'tblTempUsageDetail_20' ) end [2024-12-30 23:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:52:20] Production.INFO: ==22762== Releasing lock... [2024-12-30 23:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:52:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:53:05 [end_date_ymd] => 2024-12-30 23:53:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:53:05' and `end` < '2024-12-30 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-30 23:53:17] Production.INFO: count ==658 [2024-12-30 23:53:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:53:05 - End Time 2024-12-30 23:53:05 [2024-12-30 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139693', 'tblTempUsageDetail_20' ) start [2024-12-30 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139693', 'tblTempUsageDetail_20' ) end [2024-12-30 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139693', 'tblTempVendorCDR_20' ) start [2024-12-30 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139693', 'tblTempVendorCDR_20' ) end [2024-12-30 23:53:17] Production.INFO: ProcessCDR(1,14139693,1,1,2) [2024-12-30 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139693', 'tblTempUsageDetail_20' ) start [2024-12-30 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139693', 'tblTempUsageDetail_20' ) end [2024-12-30 23:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:53:21] Production.INFO: ==22849== Releasing lock... [2024-12-30 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:53:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 23:54:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:54:06 [end_date_ymd] => 2024-12-30 23:54:06 [RateCDR] => 1 ) [2024-12-30 23:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 20:54:06' and `end` < '2024-12-30 23:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 23:54:18] Production.INFO: count ==657 [2024-12-30 23:54:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:54:06 - End Time 2024-12-30 23:54:06 [2024-12-30 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139698', 'tblTempUsageDetail_20' ) start [2024-12-30 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139698', 'tblTempUsageDetail_20' ) end [2024-12-30 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139698', 'tblTempVendorCDR_20' ) start [2024-12-30 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139698', 'tblTempVendorCDR_20' ) end [2024-12-30 23:54:18] Production.INFO: ProcessCDR(1,14139698,1,1,2) [2024-12-30 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139698', 'tblTempUsageDetail_20' ) start [2024-12-30 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139698', 'tblTempUsageDetail_20' ) end [2024-12-30 23:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:54:21] Production.INFO: ==22938== Releasing lock... [2024-12-30 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:54:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 23:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:55:04 [end_date_ymd] => 2024-12-30 23:55:04 [RateCDR] => 1 ) [2024-12-30 23: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-30 20:55:04' and `end` < '2024-12-30 23: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-30 23:55:17] Production.INFO: count ==655 [2024-12-30 23:55:17] Production.ERROR: pbx CDR StartTime 2024-12-30 20:55:04 - End Time 2024-12-30 23:55:04 [2024-12-30 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139703', 'tblTempUsageDetail_20' ) start [2024-12-30 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139703', 'tblTempUsageDetail_20' ) end [2024-12-30 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139703', 'tblTempVendorCDR_20' ) start [2024-12-30 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139703', 'tblTempVendorCDR_20' ) end [2024-12-30 23:55:17] Production.INFO: ProcessCDR(1,14139703,1,1,2) [2024-12-30 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139703', 'tblTempUsageDetail_20' ) start [2024-12-30 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139703', 'tblTempUsageDetail_20' ) end [2024-12-30 23:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:55:20] Production.INFO: ==23014== Releasing lock... [2024-12-30 23:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:55:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:56:05 [end_date_ymd] => 2024-12-30 23:56:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:56:05' and `end` < '2024-12-30 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-30 23:56:18] Production.INFO: count ==652 [2024-12-30 23:56:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:56:05 - End Time 2024-12-30 23:56:05 [2024-12-30 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139708', 'tblTempUsageDetail_20' ) start [2024-12-30 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139708', 'tblTempUsageDetail_20' ) end [2024-12-30 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139708', 'tblTempVendorCDR_20' ) start [2024-12-30 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139708', 'tblTempVendorCDR_20' ) end [2024-12-30 23:56:18] Production.INFO: ProcessCDR(1,14139708,1,1,2) [2024-12-30 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139708', 'tblTempUsageDetail_20' ) start [2024-12-30 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139708', 'tblTempUsageDetail_20' ) end [2024-12-30 23:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:56:21] Production.INFO: ==23086== Releasing lock... [2024-12-30 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:56:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:57:05 [end_date_ymd] => 2024-12-30 23:57:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:57:05' and `end` < '2024-12-30 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-30 23:57:19] Production.INFO: count ==653 [2024-12-30 23:57:19] Production.ERROR: pbx CDR StartTime 2024-12-30 20:57:05 - End Time 2024-12-30 23:57:05 [2024-12-30 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139713', 'tblTempUsageDetail_20' ) start [2024-12-30 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139713', 'tblTempUsageDetail_20' ) end [2024-12-30 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139713', 'tblTempVendorCDR_20' ) start [2024-12-30 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139713', 'tblTempVendorCDR_20' ) end [2024-12-30 23:57:19] Production.INFO: ProcessCDR(1,14139713,1,1,2) [2024-12-30 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139713', 'tblTempUsageDetail_20' ) start [2024-12-30 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139713', 'tblTempUsageDetail_20' ) end [2024-12-30 23:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:57:22] Production.INFO: ==23158== Releasing lock... [2024-12-30 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:57:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:58:05 [end_date_ymd] => 2024-12-30 23:58:05 [RateCDR] => 1 ) [2024-12-30 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-30 20:58:05' and `end` < '2024-12-30 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-30 23:58:18] Production.INFO: count ==653 [2024-12-30 23:58:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:58:05 - End Time 2024-12-30 23:58:05 [2024-12-30 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139718', 'tblTempUsageDetail_20' ) start [2024-12-30 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139718', 'tblTempUsageDetail_20' ) end [2024-12-30 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139718', 'tblTempVendorCDR_20' ) start [2024-12-30 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139718', 'tblTempVendorCDR_20' ) end [2024-12-30 23:58:18] Production.INFO: ProcessCDR(1,14139718,1,1,2) [2024-12-30 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139718', 'tblTempUsageDetail_20' ) start [2024-12-30 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139718', 'tblTempUsageDetail_20' ) end [2024-12-30 23:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:58:21] Production.INFO: ==23234== Releasing lock... [2024-12-30 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:58:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-30 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-30 20:59:05 [end_date_ymd] => 2024-12-30 23:59:05 [RateCDR] => 1 ) [2024-12-30 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-30 20:59:05' and `end` < '2024-12-30 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-30 23:59:17] Production.INFO: count ==653 [2024-12-30 23:59:18] Production.ERROR: pbx CDR StartTime 2024-12-30 20:59:05 - End Time 2024-12-30 23:59:05 [2024-12-30 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-30 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139723', 'tblTempUsageDetail_20' ) start [2024-12-30 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14139723', 'tblTempUsageDetail_20' ) end [2024-12-30 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139723', 'tblTempVendorCDR_20' ) start [2024-12-30 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14139723', 'tblTempVendorCDR_20' ) end [2024-12-30 23:59:18] Production.INFO: ProcessCDR(1,14139723,1,1,2) [2024-12-30 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14139723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14139723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-30 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14139723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14139723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-30 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139723', 'tblTempUsageDetail_20' ) start [2024-12-30 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14139723', 'tblTempUsageDetail_20' ) end [2024-12-30 23:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-30 23:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-30 23:59:21] Production.INFO: ==23304== Releasing lock... [2024-12-30 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-30 23:59:21] Production.INFO: 32.25 MB #Memory Used#