[2024-12-27 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:00:06 [end_date_ymd] => 2024-12-27 00:00:06 [RateCDR] => 1 ) [2024-12-27 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:00:06' and `end` < '2024-12-27 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:00:29] Production.INFO: count ==1035 [2024-12-27 00:00:29] Production.ERROR: pbx CDR StartTime 2024-12-26 21:00:06 - End Time 2024-12-27 00:00:06 [2024-12-27 00:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110378', 'tblTempUsageDetail_20' ) start [2024-12-27 00:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110378', 'tblTempUsageDetail_20' ) end [2024-12-27 00:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110378', 'tblTempVendorCDR_20' ) start [2024-12-27 00:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110378', 'tblTempVendorCDR_20' ) end [2024-12-27 00:00:29] Production.INFO: ProcessCDR(1,14110378,1,1,2) [2024-12-27 00:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110378', 'tblTempUsageDetail_20' ) start [2024-12-27 00:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110378', 'tblTempUsageDetail_20' ) end [2024-12-27 00:00:33] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:00:33] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:00:34] Production.INFO: ==16023== Releasing lock... [2024-12-27 00:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:00:34] Production.INFO: 36.75 MB #Memory Used# [2024-12-27 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:01:05 [end_date_ymd] => 2024-12-27 00:01:05 [RateCDR] => 1 ) [2024-12-27 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:01:05' and `end` < '2024-12-27 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:01:24] Production.INFO: count ==1056 [2024-12-27 00:01:25] Production.ERROR: pbx CDR StartTime 2024-12-26 21:01:05 - End Time 2024-12-27 00:01:05 [2024-12-27 00:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110386', 'tblTempUsageDetail_20' ) start [2024-12-27 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110386', 'tblTempUsageDetail_20' ) end [2024-12-27 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110386', 'tblTempVendorCDR_20' ) start [2024-12-27 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110386', 'tblTempVendorCDR_20' ) end [2024-12-27 00:01:25] Production.INFO: ProcessCDR(1,14110386,1,1,2) [2024-12-27 00:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110386', 'tblTempUsageDetail_20' ) start [2024-12-27 00:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110386', 'tblTempUsageDetail_20' ) end [2024-12-27 00:01:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:01:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:01:28] Production.INFO: ==16154== Releasing lock... [2024-12-27 00:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:01:28] Production.INFO: 36 MB #Memory Used# [2024-12-27 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:02:05 [end_date_ymd] => 2024-12-27 00:02:05 [RateCDR] => 1 ) [2024-12-27 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:02:05' and `end` < '2024-12-27 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:02:18] Production.INFO: count ==418 [2024-12-27 00:02:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:02:05 - End Time 2024-12-27 00:02:05 [2024-12-27 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110391', 'tblTempUsageDetail_20' ) start [2024-12-27 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110391', 'tblTempUsageDetail_20' ) end [2024-12-27 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110391', 'tblTempVendorCDR_20' ) start [2024-12-27 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110391', 'tblTempVendorCDR_20' ) end [2024-12-27 00:02:18] Production.INFO: ProcessCDR(1,14110391,1,1,2) [2024-12-27 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110391', 'tblTempUsageDetail_20' ) start [2024-12-27 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110391', 'tblTempUsageDetail_20' ) end [2024-12-27 00:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:02:21] Production.INFO: ==16273== Releasing lock... [2024-12-27 00:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:02:21] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:03:04 [end_date_ymd] => 2024-12-27 00:03:04 [RateCDR] => 1 ) [2024-12-27 00:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:03:04' and `end` < '2024-12-27 00: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-27 00:03:17] Production.INFO: count ==417 [2024-12-27 00:03:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:03:04 - End Time 2024-12-27 00:03:04 [2024-12-27 00:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110396', 'tblTempUsageDetail_20' ) start [2024-12-27 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110396', 'tblTempUsageDetail_20' ) end [2024-12-27 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110396', 'tblTempVendorCDR_20' ) start [2024-12-27 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110396', 'tblTempVendorCDR_20' ) end [2024-12-27 00:03:17] Production.INFO: ProcessCDR(1,14110396,1,1,2) [2024-12-27 00:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110396', 'tblTempUsageDetail_20' ) start [2024-12-27 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110396', 'tblTempUsageDetail_20' ) end [2024-12-27 00:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:03:21] Production.INFO: ==16387== Releasing lock... [2024-12-27 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:03:21] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:04:05 [end_date_ymd] => 2024-12-27 00:04:05 [RateCDR] => 1 ) [2024-12-27 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:04:05' and `end` < '2024-12-27 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:04:17] Production.INFO: count ==420 [2024-12-27 00:04:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:04:05 - End Time 2024-12-27 00:04:05 [2024-12-27 00:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110401', 'tblTempUsageDetail_20' ) start [2024-12-27 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110401', 'tblTempUsageDetail_20' ) end [2024-12-27 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110401', 'tblTempVendorCDR_20' ) start [2024-12-27 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110401', 'tblTempVendorCDR_20' ) end [2024-12-27 00:04:18] Production.INFO: ProcessCDR(1,14110401,1,1,2) [2024-12-27 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110401', 'tblTempUsageDetail_20' ) start [2024-12-27 00:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110401', 'tblTempUsageDetail_20' ) end [2024-12-27 00:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:04:21] Production.INFO: ==16499== Releasing lock... [2024-12-27 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:04:21] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:05:05 [end_date_ymd] => 2024-12-27 00:05:05 [RateCDR] => 1 ) [2024-12-27 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:05:05' and `end` < '2024-12-27 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:05:17] Production.INFO: count ==418 [2024-12-27 00:05:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:05:05 - End Time 2024-12-27 00:05:05 [2024-12-27 00:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110406', 'tblTempUsageDetail_20' ) start [2024-12-27 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110406', 'tblTempUsageDetail_20' ) end [2024-12-27 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110406', 'tblTempVendorCDR_20' ) start [2024-12-27 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110406', 'tblTempVendorCDR_20' ) end [2024-12-27 00:05:18] Production.INFO: ProcessCDR(1,14110406,1,1,2) [2024-12-27 00:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110406', 'tblTempUsageDetail_20' ) start [2024-12-27 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110406', 'tblTempUsageDetail_20' ) end [2024-12-27 00:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:05:21] Production.INFO: ==16615== Releasing lock... [2024-12-27 00:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:05:21] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:06:05 [end_date_ymd] => 2024-12-27 00:06:05 [RateCDR] => 1 ) [2024-12-27 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:06:05' and `end` < '2024-12-27 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:06:18] Production.INFO: count ==418 [2024-12-27 00:06:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:06:05 - End Time 2024-12-27 00:06:05 [2024-12-27 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110411', 'tblTempUsageDetail_20' ) start [2024-12-27 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110411', 'tblTempUsageDetail_20' ) end [2024-12-27 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110411', 'tblTempVendorCDR_20' ) start [2024-12-27 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110411', 'tblTempVendorCDR_20' ) end [2024-12-27 00:06:18] Production.INFO: ProcessCDR(1,14110411,1,1,2) [2024-12-27 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110411', 'tblTempUsageDetail_20' ) start [2024-12-27 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110411', 'tblTempUsageDetail_20' ) end [2024-12-27 00:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:06:21] Production.INFO: ==16732== Releasing lock... [2024-12-27 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:06:21] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:07:05 [end_date_ymd] => 2024-12-27 00:07:05 [RateCDR] => 1 ) [2024-12-27 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:07:05' and `end` < '2024-12-27 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:07:18] Production.INFO: count ==416 [2024-12-27 00:07:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:07:05 - End Time 2024-12-27 00:07:05 [2024-12-27 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110416', 'tblTempUsageDetail_20' ) start [2024-12-27 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110416', 'tblTempUsageDetail_20' ) end [2024-12-27 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110416', 'tblTempVendorCDR_20' ) start [2024-12-27 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110416', 'tblTempVendorCDR_20' ) end [2024-12-27 00:07:18] Production.INFO: ProcessCDR(1,14110416,1,1,2) [2024-12-27 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110416', 'tblTempUsageDetail_20' ) start [2024-12-27 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110416', 'tblTempUsageDetail_20' ) end [2024-12-27 00:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:07:21] Production.INFO: ==16852== Releasing lock... [2024-12-27 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:07:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 00:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:08:04 [end_date_ymd] => 2024-12-27 00:08:04 [RateCDR] => 1 ) [2024-12-27 00:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:08:04' and `end` < '2024-12-27 00: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-27 00:08:17] Production.INFO: count ==415 [2024-12-27 00:08:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:08:04 - End Time 2024-12-27 00:08:04 [2024-12-27 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110421', 'tblTempUsageDetail_20' ) start [2024-12-27 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110421', 'tblTempUsageDetail_20' ) end [2024-12-27 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110421', 'tblTempVendorCDR_20' ) start [2024-12-27 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110421', 'tblTempVendorCDR_20' ) end [2024-12-27 00:08:17] Production.INFO: ProcessCDR(1,14110421,1,1,2) [2024-12-27 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110421', 'tblTempUsageDetail_20' ) start [2024-12-27 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110421', 'tblTempUsageDetail_20' ) end [2024-12-27 00:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:08:20] Production.INFO: ==16963== Releasing lock... [2024-12-27 00:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:08:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-27 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:09:05 [end_date_ymd] => 2024-12-27 00:09:05 [RateCDR] => 1 ) [2024-12-27 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:09:05' and `end` < '2024-12-27 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:09:17] Production.INFO: count ==418 [2024-12-27 00:09:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:09:05 - End Time 2024-12-27 00:09:05 [2024-12-27 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110426', 'tblTempUsageDetail_20' ) start [2024-12-27 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110426', 'tblTempUsageDetail_20' ) end [2024-12-27 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110426', 'tblTempVendorCDR_20' ) start [2024-12-27 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110426', 'tblTempVendorCDR_20' ) end [2024-12-27 00:09:17] Production.INFO: ProcessCDR(1,14110426,1,1,2) [2024-12-27 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110426', 'tblTempUsageDetail_20' ) start [2024-12-27 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110426', 'tblTempUsageDetail_20' ) end [2024-12-27 00:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:09:20] Production.INFO: ==17083== Releasing lock... [2024-12-27 00:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:09:20] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:10:05 [end_date_ymd] => 2024-12-27 00:10:05 [RateCDR] => 1 ) [2024-12-27 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:10:05' and `end` < '2024-12-27 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:10:23] Production.INFO: count ==425 [2024-12-27 00:10:24] Production.ERROR: pbx CDR StartTime 2024-12-26 21:10:05 - End Time 2024-12-27 00:10:05 [2024-12-27 00:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110432', 'tblTempUsageDetail_20' ) start [2024-12-27 00:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110432', 'tblTempUsageDetail_20' ) end [2024-12-27 00:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110432', 'tblTempVendorCDR_20' ) start [2024-12-27 00:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110432', 'tblTempVendorCDR_20' ) end [2024-12-27 00:10:24] Production.INFO: ProcessCDR(1,14110432,1,1,2) [2024-12-27 00:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110432', 'tblTempUsageDetail_20' ) start [2024-12-27 00:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110432', 'tblTempUsageDetail_20' ) end [2024-12-27 00:10:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:10:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:10:28] Production.INFO: ==17192== Releasing lock... [2024-12-27 00:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:10:28] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:11:05 [end_date_ymd] => 2024-12-27 00:11:05 [RateCDR] => 1 ) [2024-12-27 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:11:05' and `end` < '2024-12-27 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:11:17] Production.INFO: count ==431 [2024-12-27 00:11:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:11:05 - End Time 2024-12-27 00:11:05 [2024-12-27 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110437', 'tblTempUsageDetail_20' ) start [2024-12-27 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110437', 'tblTempUsageDetail_20' ) end [2024-12-27 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110437', 'tblTempVendorCDR_20' ) start [2024-12-27 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110437', 'tblTempVendorCDR_20' ) end [2024-12-27 00:11:18] Production.INFO: ProcessCDR(1,14110437,1,1,2) [2024-12-27 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110437', 'tblTempUsageDetail_20' ) start [2024-12-27 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110437', 'tblTempUsageDetail_20' ) end [2024-12-27 00:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:11:21] Production.INFO: ==17269== Releasing lock... [2024-12-27 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:11:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 00:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:12:04 [end_date_ymd] => 2024-12-27 00:12:04 [RateCDR] => 1 ) [2024-12-27 00:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:12:04' and `end` < '2024-12-27 00: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-27 00:12:17] Production.INFO: count ==432 [2024-12-27 00:12:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:12:04 - End Time 2024-12-27 00:12:04 [2024-12-27 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110442', 'tblTempUsageDetail_20' ) start [2024-12-27 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110442', 'tblTempUsageDetail_20' ) end [2024-12-27 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110442', 'tblTempVendorCDR_20' ) start [2024-12-27 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110442', 'tblTempVendorCDR_20' ) end [2024-12-27 00:12:17] Production.INFO: ProcessCDR(1,14110442,1,1,2) [2024-12-27 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110442', 'tblTempUsageDetail_20' ) start [2024-12-27 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110442', 'tblTempUsageDetail_20' ) end [2024-12-27 00:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:12:20] Production.INFO: ==17380== Releasing lock... [2024-12-27 00:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:12:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:13:05 [end_date_ymd] => 2024-12-27 00:13:05 [RateCDR] => 1 ) [2024-12-27 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:13:05' and `end` < '2024-12-27 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:13:17] Production.INFO: count ==431 [2024-12-27 00:13:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:13:05 - End Time 2024-12-27 00:13:05 [2024-12-27 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110447', 'tblTempUsageDetail_20' ) start [2024-12-27 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110447', 'tblTempUsageDetail_20' ) end [2024-12-27 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110447', 'tblTempVendorCDR_20' ) start [2024-12-27 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110447', 'tblTempVendorCDR_20' ) end [2024-12-27 00:13:17] Production.INFO: ProcessCDR(1,14110447,1,1,2) [2024-12-27 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110447', 'tblTempUsageDetail_20' ) start [2024-12-27 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110447', 'tblTempUsageDetail_20' ) end [2024-12-27 00:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:13:20] Production.INFO: ==17458== Releasing lock... [2024-12-27 00:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:13:20] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:14:05 [end_date_ymd] => 2024-12-27 00:14:05 [RateCDR] => 1 ) [2024-12-27 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:14:05' and `end` < '2024-12-27 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-27 00:14:17] Production.INFO: count ==428 [2024-12-27 00:14:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:14:05 - End Time 2024-12-27 00:14:05 [2024-12-27 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110452', 'tblTempUsageDetail_20' ) start [2024-12-27 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110452', 'tblTempUsageDetail_20' ) end [2024-12-27 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110452', 'tblTempVendorCDR_20' ) start [2024-12-27 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110452', 'tblTempVendorCDR_20' ) end [2024-12-27 00:14:17] Production.INFO: ProcessCDR(1,14110452,1,1,2) [2024-12-27 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110452', 'tblTempUsageDetail_20' ) start [2024-12-27 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110452', 'tblTempUsageDetail_20' ) end [2024-12-27 00:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:14:20] Production.INFO: ==17533== Releasing lock... [2024-12-27 00:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:14:20] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:15:04 [end_date_ymd] => 2024-12-27 00:15:04 [RateCDR] => 1 ) [2024-12-27 00:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:15:04' and `end` < '2024-12-27 00: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-27 00:15:17] Production.INFO: count ==427 [2024-12-27 00:15:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:15:04 - End Time 2024-12-27 00:15:04 [2024-12-27 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110457', 'tblTempUsageDetail_20' ) start [2024-12-27 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110457', 'tblTempUsageDetail_20' ) end [2024-12-27 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110457', 'tblTempVendorCDR_20' ) start [2024-12-27 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110457', 'tblTempVendorCDR_20' ) end [2024-12-27 00:15:17] Production.INFO: ProcessCDR(1,14110457,1,1,2) [2024-12-27 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110457', 'tblTempUsageDetail_20' ) start [2024-12-27 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110457', 'tblTempUsageDetail_20' ) end [2024-12-27 00:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:15:20] Production.INFO: ==17608== Releasing lock... [2024-12-27 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:15:20] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:16:04 [end_date_ymd] => 2024-12-27 00:16:04 [RateCDR] => 1 ) [2024-12-27 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-26 21:16:04' and `end` < '2024-12-27 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-27 00:16:17] Production.INFO: count ==428 [2024-12-27 00:16:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:16:04 - End Time 2024-12-27 00:16:04 [2024-12-27 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110462', 'tblTempUsageDetail_20' ) start [2024-12-27 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110462', 'tblTempUsageDetail_20' ) end [2024-12-27 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110462', 'tblTempVendorCDR_20' ) start [2024-12-27 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110462', 'tblTempVendorCDR_20' ) end [2024-12-27 00:16:17] Production.INFO: ProcessCDR(1,14110462,1,1,2) [2024-12-27 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110462', 'tblTempUsageDetail_20' ) start [2024-12-27 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110462', 'tblTempUsageDetail_20' ) end [2024-12-27 00:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:16:20] Production.INFO: ==17678== Releasing lock... [2024-12-27 00:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:16:20] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:17:05 [end_date_ymd] => 2024-12-27 00:17:05 [RateCDR] => 1 ) [2024-12-27 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:17:05' and `end` < '2024-12-27 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:17:17] Production.INFO: count ==430 [2024-12-27 00:17:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:17:05 - End Time 2024-12-27 00:17:05 [2024-12-27 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110467', 'tblTempUsageDetail_20' ) start [2024-12-27 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110467', 'tblTempUsageDetail_20' ) end [2024-12-27 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110467', 'tblTempVendorCDR_20' ) start [2024-12-27 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110467', 'tblTempVendorCDR_20' ) end [2024-12-27 00:17:17] Production.INFO: ProcessCDR(1,14110467,1,1,2) [2024-12-27 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110467', 'tblTempUsageDetail_20' ) start [2024-12-27 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110467', 'tblTempUsageDetail_20' ) end [2024-12-27 00:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:17:21] Production.INFO: ==17760== Releasing lock... [2024-12-27 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:17:21] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:18:05 [end_date_ymd] => 2024-12-27 00:18:05 [RateCDR] => 1 ) [2024-12-27 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:18:05' and `end` < '2024-12-27 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:18:18] Production.INFO: count ==429 [2024-12-27 00:18:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:18:05 - End Time 2024-12-27 00:18:05 [2024-12-27 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110472', 'tblTempUsageDetail_20' ) start [2024-12-27 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110472', 'tblTempUsageDetail_20' ) end [2024-12-27 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110472', 'tblTempVendorCDR_20' ) start [2024-12-27 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110472', 'tblTempVendorCDR_20' ) end [2024-12-27 00:18:18] Production.INFO: ProcessCDR(1,14110472,1,1,2) [2024-12-27 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110472', 'tblTempUsageDetail_20' ) start [2024-12-27 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110472', 'tblTempUsageDetail_20' ) end [2024-12-27 00:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:18:21] Production.INFO: ==17840== Releasing lock... [2024-12-27 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:18:21] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:19:04 [end_date_ymd] => 2024-12-27 00:19:04 [RateCDR] => 1 ) [2024-12-27 00:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:19:04' and `end` < '2024-12-27 00:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:19:17] Production.INFO: count ==429 [2024-12-27 00:19:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:19:04 - End Time 2024-12-27 00:19:04 [2024-12-27 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110477', 'tblTempUsageDetail_20' ) start [2024-12-27 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110477', 'tblTempUsageDetail_20' ) end [2024-12-27 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110477', 'tblTempVendorCDR_20' ) start [2024-12-27 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110477', 'tblTempVendorCDR_20' ) end [2024-12-27 00:19:17] Production.INFO: ProcessCDR(1,14110477,1,1,2) [2024-12-27 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110477', 'tblTempUsageDetail_20' ) start [2024-12-27 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110477', 'tblTempUsageDetail_20' ) end [2024-12-27 00:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:19:21] Production.INFO: ==17910== Releasing lock... [2024-12-27 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:19:21] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:20:06 [end_date_ymd] => 2024-12-27 00:20:06 [RateCDR] => 1 ) [2024-12-27 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:20:06' and `end` < '2024-12-27 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:20:19] Production.INFO: count ==437 [2024-12-27 00:20:19] Production.ERROR: pbx CDR StartTime 2024-12-26 21:20:06 - End Time 2024-12-27 00:20:06 [2024-12-27 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110483', 'tblTempUsageDetail_20' ) start [2024-12-27 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110483', 'tblTempUsageDetail_20' ) end [2024-12-27 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110483', 'tblTempVendorCDR_20' ) start [2024-12-27 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110483', 'tblTempVendorCDR_20' ) end [2024-12-27 00:20:19] Production.INFO: ProcessCDR(1,14110483,1,1,2) [2024-12-27 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110483', 'tblTempUsageDetail_20' ) start [2024-12-27 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110483', 'tblTempUsageDetail_20' ) end [2024-12-27 00:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:20:22] Production.INFO: ==17988== Releasing lock... [2024-12-27 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:20:22] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:21:05 [end_date_ymd] => 2024-12-27 00:21:05 [RateCDR] => 1 ) [2024-12-27 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:21:05' and `end` < '2024-12-27 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:21:17] Production.INFO: count ==445 [2024-12-27 00:21:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:21:05 - End Time 2024-12-27 00:21:05 [2024-12-27 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110488', 'tblTempUsageDetail_20' ) start [2024-12-27 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110488', 'tblTempUsageDetail_20' ) end [2024-12-27 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110488', 'tblTempVendorCDR_20' ) start [2024-12-27 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110488', 'tblTempVendorCDR_20' ) end [2024-12-27 00:21:17] Production.INFO: ProcessCDR(1,14110488,1,1,2) [2024-12-27 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110488', 'tblTempUsageDetail_20' ) start [2024-12-27 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110488', 'tblTempUsageDetail_20' ) end [2024-12-27 00:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:21:20] Production.INFO: ==18066== Releasing lock... [2024-12-27 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:21:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:22:05 [end_date_ymd] => 2024-12-27 00:22:05 [RateCDR] => 1 ) [2024-12-27 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:22:05' and `end` < '2024-12-27 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:22:18] Production.INFO: count ==447 [2024-12-27 00:22:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:22:05 - End Time 2024-12-27 00:22:05 [2024-12-27 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110493', 'tblTempUsageDetail_20' ) start [2024-12-27 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110493', 'tblTempUsageDetail_20' ) end [2024-12-27 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110493', 'tblTempVendorCDR_20' ) start [2024-12-27 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110493', 'tblTempVendorCDR_20' ) end [2024-12-27 00:22:18] Production.INFO: ProcessCDR(1,14110493,1,1,2) [2024-12-27 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110493', 'tblTempUsageDetail_20' ) start [2024-12-27 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110493', 'tblTempUsageDetail_20' ) end [2024-12-27 00:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:22:22] Production.INFO: ==18140== Releasing lock... [2024-12-27 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:22:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:23:05 [end_date_ymd] => 2024-12-27 00:23:05 [RateCDR] => 1 ) [2024-12-27 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:23:05' and `end` < '2024-12-27 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:23:17] Production.INFO: count ==447 [2024-12-27 00:23:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:23:05 - End Time 2024-12-27 00:23:05 [2024-12-27 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110498', 'tblTempUsageDetail_20' ) start [2024-12-27 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110498', 'tblTempUsageDetail_20' ) end [2024-12-27 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110498', 'tblTempVendorCDR_20' ) start [2024-12-27 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110498', 'tblTempVendorCDR_20' ) end [2024-12-27 00:23:18] Production.INFO: ProcessCDR(1,14110498,1,1,2) [2024-12-27 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110498', 'tblTempUsageDetail_20' ) start [2024-12-27 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110498', 'tblTempUsageDetail_20' ) end [2024-12-27 00:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:23:21] Production.INFO: ==18211== Releasing lock... [2024-12-27 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:23:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:24:05 [end_date_ymd] => 2024-12-27 00:24:05 [RateCDR] => 1 ) [2024-12-27 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:24:05' and `end` < '2024-12-27 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:24:18] Production.INFO: count ==447 [2024-12-27 00:24:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:24:05 - End Time 2024-12-27 00:24:05 [2024-12-27 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110503', 'tblTempUsageDetail_20' ) start [2024-12-27 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110503', 'tblTempUsageDetail_20' ) end [2024-12-27 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110503', 'tblTempVendorCDR_20' ) start [2024-12-27 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110503', 'tblTempVendorCDR_20' ) end [2024-12-27 00:24:18] Production.INFO: ProcessCDR(1,14110503,1,1,2) [2024-12-27 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110503', 'tblTempUsageDetail_20' ) start [2024-12-27 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110503', 'tblTempUsageDetail_20' ) end [2024-12-27 00:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:24:21] Production.INFO: ==18289== Releasing lock... [2024-12-27 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:24:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:25:04 [end_date_ymd] => 2024-12-27 00:25:04 [RateCDR] => 1 ) [2024-12-27 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-26 21:25:04' and `end` < '2024-12-27 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-27 00:25:17] Production.INFO: count ==447 [2024-12-27 00:25:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:25:04 - End Time 2024-12-27 00:25:04 [2024-12-27 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110508', 'tblTempUsageDetail_20' ) start [2024-12-27 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110508', 'tblTempUsageDetail_20' ) end [2024-12-27 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110508', 'tblTempVendorCDR_20' ) start [2024-12-27 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110508', 'tblTempVendorCDR_20' ) end [2024-12-27 00:25:17] Production.INFO: ProcessCDR(1,14110508,1,1,2) [2024-12-27 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110508', 'tblTempUsageDetail_20' ) start [2024-12-27 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110508', 'tblTempUsageDetail_20' ) end [2024-12-27 00:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:25:20] Production.INFO: ==18364== Releasing lock... [2024-12-27 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:25:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:26:05 [end_date_ymd] => 2024-12-27 00:26:05 [RateCDR] => 1 ) [2024-12-27 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:26:05' and `end` < '2024-12-27 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:26:17] Production.INFO: count ==447 [2024-12-27 00:26:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:26:05 - End Time 2024-12-27 00:26:05 [2024-12-27 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110513', 'tblTempUsageDetail_20' ) start [2024-12-27 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110513', 'tblTempUsageDetail_20' ) end [2024-12-27 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110513', 'tblTempVendorCDR_20' ) start [2024-12-27 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110513', 'tblTempVendorCDR_20' ) end [2024-12-27 00:26:17] Production.INFO: ProcessCDR(1,14110513,1,1,2) [2024-12-27 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110513', 'tblTempUsageDetail_20' ) start [2024-12-27 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110513', 'tblTempUsageDetail_20' ) end [2024-12-27 00:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:26:20] Production.INFO: ==18438== Releasing lock... [2024-12-27 00:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:26:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 00:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:27:04 [end_date_ymd] => 2024-12-27 00:27:04 [RateCDR] => 1 ) [2024-12-27 00:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:27:04' and `end` < '2024-12-27 00:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:27:17] Production.INFO: count ==447 [2024-12-27 00:27:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:27:04 - End Time 2024-12-27 00:27:04 [2024-12-27 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110518', 'tblTempUsageDetail_20' ) start [2024-12-27 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110518', 'tblTempUsageDetail_20' ) end [2024-12-27 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110518', 'tblTempVendorCDR_20' ) start [2024-12-27 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110518', 'tblTempVendorCDR_20' ) end [2024-12-27 00:27:17] Production.INFO: ProcessCDR(1,14110518,1,1,2) [2024-12-27 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110518', 'tblTempUsageDetail_20' ) start [2024-12-27 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110518', 'tblTempUsageDetail_20' ) end [2024-12-27 00:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:27:20] Production.INFO: ==18512== Releasing lock... [2024-12-27 00:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:27:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:28:05 [end_date_ymd] => 2024-12-27 00:28:05 [RateCDR] => 1 ) [2024-12-27 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:28:05' and `end` < '2024-12-27 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:28:17] Production.INFO: count ==449 [2024-12-27 00:28:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:28:05 - End Time 2024-12-27 00:28:05 [2024-12-27 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110523', 'tblTempUsageDetail_20' ) start [2024-12-27 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110523', 'tblTempUsageDetail_20' ) end [2024-12-27 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110523', 'tblTempVendorCDR_20' ) start [2024-12-27 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110523', 'tblTempVendorCDR_20' ) end [2024-12-27 00:28:17] Production.INFO: ProcessCDR(1,14110523,1,1,2) [2024-12-27 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110523', 'tblTempUsageDetail_20' ) start [2024-12-27 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110523', 'tblTempUsageDetail_20' ) end [2024-12-27 00:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:28:21] Production.INFO: ==18625== Releasing lock... [2024-12-27 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:28:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:29:05 [end_date_ymd] => 2024-12-27 00:29:05 [RateCDR] => 1 ) [2024-12-27 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:29:05' and `end` < '2024-12-27 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:29:17] Production.INFO: count ==452 [2024-12-27 00:29:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:29:05 - End Time 2024-12-27 00:29:05 [2024-12-27 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110528', 'tblTempUsageDetail_20' ) start [2024-12-27 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110528', 'tblTempUsageDetail_20' ) end [2024-12-27 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110528', 'tblTempVendorCDR_20' ) start [2024-12-27 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110528', 'tblTempVendorCDR_20' ) end [2024-12-27 00:29:18] Production.INFO: ProcessCDR(1,14110528,1,1,2) [2024-12-27 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110528', 'tblTempUsageDetail_20' ) start [2024-12-27 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110528', 'tblTempUsageDetail_20' ) end [2024-12-27 00:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:29:21] Production.INFO: ==18700== Releasing lock... [2024-12-27 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:29:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:30:05 [end_date_ymd] => 2024-12-27 00:30:05 [RateCDR] => 1 ) [2024-12-27 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-26 21:30:05' and `end` < '2024-12-27 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-27 00:30:18] Production.INFO: count ==457 [2024-12-27 00:30:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:30:05 - End Time 2024-12-27 00:30:05 [2024-12-27 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110534', 'tblTempUsageDetail_20' ) start [2024-12-27 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110534', 'tblTempUsageDetail_20' ) end [2024-12-27 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110534', 'tblTempVendorCDR_20' ) start [2024-12-27 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110534', 'tblTempVendorCDR_20' ) end [2024-12-27 00:30:18] Production.INFO: ProcessCDR(1,14110534,1,1,2) [2024-12-27 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110534', 'tblTempUsageDetail_20' ) start [2024-12-27 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110534', 'tblTempUsageDetail_20' ) end [2024-12-27 00:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:30:21] Production.INFO: ==18773== Releasing lock... [2024-12-27 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:30:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:31:05 [end_date_ymd] => 2024-12-27 00:31:05 [RateCDR] => 1 ) [2024-12-27 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:31:05' and `end` < '2024-12-27 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:31:18] Production.INFO: count ==471 [2024-12-27 00:31:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:31:05 - End Time 2024-12-27 00:31:05 [2024-12-27 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110539', 'tblTempUsageDetail_20' ) start [2024-12-27 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110539', 'tblTempUsageDetail_20' ) end [2024-12-27 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110539', 'tblTempVendorCDR_20' ) start [2024-12-27 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110539', 'tblTempVendorCDR_20' ) end [2024-12-27 00:31:18] Production.INFO: ProcessCDR(1,14110539,1,1,2) [2024-12-27 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110539', 'tblTempUsageDetail_20' ) start [2024-12-27 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110539', 'tblTempUsageDetail_20' ) end [2024-12-27 00:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:31:21] Production.INFO: ==18851== Releasing lock... [2024-12-27 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:31:21] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:32:05 [end_date_ymd] => 2024-12-27 00:32:05 [RateCDR] => 1 ) [2024-12-27 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:32:05' and `end` < '2024-12-27 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:32:17] Production.INFO: count ==471 [2024-12-27 00:32:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:32:05 - End Time 2024-12-27 00:32:05 [2024-12-27 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110544', 'tblTempUsageDetail_20' ) start [2024-12-27 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110544', 'tblTempUsageDetail_20' ) end [2024-12-27 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110544', 'tblTempVendorCDR_20' ) start [2024-12-27 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110544', 'tblTempVendorCDR_20' ) end [2024-12-27 00:32:17] Production.INFO: ProcessCDR(1,14110544,1,1,2) [2024-12-27 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110544', 'tblTempUsageDetail_20' ) start [2024-12-27 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110544', 'tblTempUsageDetail_20' ) end [2024-12-27 00:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:32:20] Production.INFO: ==18923== Releasing lock... [2024-12-27 00:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:32:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:33:05 [end_date_ymd] => 2024-12-27 00:33:05 [RateCDR] => 1 ) [2024-12-27 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:33:05' and `end` < '2024-12-27 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:33:18] Production.INFO: count ==469 [2024-12-27 00:33:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:33:05 - End Time 2024-12-27 00:33:05 [2024-12-27 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110549', 'tblTempUsageDetail_20' ) start [2024-12-27 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110549', 'tblTempUsageDetail_20' ) end [2024-12-27 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110549', 'tblTempVendorCDR_20' ) start [2024-12-27 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110549', 'tblTempVendorCDR_20' ) end [2024-12-27 00:33:18] Production.INFO: ProcessCDR(1,14110549,1,1,2) [2024-12-27 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110549', 'tblTempUsageDetail_20' ) start [2024-12-27 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110549', 'tblTempUsageDetail_20' ) end [2024-12-27 00:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:33:21] Production.INFO: ==18997== Releasing lock... [2024-12-27 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:33:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 00:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:34:04 [end_date_ymd] => 2024-12-27 00:34:04 [RateCDR] => 1 ) [2024-12-27 00:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:34:04' and `end` < '2024-12-27 00:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:34:17] Production.INFO: count ==468 [2024-12-27 00:34:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:34:04 - End Time 2024-12-27 00:34:04 [2024-12-27 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110554', 'tblTempUsageDetail_20' ) start [2024-12-27 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110554', 'tblTempUsageDetail_20' ) end [2024-12-27 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110554', 'tblTempVendorCDR_20' ) start [2024-12-27 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110554', 'tblTempVendorCDR_20' ) end [2024-12-27 00:34:18] Production.INFO: ProcessCDR(1,14110554,1,1,2) [2024-12-27 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110554', 'tblTempUsageDetail_20' ) start [2024-12-27 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110554', 'tblTempUsageDetail_20' ) end [2024-12-27 00:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:34:21] Production.INFO: ==19069== Releasing lock... [2024-12-27 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:34:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:35:05 [end_date_ymd] => 2024-12-27 00:35:05 [RateCDR] => 1 ) [2024-12-27 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:35:05' and `end` < '2024-12-27 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:35:17] Production.INFO: count ==468 [2024-12-27 00:35:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:35:05 - End Time 2024-12-27 00:35:05 [2024-12-27 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110559', 'tblTempUsageDetail_20' ) start [2024-12-27 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110559', 'tblTempUsageDetail_20' ) end [2024-12-27 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110559', 'tblTempVendorCDR_20' ) start [2024-12-27 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110559', 'tblTempVendorCDR_20' ) end [2024-12-27 00:35:17] Production.INFO: ProcessCDR(1,14110559,1,1,2) [2024-12-27 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110559', 'tblTempUsageDetail_20' ) start [2024-12-27 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110559', 'tblTempUsageDetail_20' ) end [2024-12-27 00:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:35:21] Production.INFO: ==19142== Releasing lock... [2024-12-27 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:35:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 00:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:36:04 [end_date_ymd] => 2024-12-27 00:36:04 [RateCDR] => 1 ) [2024-12-27 00:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:36:04' and `end` < '2024-12-27 00: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-27 00:36:17] Production.INFO: count ==467 [2024-12-27 00:36:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:36:04 - End Time 2024-12-27 00:36:04 [2024-12-27 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110564', 'tblTempUsageDetail_20' ) start [2024-12-27 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110564', 'tblTempUsageDetail_20' ) end [2024-12-27 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110564', 'tblTempVendorCDR_20' ) start [2024-12-27 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110564', 'tblTempVendorCDR_20' ) end [2024-12-27 00:36:17] Production.INFO: ProcessCDR(1,14110564,1,1,2) [2024-12-27 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110564', 'tblTempUsageDetail_20' ) start [2024-12-27 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110564', 'tblTempUsageDetail_20' ) end [2024-12-27 00:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:36:20] Production.INFO: ==19223== Releasing lock... [2024-12-27 00:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:36:20] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:37:04 [end_date_ymd] => 2024-12-27 00:37:04 [RateCDR] => 1 ) [2024-12-27 00:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:37:04' and `end` < '2024-12-27 00: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-27 00:37:17] Production.INFO: count ==467 [2024-12-27 00:37:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:37:04 - End Time 2024-12-27 00:37:04 [2024-12-27 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110569', 'tblTempUsageDetail_20' ) start [2024-12-27 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110569', 'tblTempUsageDetail_20' ) end [2024-12-27 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110569', 'tblTempVendorCDR_20' ) start [2024-12-27 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110569', 'tblTempVendorCDR_20' ) end [2024-12-27 00:37:18] Production.INFO: ProcessCDR(1,14110569,1,1,2) [2024-12-27 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110569', 'tblTempUsageDetail_20' ) start [2024-12-27 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110569', 'tblTempUsageDetail_20' ) end [2024-12-27 00:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:37:21] Production.INFO: ==19298== Releasing lock... [2024-12-27 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:37:21] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:38:05 [end_date_ymd] => 2024-12-27 00:38:05 [RateCDR] => 1 ) [2024-12-27 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:38:05' and `end` < '2024-12-27 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:38:18] Production.INFO: count ==442 [2024-12-27 00:38:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:38:05 - End Time 2024-12-27 00:38:05 [2024-12-27 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110574', 'tblTempUsageDetail_20' ) start [2024-12-27 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110574', 'tblTempUsageDetail_20' ) end [2024-12-27 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110574', 'tblTempVendorCDR_20' ) start [2024-12-27 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110574', 'tblTempVendorCDR_20' ) end [2024-12-27 00:38:18] Production.INFO: ProcessCDR(1,14110574,1,1,2) [2024-12-27 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110574', 'tblTempUsageDetail_20' ) start [2024-12-27 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110574', 'tblTempUsageDetail_20' ) end [2024-12-27 00:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:38:21] Production.INFO: ==19377== Releasing lock... [2024-12-27 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:38:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-27 00:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:39:04 [end_date_ymd] => 2024-12-27 00:39:04 [RateCDR] => 1 ) [2024-12-27 00:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:39:04' and `end` < '2024-12-27 00:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:39:17] Production.INFO: count ==442 [2024-12-27 00:39:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:39:04 - End Time 2024-12-27 00:39:04 [2024-12-27 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110579', 'tblTempUsageDetail_20' ) start [2024-12-27 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110579', 'tblTempUsageDetail_20' ) end [2024-12-27 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110579', 'tblTempVendorCDR_20' ) start [2024-12-27 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110579', 'tblTempVendorCDR_20' ) end [2024-12-27 00:39:17] Production.INFO: ProcessCDR(1,14110579,1,1,2) [2024-12-27 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110579', 'tblTempUsageDetail_20' ) start [2024-12-27 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110579', 'tblTempUsageDetail_20' ) end [2024-12-27 00:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:39:21] Production.INFO: ==19448== Releasing lock... [2024-12-27 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:39:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-27 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:40:06 [end_date_ymd] => 2024-12-27 00:40:06 [RateCDR] => 1 ) [2024-12-27 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:40:06' and `end` < '2024-12-27 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:40:19] Production.INFO: count ==448 [2024-12-27 00:40:19] Production.ERROR: pbx CDR StartTime 2024-12-26 21:40:06 - End Time 2024-12-27 00:40:06 [2024-12-27 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110585', 'tblTempUsageDetail_20' ) start [2024-12-27 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110585', 'tblTempUsageDetail_20' ) end [2024-12-27 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110585', 'tblTempVendorCDR_20' ) start [2024-12-27 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110585', 'tblTempVendorCDR_20' ) end [2024-12-27 00:40:19] Production.INFO: ProcessCDR(1,14110585,1,1,2) [2024-12-27 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110585', 'tblTempUsageDetail_20' ) start [2024-12-27 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110585', 'tblTempUsageDetail_20' ) end [2024-12-27 00:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:40:22] Production.INFO: ==19525== Releasing lock... [2024-12-27 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:40:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:41:05 [end_date_ymd] => 2024-12-27 00:41:05 [RateCDR] => 1 ) [2024-12-27 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:41:05' and `end` < '2024-12-27 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:41:18] Production.INFO: count ==448 [2024-12-27 00:41:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:41:05 - End Time 2024-12-27 00:41:05 [2024-12-27 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110590', 'tblTempUsageDetail_20' ) start [2024-12-27 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110590', 'tblTempUsageDetail_20' ) end [2024-12-27 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110590', 'tblTempVendorCDR_20' ) start [2024-12-27 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110590', 'tblTempVendorCDR_20' ) end [2024-12-27 00:41:18] Production.INFO: ProcessCDR(1,14110590,1,1,2) [2024-12-27 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110590', 'tblTempUsageDetail_20' ) start [2024-12-27 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110590', 'tblTempUsageDetail_20' ) end [2024-12-27 00:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:41:21] Production.INFO: ==19602== Releasing lock... [2024-12-27 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:41:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:42:05 [end_date_ymd] => 2024-12-27 00:42:05 [RateCDR] => 1 ) [2024-12-27 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:42:05' and `end` < '2024-12-27 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:42:19] Production.INFO: count ==448 [2024-12-27 00:42:19] Production.ERROR: pbx CDR StartTime 2024-12-26 21:42:05 - End Time 2024-12-27 00:42:05 [2024-12-27 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110595', 'tblTempUsageDetail_20' ) start [2024-12-27 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110595', 'tblTempUsageDetail_20' ) end [2024-12-27 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110595', 'tblTempVendorCDR_20' ) start [2024-12-27 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110595', 'tblTempVendorCDR_20' ) end [2024-12-27 00:42:19] Production.INFO: ProcessCDR(1,14110595,1,1,2) [2024-12-27 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110595', 'tblTempUsageDetail_20' ) start [2024-12-27 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110595', 'tblTempUsageDetail_20' ) end [2024-12-27 00:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:42:22] Production.INFO: ==19680== Releasing lock... [2024-12-27 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:42:22] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:43:05 [end_date_ymd] => 2024-12-27 00:43:05 [RateCDR] => 1 ) [2024-12-27 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:43:05' and `end` < '2024-12-27 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:43:18] Production.INFO: count ==448 [2024-12-27 00:43:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:43:05 - End Time 2024-12-27 00:43:05 [2024-12-27 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110600', 'tblTempUsageDetail_20' ) start [2024-12-27 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110600', 'tblTempUsageDetail_20' ) end [2024-12-27 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110600', 'tblTempVendorCDR_20' ) start [2024-12-27 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110600', 'tblTempVendorCDR_20' ) end [2024-12-27 00:43:18] Production.INFO: ProcessCDR(1,14110600,1,1,2) [2024-12-27 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110600', 'tblTempUsageDetail_20' ) start [2024-12-27 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110600', 'tblTempUsageDetail_20' ) end [2024-12-27 00:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:43:21] Production.INFO: ==19750== Releasing lock... [2024-12-27 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:43:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:44:05 [end_date_ymd] => 2024-12-27 00:44:05 [RateCDR] => 1 ) [2024-12-27 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:44:05' and `end` < '2024-12-27 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:44:17] Production.INFO: count ==448 [2024-12-27 00:44:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:44:05 - End Time 2024-12-27 00:44:05 [2024-12-27 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110605', 'tblTempUsageDetail_20' ) start [2024-12-27 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110605', 'tblTempUsageDetail_20' ) end [2024-12-27 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110605', 'tblTempVendorCDR_20' ) start [2024-12-27 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110605', 'tblTempVendorCDR_20' ) end [2024-12-27 00:44:17] Production.INFO: ProcessCDR(1,14110605,1,1,2) [2024-12-27 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110605', 'tblTempUsageDetail_20' ) start [2024-12-27 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110605', 'tblTempUsageDetail_20' ) end [2024-12-27 00:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:44:21] Production.INFO: ==19864== Releasing lock... [2024-12-27 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:44:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:45:05 [end_date_ymd] => 2024-12-27 00:45:05 [RateCDR] => 1 ) [2024-12-27 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:45:05' and `end` < '2024-12-27 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:45:17] Production.INFO: count ==452 [2024-12-27 00:45:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:45:05 - End Time 2024-12-27 00:45:05 [2024-12-27 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110610', 'tblTempUsageDetail_20' ) start [2024-12-27 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110610', 'tblTempUsageDetail_20' ) end [2024-12-27 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110610', 'tblTempVendorCDR_20' ) start [2024-12-27 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110610', 'tblTempVendorCDR_20' ) end [2024-12-27 00:45:18] Production.INFO: ProcessCDR(1,14110610,1,1,2) [2024-12-27 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110610', 'tblTempUsageDetail_20' ) start [2024-12-27 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110610', 'tblTempUsageDetail_20' ) end [2024-12-27 00:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:45:21] Production.INFO: ==19935== Releasing lock... [2024-12-27 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:45:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 00:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:46:04 [end_date_ymd] => 2024-12-27 00:46:04 [RateCDR] => 1 ) [2024-12-27 00:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:46:04' and `end` < '2024-12-27 00:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:46:17] Production.INFO: count ==452 [2024-12-27 00:46:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:46:04 - End Time 2024-12-27 00:46:04 [2024-12-27 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110615', 'tblTempUsageDetail_20' ) start [2024-12-27 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110615', 'tblTempUsageDetail_20' ) end [2024-12-27 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110615', 'tblTempVendorCDR_20' ) start [2024-12-27 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110615', 'tblTempVendorCDR_20' ) end [2024-12-27 00:46:17] Production.INFO: ProcessCDR(1,14110615,1,1,2) [2024-12-27 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110615', 'tblTempUsageDetail_20' ) start [2024-12-27 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110615', 'tblTempUsageDetail_20' ) end [2024-12-27 00:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:46:20] Production.INFO: ==20008== Releasing lock... [2024-12-27 00:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:46:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:47:05 [end_date_ymd] => 2024-12-27 00:47:05 [RateCDR] => 1 ) [2024-12-27 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-26 21:47:05' and `end` < '2024-12-27 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-27 00:47:18] Production.INFO: count ==452 [2024-12-27 00:47:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:47:05 - End Time 2024-12-27 00:47:05 [2024-12-27 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110620', 'tblTempUsageDetail_20' ) start [2024-12-27 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110620', 'tblTempUsageDetail_20' ) end [2024-12-27 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110620', 'tblTempVendorCDR_20' ) start [2024-12-27 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110620', 'tblTempVendorCDR_20' ) end [2024-12-27 00:47:18] Production.INFO: ProcessCDR(1,14110620,1,1,2) [2024-12-27 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110620', 'tblTempUsageDetail_20' ) start [2024-12-27 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110620', 'tblTempUsageDetail_20' ) end [2024-12-27 00:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:47:21] Production.INFO: ==20084== Releasing lock... [2024-12-27 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:47:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:48:04 [end_date_ymd] => 2024-12-27 00:48:04 [RateCDR] => 1 ) [2024-12-27 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:48:04' and `end` < '2024-12-27 00: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-27 00:48:17] Production.INFO: count ==449 [2024-12-27 00:48:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:48:04 - End Time 2024-12-27 00:48:04 [2024-12-27 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110625', 'tblTempUsageDetail_20' ) start [2024-12-27 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110625', 'tblTempUsageDetail_20' ) end [2024-12-27 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110625', 'tblTempVendorCDR_20' ) start [2024-12-27 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110625', 'tblTempVendorCDR_20' ) end [2024-12-27 00:48:17] Production.INFO: ProcessCDR(1,14110625,1,1,2) [2024-12-27 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110625', 'tblTempUsageDetail_20' ) start [2024-12-27 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110625', 'tblTempUsageDetail_20' ) end [2024-12-27 00:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:48:20] Production.INFO: ==20154== Releasing lock... [2024-12-27 00:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:48:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-27 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:49:05 [end_date_ymd] => 2024-12-27 00:49:05 [RateCDR] => 1 ) [2024-12-27 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-26 21:49:05' and `end` < '2024-12-27 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-27 00:49:20] Production.INFO: count ==448 [2024-12-27 00:49:20] Production.ERROR: pbx CDR StartTime 2024-12-26 21:49:05 - End Time 2024-12-27 00:49:05 [2024-12-27 00:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110630', 'tblTempUsageDetail_20' ) start [2024-12-27 00:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110630', 'tblTempUsageDetail_20' ) end [2024-12-27 00:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110630', 'tblTempVendorCDR_20' ) start [2024-12-27 00:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110630', 'tblTempVendorCDR_20' ) end [2024-12-27 00:49:20] Production.INFO: ProcessCDR(1,14110630,1,1,2) [2024-12-27 00:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110630', 'tblTempUsageDetail_20' ) start [2024-12-27 00:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110630', 'tblTempUsageDetail_20' ) end [2024-12-27 00:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:49:23] Production.INFO: ==20230== Releasing lock... [2024-12-27 00:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:49:23] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:50:06 [end_date_ymd] => 2024-12-27 00:50:06 [RateCDR] => 1 ) [2024-12-27 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:50:06' and `end` < '2024-12-27 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:50:18] Production.INFO: count ==455 [2024-12-27 00:50:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:50:06 - End Time 2024-12-27 00:50:06 [2024-12-27 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110636', 'tblTempUsageDetail_20' ) start [2024-12-27 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110636', 'tblTempUsageDetail_20' ) end [2024-12-27 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110636', 'tblTempVendorCDR_20' ) start [2024-12-27 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110636', 'tblTempVendorCDR_20' ) end [2024-12-27 00:50:18] Production.INFO: ProcessCDR(1,14110636,1,1,2) [2024-12-27 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110636', 'tblTempUsageDetail_20' ) start [2024-12-27 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110636', 'tblTempUsageDetail_20' ) end [2024-12-27 00:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:50:23] Production.INFO: ==20302== Releasing lock... [2024-12-27 00:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:50:23] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 00:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:51:04 [end_date_ymd] => 2024-12-27 00:51:04 [RateCDR] => 1 ) [2024-12-27 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-26 21:51:04' and `end` < '2024-12-27 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-27 00:51:18] Production.INFO: count ==458 [2024-12-27 00:51:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:51:04 - End Time 2024-12-27 00:51:04 [2024-12-27 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110641', 'tblTempUsageDetail_20' ) start [2024-12-27 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110641', 'tblTempUsageDetail_20' ) end [2024-12-27 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110641', 'tblTempVendorCDR_20' ) start [2024-12-27 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110641', 'tblTempVendorCDR_20' ) end [2024-12-27 00:51:18] Production.INFO: ProcessCDR(1,14110641,1,1,2) [2024-12-27 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110641', 'tblTempUsageDetail_20' ) start [2024-12-27 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110641', 'tblTempUsageDetail_20' ) end [2024-12-27 00:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:51:21] Production.INFO: ==20383== Releasing lock... [2024-12-27 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:51:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 00:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:52:04 [end_date_ymd] => 2024-12-27 00:52:04 [RateCDR] => 1 ) [2024-12-27 00:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:52:04' and `end` < '2024-12-27 00: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-27 00:52:17] Production.INFO: count ==456 [2024-12-27 00:52:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:52:04 - End Time 2024-12-27 00:52:04 [2024-12-27 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110642', 'tblTempUsageDetail_20' ) start [2024-12-27 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110642', 'tblTempUsageDetail_20' ) end [2024-12-27 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110642', 'tblTempVendorCDR_20' ) start [2024-12-27 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110642', 'tblTempVendorCDR_20' ) end [2024-12-27 00:52:17] Production.INFO: ProcessCDR(1,14110642,1,1,2) [2024-12-27 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110642', 'tblTempUsageDetail_20' ) start [2024-12-27 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110642', 'tblTempUsageDetail_20' ) end [2024-12-27 00:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:52:20] Production.INFO: ==20456== Releasing lock... [2024-12-27 00:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:52:20] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:53:05 [end_date_ymd] => 2024-12-27 00:53:05 [RateCDR] => 1 ) [2024-12-27 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:53:05' and `end` < '2024-12-27 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:53:17] Production.INFO: count ==456 [2024-12-27 00:53:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:53:05 - End Time 2024-12-27 00:53:05 [2024-12-27 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110651', 'tblTempUsageDetail_20' ) start [2024-12-27 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110651', 'tblTempUsageDetail_20' ) end [2024-12-27 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110651', 'tblTempVendorCDR_20' ) start [2024-12-27 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110651', 'tblTempVendorCDR_20' ) end [2024-12-27 00:53:17] Production.INFO: ProcessCDR(1,14110651,1,1,2) [2024-12-27 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110651', 'tblTempUsageDetail_20' ) start [2024-12-27 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110651', 'tblTempUsageDetail_20' ) end [2024-12-27 00:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:53:20] Production.INFO: ==20529== Releasing lock... [2024-12-27 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:53:20] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:54:05 [end_date_ymd] => 2024-12-27 00:54:05 [RateCDR] => 1 ) [2024-12-27 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:54:05' and `end` < '2024-12-27 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:54:17] Production.INFO: count ==456 [2024-12-27 00:54:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:54:05 - End Time 2024-12-27 00:54:05 [2024-12-27 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110656', 'tblTempUsageDetail_20' ) start [2024-12-27 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110656', 'tblTempUsageDetail_20' ) end [2024-12-27 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110656', 'tblTempVendorCDR_20' ) start [2024-12-27 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110656', 'tblTempVendorCDR_20' ) end [2024-12-27 00:54:17] Production.INFO: ProcessCDR(1,14110656,1,1,2) [2024-12-27 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110656', 'tblTempUsageDetail_20' ) start [2024-12-27 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110656', 'tblTempUsageDetail_20' ) end [2024-12-27 00:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:54:21] Production.INFO: ==20603== Releasing lock... [2024-12-27 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:54:21] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:55:05 [end_date_ymd] => 2024-12-27 00:55:05 [RateCDR] => 1 ) [2024-12-27 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:55:05' and `end` < '2024-12-27 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:55:17] Production.INFO: count ==456 [2024-12-27 00:55:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:55:05 - End Time 2024-12-27 00:55:05 [2024-12-27 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110661', 'tblTempUsageDetail_20' ) start [2024-12-27 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110661', 'tblTempUsageDetail_20' ) end [2024-12-27 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110661', 'tblTempVendorCDR_20' ) start [2024-12-27 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110661', 'tblTempVendorCDR_20' ) end [2024-12-27 00:55:17] Production.INFO: ProcessCDR(1,14110661,1,1,2) [2024-12-27 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110661', 'tblTempUsageDetail_20' ) start [2024-12-27 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110661', 'tblTempUsageDetail_20' ) end [2024-12-27 00:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:55:20] Production.INFO: ==20677== Releasing lock... [2024-12-27 00:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:55:20] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:56:05 [end_date_ymd] => 2024-12-27 00:56:05 [RateCDR] => 1 ) [2024-12-27 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:56:05' and `end` < '2024-12-27 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:56:17] Production.INFO: count ==453 [2024-12-27 00:56:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:56:05 - End Time 2024-12-27 00:56:05 [2024-12-27 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110666', 'tblTempUsageDetail_20' ) start [2024-12-27 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110666', 'tblTempUsageDetail_20' ) end [2024-12-27 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110666', 'tblTempVendorCDR_20' ) start [2024-12-27 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110666', 'tblTempVendorCDR_20' ) end [2024-12-27 00:56:17] Production.INFO: ProcessCDR(1,14110666,1,1,2) [2024-12-27 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110666', 'tblTempUsageDetail_20' ) start [2024-12-27 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110666', 'tblTempUsageDetail_20' ) end [2024-12-27 00:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:56:21] Production.INFO: ==20750== Releasing lock... [2024-12-27 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:56:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:57:05 [end_date_ymd] => 2024-12-27 00:57:05 [RateCDR] => 1 ) [2024-12-27 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:57:05' and `end` < '2024-12-27 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:57:19] Production.INFO: count ==453 [2024-12-27 00:57:19] Production.ERROR: pbx CDR StartTime 2024-12-26 21:57:05 - End Time 2024-12-27 00:57:05 [2024-12-27 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110671', 'tblTempUsageDetail_20' ) start [2024-12-27 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110671', 'tblTempUsageDetail_20' ) end [2024-12-27 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110671', 'tblTempVendorCDR_20' ) start [2024-12-27 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110671', 'tblTempVendorCDR_20' ) end [2024-12-27 00:57:19] Production.INFO: ProcessCDR(1,14110671,1,1,2) [2024-12-27 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110671', 'tblTempUsageDetail_20' ) start [2024-12-27 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110671', 'tblTempUsageDetail_20' ) end [2024-12-27 00:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:57:22] Production.INFO: ==20826== Releasing lock... [2024-12-27 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:57:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:58:05 [end_date_ymd] => 2024-12-27 00:58:05 [RateCDR] => 1 ) [2024-12-27 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:58:05' and `end` < '2024-12-27 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 00:58:17] Production.INFO: count ==456 [2024-12-27 00:58:17] Production.ERROR: pbx CDR StartTime 2024-12-26 21:58:05 - End Time 2024-12-27 00:58:05 [2024-12-27 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110676', 'tblTempUsageDetail_20' ) start [2024-12-27 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110676', 'tblTempUsageDetail_20' ) end [2024-12-27 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110676', 'tblTempVendorCDR_20' ) start [2024-12-27 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110676', 'tblTempVendorCDR_20' ) end [2024-12-27 00:58:18] Production.INFO: ProcessCDR(1,14110676,1,1,2) [2024-12-27 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110676', 'tblTempUsageDetail_20' ) start [2024-12-27 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110676', 'tblTempUsageDetail_20' ) end [2024-12-27 00:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:58:21] Production.INFO: ==20898== Releasing lock... [2024-12-27 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:58:21] Production.INFO: 32 MB #Memory Used# [2024-12-27 00:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 21:59:04 [end_date_ymd] => 2024-12-27 00:59:04 [RateCDR] => 1 ) [2024-12-27 00:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 21:59:04' and `end` < '2024-12-27 00: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-27 00:59:18] Production.INFO: count ==455 [2024-12-27 00:59:18] Production.ERROR: pbx CDR StartTime 2024-12-26 21:59:04 - End Time 2024-12-27 00:59:04 [2024-12-27 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110681', 'tblTempUsageDetail_20' ) start [2024-12-27 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110681', 'tblTempUsageDetail_20' ) end [2024-12-27 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110681', 'tblTempVendorCDR_20' ) start [2024-12-27 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110681', 'tblTempVendorCDR_20' ) end [2024-12-27 00:59:18] Production.INFO: ProcessCDR(1,14110681,1,1,2) [2024-12-27 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110681', 'tblTempUsageDetail_20' ) start [2024-12-27 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110681', 'tblTempUsageDetail_20' ) end [2024-12-27 00:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 00:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 00:59:21] Production.INFO: ==21009== Releasing lock... [2024-12-27 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 00:59:21] Production.INFO: 32 MB #Memory Used# [2024-12-27 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:00:05 [end_date_ymd] => 2024-12-27 01:00:05 [RateCDR] => 1 ) [2024-12-27 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:00:05' and `end` < '2024-12-27 01:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:00:18] Production.INFO: count ==459 [2024-12-27 01:00:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:00:05 - End Time 2024-12-27 01:00:05 [2024-12-27 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110687', 'tblTempUsageDetail_20' ) start [2024-12-27 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110687', 'tblTempUsageDetail_20' ) end [2024-12-27 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110687', 'tblTempVendorCDR_20' ) start [2024-12-27 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110687', 'tblTempVendorCDR_20' ) end [2024-12-27 01:00:18] Production.INFO: ProcessCDR(1,14110687,1,1,2) [2024-12-27 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110687', 'tblTempUsageDetail_20' ) start [2024-12-27 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110687', 'tblTempUsageDetail_20' ) end [2024-12-27 01:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:00:21] Production.INFO: ==21086== Releasing lock... [2024-12-27 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:00:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:01:05 [end_date_ymd] => 2024-12-27 01:01:05 [RateCDR] => 1 ) [2024-12-27 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:01:05' and `end` < '2024-12-27 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:01:17] Production.INFO: count ==459 [2024-12-27 01:01:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:01:05 - End Time 2024-12-27 01:01:05 [2024-12-27 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110692', 'tblTempUsageDetail_20' ) start [2024-12-27 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110692', 'tblTempUsageDetail_20' ) end [2024-12-27 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110692', 'tblTempVendorCDR_20' ) start [2024-12-27 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110692', 'tblTempVendorCDR_20' ) end [2024-12-27 01:01:17] Production.INFO: ProcessCDR(1,14110692,1,1,2) [2024-12-27 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110692', 'tblTempUsageDetail_20' ) start [2024-12-27 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110692', 'tblTempUsageDetail_20' ) end [2024-12-27 01:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:01:20] Production.INFO: ==21171== Releasing lock... [2024-12-27 01:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:01:20] Production.INFO: 32 MB #Memory Used# [2024-12-27 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:02:05 [end_date_ymd] => 2024-12-27 01:02:05 [RateCDR] => 1 ) [2024-12-27 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:02:05' and `end` < '2024-12-27 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:02:17] Production.INFO: count ==459 [2024-12-27 01:02:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:02:05 - End Time 2024-12-27 01:02:05 [2024-12-27 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110697', 'tblTempUsageDetail_20' ) start [2024-12-27 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110697', 'tblTempUsageDetail_20' ) end [2024-12-27 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110697', 'tblTempVendorCDR_20' ) start [2024-12-27 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110697', 'tblTempVendorCDR_20' ) end [2024-12-27 01:02:17] Production.INFO: ProcessCDR(1,14110697,1,1,2) [2024-12-27 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110697', 'tblTempUsageDetail_20' ) start [2024-12-27 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110697', 'tblTempUsageDetail_20' ) end [2024-12-27 01:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:02:21] Production.INFO: ==21245== Releasing lock... [2024-12-27 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:02:21] Production.INFO: 32 MB #Memory Used# [2024-12-27 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:03:05 [end_date_ymd] => 2024-12-27 01:03:05 [RateCDR] => 1 ) [2024-12-27 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:03:05' and `end` < '2024-12-27 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:03:17] Production.INFO: count ==456 [2024-12-27 01:03:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:03:05 - End Time 2024-12-27 01:03:05 [2024-12-27 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110702', 'tblTempUsageDetail_20' ) start [2024-12-27 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110702', 'tblTempUsageDetail_20' ) end [2024-12-27 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110702', 'tblTempVendorCDR_20' ) start [2024-12-27 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110702', 'tblTempVendorCDR_20' ) end [2024-12-27 01:03:17] Production.INFO: ProcessCDR(1,14110702,1,1,2) [2024-12-27 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110702', 'tblTempUsageDetail_20' ) start [2024-12-27 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110702', 'tblTempUsageDetail_20' ) end [2024-12-27 01:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:03:20] Production.INFO: ==21315== Releasing lock... [2024-12-27 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:03:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-27 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:04:05 [end_date_ymd] => 2024-12-27 01:04:05 [RateCDR] => 1 ) [2024-12-27 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:04:05' and `end` < '2024-12-27 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:04:18] Production.INFO: count ==456 [2024-12-27 01:04:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:04:05 - End Time 2024-12-27 01:04:05 [2024-12-27 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110707', 'tblTempUsageDetail_20' ) start [2024-12-27 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110707', 'tblTempUsageDetail_20' ) end [2024-12-27 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110707', 'tblTempVendorCDR_20' ) start [2024-12-27 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110707', 'tblTempVendorCDR_20' ) end [2024-12-27 01:04:18] Production.INFO: ProcessCDR(1,14110707,1,1,2) [2024-12-27 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110707', 'tblTempUsageDetail_20' ) start [2024-12-27 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110707', 'tblTempUsageDetail_20' ) end [2024-12-27 01:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:04:21] Production.INFO: ==21391== Releasing lock... [2024-12-27 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:04:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-27 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:05:05 [end_date_ymd] => 2024-12-27 01:05:05 [RateCDR] => 1 ) [2024-12-27 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:05:05' and `end` < '2024-12-27 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:05:18] Production.INFO: count ==458 [2024-12-27 01:05:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:05:05 - End Time 2024-12-27 01:05:05 [2024-12-27 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110712', 'tblTempUsageDetail_20' ) start [2024-12-27 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110712', 'tblTempUsageDetail_20' ) end [2024-12-27 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110712', 'tblTempVendorCDR_20' ) start [2024-12-27 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110712', 'tblTempVendorCDR_20' ) end [2024-12-27 01:05:18] Production.INFO: ProcessCDR(1,14110712,1,1,2) [2024-12-27 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110712', 'tblTempUsageDetail_20' ) start [2024-12-27 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110712', 'tblTempUsageDetail_20' ) end [2024-12-27 01:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:05:21] Production.INFO: ==21463== Releasing lock... [2024-12-27 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:05:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 01:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:06:04 [end_date_ymd] => 2024-12-27 01:06:04 [RateCDR] => 1 ) [2024-12-27 01:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:06:04' and `end` < '2024-12-27 01:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:06:18] Production.INFO: count ==452 [2024-12-27 01:06:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:06:04 - End Time 2024-12-27 01:06:04 [2024-12-27 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110717', 'tblTempUsageDetail_20' ) start [2024-12-27 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110717', 'tblTempUsageDetail_20' ) end [2024-12-27 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110717', 'tblTempVendorCDR_20' ) start [2024-12-27 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110717', 'tblTempVendorCDR_20' ) end [2024-12-27 01:06:18] Production.INFO: ProcessCDR(1,14110717,1,1,2) [2024-12-27 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110717', 'tblTempUsageDetail_20' ) start [2024-12-27 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110717', 'tblTempUsageDetail_20' ) end [2024-12-27 01:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:06:21] Production.INFO: ==21539== Releasing lock... [2024-12-27 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:06:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:07:05 [end_date_ymd] => 2024-12-27 01:07:05 [RateCDR] => 1 ) [2024-12-27 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:07:05' and `end` < '2024-12-27 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:07:18] Production.INFO: count ==452 [2024-12-27 01:07:19] Production.ERROR: pbx CDR StartTime 2024-12-26 22:07:05 - End Time 2024-12-27 01:07:05 [2024-12-27 01:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110722', 'tblTempUsageDetail_20' ) start [2024-12-27 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110722', 'tblTempUsageDetail_20' ) end [2024-12-27 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110722', 'tblTempVendorCDR_20' ) start [2024-12-27 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110722', 'tblTempVendorCDR_20' ) end [2024-12-27 01:07:19] Production.INFO: ProcessCDR(1,14110722,1,1,2) [2024-12-27 01:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110722', 'tblTempUsageDetail_20' ) start [2024-12-27 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110722', 'tblTempUsageDetail_20' ) end [2024-12-27 01:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:07:22] Production.INFO: ==21610== Releasing lock... [2024-12-27 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:07:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:08:05 [end_date_ymd] => 2024-12-27 01:08:05 [RateCDR] => 1 ) [2024-12-27 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:08:05' and `end` < '2024-12-27 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:08:17] Production.INFO: count ==451 [2024-12-27 01:08:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:08:05 - End Time 2024-12-27 01:08:05 [2024-12-27 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110727', 'tblTempUsageDetail_20' ) start [2024-12-27 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110727', 'tblTempUsageDetail_20' ) end [2024-12-27 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110727', 'tblTempVendorCDR_20' ) start [2024-12-27 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110727', 'tblTempVendorCDR_20' ) end [2024-12-27 01:08:17] Production.INFO: ProcessCDR(1,14110727,1,1,2) [2024-12-27 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110727', 'tblTempUsageDetail_20' ) start [2024-12-27 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110727', 'tblTempUsageDetail_20' ) end [2024-12-27 01:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:08:20] Production.INFO: ==21684== Releasing lock... [2024-12-27 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:08:20] Production.INFO: 32 MB #Memory Used# [2024-12-27 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:09:05 [end_date_ymd] => 2024-12-27 01:09:05 [RateCDR] => 1 ) [2024-12-27 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:09:05' and `end` < '2024-12-27 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:09:19] Production.INFO: count ==451 [2024-12-27 01:09:19] Production.ERROR: pbx CDR StartTime 2024-12-26 22:09:05 - End Time 2024-12-27 01:09:05 [2024-12-27 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110732', 'tblTempUsageDetail_20' ) start [2024-12-27 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110732', 'tblTempUsageDetail_20' ) end [2024-12-27 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110732', 'tblTempVendorCDR_20' ) start [2024-12-27 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110732', 'tblTempVendorCDR_20' ) end [2024-12-27 01:09:19] Production.INFO: ProcessCDR(1,14110732,1,1,2) [2024-12-27 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110732', 'tblTempUsageDetail_20' ) start [2024-12-27 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110732', 'tblTempUsageDetail_20' ) end [2024-12-27 01:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:09:23] Production.INFO: ==21755== Releasing lock... [2024-12-27 01:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:09:23] Production.INFO: 32 MB #Memory Used# [2024-12-27 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:10:05 [end_date_ymd] => 2024-12-27 01:10:05 [RateCDR] => 1 ) [2024-12-27 01:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:10:05' and `end` < '2024-12-27 01:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:10:17] Production.INFO: count ==457 [2024-12-27 01:10:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:10:05 - End Time 2024-12-27 01:10:05 [2024-12-27 01:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110737', 'tblTempUsageDetail_20' ) start [2024-12-27 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110737', 'tblTempUsageDetail_20' ) end [2024-12-27 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110737', 'tblTempVendorCDR_20' ) start [2024-12-27 01:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110737', 'tblTempVendorCDR_20' ) end [2024-12-27 01:10:17] Production.INFO: ProcessCDR(1,14110737,1,1,2) [2024-12-27 01:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110737', 'tblTempUsageDetail_20' ) start [2024-12-27 01:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110737', 'tblTempUsageDetail_20' ) end [2024-12-27 01:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:10:20] Production.INFO: ==21829== Releasing lock... [2024-12-27 01:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:10:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 01:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:11:04 [end_date_ymd] => 2024-12-27 01:11:04 [RateCDR] => 1 ) [2024-12-27 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-26 22:11:04' and `end` < '2024-12-27 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-27 01:11:19] Production.INFO: count ==483 [2024-12-27 01:11:19] Production.ERROR: pbx CDR StartTime 2024-12-26 22:11:04 - End Time 2024-12-27 01:11:04 [2024-12-27 01:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110743', 'tblTempUsageDetail_20' ) start [2024-12-27 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110743', 'tblTempUsageDetail_20' ) end [2024-12-27 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110743', 'tblTempVendorCDR_20' ) start [2024-12-27 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110743', 'tblTempVendorCDR_20' ) end [2024-12-27 01:11:19] Production.INFO: ProcessCDR(1,14110743,1,1,2) [2024-12-27 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110743', 'tblTempUsageDetail_20' ) start [2024-12-27 01:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110743', 'tblTempUsageDetail_20' ) end [2024-12-27 01:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:11:24] Production.INFO: ==21904== Releasing lock... [2024-12-27 01:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:11:24] Production.INFO: 32.5 MB #Memory Used# [2024-12-27 01:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:12:04 [end_date_ymd] => 2024-12-27 01:12:04 [RateCDR] => 1 ) [2024-12-27 01:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:12:04' and `end` < '2024-12-27 01: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-27 01:12:17] Production.INFO: count ==486 [2024-12-27 01:12:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:12:04 - End Time 2024-12-27 01:12:04 [2024-12-27 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110748', 'tblTempUsageDetail_20' ) start [2024-12-27 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110748', 'tblTempUsageDetail_20' ) end [2024-12-27 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110748', 'tblTempVendorCDR_20' ) start [2024-12-27 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110748', 'tblTempVendorCDR_20' ) end [2024-12-27 01:12:17] Production.INFO: ProcessCDR(1,14110748,1,1,2) [2024-12-27 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110748', 'tblTempUsageDetail_20' ) start [2024-12-27 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110748', 'tblTempUsageDetail_20' ) end [2024-12-27 01:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:12:20] Production.INFO: ==21974== Releasing lock... [2024-12-27 01:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:12:20] Production.INFO: 32 MB #Memory Used# [2024-12-27 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:13:05 [end_date_ymd] => 2024-12-27 01:13:05 [RateCDR] => 1 ) [2024-12-27 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:13:05' and `end` < '2024-12-27 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:13:17] Production.INFO: count ==489 [2024-12-27 01:13:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:13:05 - End Time 2024-12-27 01:13:05 [2024-12-27 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110753', 'tblTempUsageDetail_20' ) start [2024-12-27 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110753', 'tblTempUsageDetail_20' ) end [2024-12-27 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110753', 'tblTempVendorCDR_20' ) start [2024-12-27 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110753', 'tblTempVendorCDR_20' ) end [2024-12-27 01:13:17] Production.INFO: ProcessCDR(1,14110753,1,1,2) [2024-12-27 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110753', 'tblTempUsageDetail_20' ) start [2024-12-27 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110753', 'tblTempUsageDetail_20' ) end [2024-12-27 01:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:13:20] Production.INFO: ==22049== Releasing lock... [2024-12-27 01:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:13:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:14:05 [end_date_ymd] => 2024-12-27 01:14:05 [RateCDR] => 1 ) [2024-12-27 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:14:05' and `end` < '2024-12-27 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:14:17] Production.INFO: count ==489 [2024-12-27 01:14:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:14:05 - End Time 2024-12-27 01:14:05 [2024-12-27 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110758', 'tblTempUsageDetail_20' ) start [2024-12-27 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110758', 'tblTempUsageDetail_20' ) end [2024-12-27 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110758', 'tblTempVendorCDR_20' ) start [2024-12-27 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110758', 'tblTempVendorCDR_20' ) end [2024-12-27 01:14:17] Production.INFO: ProcessCDR(1,14110758,1,1,2) [2024-12-27 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110758', 'tblTempUsageDetail_20' ) start [2024-12-27 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110758', 'tblTempUsageDetail_20' ) end [2024-12-27 01:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:14:20] Production.INFO: ==22121== Releasing lock... [2024-12-27 01:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:14:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:15:05 [end_date_ymd] => 2024-12-27 01:15:05 [RateCDR] => 1 ) [2024-12-27 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:15:05' and `end` < '2024-12-27 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:15:17] Production.INFO: count ==491 [2024-12-27 01:15:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:15:05 - End Time 2024-12-27 01:15:05 [2024-12-27 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110763', 'tblTempUsageDetail_20' ) start [2024-12-27 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110763', 'tblTempUsageDetail_20' ) end [2024-12-27 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110763', 'tblTempVendorCDR_20' ) start [2024-12-27 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110763', 'tblTempVendorCDR_20' ) end [2024-12-27 01:15:17] Production.INFO: ProcessCDR(1,14110763,1,1,2) [2024-12-27 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110763', 'tblTempUsageDetail_20' ) start [2024-12-27 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110763', 'tblTempUsageDetail_20' ) end [2024-12-27 01:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:15:21] Production.INFO: ==22235== Releasing lock... [2024-12-27 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:15:21] Production.INFO: 32 MB #Memory Used# [2024-12-27 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:16:05 [end_date_ymd] => 2024-12-27 01:16:05 [RateCDR] => 1 ) [2024-12-27 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:16:05' and `end` < '2024-12-27 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:16:18] Production.INFO: count ==489 [2024-12-27 01:16:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:16:05 - End Time 2024-12-27 01:16:05 [2024-12-27 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110768', 'tblTempUsageDetail_20' ) start [2024-12-27 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110768', 'tblTempUsageDetail_20' ) end [2024-12-27 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110768', 'tblTempVendorCDR_20' ) start [2024-12-27 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110768', 'tblTempVendorCDR_20' ) end [2024-12-27 01:16:18] Production.INFO: ProcessCDR(1,14110768,1,1,2) [2024-12-27 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110768', 'tblTempUsageDetail_20' ) start [2024-12-27 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110768', 'tblTempUsageDetail_20' ) end [2024-12-27 01:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:16:21] Production.INFO: ==22309== Releasing lock... [2024-12-27 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:16:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:17:05 [end_date_ymd] => 2024-12-27 01:17:05 [RateCDR] => 1 ) [2024-12-27 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:17:05' and `end` < '2024-12-27 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:17:17] Production.INFO: count ==498 [2024-12-27 01:17:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:17:05 - End Time 2024-12-27 01:17:05 [2024-12-27 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110773', 'tblTempUsageDetail_20' ) start [2024-12-27 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110773', 'tblTempUsageDetail_20' ) end [2024-12-27 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110773', 'tblTempVendorCDR_20' ) start [2024-12-27 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110773', 'tblTempVendorCDR_20' ) end [2024-12-27 01:17:17] Production.INFO: ProcessCDR(1,14110773,1,1,2) [2024-12-27 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110773', 'tblTempUsageDetail_20' ) start [2024-12-27 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110773', 'tblTempUsageDetail_20' ) end [2024-12-27 01:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:17:20] Production.INFO: ==22385== Releasing lock... [2024-12-27 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:17:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:18:05 [end_date_ymd] => 2024-12-27 01:18:05 [RateCDR] => 1 ) [2024-12-27 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:18:05' and `end` < '2024-12-27 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:18:17] Production.INFO: count ==498 [2024-12-27 01:18:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:18:05 - End Time 2024-12-27 01:18:05 [2024-12-27 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110778', 'tblTempUsageDetail_20' ) start [2024-12-27 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110778', 'tblTempUsageDetail_20' ) end [2024-12-27 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110778', 'tblTempVendorCDR_20' ) start [2024-12-27 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110778', 'tblTempVendorCDR_20' ) end [2024-12-27 01:18:17] Production.INFO: ProcessCDR(1,14110778,1,1,2) [2024-12-27 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110778', 'tblTempUsageDetail_20' ) start [2024-12-27 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110778', 'tblTempUsageDetail_20' ) end [2024-12-27 01:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:18:21] Production.INFO: ==22464== Releasing lock... [2024-12-27 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:18:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:19:05 [end_date_ymd] => 2024-12-27 01:19:05 [RateCDR] => 1 ) [2024-12-27 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:19:05' and `end` < '2024-12-27 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:19:18] Production.INFO: count ==501 [2024-12-27 01:19:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:19:05 - End Time 2024-12-27 01:19:05 [2024-12-27 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110783', 'tblTempUsageDetail_20' ) start [2024-12-27 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110783', 'tblTempUsageDetail_20' ) end [2024-12-27 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110783', 'tblTempVendorCDR_20' ) start [2024-12-27 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110783', 'tblTempVendorCDR_20' ) end [2024-12-27 01:19:18] Production.INFO: ProcessCDR(1,14110783,1,1,2) [2024-12-27 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110783', 'tblTempUsageDetail_20' ) start [2024-12-27 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110783', 'tblTempUsageDetail_20' ) end [2024-12-27 01:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:19:21] Production.INFO: ==22540== Releasing lock... [2024-12-27 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:19:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-27 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:20:06 [end_date_ymd] => 2024-12-27 01:20:06 [RateCDR] => 1 ) [2024-12-27 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:20:06' and `end` < '2024-12-27 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:20:18] Production.INFO: count ==508 [2024-12-27 01:20:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:20:06 - End Time 2024-12-27 01:20:06 [2024-12-27 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110788', 'tblTempUsageDetail_20' ) start [2024-12-27 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110788', 'tblTempUsageDetail_20' ) end [2024-12-27 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110788', 'tblTempVendorCDR_20' ) start [2024-12-27 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110788', 'tblTempVendorCDR_20' ) end [2024-12-27 01:20:18] Production.INFO: ProcessCDR(1,14110788,1,1,2) [2024-12-27 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110788', 'tblTempUsageDetail_20' ) start [2024-12-27 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110788', 'tblTempUsageDetail_20' ) end [2024-12-27 01:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:20:23] Production.INFO: ==22613== Releasing lock... [2024-12-27 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:20:23] Production.INFO: 32.75 MB #Memory Used# [2024-12-27 01:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:21:04 [end_date_ymd] => 2024-12-27 01:21:04 [RateCDR] => 1 ) [2024-12-27 01:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:21:04' and `end` < '2024-12-27 01: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-27 01:21:16] Production.INFO: count ==533 [2024-12-27 01:21:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:21:04 - End Time 2024-12-27 01:21:04 [2024-12-27 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110794', 'tblTempUsageDetail_20' ) start [2024-12-27 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110794', 'tblTempUsageDetail_20' ) end [2024-12-27 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110794', 'tblTempVendorCDR_20' ) start [2024-12-27 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110794', 'tblTempVendorCDR_20' ) end [2024-12-27 01:21:17] Production.INFO: ProcessCDR(1,14110794,1,1,2) [2024-12-27 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110794', 'tblTempUsageDetail_20' ) start [2024-12-27 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110794', 'tblTempUsageDetail_20' ) end [2024-12-27 01:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:21:20] Production.INFO: ==22688== Releasing lock... [2024-12-27 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:21:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-27 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:22:05 [end_date_ymd] => 2024-12-27 01:22:05 [RateCDR] => 1 ) [2024-12-27 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:22:05' and `end` < '2024-12-27 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:22:17] Production.INFO: count ==533 [2024-12-27 01:22:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:22:05 - End Time 2024-12-27 01:22:05 [2024-12-27 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110799', 'tblTempUsageDetail_20' ) start [2024-12-27 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110799', 'tblTempUsageDetail_20' ) end [2024-12-27 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110799', 'tblTempVendorCDR_20' ) start [2024-12-27 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110799', 'tblTempVendorCDR_20' ) end [2024-12-27 01:22:17] Production.INFO: ProcessCDR(1,14110799,1,1,2) [2024-12-27 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110799', 'tblTempUsageDetail_20' ) start [2024-12-27 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110799', 'tblTempUsageDetail_20' ) end [2024-12-27 01:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:22:20] Production.INFO: ==22767== Releasing lock... [2024-12-27 01:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:22:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-27 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:23:05 [end_date_ymd] => 2024-12-27 01:23:05 [RateCDR] => 1 ) [2024-12-27 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:23:05' and `end` < '2024-12-27 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:23:19] Production.INFO: count ==530 [2024-12-27 01:23:19] Production.ERROR: pbx CDR StartTime 2024-12-26 22:23:05 - End Time 2024-12-27 01:23:05 [2024-12-27 01:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110804', 'tblTempUsageDetail_20' ) start [2024-12-27 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110804', 'tblTempUsageDetail_20' ) end [2024-12-27 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110804', 'tblTempVendorCDR_20' ) start [2024-12-27 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110804', 'tblTempVendorCDR_20' ) end [2024-12-27 01:23:19] Production.INFO: ProcessCDR(1,14110804,1,1,2) [2024-12-27 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110804', 'tblTempUsageDetail_20' ) start [2024-12-27 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110804', 'tblTempUsageDetail_20' ) end [2024-12-27 01:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:23:22] Production.INFO: ==22842== Releasing lock... [2024-12-27 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:23:22] Production.INFO: 32 MB #Memory Used# [2024-12-27 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:24:05 [end_date_ymd] => 2024-12-27 01:24:05 [RateCDR] => 1 ) [2024-12-27 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:24:05' and `end` < '2024-12-27 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:24:19] Production.INFO: count ==529 [2024-12-27 01:24:19] Production.ERROR: pbx CDR StartTime 2024-12-26 22:24:05 - End Time 2024-12-27 01:24:05 [2024-12-27 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110809', 'tblTempUsageDetail_20' ) start [2024-12-27 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110809', 'tblTempUsageDetail_20' ) end [2024-12-27 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110809', 'tblTempVendorCDR_20' ) start [2024-12-27 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110809', 'tblTempVendorCDR_20' ) end [2024-12-27 01:24:19] Production.INFO: ProcessCDR(1,14110809,1,1,2) [2024-12-27 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110809', 'tblTempUsageDetail_20' ) start [2024-12-27 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110809', 'tblTempUsageDetail_20' ) end [2024-12-27 01:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:24:22] Production.INFO: ==22915== Releasing lock... [2024-12-27 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:24:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:25:05 [end_date_ymd] => 2024-12-27 01:25:05 [RateCDR] => 1 ) [2024-12-27 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:25:05' and `end` < '2024-12-27 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:25:18] Production.INFO: count ==529 [2024-12-27 01:25:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:25:05 - End Time 2024-12-27 01:25:05 [2024-12-27 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110814', 'tblTempUsageDetail_20' ) start [2024-12-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110814', 'tblTempUsageDetail_20' ) end [2024-12-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110814', 'tblTempVendorCDR_20' ) start [2024-12-27 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110814', 'tblTempVendorCDR_20' ) end [2024-12-27 01:25:18] Production.INFO: ProcessCDR(1,14110814,1,1,2) [2024-12-27 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110814', 'tblTempUsageDetail_20' ) start [2024-12-27 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110814', 'tblTempUsageDetail_20' ) end [2024-12-27 01:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:25:21] Production.INFO: ==22985== Releasing lock... [2024-12-27 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:25:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:26:05 [end_date_ymd] => 2024-12-27 01:26:05 [RateCDR] => 1 ) [2024-12-27 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:26:05' and `end` < '2024-12-27 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:26:19] Production.INFO: count ==529 [2024-12-27 01:26:20] Production.ERROR: pbx CDR StartTime 2024-12-26 22:26:05 - End Time 2024-12-27 01:26:05 [2024-12-27 01:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110819', 'tblTempUsageDetail_20' ) start [2024-12-27 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110819', 'tblTempUsageDetail_20' ) end [2024-12-27 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110819', 'tblTempVendorCDR_20' ) start [2024-12-27 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110819', 'tblTempVendorCDR_20' ) end [2024-12-27 01:26:20] Production.INFO: ProcessCDR(1,14110819,1,1,2) [2024-12-27 01:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110819', 'tblTempUsageDetail_20' ) start [2024-12-27 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110819', 'tblTempUsageDetail_20' ) end [2024-12-27 01:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:26:23] Production.INFO: ==23058== Releasing lock... [2024-12-27 01:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:26:23] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:27:05 [end_date_ymd] => 2024-12-27 01:27:05 [RateCDR] => 1 ) [2024-12-27 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:27:05' and `end` < '2024-12-27 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:27:17] Production.INFO: count ==529 [2024-12-27 01:27:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:27:05 - End Time 2024-12-27 01:27:05 [2024-12-27 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110824', 'tblTempUsageDetail_20' ) start [2024-12-27 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110824', 'tblTempUsageDetail_20' ) end [2024-12-27 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110824', 'tblTempVendorCDR_20' ) start [2024-12-27 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110824', 'tblTempVendorCDR_20' ) end [2024-12-27 01:27:17] Production.INFO: ProcessCDR(1,14110824,1,1,2) [2024-12-27 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110824', 'tblTempUsageDetail_20' ) start [2024-12-27 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110824', 'tblTempUsageDetail_20' ) end [2024-12-27 01:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:27:20] Production.INFO: ==23131== Releasing lock... [2024-12-27 01:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:27:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:28:05 [end_date_ymd] => 2024-12-27 01:28:05 [RateCDR] => 1 ) [2024-12-27 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:28:05' and `end` < '2024-12-27 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:28:19] Production.INFO: count ==527 [2024-12-27 01:28:19] Production.ERROR: pbx CDR StartTime 2024-12-26 22:28:05 - End Time 2024-12-27 01:28:05 [2024-12-27 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110829', 'tblTempUsageDetail_20' ) start [2024-12-27 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110829', 'tblTempUsageDetail_20' ) end [2024-12-27 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110829', 'tblTempVendorCDR_20' ) start [2024-12-27 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110829', 'tblTempVendorCDR_20' ) end [2024-12-27 01:28:19] Production.INFO: ProcessCDR(1,14110829,1,1,2) [2024-12-27 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110829', 'tblTempUsageDetail_20' ) start [2024-12-27 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110829', 'tblTempUsageDetail_20' ) end [2024-12-27 01:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:28:22] Production.INFO: ==23204== Releasing lock... [2024-12-27 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:28:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-27 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:29:05 [end_date_ymd] => 2024-12-27 01:29:05 [RateCDR] => 1 ) [2024-12-27 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:29:05' and `end` < '2024-12-27 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:29:17] Production.INFO: count ==526 [2024-12-27 01:29:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:29:05 - End Time 2024-12-27 01:29:05 [2024-12-27 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110834', 'tblTempUsageDetail_20' ) start [2024-12-27 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110834', 'tblTempUsageDetail_20' ) end [2024-12-27 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110834', 'tblTempVendorCDR_20' ) start [2024-12-27 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110834', 'tblTempVendorCDR_20' ) end [2024-12-27 01:29:17] Production.INFO: ProcessCDR(1,14110834,1,1,2) [2024-12-27 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110834', 'tblTempUsageDetail_20' ) start [2024-12-27 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110834', 'tblTempUsageDetail_20' ) end [2024-12-27 01:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:29:21] Production.INFO: ==23276== Releasing lock... [2024-12-27 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:29:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-27 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:30:06 [end_date_ymd] => 2024-12-27 01:30:06 [RateCDR] => 1 ) [2024-12-27 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:30:06' and `end` < '2024-12-27 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:30:18] Production.INFO: count ==534 [2024-12-27 01:30:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:30:06 - End Time 2024-12-27 01:30:06 [2024-12-27 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110840', 'tblTempUsageDetail_20' ) start [2024-12-27 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110840', 'tblTempUsageDetail_20' ) end [2024-12-27 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110840', 'tblTempVendorCDR_20' ) start [2024-12-27 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110840', 'tblTempVendorCDR_20' ) end [2024-12-27 01:30:18] Production.INFO: ProcessCDR(1,14110840,1,1,2) [2024-12-27 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110840', 'tblTempUsageDetail_20' ) start [2024-12-27 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110840', 'tblTempUsageDetail_20' ) end [2024-12-27 01:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:30:21] Production.INFO: ==23349== Releasing lock... [2024-12-27 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:30:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-27 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:31:05 [end_date_ymd] => 2024-12-27 01:31:05 [RateCDR] => 1 ) [2024-12-27 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:31:05' and `end` < '2024-12-27 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:31:18] Production.INFO: count ==540 [2024-12-27 01:31:19] Production.ERROR: pbx CDR StartTime 2024-12-26 22:31:05 - End Time 2024-12-27 01:31:05 [2024-12-27 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110845', 'tblTempUsageDetail_20' ) start [2024-12-27 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110845', 'tblTempUsageDetail_20' ) end [2024-12-27 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110845', 'tblTempVendorCDR_20' ) start [2024-12-27 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110845', 'tblTempVendorCDR_20' ) end [2024-12-27 01:31:19] Production.INFO: ProcessCDR(1,14110845,1,1,2) [2024-12-27 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110845', 'tblTempUsageDetail_20' ) start [2024-12-27 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110845', 'tblTempUsageDetail_20' ) end [2024-12-27 01:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:31:22] Production.INFO: ==23463== Releasing lock... [2024-12-27 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:31:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-27 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:32:05 [end_date_ymd] => 2024-12-27 01:32:05 [RateCDR] => 1 ) [2024-12-27 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:32:05' and `end` < '2024-12-27 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:32:17] Production.INFO: count ==539 [2024-12-27 01:32:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:32:05 - End Time 2024-12-27 01:32:05 [2024-12-27 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110850', 'tblTempUsageDetail_20' ) start [2024-12-27 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110850', 'tblTempUsageDetail_20' ) end [2024-12-27 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110850', 'tblTempVendorCDR_20' ) start [2024-12-27 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110850', 'tblTempVendorCDR_20' ) end [2024-12-27 01:32:17] Production.INFO: ProcessCDR(1,14110850,1,1,2) [2024-12-27 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110850', 'tblTempUsageDetail_20' ) start [2024-12-27 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110850', 'tblTempUsageDetail_20' ) end [2024-12-27 01:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:32:20] Production.INFO: ==23534== Releasing lock... [2024-12-27 01:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:32:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-27 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:33:05 [end_date_ymd] => 2024-12-27 01:33:05 [RateCDR] => 1 ) [2024-12-27 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:33:05' and `end` < '2024-12-27 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:33:18] Production.INFO: count ==539 [2024-12-27 01:33:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:33:05 - End Time 2024-12-27 01:33:05 [2024-12-27 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110855', 'tblTempUsageDetail_20' ) start [2024-12-27 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110855', 'tblTempUsageDetail_20' ) end [2024-12-27 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110855', 'tblTempVendorCDR_20' ) start [2024-12-27 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110855', 'tblTempVendorCDR_20' ) end [2024-12-27 01:33:18] Production.INFO: ProcessCDR(1,14110855,1,1,2) [2024-12-27 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110855', 'tblTempUsageDetail_20' ) start [2024-12-27 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110855', 'tblTempUsageDetail_20' ) end [2024-12-27 01:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:33:22] Production.INFO: ==23607== Releasing lock... [2024-12-27 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:33:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-27 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:34:05 [end_date_ymd] => 2024-12-27 01:34:05 [RateCDR] => 1 ) [2024-12-27 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:34:05' and `end` < '2024-12-27 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:34:18] Production.INFO: count ==537 [2024-12-27 01:34:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:34:05 - End Time 2024-12-27 01:34:05 [2024-12-27 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110860', 'tblTempUsageDetail_20' ) start [2024-12-27 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110860', 'tblTempUsageDetail_20' ) end [2024-12-27 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110860', 'tblTempVendorCDR_20' ) start [2024-12-27 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110860', 'tblTempVendorCDR_20' ) end [2024-12-27 01:34:18] Production.INFO: ProcessCDR(1,14110860,1,1,2) [2024-12-27 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110860', 'tblTempUsageDetail_20' ) start [2024-12-27 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110860', 'tblTempUsageDetail_20' ) end [2024-12-27 01:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:34:21] Production.INFO: ==23685== Releasing lock... [2024-12-27 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:34:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-27 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:35:05 [end_date_ymd] => 2024-12-27 01:35:05 [RateCDR] => 1 ) [2024-12-27 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:35:05' and `end` < '2024-12-27 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:35:17] Production.INFO: count ==536 [2024-12-27 01:35:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:35:05 - End Time 2024-12-27 01:35:05 [2024-12-27 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110865', 'tblTempUsageDetail_20' ) start [2024-12-27 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110865', 'tblTempUsageDetail_20' ) end [2024-12-27 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110865', 'tblTempVendorCDR_20' ) start [2024-12-27 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110865', 'tblTempVendorCDR_20' ) end [2024-12-27 01:35:17] Production.INFO: ProcessCDR(1,14110865,1,1,2) [2024-12-27 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110865', 'tblTempUsageDetail_20' ) start [2024-12-27 01:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110865', 'tblTempUsageDetail_20' ) end [2024-12-27 01:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:35:20] Production.INFO: ==23757== Releasing lock... [2024-12-27 01:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:35:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-27 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:36:05 [end_date_ymd] => 2024-12-27 01:36:05 [RateCDR] => 1 ) [2024-12-27 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:36:05' and `end` < '2024-12-27 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:36:18] Production.INFO: count ==537 [2024-12-27 01:36:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:36:05 - End Time 2024-12-27 01:36:05 [2024-12-27 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110870', 'tblTempUsageDetail_20' ) start [2024-12-27 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110870', 'tblTempUsageDetail_20' ) end [2024-12-27 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110870', 'tblTempVendorCDR_20' ) start [2024-12-27 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110870', 'tblTempVendorCDR_20' ) end [2024-12-27 01:36:18] Production.INFO: ProcessCDR(1,14110870,1,1,2) [2024-12-27 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110870', 'tblTempUsageDetail_20' ) start [2024-12-27 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110870', 'tblTempUsageDetail_20' ) end [2024-12-27 01:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:36:21] Production.INFO: ==23836== Releasing lock... [2024-12-27 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:36:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-27 01:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:37:04 [end_date_ymd] => 2024-12-27 01:37:04 [RateCDR] => 1 ) [2024-12-27 01:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:37:04' and `end` < '2024-12-27 01:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:37:17] Production.INFO: count ==537 [2024-12-27 01:37:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:37:04 - End Time 2024-12-27 01:37:04 [2024-12-27 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110875', 'tblTempUsageDetail_20' ) start [2024-12-27 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110875', 'tblTempUsageDetail_20' ) end [2024-12-27 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110875', 'tblTempVendorCDR_20' ) start [2024-12-27 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110875', 'tblTempVendorCDR_20' ) end [2024-12-27 01:37:17] Production.INFO: ProcessCDR(1,14110875,1,1,2) [2024-12-27 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110875', 'tblTempUsageDetail_20' ) start [2024-12-27 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110875', 'tblTempUsageDetail_20' ) end [2024-12-27 01:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:37:20] Production.INFO: ==23909== Releasing lock... [2024-12-27 01:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:37:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-27 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:38:05 [end_date_ymd] => 2024-12-27 01:38:05 [RateCDR] => 1 ) [2024-12-27 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:38:05' and `end` < '2024-12-27 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:38:18] Production.INFO: count ==536 [2024-12-27 01:38:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:38:05 - End Time 2024-12-27 01:38:05 [2024-12-27 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110880', 'tblTempUsageDetail_20' ) start [2024-12-27 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110880', 'tblTempUsageDetail_20' ) end [2024-12-27 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110880', 'tblTempVendorCDR_20' ) start [2024-12-27 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110880', 'tblTempVendorCDR_20' ) end [2024-12-27 01:38:18] Production.INFO: ProcessCDR(1,14110880,1,1,2) [2024-12-27 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110880', 'tblTempUsageDetail_20' ) start [2024-12-27 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110880', 'tblTempUsageDetail_20' ) end [2024-12-27 01:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:38:21] Production.INFO: ==23984== Releasing lock... [2024-12-27 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:38:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-27 01:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:39:04 [end_date_ymd] => 2024-12-27 01:39:04 [RateCDR] => 1 ) [2024-12-27 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-26 22:39:04' and `end` < '2024-12-27 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-27 01:39:18] Production.INFO: count ==537 [2024-12-27 01:39:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:39:04 - End Time 2024-12-27 01:39:04 [2024-12-27 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110885', 'tblTempUsageDetail_20' ) start [2024-12-27 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110885', 'tblTempUsageDetail_20' ) end [2024-12-27 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110885', 'tblTempVendorCDR_20' ) start [2024-12-27 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110885', 'tblTempVendorCDR_20' ) end [2024-12-27 01:39:18] Production.INFO: ProcessCDR(1,14110885,1,1,2) [2024-12-27 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110885', 'tblTempUsageDetail_20' ) start [2024-12-27 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110885', 'tblTempUsageDetail_20' ) end [2024-12-27 01:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:39:22] Production.INFO: ==24055== Releasing lock... [2024-12-27 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:39:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-27 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:40:05 [end_date_ymd] => 2024-12-27 01:40:05 [RateCDR] => 1 ) [2024-12-27 01:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:40:05' and `end` < '2024-12-27 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-27 01:40:17] Production.INFO: count ==543 [2024-12-27 01:40:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:40:05 - End Time 2024-12-27 01:40:05 [2024-12-27 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110890', 'tblTempUsageDetail_20' ) start [2024-12-27 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110890', 'tblTempUsageDetail_20' ) end [2024-12-27 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110890', 'tblTempVendorCDR_20' ) start [2024-12-27 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110890', 'tblTempVendorCDR_20' ) end [2024-12-27 01:40:18] Production.INFO: ProcessCDR(1,14110890,1,1,2) [2024-12-27 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110890', 'tblTempUsageDetail_20' ) start [2024-12-27 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110890', 'tblTempUsageDetail_20' ) end [2024-12-27 01:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:40:21] Production.INFO: ==24131== Releasing lock... [2024-12-27 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:40:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-27 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:41:05 [end_date_ymd] => 2024-12-27 01:41:05 [RateCDR] => 1 ) [2024-12-27 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:41:05' and `end` < '2024-12-27 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:41:18] Production.INFO: count ==549 [2024-12-27 01:41:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:41:05 - End Time 2024-12-27 01:41:05 [2024-12-27 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110896', 'tblTempUsageDetail_20' ) start [2024-12-27 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110896', 'tblTempUsageDetail_20' ) end [2024-12-27 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110896', 'tblTempVendorCDR_20' ) start [2024-12-27 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110896', 'tblTempVendorCDR_20' ) end [2024-12-27 01:41:18] Production.INFO: ProcessCDR(1,14110896,1,1,2) [2024-12-27 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110896', 'tblTempUsageDetail_20' ) start [2024-12-27 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110896', 'tblTempUsageDetail_20' ) end [2024-12-27 01:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:41:21] Production.INFO: ==24208== Releasing lock... [2024-12-27 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:41:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-27 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:42:05 [end_date_ymd] => 2024-12-27 01:42:05 [RateCDR] => 1 ) [2024-12-27 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:42:05' and `end` < '2024-12-27 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:42:18] Production.INFO: count ==547 [2024-12-27 01:42:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:42:05 - End Time 2024-12-27 01:42:05 [2024-12-27 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110901', 'tblTempUsageDetail_20' ) start [2024-12-27 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110901', 'tblTempUsageDetail_20' ) end [2024-12-27 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110901', 'tblTempVendorCDR_20' ) start [2024-12-27 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110901', 'tblTempVendorCDR_20' ) end [2024-12-27 01:42:18] Production.INFO: ProcessCDR(1,14110901,1,1,2) [2024-12-27 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110901', 'tblTempUsageDetail_20' ) start [2024-12-27 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110901', 'tblTempUsageDetail_20' ) end [2024-12-27 01:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:42:22] Production.INFO: ==24281== Releasing lock... [2024-12-27 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:42:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-27 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:43:05 [end_date_ymd] => 2024-12-27 01:43:05 [RateCDR] => 1 ) [2024-12-27 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:43:05' and `end` < '2024-12-27 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:43:18] Production.INFO: count ==550 [2024-12-27 01:43:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:43:05 - End Time 2024-12-27 01:43:05 [2024-12-27 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110906', 'tblTempUsageDetail_20' ) start [2024-12-27 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110906', 'tblTempUsageDetail_20' ) end [2024-12-27 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110906', 'tblTempVendorCDR_20' ) start [2024-12-27 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110906', 'tblTempVendorCDR_20' ) end [2024-12-27 01:43:18] Production.INFO: ProcessCDR(1,14110906,1,1,2) [2024-12-27 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110906', 'tblTempUsageDetail_20' ) start [2024-12-27 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110906', 'tblTempUsageDetail_20' ) end [2024-12-27 01:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:43:22] Production.INFO: ==24355== Releasing lock... [2024-12-27 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:43:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-27 01:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:44:04 [end_date_ymd] => 2024-12-27 01:44:04 [RateCDR] => 1 ) [2024-12-27 01:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:44:04' and `end` < '2024-12-27 01: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-27 01:44:17] Production.INFO: count ==545 [2024-12-27 01:44:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:44:04 - End Time 2024-12-27 01:44:04 [2024-12-27 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110911', 'tblTempUsageDetail_20' ) start [2024-12-27 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110911', 'tblTempUsageDetail_20' ) end [2024-12-27 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110911', 'tblTempVendorCDR_20' ) start [2024-12-27 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110911', 'tblTempVendorCDR_20' ) end [2024-12-27 01:44:17] Production.INFO: ProcessCDR(1,14110911,1,1,2) [2024-12-27 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110911', 'tblTempUsageDetail_20' ) start [2024-12-27 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110911', 'tblTempUsageDetail_20' ) end [2024-12-27 01:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:44:20] Production.INFO: ==24430== Releasing lock... [2024-12-27 01:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:44:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-27 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:45:05 [end_date_ymd] => 2024-12-27 01:45:05 [RateCDR] => 1 ) [2024-12-27 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:45:05' and `end` < '2024-12-27 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:45:18] Production.INFO: count ==513 [2024-12-27 01:45:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:45:05 - End Time 2024-12-27 01:45:05 [2024-12-27 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110916', 'tblTempUsageDetail_20' ) start [2024-12-27 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110916', 'tblTempUsageDetail_20' ) end [2024-12-27 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110916', 'tblTempVendorCDR_20' ) start [2024-12-27 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110916', 'tblTempVendorCDR_20' ) end [2024-12-27 01:45:18] Production.INFO: ProcessCDR(1,14110916,1,1,2) [2024-12-27 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110916', 'tblTempUsageDetail_20' ) start [2024-12-27 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110916', 'tblTempUsageDetail_20' ) end [2024-12-27 01:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:45:21] Production.INFO: ==24503== Releasing lock... [2024-12-27 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:45:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-27 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:46:05 [end_date_ymd] => 2024-12-27 01:46:05 [RateCDR] => 1 ) [2024-12-27 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:46:05' and `end` < '2024-12-27 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:46:17] Production.INFO: count ==481 [2024-12-27 01:46:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:46:05 - End Time 2024-12-27 01:46:05 [2024-12-27 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110921', 'tblTempUsageDetail_20' ) start [2024-12-27 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110921', 'tblTempUsageDetail_20' ) end [2024-12-27 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110921', 'tblTempVendorCDR_20' ) start [2024-12-27 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110921', 'tblTempVendorCDR_20' ) end [2024-12-27 01:46:17] Production.INFO: ProcessCDR(1,14110921,1,1,2) [2024-12-27 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110921', 'tblTempUsageDetail_20' ) start [2024-12-27 01:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110921', 'tblTempUsageDetail_20' ) end [2024-12-27 01:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:46:20] Production.INFO: ==24614== Releasing lock... [2024-12-27 01:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:46:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-27 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:47:05 [end_date_ymd] => 2024-12-27 01:47:05 [RateCDR] => 1 ) [2024-12-27 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:47:05' and `end` < '2024-12-27 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:47:18] Production.INFO: count ==445 [2024-12-27 01:47:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:47:05 - End Time 2024-12-27 01:47:05 [2024-12-27 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110926', 'tblTempUsageDetail_20' ) start [2024-12-27 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110926', 'tblTempUsageDetail_20' ) end [2024-12-27 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110926', 'tblTempVendorCDR_20' ) start [2024-12-27 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110926', 'tblTempVendorCDR_20' ) end [2024-12-27 01:47:18] Production.INFO: ProcessCDR(1,14110926,1,1,2) [2024-12-27 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110926', 'tblTempUsageDetail_20' ) start [2024-12-27 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110926', 'tblTempUsageDetail_20' ) end [2024-12-27 01:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:47:21] Production.INFO: ==24688== Releasing lock... [2024-12-27 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:47:21] Production.INFO: 32 MB #Memory Used# [2024-12-27 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:48:05 [end_date_ymd] => 2024-12-27 01:48:05 [RateCDR] => 1 ) [2024-12-27 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:48:05' and `end` < '2024-12-27 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:48:18] Production.INFO: count ==435 [2024-12-27 01:48:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:48:05 - End Time 2024-12-27 01:48:05 [2024-12-27 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110931', 'tblTempUsageDetail_20' ) start [2024-12-27 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110931', 'tblTempUsageDetail_20' ) end [2024-12-27 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110931', 'tblTempVendorCDR_20' ) start [2024-12-27 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110931', 'tblTempVendorCDR_20' ) end [2024-12-27 01:48:18] Production.INFO: ProcessCDR(1,14110931,1,1,2) [2024-12-27 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110931', 'tblTempUsageDetail_20' ) start [2024-12-27 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110931', 'tblTempUsageDetail_20' ) end [2024-12-27 01:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:48:21] Production.INFO: ==24760== Releasing lock... [2024-12-27 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:48:21] Production.INFO: 32 MB #Memory Used# [2024-12-27 01:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:49:04 [end_date_ymd] => 2024-12-27 01:49:04 [RateCDR] => 1 ) [2024-12-27 01:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:49:04' and `end` < '2024-12-27 01:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:49:18] Production.INFO: count ==408 [2024-12-27 01:49:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:49:04 - End Time 2024-12-27 01:49:04 [2024-12-27 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110936', 'tblTempUsageDetail_20' ) start [2024-12-27 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110936', 'tblTempUsageDetail_20' ) end [2024-12-27 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110936', 'tblTempVendorCDR_20' ) start [2024-12-27 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110936', 'tblTempVendorCDR_20' ) end [2024-12-27 01:49:18] Production.INFO: ProcessCDR(1,14110936,1,1,2) [2024-12-27 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110936', 'tblTempUsageDetail_20' ) start [2024-12-27 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110936', 'tblTempUsageDetail_20' ) end [2024-12-27 01:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:49:21] Production.INFO: ==24834== Releasing lock... [2024-12-27 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:49:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-27 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:50:05 [end_date_ymd] => 2024-12-27 01:50:05 [RateCDR] => 1 ) [2024-12-27 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-26 22:50:05' and `end` < '2024-12-27 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-27 01:50:18] Production.INFO: count ==376 [2024-12-27 01:50:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:50:05 - End Time 2024-12-27 01:50:05 [2024-12-27 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110942', 'tblTempUsageDetail_20' ) start [2024-12-27 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110942', 'tblTempUsageDetail_20' ) end [2024-12-27 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110942', 'tblTempVendorCDR_20' ) start [2024-12-27 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110942', 'tblTempVendorCDR_20' ) end [2024-12-27 01:50:18] Production.INFO: ProcessCDR(1,14110942,1,1,2) [2024-12-27 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110942', 'tblTempUsageDetail_20' ) start [2024-12-27 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110942', 'tblTempUsageDetail_20' ) end [2024-12-27 01:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:50:21] Production.INFO: ==24908== Releasing lock... [2024-12-27 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:50:21] Production.INFO: 31 MB #Memory Used# [2024-12-27 01:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:51:04 [end_date_ymd] => 2024-12-27 01:51:04 [RateCDR] => 1 ) [2024-12-27 01:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:51:04' and `end` < '2024-12-27 01:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:51:18] Production.INFO: count ==356 [2024-12-27 01:51:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:51:04 - End Time 2024-12-27 01:51:04 [2024-12-27 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110947', 'tblTempUsageDetail_20' ) start [2024-12-27 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110947', 'tblTempUsageDetail_20' ) end [2024-12-27 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110947', 'tblTempVendorCDR_20' ) start [2024-12-27 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110947', 'tblTempVendorCDR_20' ) end [2024-12-27 01:51:18] Production.INFO: ProcessCDR(1,14110947,1,1,2) [2024-12-27 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110947', 'tblTempUsageDetail_20' ) start [2024-12-27 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110947', 'tblTempUsageDetail_20' ) end [2024-12-27 01:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:51:21] Production.INFO: ==24992== Releasing lock... [2024-12-27 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:51:21] Production.INFO: 31 MB #Memory Used# [2024-12-27 01:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:52:04 [end_date_ymd] => 2024-12-27 01:52:04 [RateCDR] => 1 ) [2024-12-27 01:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:52:04' and `end` < '2024-12-27 01: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-27 01:52:18] Production.INFO: count ==349 [2024-12-27 01:52:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:52:04 - End Time 2024-12-27 01:52:04 [2024-12-27 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110952', 'tblTempUsageDetail_20' ) start [2024-12-27 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110952', 'tblTempUsageDetail_20' ) end [2024-12-27 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110952', 'tblTempVendorCDR_20' ) start [2024-12-27 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110952', 'tblTempVendorCDR_20' ) end [2024-12-27 01:52:18] Production.INFO: ProcessCDR(1,14110952,1,1,2) [2024-12-27 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110952', 'tblTempUsageDetail_20' ) start [2024-12-27 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110952', 'tblTempUsageDetail_20' ) end [2024-12-27 01:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:52:21] Production.INFO: ==25068== Releasing lock... [2024-12-27 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:52:21] Production.INFO: 31 MB #Memory Used# [2024-12-27 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:53:05 [end_date_ymd] => 2024-12-27 01:53:05 [RateCDR] => 1 ) [2024-12-27 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:53:05' and `end` < '2024-12-27 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:53:20] Production.INFO: count ==347 [2024-12-27 01:53:20] Production.ERROR: pbx CDR StartTime 2024-12-26 22:53:05 - End Time 2024-12-27 01:53:05 [2024-12-27 01:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110957', 'tblTempUsageDetail_20' ) start [2024-12-27 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110957', 'tblTempUsageDetail_20' ) end [2024-12-27 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110957', 'tblTempVendorCDR_20' ) start [2024-12-27 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110957', 'tblTempVendorCDR_20' ) end [2024-12-27 01:53:20] Production.INFO: ProcessCDR(1,14110957,1,1,2) [2024-12-27 01:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110957', 'tblTempUsageDetail_20' ) start [2024-12-27 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110957', 'tblTempUsageDetail_20' ) end [2024-12-27 01:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:53:23] Production.INFO: ==25149== Releasing lock... [2024-12-27 01:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:53:23] Production.INFO: 30.75 MB #Memory Used# [2024-12-27 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:54:05 [end_date_ymd] => 2024-12-27 01:54:05 [RateCDR] => 1 ) [2024-12-27 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:54:05' and `end` < '2024-12-27 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:54:17] Production.INFO: count ==346 [2024-12-27 01:54:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:54:05 - End Time 2024-12-27 01:54:05 [2024-12-27 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110962', 'tblTempUsageDetail_20' ) start [2024-12-27 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110962', 'tblTempUsageDetail_20' ) end [2024-12-27 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110962', 'tblTempVendorCDR_20' ) start [2024-12-27 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110962', 'tblTempVendorCDR_20' ) end [2024-12-27 01:54:17] Production.INFO: ProcessCDR(1,14110962,1,1,2) [2024-12-27 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110962', 'tblTempUsageDetail_20' ) start [2024-12-27 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110962', 'tblTempUsageDetail_20' ) end [2024-12-27 01:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:54:20] Production.INFO: ==25227== Releasing lock... [2024-12-27 01:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:54:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-27 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:55:05 [end_date_ymd] => 2024-12-27 01:55:05 [RateCDR] => 1 ) [2024-12-27 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:55:05' and `end` < '2024-12-27 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:55:18] Production.INFO: count ==346 [2024-12-27 01:55:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:55:05 - End Time 2024-12-27 01:55:05 [2024-12-27 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110967', 'tblTempUsageDetail_20' ) start [2024-12-27 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110967', 'tblTempUsageDetail_20' ) end [2024-12-27 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110967', 'tblTempVendorCDR_20' ) start [2024-12-27 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110967', 'tblTempVendorCDR_20' ) end [2024-12-27 01:55:18] Production.INFO: ProcessCDR(1,14110967,1,1,2) [2024-12-27 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110967', 'tblTempUsageDetail_20' ) start [2024-12-27 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110967', 'tblTempUsageDetail_20' ) end [2024-12-27 01:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:55:21] Production.INFO: ==25306== Releasing lock... [2024-12-27 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:55:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-27 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:56:05 [end_date_ymd] => 2024-12-27 01:56:05 [RateCDR] => 1 ) [2024-12-27 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:56:05' and `end` < '2024-12-27 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:56:18] Production.INFO: count ==346 [2024-12-27 01:56:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:56:05 - End Time 2024-12-27 01:56:05 [2024-12-27 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110972', 'tblTempUsageDetail_20' ) start [2024-12-27 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110972', 'tblTempUsageDetail_20' ) end [2024-12-27 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110972', 'tblTempVendorCDR_20' ) start [2024-12-27 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110972', 'tblTempVendorCDR_20' ) end [2024-12-27 01:56:18] Production.INFO: ProcessCDR(1,14110972,1,1,2) [2024-12-27 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110972', 'tblTempUsageDetail_20' ) start [2024-12-27 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110972', 'tblTempUsageDetail_20' ) end [2024-12-27 01:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:56:21] Production.INFO: ==25381== Releasing lock... [2024-12-27 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:56:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-27 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:57:05 [end_date_ymd] => 2024-12-27 01:57:05 [RateCDR] => 1 ) [2024-12-27 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:57:05' and `end` < '2024-12-27 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:57:17] Production.INFO: count ==340 [2024-12-27 01:57:17] Production.ERROR: pbx CDR StartTime 2024-12-26 22:57:05 - End Time 2024-12-27 01:57:05 [2024-12-27 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110977', 'tblTempUsageDetail_20' ) start [2024-12-27 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110977', 'tblTempUsageDetail_20' ) end [2024-12-27 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110977', 'tblTempVendorCDR_20' ) start [2024-12-27 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110977', 'tblTempVendorCDR_20' ) end [2024-12-27 01:57:18] Production.INFO: ProcessCDR(1,14110977,1,1,2) [2024-12-27 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110977', 'tblTempUsageDetail_20' ) start [2024-12-27 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110977', 'tblTempUsageDetail_20' ) end [2024-12-27 01:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:57:20] Production.INFO: ==25462== Releasing lock... [2024-12-27 01:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:57:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-27 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:58:05 [end_date_ymd] => 2024-12-27 01:58:05 [RateCDR] => 1 ) [2024-12-27 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:58:05' and `end` < '2024-12-27 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:58:18] Production.INFO: count ==335 [2024-12-27 01:58:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:58:05 - End Time 2024-12-27 01:58:05 [2024-12-27 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110982', 'tblTempUsageDetail_20' ) start [2024-12-27 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110982', 'tblTempUsageDetail_20' ) end [2024-12-27 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110982', 'tblTempVendorCDR_20' ) start [2024-12-27 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110982', 'tblTempVendorCDR_20' ) end [2024-12-27 01:58:18] Production.INFO: ProcessCDR(1,14110982,1,1,2) [2024-12-27 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110982', 'tblTempUsageDetail_20' ) start [2024-12-27 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110982', 'tblTempUsageDetail_20' ) end [2024-12-27 01:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:58:21] Production.INFO: ==25541== Releasing lock... [2024-12-27 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:58:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-27 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 22:59:05 [end_date_ymd] => 2024-12-27 01:59:05 [RateCDR] => 1 ) [2024-12-27 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 22:59:05' and `end` < '2024-12-27 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 01:59:18] Production.INFO: count ==335 [2024-12-27 01:59:18] Production.ERROR: pbx CDR StartTime 2024-12-26 22:59:05 - End Time 2024-12-27 01:59:05 [2024-12-27 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110987', 'tblTempUsageDetail_20' ) start [2024-12-27 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110987', 'tblTempUsageDetail_20' ) end [2024-12-27 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110987', 'tblTempVendorCDR_20' ) start [2024-12-27 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110987', 'tblTempVendorCDR_20' ) end [2024-12-27 01:59:18] Production.INFO: ProcessCDR(1,14110987,1,1,2) [2024-12-27 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110987', 'tblTempUsageDetail_20' ) start [2024-12-27 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110987', 'tblTempUsageDetail_20' ) end [2024-12-27 01:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 01:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 01:59:21] Production.INFO: ==25618== Releasing lock... [2024-12-27 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 01:59:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-27 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:00:06 [end_date_ymd] => 2024-12-27 02:00:06 [RateCDR] => 1 ) [2024-12-27 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:00:06' and `end` < '2024-12-27 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:00:18] Production.INFO: count ==343 [2024-12-27 02:00:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:00:06 - End Time 2024-12-27 02:00:06 [2024-12-27 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110993', 'tblTempUsageDetail_20' ) start [2024-12-27 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110993', 'tblTempUsageDetail_20' ) end [2024-12-27 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110993', 'tblTempVendorCDR_20' ) start [2024-12-27 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110993', 'tblTempVendorCDR_20' ) end [2024-12-27 02:00:18] Production.INFO: ProcessCDR(1,14110993,1,1,2) [2024-12-27 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110993', 'tblTempUsageDetail_20' ) start [2024-12-27 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110993', 'tblTempUsageDetail_20' ) end [2024-12-27 02:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:00:21] Production.INFO: ==25703== Releasing lock... [2024-12-27 02:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:00:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-27 02:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:01:04 [end_date_ymd] => 2024-12-27 02:01:04 [RateCDR] => 1 ) [2024-12-27 02:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:01:04' and `end` < '2024-12-27 02:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:01:17] Production.INFO: count ==347 [2024-12-27 02:01:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:01:04 - End Time 2024-12-27 02:01:04 [2024-12-27 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110998', 'tblTempUsageDetail_20' ) start [2024-12-27 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14110998', 'tblTempUsageDetail_20' ) end [2024-12-27 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110998', 'tblTempVendorCDR_20' ) start [2024-12-27 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14110998', 'tblTempVendorCDR_20' ) end [2024-12-27 02:01:17] Production.INFO: ProcessCDR(1,14110998,1,1,2) [2024-12-27 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14110998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14110998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14110998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14110998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110998', 'tblTempUsageDetail_20' ) start [2024-12-27 02:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14110998', 'tblTempUsageDetail_20' ) end [2024-12-27 02:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:01:20] Production.INFO: ==25886== Releasing lock... [2024-12-27 02:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:01:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-27 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:02:05 [end_date_ymd] => 2024-12-27 02:02:05 [RateCDR] => 1 ) [2024-12-27 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:02:05' and `end` < '2024-12-27 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:02:19] Production.INFO: count ==347 [2024-12-27 02:02:19] Production.ERROR: pbx CDR StartTime 2024-12-26 23:02:05 - End Time 2024-12-27 02:02:05 [2024-12-27 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111003', 'tblTempUsageDetail_20' ) start [2024-12-27 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111003', 'tblTempUsageDetail_20' ) end [2024-12-27 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111003', 'tblTempVendorCDR_20' ) start [2024-12-27 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111003', 'tblTempVendorCDR_20' ) end [2024-12-27 02:02:19] Production.INFO: ProcessCDR(1,14111003,1,1,2) [2024-12-27 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111003', 'tblTempUsageDetail_20' ) start [2024-12-27 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111003', 'tblTempUsageDetail_20' ) end [2024-12-27 02:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:02:22] Production.INFO: ==26033== Releasing lock... [2024-12-27 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:02:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-27 02:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:03:04 [end_date_ymd] => 2024-12-27 02:03:04 [RateCDR] => 1 ) [2024-12-27 02:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:03:04' and `end` < '2024-12-27 02: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-27 02:03:18] Production.INFO: count ==347 [2024-12-27 02:03:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:03:04 - End Time 2024-12-27 02:03:04 [2024-12-27 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111008', 'tblTempUsageDetail_20' ) start [2024-12-27 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111008', 'tblTempUsageDetail_20' ) end [2024-12-27 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111008', 'tblTempVendorCDR_20' ) start [2024-12-27 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111008', 'tblTempVendorCDR_20' ) end [2024-12-27 02:03:18] Production.INFO: ProcessCDR(1,14111008,1,1,2) [2024-12-27 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111008', 'tblTempUsageDetail_20' ) start [2024-12-27 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111008', 'tblTempUsageDetail_20' ) end [2024-12-27 02:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:03:21] Production.INFO: ==26144== Releasing lock... [2024-12-27 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:03:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-27 02:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:04:04 [end_date_ymd] => 2024-12-27 02:04:04 [RateCDR] => 1 ) [2024-12-27 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-26 23:04:04' and `end` < '2024-12-27 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-27 02:04:18] Production.INFO: count ==347 [2024-12-27 02:04:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:04:04 - End Time 2024-12-27 02:04:04 [2024-12-27 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111013', 'tblTempUsageDetail_20' ) start [2024-12-27 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111013', 'tblTempUsageDetail_20' ) end [2024-12-27 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111013', 'tblTempVendorCDR_20' ) start [2024-12-27 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111013', 'tblTempVendorCDR_20' ) end [2024-12-27 02:04:18] Production.INFO: ProcessCDR(1,14111013,1,1,2) [2024-12-27 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111013', 'tblTempUsageDetail_20' ) start [2024-12-27 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111013', 'tblTempUsageDetail_20' ) end [2024-12-27 02:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:04:21] Production.INFO: ==26240== Releasing lock... [2024-12-27 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:04:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-27 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:05:05 [end_date_ymd] => 2024-12-27 02:05:05 [RateCDR] => 1 ) [2024-12-27 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:05:05' and `end` < '2024-12-27 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:05:17] Production.INFO: count ==346 [2024-12-27 02:05:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:05:05 - End Time 2024-12-27 02:05:05 [2024-12-27 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111018', 'tblTempUsageDetail_20' ) start [2024-12-27 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111018', 'tblTempUsageDetail_20' ) end [2024-12-27 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111018', 'tblTempVendorCDR_20' ) start [2024-12-27 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111018', 'tblTempVendorCDR_20' ) end [2024-12-27 02:05:17] Production.INFO: ProcessCDR(1,14111018,1,1,2) [2024-12-27 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111018', 'tblTempUsageDetail_20' ) start [2024-12-27 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111018', 'tblTempUsageDetail_20' ) end [2024-12-27 02:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:05:20] Production.INFO: ==26320== Releasing lock... [2024-12-27 02:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:05:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-27 02:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:06:04 [end_date_ymd] => 2024-12-27 02:06:04 [RateCDR] => 1 ) [2024-12-27 02:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:06:04' and `end` < '2024-12-27 02: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-27 02:06:17] Production.INFO: count ==346 [2024-12-27 02:06:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:06:04 - End Time 2024-12-27 02:06:04 [2024-12-27 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111023', 'tblTempUsageDetail_20' ) start [2024-12-27 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111023', 'tblTempUsageDetail_20' ) end [2024-12-27 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111023', 'tblTempVendorCDR_20' ) start [2024-12-27 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111023', 'tblTempVendorCDR_20' ) end [2024-12-27 02:06:17] Production.INFO: ProcessCDR(1,14111023,1,1,2) [2024-12-27 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111023', 'tblTempUsageDetail_20' ) start [2024-12-27 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111023', 'tblTempUsageDetail_20' ) end [2024-12-27 02:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:06:20] Production.INFO: ==26399== Releasing lock... [2024-12-27 02:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:06:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-27 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:07:05 [end_date_ymd] => 2024-12-27 02:07:05 [RateCDR] => 1 ) [2024-12-27 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:07:05' and `end` < '2024-12-27 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:07:17] Production.INFO: count ==346 [2024-12-27 02:07:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:07:05 - End Time 2024-12-27 02:07:05 [2024-12-27 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111025', 'tblTempUsageDetail_20' ) start [2024-12-27 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111025', 'tblTempUsageDetail_20' ) end [2024-12-27 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111025', 'tblTempVendorCDR_20' ) start [2024-12-27 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111025', 'tblTempVendorCDR_20' ) end [2024-12-27 02:07:17] Production.INFO: ProcessCDR(1,14111025,1,1,2) [2024-12-27 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111025', 'tblTempUsageDetail_20' ) start [2024-12-27 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111025', 'tblTempUsageDetail_20' ) end [2024-12-27 02:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:07:20] Production.INFO: ==26480== Releasing lock... [2024-12-27 02:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:07:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-27 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:08:05 [end_date_ymd] => 2024-12-27 02:08:05 [RateCDR] => 1 ) [2024-12-27 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:08:05' and `end` < '2024-12-27 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:08:17] Production.INFO: count ==344 [2024-12-27 02:08:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:08:05 - End Time 2024-12-27 02:08:05 [2024-12-27 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111033', 'tblTempUsageDetail_20' ) start [2024-12-27 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111033', 'tblTempUsageDetail_20' ) end [2024-12-27 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111033', 'tblTempVendorCDR_20' ) start [2024-12-27 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111033', 'tblTempVendorCDR_20' ) end [2024-12-27 02:08:18] Production.INFO: ProcessCDR(1,14111033,1,1,2) [2024-12-27 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111033', 'tblTempUsageDetail_20' ) start [2024-12-27 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111033', 'tblTempUsageDetail_20' ) end [2024-12-27 02:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:08:21] Production.INFO: ==26557== Releasing lock... [2024-12-27 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:08:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-27 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:09:05 [end_date_ymd] => 2024-12-27 02:09:05 [RateCDR] => 1 ) [2024-12-27 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:09:05' and `end` < '2024-12-27 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:09:17] Production.INFO: count ==340 [2024-12-27 02:09:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:09:05 - End Time 2024-12-27 02:09:05 [2024-12-27 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111038', 'tblTempUsageDetail_20' ) start [2024-12-27 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111038', 'tblTempUsageDetail_20' ) end [2024-12-27 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111038', 'tblTempVendorCDR_20' ) start [2024-12-27 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111038', 'tblTempVendorCDR_20' ) end [2024-12-27 02:09:17] Production.INFO: ProcessCDR(1,14111038,1,1,2) [2024-12-27 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111038', 'tblTempUsageDetail_20' ) start [2024-12-27 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111038', 'tblTempUsageDetail_20' ) end [2024-12-27 02:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:09:20] Production.INFO: ==26636== Releasing lock... [2024-12-27 02:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:09:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-27 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:10:05 [end_date_ymd] => 2024-12-27 02:10:05 [RateCDR] => 1 ) [2024-12-27 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-26 23:10:05' and `end` < '2024-12-27 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-27 02:10:18] Production.INFO: count ==338 [2024-12-27 02:10:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:10:05 - End Time 2024-12-27 02:10:05 [2024-12-27 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111044', 'tblTempUsageDetail_20' ) start [2024-12-27 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111044', 'tblTempUsageDetail_20' ) end [2024-12-27 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111044', 'tblTempVendorCDR_20' ) start [2024-12-27 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111044', 'tblTempVendorCDR_20' ) end [2024-12-27 02:10:18] Production.INFO: ProcessCDR(1,14111044,1,1,2) [2024-12-27 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111044', 'tblTempUsageDetail_20' ) start [2024-12-27 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111044', 'tblTempUsageDetail_20' ) end [2024-12-27 02:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:10:21] Production.INFO: ==26715== Releasing lock... [2024-12-27 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:10:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-27 02:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:11:04 [end_date_ymd] => 2024-12-27 02:11:04 [RateCDR] => 1 ) [2024-12-27 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:11:04' and `end` < '2024-12-27 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-27 02:11:18] Production.INFO: count ==335 [2024-12-27 02:11:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:11:04 - End Time 2024-12-27 02:11:04 [2024-12-27 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111049', 'tblTempUsageDetail_20' ) start [2024-12-27 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111049', 'tblTempUsageDetail_20' ) end [2024-12-27 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111049', 'tblTempVendorCDR_20' ) start [2024-12-27 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111049', 'tblTempVendorCDR_20' ) end [2024-12-27 02:11:18] Production.INFO: ProcessCDR(1,14111049,1,1,2) [2024-12-27 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111049', 'tblTempUsageDetail_20' ) start [2024-12-27 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111049', 'tblTempUsageDetail_20' ) end [2024-12-27 02:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:11:21] Production.INFO: ==26799== Releasing lock... [2024-12-27 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:11:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-27 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:12:05 [end_date_ymd] => 2024-12-27 02:12:05 [RateCDR] => 1 ) [2024-12-27 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:12:05' and `end` < '2024-12-27 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:12:18] Production.INFO: count ==331 [2024-12-27 02:12:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:12:05 - End Time 2024-12-27 02:12:05 [2024-12-27 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111054', 'tblTempUsageDetail_20' ) start [2024-12-27 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111054', 'tblTempUsageDetail_20' ) end [2024-12-27 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111054', 'tblTempVendorCDR_20' ) start [2024-12-27 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111054', 'tblTempVendorCDR_20' ) end [2024-12-27 02:12:18] Production.INFO: ProcessCDR(1,14111054,1,1,2) [2024-12-27 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111054', 'tblTempUsageDetail_20' ) start [2024-12-27 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111054', 'tblTempUsageDetail_20' ) end [2024-12-27 02:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:12:21] Production.INFO: ==26876== Releasing lock... [2024-12-27 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:12:21] Production.INFO: 30 MB #Memory Used# [2024-12-27 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:13:05 [end_date_ymd] => 2024-12-27 02:13:05 [RateCDR] => 1 ) [2024-12-27 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:13:05' and `end` < '2024-12-27 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:13:17] Production.INFO: count ==330 [2024-12-27 02:13:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:13:05 - End Time 2024-12-27 02:13:05 [2024-12-27 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111059', 'tblTempUsageDetail_20' ) start [2024-12-27 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111059', 'tblTempUsageDetail_20' ) end [2024-12-27 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111059', 'tblTempVendorCDR_20' ) start [2024-12-27 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111059', 'tblTempVendorCDR_20' ) end [2024-12-27 02:13:18] Production.INFO: ProcessCDR(1,14111059,1,1,2) [2024-12-27 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111059', 'tblTempUsageDetail_20' ) start [2024-12-27 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111059', 'tblTempUsageDetail_20' ) end [2024-12-27 02:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:13:21] Production.INFO: ==26955== Releasing lock... [2024-12-27 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:13:21] Production.INFO: 30 MB #Memory Used# [2024-12-27 02:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:14:04 [end_date_ymd] => 2024-12-27 02:14:04 [RateCDR] => 1 ) [2024-12-27 02:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:14:04' and `end` < '2024-12-27 02: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-27 02:14:18] Production.INFO: count ==330 [2024-12-27 02:14:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:14:04 - End Time 2024-12-27 02:14:04 [2024-12-27 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111064', 'tblTempUsageDetail_20' ) start [2024-12-27 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111064', 'tblTempUsageDetail_20' ) end [2024-12-27 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111064', 'tblTempVendorCDR_20' ) start [2024-12-27 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111064', 'tblTempVendorCDR_20' ) end [2024-12-27 02:14:18] Production.INFO: ProcessCDR(1,14111064,1,1,2) [2024-12-27 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111064', 'tblTempUsageDetail_20' ) start [2024-12-27 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111064', 'tblTempUsageDetail_20' ) end [2024-12-27 02:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:14:21] Production.INFO: ==27034== Releasing lock... [2024-12-27 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:14:21] Production.INFO: 30 MB #Memory Used# [2024-12-27 02:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:15:04 [end_date_ymd] => 2024-12-27 02:15:04 [RateCDR] => 1 ) [2024-12-27 02:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:15:04' and `end` < '2024-12-27 02: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-27 02:15:17] Production.INFO: count ==329 [2024-12-27 02:15:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:15:04 - End Time 2024-12-27 02:15:04 [2024-12-27 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111069', 'tblTempUsageDetail_20' ) start [2024-12-27 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111069', 'tblTempUsageDetail_20' ) end [2024-12-27 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111069', 'tblTempVendorCDR_20' ) start [2024-12-27 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111069', 'tblTempVendorCDR_20' ) end [2024-12-27 02:15:17] Production.INFO: ProcessCDR(1,14111069,1,1,2) [2024-12-27 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111069', 'tblTempUsageDetail_20' ) start [2024-12-27 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111069', 'tblTempUsageDetail_20' ) end [2024-12-27 02:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:15:20] Production.INFO: ==27115== Releasing lock... [2024-12-27 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:15:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-27 02:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:16:04 [end_date_ymd] => 2024-12-27 02:16:04 [RateCDR] => 1 ) [2024-12-27 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-26 23:16:04' and `end` < '2024-12-27 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-27 02:16:17] Production.INFO: count ==326 [2024-12-27 02:16:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:16:04 - End Time 2024-12-27 02:16:04 [2024-12-27 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111074', 'tblTempUsageDetail_20' ) start [2024-12-27 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111074', 'tblTempUsageDetail_20' ) end [2024-12-27 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111074', 'tblTempVendorCDR_20' ) start [2024-12-27 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111074', 'tblTempVendorCDR_20' ) end [2024-12-27 02:16:17] Production.INFO: ProcessCDR(1,14111074,1,1,2) [2024-12-27 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:16:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:16:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111074', 'tblTempUsageDetail_20' ) start [2024-12-27 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111074', 'tblTempUsageDetail_20' ) end [2024-12-27 02:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:16:20] Production.INFO: ==27187== Releasing lock... [2024-12-27 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:16:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-27 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:17:04 [end_date_ymd] => 2024-12-27 02:17:04 [RateCDR] => 1 ) [2024-12-27 02:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:17:04' and `end` < '2024-12-27 02: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-27 02:17:16] Production.INFO: count ==324 [2024-12-27 02:17:16] Production.ERROR: pbx CDR StartTime 2024-12-26 23:17:04 - End Time 2024-12-27 02:17:04 [2024-12-27 02:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111079', 'tblTempUsageDetail_20' ) start [2024-12-27 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111079', 'tblTempUsageDetail_20' ) end [2024-12-27 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111079', 'tblTempVendorCDR_20' ) start [2024-12-27 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111079', 'tblTempVendorCDR_20' ) end [2024-12-27 02:17:16] Production.INFO: ProcessCDR(1,14111079,1,1,2) [2024-12-27 02:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:17:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111079', 'tblTempUsageDetail_20' ) start [2024-12-27 02:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111079', 'tblTempUsageDetail_20' ) end [2024-12-27 02:17:19] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:17:19] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:17:19] Production.INFO: ==27268== Releasing lock... [2024-12-27 02:17:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:17:19] Production.INFO: 30.25 MB #Memory Used# [2024-12-27 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:18:05 [end_date_ymd] => 2024-12-27 02:18:05 [RateCDR] => 1 ) [2024-12-27 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:18:05' and `end` < '2024-12-27 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:18:19] Production.INFO: count ==318 [2024-12-27 02:18:19] Production.ERROR: pbx CDR StartTime 2024-12-26 23:18:05 - End Time 2024-12-27 02:18:05 [2024-12-27 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111084', 'tblTempUsageDetail_20' ) start [2024-12-27 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111084', 'tblTempUsageDetail_20' ) end [2024-12-27 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111084', 'tblTempVendorCDR_20' ) start [2024-12-27 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111084', 'tblTempVendorCDR_20' ) end [2024-12-27 02:18:19] Production.INFO: ProcessCDR(1,14111084,1,1,2) [2024-12-27 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111084', 'tblTempUsageDetail_20' ) start [2024-12-27 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111084', 'tblTempUsageDetail_20' ) end [2024-12-27 02:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:18:22] Production.INFO: ==27391== Releasing lock... [2024-12-27 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:18:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:19:05 [end_date_ymd] => 2024-12-27 02:19:05 [RateCDR] => 1 ) [2024-12-27 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:19:05' and `end` < '2024-12-27 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:19:17] Production.INFO: count ==315 [2024-12-27 02:19:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:19:05 - End Time 2024-12-27 02:19:05 [2024-12-27 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111089', 'tblTempUsageDetail_20' ) start [2024-12-27 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111089', 'tblTempUsageDetail_20' ) end [2024-12-27 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111089', 'tblTempVendorCDR_20' ) start [2024-12-27 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111089', 'tblTempVendorCDR_20' ) end [2024-12-27 02:19:17] Production.INFO: ProcessCDR(1,14111089,1,1,2) [2024-12-27 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111089', 'tblTempUsageDetail_20' ) start [2024-12-27 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111089', 'tblTempUsageDetail_20' ) end [2024-12-27 02:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:19:20] Production.INFO: ==27466== Releasing lock... [2024-12-27 02:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:19:20] Production.INFO: 30 MB #Memory Used# [2024-12-27 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:20:05 [end_date_ymd] => 2024-12-27 02:20:05 [RateCDR] => 1 ) [2024-12-27 02:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:20:05' and `end` < '2024-12-27 02: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-27 02:20:17] Production.INFO: count ==312 [2024-12-27 02:20:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:20:05 - End Time 2024-12-27 02:20:05 [2024-12-27 02:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111095', 'tblTempUsageDetail_20' ) start [2024-12-27 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111095', 'tblTempUsageDetail_20' ) end [2024-12-27 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111095', 'tblTempVendorCDR_20' ) start [2024-12-27 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111095', 'tblTempVendorCDR_20' ) end [2024-12-27 02:20:17] Production.INFO: ProcessCDR(1,14111095,1,1,2) [2024-12-27 02:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111095', 'tblTempUsageDetail_20' ) start [2024-12-27 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111095', 'tblTempUsageDetail_20' ) end [2024-12-27 02:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:20:21] Production.INFO: ==27546== Releasing lock... [2024-12-27 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:20:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:21:04 [end_date_ymd] => 2024-12-27 02:21:04 [RateCDR] => 1 ) [2024-12-27 02:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:21:04' and `end` < '2024-12-27 02:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:21:16] Production.INFO: count ==310 [2024-12-27 02:21:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:21:04 - End Time 2024-12-27 02:21:04 [2024-12-27 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111100', 'tblTempUsageDetail_20' ) start [2024-12-27 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111100', 'tblTempUsageDetail_20' ) end [2024-12-27 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111100', 'tblTempVendorCDR_20' ) start [2024-12-27 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111100', 'tblTempVendorCDR_20' ) end [2024-12-27 02:21:17] Production.INFO: ProcessCDR(1,14111100,1,1,2) [2024-12-27 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111100', 'tblTempUsageDetail_20' ) start [2024-12-27 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111100', 'tblTempUsageDetail_20' ) end [2024-12-27 02:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:21:20] Production.INFO: ==27625== Releasing lock... [2024-12-27 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:21:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:22:05 [end_date_ymd] => 2024-12-27 02:22:05 [RateCDR] => 1 ) [2024-12-27 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:22:05' and `end` < '2024-12-27 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:22:17] Production.INFO: count ==310 [2024-12-27 02:22:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:22:05 - End Time 2024-12-27 02:22:05 [2024-12-27 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111105', 'tblTempUsageDetail_20' ) start [2024-12-27 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111105', 'tblTempUsageDetail_20' ) end [2024-12-27 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111105', 'tblTempVendorCDR_20' ) start [2024-12-27 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111105', 'tblTempVendorCDR_20' ) end [2024-12-27 02:22:17] Production.INFO: ProcessCDR(1,14111105,1,1,2) [2024-12-27 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111105', 'tblTempUsageDetail_20' ) start [2024-12-27 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111105', 'tblTempUsageDetail_20' ) end [2024-12-27 02:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:22:20] Production.INFO: ==27705== Releasing lock... [2024-12-27 02:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:22:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:23:05 [end_date_ymd] => 2024-12-27 02:23:05 [RateCDR] => 1 ) [2024-12-27 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:23:05' and `end` < '2024-12-27 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:23:19] Production.INFO: count ==308 [2024-12-27 02:23:19] Production.ERROR: pbx CDR StartTime 2024-12-26 23:23:05 - End Time 2024-12-27 02:23:05 [2024-12-27 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111110', 'tblTempUsageDetail_20' ) start [2024-12-27 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111110', 'tblTempUsageDetail_20' ) end [2024-12-27 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111110', 'tblTempVendorCDR_20' ) start [2024-12-27 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111110', 'tblTempVendorCDR_20' ) end [2024-12-27 02:23:19] Production.INFO: ProcessCDR(1,14111110,1,1,2) [2024-12-27 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111110', 'tblTempUsageDetail_20' ) start [2024-12-27 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111110', 'tblTempUsageDetail_20' ) end [2024-12-27 02:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:23:22] Production.INFO: ==27788== Releasing lock... [2024-12-27 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:23:22] Production.INFO: 30 MB #Memory Used# [2024-12-27 02:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:24:04 [end_date_ymd] => 2024-12-27 02:24:04 [RateCDR] => 1 ) [2024-12-27 02:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:24:04' and `end` < '2024-12-27 02:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:24:17] Production.INFO: count ==308 [2024-12-27 02:24:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:24:04 - End Time 2024-12-27 02:24:04 [2024-12-27 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111115', 'tblTempUsageDetail_20' ) start [2024-12-27 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111115', 'tblTempUsageDetail_20' ) end [2024-12-27 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111115', 'tblTempVendorCDR_20' ) start [2024-12-27 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111115', 'tblTempVendorCDR_20' ) end [2024-12-27 02:24:17] Production.INFO: ProcessCDR(1,14111115,1,1,2) [2024-12-27 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:24:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:24:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111115', 'tblTempUsageDetail_20' ) start [2024-12-27 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111115', 'tblTempUsageDetail_20' ) end [2024-12-27 02:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:24:20] Production.INFO: ==27864== Releasing lock... [2024-12-27 02:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:24:20] Production.INFO: 30 MB #Memory Used# [2024-12-27 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:25:05 [end_date_ymd] => 2024-12-27 02:25:05 [RateCDR] => 1 ) [2024-12-27 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:25:05' and `end` < '2024-12-27 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:25:18] Production.INFO: count ==308 [2024-12-27 02:25:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:25:05 - End Time 2024-12-27 02:25:05 [2024-12-27 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111120', 'tblTempUsageDetail_20' ) start [2024-12-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111120', 'tblTempUsageDetail_20' ) end [2024-12-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111120', 'tblTempVendorCDR_20' ) start [2024-12-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111120', 'tblTempVendorCDR_20' ) end [2024-12-27 02:25:18] Production.INFO: ProcessCDR(1,14111120,1,1,2) [2024-12-27 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111120', 'tblTempUsageDetail_20' ) start [2024-12-27 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111120', 'tblTempUsageDetail_20' ) end [2024-12-27 02:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:25:21] Production.INFO: ==27943== Releasing lock... [2024-12-27 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:25:21] Production.INFO: 30 MB #Memory Used# [2024-12-27 02:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:26:04 [end_date_ymd] => 2024-12-27 02:26:04 [RateCDR] => 1 ) [2024-12-27 02:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:26:04' and `end` < '2024-12-27 02: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-27 02:26:17] Production.INFO: count ==307 [2024-12-27 02:26:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:26:04 - End Time 2024-12-27 02:26:04 [2024-12-27 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111125', 'tblTempUsageDetail_20' ) start [2024-12-27 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111125', 'tblTempUsageDetail_20' ) end [2024-12-27 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111125', 'tblTempVendorCDR_20' ) start [2024-12-27 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111125', 'tblTempVendorCDR_20' ) end [2024-12-27 02:26:17] Production.INFO: ProcessCDR(1,14111125,1,1,2) [2024-12-27 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111125', 'tblTempUsageDetail_20' ) start [2024-12-27 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111125', 'tblTempUsageDetail_20' ) end [2024-12-27 02:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:26:20] Production.INFO: ==28019== Releasing lock... [2024-12-27 02:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:26:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:27:05 [end_date_ymd] => 2024-12-27 02:27:05 [RateCDR] => 1 ) [2024-12-27 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:27:05' and `end` < '2024-12-27 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:27:17] Production.INFO: count ==307 [2024-12-27 02:27:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:27:05 - End Time 2024-12-27 02:27:05 [2024-12-27 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111130', 'tblTempUsageDetail_20' ) start [2024-12-27 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111130', 'tblTempUsageDetail_20' ) end [2024-12-27 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111130', 'tblTempVendorCDR_20' ) start [2024-12-27 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111130', 'tblTempVendorCDR_20' ) end [2024-12-27 02:27:17] Production.INFO: ProcessCDR(1,14111130,1,1,2) [2024-12-27 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111130', 'tblTempUsageDetail_20' ) start [2024-12-27 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111130', 'tblTempUsageDetail_20' ) end [2024-12-27 02:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:27:20] Production.INFO: ==28099== Releasing lock... [2024-12-27 02:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:27:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:28:05 [end_date_ymd] => 2024-12-27 02:28:05 [RateCDR] => 1 ) [2024-12-27 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:28:05' and `end` < '2024-12-27 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:28:18] Production.INFO: count ==307 [2024-12-27 02:28:19] Production.ERROR: pbx CDR StartTime 2024-12-26 23:28:05 - End Time 2024-12-27 02:28:05 [2024-12-27 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111135', 'tblTempUsageDetail_20' ) start [2024-12-27 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111135', 'tblTempUsageDetail_20' ) end [2024-12-27 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111135', 'tblTempVendorCDR_20' ) start [2024-12-27 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111135', 'tblTempVendorCDR_20' ) end [2024-12-27 02:28:19] Production.INFO: ProcessCDR(1,14111135,1,1,2) [2024-12-27 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111135', 'tblTempUsageDetail_20' ) start [2024-12-27 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111135', 'tblTempUsageDetail_20' ) end [2024-12-27 02:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:28:22] Production.INFO: ==28184== Releasing lock... [2024-12-27 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:28:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:29:04 [end_date_ymd] => 2024-12-27 02:29:04 [RateCDR] => 1 ) [2024-12-27 02:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:29:04' and `end` < '2024-12-27 02:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:29:17] Production.INFO: count ==307 [2024-12-27 02:29:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:29:04 - End Time 2024-12-27 02:29:04 [2024-12-27 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111140', 'tblTempUsageDetail_20' ) start [2024-12-27 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111140', 'tblTempUsageDetail_20' ) end [2024-12-27 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111140', 'tblTempVendorCDR_20' ) start [2024-12-27 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111140', 'tblTempVendorCDR_20' ) end [2024-12-27 02:29:17] Production.INFO: ProcessCDR(1,14111140,1,1,2) [2024-12-27 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111140', 'tblTempUsageDetail_20' ) start [2024-12-27 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111140', 'tblTempUsageDetail_20' ) end [2024-12-27 02:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:29:20] Production.INFO: ==28260== Releasing lock... [2024-12-27 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:29:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:30:05 [end_date_ymd] => 2024-12-27 02:30:05 [RateCDR] => 1 ) [2024-12-27 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-26 23:30:05' and `end` < '2024-12-27 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-27 02:30:18] Production.INFO: count ==306 [2024-12-27 02:30:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:30:05 - End Time 2024-12-27 02:30:05 [2024-12-27 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111146', 'tblTempUsageDetail_20' ) start [2024-12-27 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111146', 'tblTempUsageDetail_20' ) end [2024-12-27 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111146', 'tblTempVendorCDR_20' ) start [2024-12-27 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111146', 'tblTempVendorCDR_20' ) end [2024-12-27 02:30:18] Production.INFO: ProcessCDR(1,14111146,1,1,2) [2024-12-27 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111146', 'tblTempUsageDetail_20' ) start [2024-12-27 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111146', 'tblTempUsageDetail_20' ) end [2024-12-27 02:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:30:21] Production.INFO: ==28346== Releasing lock... [2024-12-27 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:30:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:31:04 [end_date_ymd] => 2024-12-27 02:31:04 [RateCDR] => 1 ) [2024-12-27 02:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:31:04' and `end` < '2024-12-27 02:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:31:17] Production.INFO: count ==306 [2024-12-27 02:31:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:31:04 - End Time 2024-12-27 02:31:04 [2024-12-27 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111151', 'tblTempUsageDetail_20' ) start [2024-12-27 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111151', 'tblTempUsageDetail_20' ) end [2024-12-27 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111151', 'tblTempVendorCDR_20' ) start [2024-12-27 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111151', 'tblTempVendorCDR_20' ) end [2024-12-27 02:31:18] Production.INFO: ProcessCDR(1,14111151,1,1,2) [2024-12-27 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111151', 'tblTempUsageDetail_20' ) start [2024-12-27 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111151', 'tblTempUsageDetail_20' ) end [2024-12-27 02:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:31:21] Production.INFO: ==28424== Releasing lock... [2024-12-27 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:31:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:32:05 [end_date_ymd] => 2024-12-27 02:32:05 [RateCDR] => 1 ) [2024-12-27 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:32:05' and `end` < '2024-12-27 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:32:17] Production.INFO: count ==306 [2024-12-27 02:32:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:32:05 - End Time 2024-12-27 02:32:05 [2024-12-27 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111156', 'tblTempUsageDetail_20' ) start [2024-12-27 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111156', 'tblTempUsageDetail_20' ) end [2024-12-27 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111156', 'tblTempVendorCDR_20' ) start [2024-12-27 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111156', 'tblTempVendorCDR_20' ) end [2024-12-27 02:32:18] Production.INFO: ProcessCDR(1,14111156,1,1,2) [2024-12-27 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111156', 'tblTempUsageDetail_20' ) start [2024-12-27 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111156', 'tblTempUsageDetail_20' ) end [2024-12-27 02:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:32:21] Production.INFO: ==28505== Releasing lock... [2024-12-27 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:32:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:33:05 [end_date_ymd] => 2024-12-27 02:33:05 [RateCDR] => 1 ) [2024-12-27 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:33:05' and `end` < '2024-12-27 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:33:18] Production.INFO: count ==306 [2024-12-27 02:33:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:33:05 - End Time 2024-12-27 02:33:05 [2024-12-27 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111161', 'tblTempUsageDetail_20' ) start [2024-12-27 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111161', 'tblTempUsageDetail_20' ) end [2024-12-27 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111161', 'tblTempVendorCDR_20' ) start [2024-12-27 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111161', 'tblTempVendorCDR_20' ) end [2024-12-27 02:33:18] Production.INFO: ProcessCDR(1,14111161,1,1,2) [2024-12-27 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111161', 'tblTempUsageDetail_20' ) start [2024-12-27 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111161', 'tblTempUsageDetail_20' ) end [2024-12-27 02:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:33:21] Production.INFO: ==28625== Releasing lock... [2024-12-27 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:33:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:34:05 [end_date_ymd] => 2024-12-27 02:34:05 [RateCDR] => 1 ) [2024-12-27 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:34:05' and `end` < '2024-12-27 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:34:17] Production.INFO: count ==306 [2024-12-27 02:34:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:34:05 - End Time 2024-12-27 02:34:05 [2024-12-27 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111166', 'tblTempUsageDetail_20' ) start [2024-12-27 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111166', 'tblTempUsageDetail_20' ) end [2024-12-27 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111166', 'tblTempVendorCDR_20' ) start [2024-12-27 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111166', 'tblTempVendorCDR_20' ) end [2024-12-27 02:34:17] Production.INFO: ProcessCDR(1,14111166,1,1,2) [2024-12-27 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111166', 'tblTempUsageDetail_20' ) start [2024-12-27 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111166', 'tblTempUsageDetail_20' ) end [2024-12-27 02:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:34:20] Production.INFO: ==28709== Releasing lock... [2024-12-27 02:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:34:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:35:04 [end_date_ymd] => 2024-12-27 02:35:04 [RateCDR] => 1 ) [2024-12-27 02:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:35:04' and `end` < '2024-12-27 02: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-27 02:35:17] Production.INFO: count ==305 [2024-12-27 02:35:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:35:04 - End Time 2024-12-27 02:35:04 [2024-12-27 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111171', 'tblTempUsageDetail_20' ) start [2024-12-27 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111171', 'tblTempUsageDetail_20' ) end [2024-12-27 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111171', 'tblTempVendorCDR_20' ) start [2024-12-27 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111171', 'tblTempVendorCDR_20' ) end [2024-12-27 02:35:17] Production.INFO: ProcessCDR(1,14111171,1,1,2) [2024-12-27 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111171', 'tblTempUsageDetail_20' ) start [2024-12-27 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111171', 'tblTempUsageDetail_20' ) end [2024-12-27 02:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:35:20] Production.INFO: ==28789== Releasing lock... [2024-12-27 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:35:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:36:05 [end_date_ymd] => 2024-12-27 02:36:05 [RateCDR] => 1 ) [2024-12-27 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:36:05' and `end` < '2024-12-27 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:36:17] Production.INFO: count ==305 [2024-12-27 02:36:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:36:05 - End Time 2024-12-27 02:36:05 [2024-12-27 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111176', 'tblTempUsageDetail_20' ) start [2024-12-27 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111176', 'tblTempUsageDetail_20' ) end [2024-12-27 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111176', 'tblTempVendorCDR_20' ) start [2024-12-27 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111176', 'tblTempVendorCDR_20' ) end [2024-12-27 02:36:17] Production.INFO: ProcessCDR(1,14111176,1,1,2) [2024-12-27 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111176', 'tblTempUsageDetail_20' ) start [2024-12-27 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111176', 'tblTempUsageDetail_20' ) end [2024-12-27 02:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:36:20] Production.INFO: ==28861== Releasing lock... [2024-12-27 02:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:36:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:37:05 [end_date_ymd] => 2024-12-27 02:37:05 [RateCDR] => 1 ) [2024-12-27 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:37:05' and `end` < '2024-12-27 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:37:17] Production.INFO: count ==305 [2024-12-27 02:37:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:37:05 - End Time 2024-12-27 02:37:05 [2024-12-27 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111181', 'tblTempUsageDetail_20' ) start [2024-12-27 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111181', 'tblTempUsageDetail_20' ) end [2024-12-27 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111181', 'tblTempVendorCDR_20' ) start [2024-12-27 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111181', 'tblTempVendorCDR_20' ) end [2024-12-27 02:37:17] Production.INFO: ProcessCDR(1,14111181,1,1,2) [2024-12-27 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111181', 'tblTempUsageDetail_20' ) start [2024-12-27 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111181', 'tblTempUsageDetail_20' ) end [2024-12-27 02:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:37:21] Production.INFO: ==28950== Releasing lock... [2024-12-27 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:37:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:38:04 [end_date_ymd] => 2024-12-27 02:38:04 [RateCDR] => 1 ) [2024-12-27 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-26 23:38:04' and `end` < '2024-12-27 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-27 02:38:17] Production.INFO: count ==305 [2024-12-27 02:38:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:38:04 - End Time 2024-12-27 02:38:04 [2024-12-27 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111186', 'tblTempUsageDetail_20' ) start [2024-12-27 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111186', 'tblTempUsageDetail_20' ) end [2024-12-27 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111186', 'tblTempVendorCDR_20' ) start [2024-12-27 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111186', 'tblTempVendorCDR_20' ) end [2024-12-27 02:38:17] Production.INFO: ProcessCDR(1,14111186,1,1,2) [2024-12-27 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111186', 'tblTempUsageDetail_20' ) start [2024-12-27 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111186', 'tblTempUsageDetail_20' ) end [2024-12-27 02:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:38:20] Production.INFO: ==29029== Releasing lock... [2024-12-27 02:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:38:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:39:04 [end_date_ymd] => 2024-12-27 02:39:04 [RateCDR] => 1 ) [2024-12-27 02:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:39:04' and `end` < '2024-12-27 02: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-27 02:39:17] Production.INFO: count ==305 [2024-12-27 02:39:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:39:04 - End Time 2024-12-27 02:39:04 [2024-12-27 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111191', 'tblTempUsageDetail_20' ) start [2024-12-27 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111191', 'tblTempUsageDetail_20' ) end [2024-12-27 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111191', 'tblTempVendorCDR_20' ) start [2024-12-27 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111191', 'tblTempVendorCDR_20' ) end [2024-12-27 02:39:17] Production.INFO: ProcessCDR(1,14111191,1,1,2) [2024-12-27 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111191', 'tblTempUsageDetail_20' ) start [2024-12-27 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111191', 'tblTempUsageDetail_20' ) end [2024-12-27 02:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:39:20] Production.INFO: ==29110== Releasing lock... [2024-12-27 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:39:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:40:05 [end_date_ymd] => 2024-12-27 02:40:05 [RateCDR] => 1 ) [2024-12-27 02:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:40:05' and `end` < '2024-12-27 02:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:40:18] Production.INFO: count ==307 [2024-12-27 02:40:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:40:05 - End Time 2024-12-27 02:40:05 [2024-12-27 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111196', 'tblTempUsageDetail_20' ) start [2024-12-27 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111196', 'tblTempUsageDetail_20' ) end [2024-12-27 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111196', 'tblTempVendorCDR_20' ) start [2024-12-27 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111196', 'tblTempVendorCDR_20' ) end [2024-12-27 02:40:18] Production.INFO: ProcessCDR(1,14111196,1,1,2) [2024-12-27 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111196', 'tblTempUsageDetail_20' ) start [2024-12-27 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111196', 'tblTempUsageDetail_20' ) end [2024-12-27 02:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:40:21] Production.INFO: ==29195== Releasing lock... [2024-12-27 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:40:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:41:04 [end_date_ymd] => 2024-12-27 02:41:04 [RateCDR] => 1 ) [2024-12-27 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-26 23:41:04' and `end` < '2024-12-27 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-27 02:41:18] Production.INFO: count ==308 [2024-12-27 02:41:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:41:04 - End Time 2024-12-27 02:41:04 [2024-12-27 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111202', 'tblTempUsageDetail_20' ) start [2024-12-27 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111202', 'tblTempUsageDetail_20' ) end [2024-12-27 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111202', 'tblTempVendorCDR_20' ) start [2024-12-27 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111202', 'tblTempVendorCDR_20' ) end [2024-12-27 02:41:18] Production.INFO: ProcessCDR(1,14111202,1,1,2) [2024-12-27 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111202', 'tblTempUsageDetail_20' ) start [2024-12-27 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111202', 'tblTempUsageDetail_20' ) end [2024-12-27 02:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:41:21] Production.INFO: ==29275== Releasing lock... [2024-12-27 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:41:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:42:05 [end_date_ymd] => 2024-12-27 02:42:05 [RateCDR] => 1 ) [2024-12-27 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:42:05' and `end` < '2024-12-27 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:42:18] Production.INFO: count ==308 [2024-12-27 02:42:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:42:05 - End Time 2024-12-27 02:42:05 [2024-12-27 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111207', 'tblTempUsageDetail_20' ) start [2024-12-27 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111207', 'tblTempUsageDetail_20' ) end [2024-12-27 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111207', 'tblTempVendorCDR_20' ) start [2024-12-27 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111207', 'tblTempVendorCDR_20' ) end [2024-12-27 02:42:18] Production.INFO: ProcessCDR(1,14111207,1,1,2) [2024-12-27 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111207', 'tblTempUsageDetail_20' ) start [2024-12-27 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111207', 'tblTempUsageDetail_20' ) end [2024-12-27 02:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:42:21] Production.INFO: ==29356== Releasing lock... [2024-12-27 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:42:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:43:04 [end_date_ymd] => 2024-12-27 02:43:04 [RateCDR] => 1 ) [2024-12-27 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-26 23:43:04' and `end` < '2024-12-27 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-27 02:43:17] Production.INFO: count ==308 [2024-12-27 02:43:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:43:04 - End Time 2024-12-27 02:43:04 [2024-12-27 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111212', 'tblTempUsageDetail_20' ) start [2024-12-27 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111212', 'tblTempUsageDetail_20' ) end [2024-12-27 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111212', 'tblTempVendorCDR_20' ) start [2024-12-27 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111212', 'tblTempVendorCDR_20' ) end [2024-12-27 02:43:17] Production.INFO: ProcessCDR(1,14111212,1,1,2) [2024-12-27 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111212', 'tblTempUsageDetail_20' ) start [2024-12-27 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111212', 'tblTempUsageDetail_20' ) end [2024-12-27 02:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:43:20] Production.INFO: ==29432== Releasing lock... [2024-12-27 02:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:43:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:44:05 [end_date_ymd] => 2024-12-27 02:44:05 [RateCDR] => 1 ) [2024-12-27 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:44:05' and `end` < '2024-12-27 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:44:18] Production.INFO: count ==306 [2024-12-27 02:44:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:44:05 - End Time 2024-12-27 02:44:05 [2024-12-27 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111217', 'tblTempUsageDetail_20' ) start [2024-12-27 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111217', 'tblTempUsageDetail_20' ) end [2024-12-27 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111217', 'tblTempVendorCDR_20' ) start [2024-12-27 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111217', 'tblTempVendorCDR_20' ) end [2024-12-27 02:44:18] Production.INFO: ProcessCDR(1,14111217,1,1,2) [2024-12-27 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111217', 'tblTempUsageDetail_20' ) start [2024-12-27 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111217', 'tblTempUsageDetail_20' ) end [2024-12-27 02:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:44:21] Production.INFO: ==29516== Releasing lock... [2024-12-27 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:44:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:45:05 [end_date_ymd] => 2024-12-27 02:45:05 [RateCDR] => 1 ) [2024-12-27 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:45:05' and `end` < '2024-12-27 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:45:17] Production.INFO: count ==304 [2024-12-27 02:45:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:45:05 - End Time 2024-12-27 02:45:05 [2024-12-27 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111222', 'tblTempUsageDetail_20' ) start [2024-12-27 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111222', 'tblTempUsageDetail_20' ) end [2024-12-27 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111222', 'tblTempVendorCDR_20' ) start [2024-12-27 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111222', 'tblTempVendorCDR_20' ) end [2024-12-27 02:45:17] Production.INFO: ProcessCDR(1,14111222,1,1,2) [2024-12-27 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111222', 'tblTempUsageDetail_20' ) start [2024-12-27 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111222', 'tblTempUsageDetail_20' ) end [2024-12-27 02:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:45:20] Production.INFO: ==29597== Releasing lock... [2024-12-27 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:45:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:46:05 [end_date_ymd] => 2024-12-27 02:46:05 [RateCDR] => 1 ) [2024-12-27 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:46:05' and `end` < '2024-12-27 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:46:18] Production.INFO: count ==303 [2024-12-27 02:46:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:46:05 - End Time 2024-12-27 02:46:05 [2024-12-27 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111227', 'tblTempUsageDetail_20' ) start [2024-12-27 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111227', 'tblTempUsageDetail_20' ) end [2024-12-27 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111227', 'tblTempVendorCDR_20' ) start [2024-12-27 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111227', 'tblTempVendorCDR_20' ) end [2024-12-27 02:46:18] Production.INFO: ProcessCDR(1,14111227,1,1,2) [2024-12-27 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111227', 'tblTempUsageDetail_20' ) start [2024-12-27 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111227', 'tblTempUsageDetail_20' ) end [2024-12-27 02:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:46:21] Production.INFO: ==29681== Releasing lock... [2024-12-27 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:46:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:47:04 [end_date_ymd] => 2024-12-27 02:47:04 [RateCDR] => 1 ) [2024-12-27 02:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:47:04' and `end` < '2024-12-27 02: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-27 02:47:17] Production.INFO: count ==299 [2024-12-27 02:47:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:47:04 - End Time 2024-12-27 02:47:04 [2024-12-27 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111232', 'tblTempUsageDetail_20' ) start [2024-12-27 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111232', 'tblTempUsageDetail_20' ) end [2024-12-27 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111232', 'tblTempVendorCDR_20' ) start [2024-12-27 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111232', 'tblTempVendorCDR_20' ) end [2024-12-27 02:47:17] Production.INFO: ProcessCDR(1,14111232,1,1,2) [2024-12-27 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111232', 'tblTempUsageDetail_20' ) start [2024-12-27 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111232', 'tblTempUsageDetail_20' ) end [2024-12-27 02:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:47:20] Production.INFO: ==29765== Releasing lock... [2024-12-27 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:47:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:48:05 [end_date_ymd] => 2024-12-27 02:48:05 [RateCDR] => 1 ) [2024-12-27 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-26 23:48:05' and `end` < '2024-12-27 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-27 02:48:17] Production.INFO: count ==298 [2024-12-27 02:48:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:48:05 - End Time 2024-12-27 02:48:05 [2024-12-27 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111237', 'tblTempUsageDetail_20' ) start [2024-12-27 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111237', 'tblTempUsageDetail_20' ) end [2024-12-27 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111237', 'tblTempVendorCDR_20' ) start [2024-12-27 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111237', 'tblTempVendorCDR_20' ) end [2024-12-27 02:48:17] Production.INFO: ProcessCDR(1,14111237,1,1,2) [2024-12-27 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111237', 'tblTempUsageDetail_20' ) start [2024-12-27 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111237', 'tblTempUsageDetail_20' ) end [2024-12-27 02:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:48:20] Production.INFO: ==29841== Releasing lock... [2024-12-27 02:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:48:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:49:05 [end_date_ymd] => 2024-12-27 02:49:05 [RateCDR] => 1 ) [2024-12-27 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:49:05' and `end` < '2024-12-27 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:49:17] Production.INFO: count ==294 [2024-12-27 02:49:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:49:05 - End Time 2024-12-27 02:49:05 [2024-12-27 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111242', 'tblTempUsageDetail_20' ) start [2024-12-27 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111242', 'tblTempUsageDetail_20' ) end [2024-12-27 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111242', 'tblTempVendorCDR_20' ) start [2024-12-27 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111242', 'tblTempVendorCDR_20' ) end [2024-12-27 02:49:17] Production.INFO: ProcessCDR(1,14111242,1,1,2) [2024-12-27 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111242', 'tblTempUsageDetail_20' ) start [2024-12-27 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111242', 'tblTempUsageDetail_20' ) end [2024-12-27 02:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:49:20] Production.INFO: ==29965== Releasing lock... [2024-12-27 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:49:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:50:06 [end_date_ymd] => 2024-12-27 02:50:06 [RateCDR] => 1 ) [2024-12-27 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:50:06' and `end` < '2024-12-27 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:50:18] Production.INFO: count ==292 [2024-12-27 02:50:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:50:06 - End Time 2024-12-27 02:50:06 [2024-12-27 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111247', 'tblTempUsageDetail_20' ) start [2024-12-27 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111247', 'tblTempUsageDetail_20' ) end [2024-12-27 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111247', 'tblTempVendorCDR_20' ) start [2024-12-27 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111247', 'tblTempVendorCDR_20' ) end [2024-12-27 02:50:18] Production.INFO: ProcessCDR(1,14111247,1,1,2) [2024-12-27 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111247', 'tblTempUsageDetail_20' ) start [2024-12-27 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111247', 'tblTempUsageDetail_20' ) end [2024-12-27 02:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:50:21] Production.INFO: ==30052== Releasing lock... [2024-12-27 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:50:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:51:04 [end_date_ymd] => 2024-12-27 02:51:04 [RateCDR] => 1 ) [2024-12-27 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:51:04' and `end` < '2024-12-27 02:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:51:17] Production.INFO: count ==290 [2024-12-27 02:51:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:51:04 - End Time 2024-12-27 02:51:04 [2024-12-27 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111253', 'tblTempUsageDetail_20' ) start [2024-12-27 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111253', 'tblTempUsageDetail_20' ) end [2024-12-27 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111253', 'tblTempVendorCDR_20' ) start [2024-12-27 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111253', 'tblTempVendorCDR_20' ) end [2024-12-27 02:51:17] Production.INFO: ProcessCDR(1,14111253,1,1,2) [2024-12-27 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111253', 'tblTempUsageDetail_20' ) start [2024-12-27 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111253', 'tblTempUsageDetail_20' ) end [2024-12-27 02:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:51:20] Production.INFO: ==30147== Releasing lock... [2024-12-27 02:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:51:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:52:05 [end_date_ymd] => 2024-12-27 02:52:05 [RateCDR] => 1 ) [2024-12-27 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:52:05' and `end` < '2024-12-27 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:52:19] Production.INFO: count ==290 [2024-12-27 02:52:19] Production.ERROR: pbx CDR StartTime 2024-12-26 23:52:05 - End Time 2024-12-27 02:52:05 [2024-12-27 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111258', 'tblTempUsageDetail_20' ) start [2024-12-27 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111258', 'tblTempUsageDetail_20' ) end [2024-12-27 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111258', 'tblTempVendorCDR_20' ) start [2024-12-27 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111258', 'tblTempVendorCDR_20' ) end [2024-12-27 02:52:19] Production.INFO: ProcessCDR(1,14111258,1,1,2) [2024-12-27 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111258', 'tblTempUsageDetail_20' ) start [2024-12-27 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111258', 'tblTempUsageDetail_20' ) end [2024-12-27 02:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:52:22] Production.INFO: ==30244== Releasing lock... [2024-12-27 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:52:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:53:05 [end_date_ymd] => 2024-12-27 02:53:05 [RateCDR] => 1 ) [2024-12-27 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:53:05' and `end` < '2024-12-27 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:53:18] Production.INFO: count ==290 [2024-12-27 02:53:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:53:05 - End Time 2024-12-27 02:53:05 [2024-12-27 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111263', 'tblTempUsageDetail_20' ) start [2024-12-27 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111263', 'tblTempUsageDetail_20' ) end [2024-12-27 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111263', 'tblTempVendorCDR_20' ) start [2024-12-27 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111263', 'tblTempVendorCDR_20' ) end [2024-12-27 02:53:18] Production.INFO: ProcessCDR(1,14111263,1,1,2) [2024-12-27 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111263', 'tblTempUsageDetail_20' ) start [2024-12-27 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111263', 'tblTempUsageDetail_20' ) end [2024-12-27 02:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:53:21] Production.INFO: ==30329== Releasing lock... [2024-12-27 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:53:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:54:05 [end_date_ymd] => 2024-12-27 02:54:05 [RateCDR] => 1 ) [2024-12-27 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:54:05' and `end` < '2024-12-27 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:54:19] Production.INFO: count ==290 [2024-12-27 02:54:19] Production.ERROR: pbx CDR StartTime 2024-12-26 23:54:05 - End Time 2024-12-27 02:54:05 [2024-12-27 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111268', 'tblTempUsageDetail_20' ) start [2024-12-27 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111268', 'tblTempUsageDetail_20' ) end [2024-12-27 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111268', 'tblTempVendorCDR_20' ) start [2024-12-27 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111268', 'tblTempVendorCDR_20' ) end [2024-12-27 02:54:19] Production.INFO: ProcessCDR(1,14111268,1,1,2) [2024-12-27 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111268', 'tblTempUsageDetail_20' ) start [2024-12-27 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111268', 'tblTempUsageDetail_20' ) end [2024-12-27 02:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:54:22] Production.INFO: ==30420== Releasing lock... [2024-12-27 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:54:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 02:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:55:04 [end_date_ymd] => 2024-12-27 02:55:04 [RateCDR] => 1 ) [2024-12-27 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-26 23:55:04' and `end` < '2024-12-27 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-27 02:55:17] Production.INFO: count ==290 [2024-12-27 02:55:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:55:04 - End Time 2024-12-27 02:55:04 [2024-12-27 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111273', 'tblTempUsageDetail_20' ) start [2024-12-27 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111273', 'tblTempUsageDetail_20' ) end [2024-12-27 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111273', 'tblTempVendorCDR_20' ) start [2024-12-27 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111273', 'tblTempVendorCDR_20' ) end [2024-12-27 02:55:17] Production.INFO: ProcessCDR(1,14111273,1,1,2) [2024-12-27 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111273', 'tblTempUsageDetail_20' ) start [2024-12-27 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111273', 'tblTempUsageDetail_20' ) end [2024-12-27 02:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:55:20] Production.INFO: ==30506== Releasing lock... [2024-12-27 02:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:55:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:56:05 [end_date_ymd] => 2024-12-27 02:56:05 [RateCDR] => 1 ) [2024-12-27 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:56:05' and `end` < '2024-12-27 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:56:17] Production.INFO: count ==290 [2024-12-27 02:56:17] Production.ERROR: pbx CDR StartTime 2024-12-26 23:56:05 - End Time 2024-12-27 02:56:05 [2024-12-27 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111278', 'tblTempUsageDetail_20' ) start [2024-12-27 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111278', 'tblTempUsageDetail_20' ) end [2024-12-27 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111278', 'tblTempVendorCDR_20' ) start [2024-12-27 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111278', 'tblTempVendorCDR_20' ) end [2024-12-27 02:56:17] Production.INFO: ProcessCDR(1,14111278,1,1,2) [2024-12-27 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111278', 'tblTempUsageDetail_20' ) start [2024-12-27 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111278', 'tblTempUsageDetail_20' ) end [2024-12-27 02:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:56:21] Production.INFO: ==30592== Releasing lock... [2024-12-27 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:56:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 02:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:57:04 [end_date_ymd] => 2024-12-27 02:57:04 [RateCDR] => 1 ) [2024-12-27 02:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:57:04' and `end` < '2024-12-27 02: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-27 02:57:18] Production.INFO: count ==291 [2024-12-27 02:57:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:57:04 - End Time 2024-12-27 02:57:04 [2024-12-27 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111283', 'tblTempUsageDetail_20' ) start [2024-12-27 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111283', 'tblTempUsageDetail_20' ) end [2024-12-27 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111283', 'tblTempVendorCDR_20' ) start [2024-12-27 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111283', 'tblTempVendorCDR_20' ) end [2024-12-27 02:57:18] Production.INFO: ProcessCDR(1,14111283,1,1,2) [2024-12-27 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111283', 'tblTempUsageDetail_20' ) start [2024-12-27 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111283', 'tblTempUsageDetail_20' ) end [2024-12-27 02:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:57:22] Production.INFO: ==30679== Releasing lock... [2024-12-27 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:57:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:58:04 [end_date_ymd] => 2024-12-27 02:58:04 [RateCDR] => 1 ) [2024-12-27 02:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:58:04' and `end` < '2024-12-27 02:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 02:58:18] Production.INFO: count ==291 [2024-12-27 02:58:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:58:04 - End Time 2024-12-27 02:58:04 [2024-12-27 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111288', 'tblTempUsageDetail_20' ) start [2024-12-27 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111288', 'tblTempUsageDetail_20' ) end [2024-12-27 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111288', 'tblTempVendorCDR_20' ) start [2024-12-27 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111288', 'tblTempVendorCDR_20' ) end [2024-12-27 02:58:18] Production.INFO: ProcessCDR(1,14111288,1,1,2) [2024-12-27 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111288', 'tblTempUsageDetail_20' ) start [2024-12-27 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111288', 'tblTempUsageDetail_20' ) end [2024-12-27 02:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:58:21] Production.INFO: ==30764== Releasing lock... [2024-12-27 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:58:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 02:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-26 23:59:04 [end_date_ymd] => 2024-12-27 02:59:04 [RateCDR] => 1 ) [2024-12-27 02:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-26 23:59:04' and `end` < '2024-12-27 02: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-27 02:59:18] Production.INFO: count ==289 [2024-12-27 02:59:18] Production.ERROR: pbx CDR StartTime 2024-12-26 23:59:04 - End Time 2024-12-27 02:59:04 [2024-12-27 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111293', 'tblTempUsageDetail_20' ) start [2024-12-27 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111293', 'tblTempUsageDetail_20' ) end [2024-12-27 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111293', 'tblTempVendorCDR_20' ) start [2024-12-27 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111293', 'tblTempVendorCDR_20' ) end [2024-12-27 02:59:18] Production.INFO: ProcessCDR(1,14111293,1,1,2) [2024-12-27 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111293', 'tblTempUsageDetail_20' ) start [2024-12-27 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111293', 'tblTempUsageDetail_20' ) end [2024-12-27 02:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 02:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 02:59:21] Production.INFO: ==30856== Releasing lock... [2024-12-27 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 02:59:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:00:05 [end_date_ymd] => 2024-12-27 03:00:05 [RateCDR] => 1 ) [2024-12-27 03: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-27 00:00:05' and `end` < '2024-12-27 03: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-27 03:00:17] Production.INFO: count ==289 [2024-12-27 03:00:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:00:05 - End Time 2024-12-27 03:00:05 [2024-12-27 03:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111298', 'tblTempUsageDetail_20' ) start [2024-12-27 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111298', 'tblTempUsageDetail_20' ) end [2024-12-27 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111298', 'tblTempVendorCDR_20' ) start [2024-12-27 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111298', 'tblTempVendorCDR_20' ) end [2024-12-27 03:00:17] Production.INFO: ProcessCDR(1,14111298,1,1,2) [2024-12-27 03:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111298', 'tblTempUsageDetail_20' ) start [2024-12-27 03:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111298', 'tblTempUsageDetail_20' ) end [2024-12-27 03:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:00:20] Production.INFO: ==30948== Releasing lock... [2024-12-27 03:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:00:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:01:05 [end_date_ymd] => 2024-12-27 03:01:05 [RateCDR] => 1 ) [2024-12-27 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:01:05' and `end` < '2024-12-27 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:01:18] Production.INFO: count ==289 [2024-12-27 03:01:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:01:05 - End Time 2024-12-27 03:01:05 [2024-12-27 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111304', 'tblTempUsageDetail_20' ) start [2024-12-27 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111304', 'tblTempUsageDetail_20' ) end [2024-12-27 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111304', 'tblTempVendorCDR_20' ) start [2024-12-27 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111304', 'tblTempVendorCDR_20' ) end [2024-12-27 03:01:18] Production.INFO: ProcessCDR(1,14111304,1,1,2) [2024-12-27 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111304', 'tblTempUsageDetail_20' ) start [2024-12-27 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111304', 'tblTempUsageDetail_20' ) end [2024-12-27 03:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:01:21] Production.INFO: ==31048== Releasing lock... [2024-12-27 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:01:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 03:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:02:04 [end_date_ymd] => 2024-12-27 03:02:04 [RateCDR] => 1 ) [2024-12-27 03: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-27 00:02:04' and `end` < '2024-12-27 03: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-27 03:02:18] Production.INFO: count ==288 [2024-12-27 03:02:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:02:04 - End Time 2024-12-27 03:02:04 [2024-12-27 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111309', 'tblTempUsageDetail_20' ) start [2024-12-27 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111309', 'tblTempUsageDetail_20' ) end [2024-12-27 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111309', 'tblTempVendorCDR_20' ) start [2024-12-27 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111309', 'tblTempVendorCDR_20' ) end [2024-12-27 03:02:18] Production.INFO: ProcessCDR(1,14111309,1,1,2) [2024-12-27 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111309', 'tblTempUsageDetail_20' ) start [2024-12-27 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111309', 'tblTempUsageDetail_20' ) end [2024-12-27 03:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:02:21] Production.INFO: ==31217== Releasing lock... [2024-12-27 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:02:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:03:05 [end_date_ymd] => 2024-12-27 03:03:05 [RateCDR] => 1 ) [2024-12-27 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:03:05' and `end` < '2024-12-27 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:03:18] Production.INFO: count ==287 [2024-12-27 03:03:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:03:05 - End Time 2024-12-27 03:03:05 [2024-12-27 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111314', 'tblTempUsageDetail_20' ) start [2024-12-27 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111314', 'tblTempUsageDetail_20' ) end [2024-12-27 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111314', 'tblTempVendorCDR_20' ) start [2024-12-27 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111314', 'tblTempVendorCDR_20' ) end [2024-12-27 03:03:18] Production.INFO: ProcessCDR(1,14111314,1,1,2) [2024-12-27 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111314', 'tblTempUsageDetail_20' ) start [2024-12-27 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111314', 'tblTempUsageDetail_20' ) end [2024-12-27 03:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:03:21] Production.INFO: ==31300== Releasing lock... [2024-12-27 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:03:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 03:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:04:04 [end_date_ymd] => 2024-12-27 03:04:04 [RateCDR] => 1 ) [2024-12-27 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-27 00:04:04' and `end` < '2024-12-27 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-27 03:04:17] Production.INFO: count ==284 [2024-12-27 03:04:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:04:04 - End Time 2024-12-27 03:04:04 [2024-12-27 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111319', 'tblTempUsageDetail_20' ) start [2024-12-27 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111319', 'tblTempUsageDetail_20' ) end [2024-12-27 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111319', 'tblTempVendorCDR_20' ) start [2024-12-27 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111319', 'tblTempVendorCDR_20' ) end [2024-12-27 03:04:17] Production.INFO: ProcessCDR(1,14111319,1,1,2) [2024-12-27 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111319', 'tblTempUsageDetail_20' ) start [2024-12-27 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111319', 'tblTempUsageDetail_20' ) end [2024-12-27 03:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:04:20] Production.INFO: ==31389== Releasing lock... [2024-12-27 03:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:04:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:05:05 [end_date_ymd] => 2024-12-27 03:05:05 [RateCDR] => 1 ) [2024-12-27 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:05:05' and `end` < '2024-12-27 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:05:18] Production.INFO: count ==284 [2024-12-27 03:05:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:05:05 - End Time 2024-12-27 03:05:05 [2024-12-27 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111324', 'tblTempUsageDetail_20' ) start [2024-12-27 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111324', 'tblTempUsageDetail_20' ) end [2024-12-27 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111324', 'tblTempVendorCDR_20' ) start [2024-12-27 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111324', 'tblTempVendorCDR_20' ) end [2024-12-27 03:05:18] Production.INFO: ProcessCDR(1,14111324,1,1,2) [2024-12-27 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111324', 'tblTempUsageDetail_20' ) start [2024-12-27 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111324', 'tblTempUsageDetail_20' ) end [2024-12-27 03:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:05:21] Production.INFO: ==31527== Releasing lock... [2024-12-27 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:05:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 03:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:06:04 [end_date_ymd] => 2024-12-27 03:06:04 [RateCDR] => 1 ) [2024-12-27 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-27 00:06:04' and `end` < '2024-12-27 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-27 03:06:17] Production.INFO: count ==284 [2024-12-27 03:06:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:06:04 - End Time 2024-12-27 03:06:04 [2024-12-27 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111329', 'tblTempUsageDetail_20' ) start [2024-12-27 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111329', 'tblTempUsageDetail_20' ) end [2024-12-27 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111329', 'tblTempVendorCDR_20' ) start [2024-12-27 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111329', 'tblTempVendorCDR_20' ) end [2024-12-27 03:06:17] Production.INFO: ProcessCDR(1,14111329,1,1,2) [2024-12-27 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111329', 'tblTempUsageDetail_20' ) start [2024-12-27 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111329', 'tblTempUsageDetail_20' ) end [2024-12-27 03:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:06:20] Production.INFO: ==31734== Releasing lock... [2024-12-27 03:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:06:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:07:05 [end_date_ymd] => 2024-12-27 03:07:05 [RateCDR] => 1 ) [2024-12-27 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:07:05' and `end` < '2024-12-27 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:07:18] Production.INFO: count ==277 [2024-12-27 03:07:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:07:05 - End Time 2024-12-27 03:07:05 [2024-12-27 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111333', 'tblTempUsageDetail_20' ) start [2024-12-27 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111333', 'tblTempUsageDetail_20' ) end [2024-12-27 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111333', 'tblTempVendorCDR_20' ) start [2024-12-27 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111333', 'tblTempVendorCDR_20' ) end [2024-12-27 03:07:18] Production.INFO: ProcessCDR(1,14111333,1,1,2) [2024-12-27 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111333', 'tblTempUsageDetail_20' ) start [2024-12-27 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111333', 'tblTempUsageDetail_20' ) end [2024-12-27 03:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:07:21] Production.INFO: ==31881== Releasing lock... [2024-12-27 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:07:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:08:05 [end_date_ymd] => 2024-12-27 03:08:05 [RateCDR] => 1 ) [2024-12-27 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:08:05' and `end` < '2024-12-27 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:08:18] Production.INFO: count ==277 [2024-12-27 03:08:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:08:05 - End Time 2024-12-27 03:08:05 [2024-12-27 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111339', 'tblTempUsageDetail_20' ) start [2024-12-27 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111339', 'tblTempUsageDetail_20' ) end [2024-12-27 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111339', 'tblTempVendorCDR_20' ) start [2024-12-27 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111339', 'tblTempVendorCDR_20' ) end [2024-12-27 03:08:18] Production.INFO: ProcessCDR(1,14111339,1,1,2) [2024-12-27 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111339', 'tblTempUsageDetail_20' ) start [2024-12-27 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111339', 'tblTempUsageDetail_20' ) end [2024-12-27 03:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:08:21] Production.INFO: ==32020== Releasing lock... [2024-12-27 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:08:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 03:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:09:04 [end_date_ymd] => 2024-12-27 03:09:04 [RateCDR] => 1 ) [2024-12-27 03: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-27 00:09:04' and `end` < '2024-12-27 03: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-27 03:09:17] Production.INFO: count ==276 [2024-12-27 03:09:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:09:04 - End Time 2024-12-27 03:09:04 [2024-12-27 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111344', 'tblTempUsageDetail_20' ) start [2024-12-27 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111344', 'tblTempUsageDetail_20' ) end [2024-12-27 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111344', 'tblTempVendorCDR_20' ) start [2024-12-27 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111344', 'tblTempVendorCDR_20' ) end [2024-12-27 03:09:17] Production.INFO: ProcessCDR(1,14111344,1,1,2) [2024-12-27 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111344', 'tblTempUsageDetail_20' ) start [2024-12-27 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111344', 'tblTempUsageDetail_20' ) end [2024-12-27 03:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:09:21] Production.INFO: ==32225== Releasing lock... [2024-12-27 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:09:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:10:06 [end_date_ymd] => 2024-12-27 03:10:06 [RateCDR] => 1 ) [2024-12-27 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:10:06' and `end` < '2024-12-27 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:10:18] Production.INFO: count ==267 [2024-12-27 03:10:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:10:06 - End Time 2024-12-27 03:10:06 [2024-12-27 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111350', 'tblTempUsageDetail_20' ) start [2024-12-27 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111350', 'tblTempUsageDetail_20' ) end [2024-12-27 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111350', 'tblTempVendorCDR_20' ) start [2024-12-27 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111350', 'tblTempVendorCDR_20' ) end [2024-12-27 03:10:18] Production.INFO: ProcessCDR(1,14111350,1,1,2) [2024-12-27 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111350', 'tblTempUsageDetail_20' ) start [2024-12-27 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111350', 'tblTempUsageDetail_20' ) end [2024-12-27 03:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:10:21] Production.INFO: ==32369== Releasing lock... [2024-12-27 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:10:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:11:05 [end_date_ymd] => 2024-12-27 03:11:05 [RateCDR] => 1 ) [2024-12-27 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:11:05' and `end` < '2024-12-27 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:11:17] Production.INFO: count ==261 [2024-12-27 03:11:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:11:05 - End Time 2024-12-27 03:11:05 [2024-12-27 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111355', 'tblTempUsageDetail_20' ) start [2024-12-27 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111355', 'tblTempUsageDetail_20' ) end [2024-12-27 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111355', 'tblTempVendorCDR_20' ) start [2024-12-27 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111355', 'tblTempVendorCDR_20' ) end [2024-12-27 03:11:17] Production.INFO: ProcessCDR(1,14111355,1,1,2) [2024-12-27 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111355', 'tblTempUsageDetail_20' ) start [2024-12-27 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111355', 'tblTempUsageDetail_20' ) end [2024-12-27 03:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:11:21] Production.INFO: ==32504== Releasing lock... [2024-12-27 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:11:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:12:05 [end_date_ymd] => 2024-12-27 03:12:05 [RateCDR] => 1 ) [2024-12-27 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:12:05' and `end` < '2024-12-27 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:12:18] Production.INFO: count ==261 [2024-12-27 03:12:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:12:05 - End Time 2024-12-27 03:12:05 [2024-12-27 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111360', 'tblTempUsageDetail_20' ) start [2024-12-27 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111360', 'tblTempUsageDetail_20' ) end [2024-12-27 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111360', 'tblTempVendorCDR_20' ) start [2024-12-27 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111360', 'tblTempVendorCDR_20' ) end [2024-12-27 03:12:18] Production.INFO: ProcessCDR(1,14111360,1,1,2) [2024-12-27 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111360', 'tblTempUsageDetail_20' ) start [2024-12-27 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111360', 'tblTempUsageDetail_20' ) end [2024-12-27 03:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:12:21] Production.INFO: ==32637== Releasing lock... [2024-12-27 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:12:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:13:05 [end_date_ymd] => 2024-12-27 03:13:05 [RateCDR] => 1 ) [2024-12-27 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:13:05' and `end` < '2024-12-27 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:13:17] Production.INFO: count ==261 [2024-12-27 03:13:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:13:05 - End Time 2024-12-27 03:13:05 [2024-12-27 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111365', 'tblTempUsageDetail_20' ) start [2024-12-27 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111365', 'tblTempUsageDetail_20' ) end [2024-12-27 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111365', 'tblTempVendorCDR_20' ) start [2024-12-27 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111365', 'tblTempVendorCDR_20' ) end [2024-12-27 03:13:17] Production.INFO: ProcessCDR(1,14111365,1,1,2) [2024-12-27 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111365', 'tblTempUsageDetail_20' ) start [2024-12-27 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111365', 'tblTempUsageDetail_20' ) end [2024-12-27 03:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:13:20] Production.INFO: ==391== Releasing lock... [2024-12-27 03:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:13:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:14:05 [end_date_ymd] => 2024-12-27 03:14:05 [RateCDR] => 1 ) [2024-12-27 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:14:05' and `end` < '2024-12-27 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:14:17] Production.INFO: count ==261 [2024-12-27 03:14:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:14:05 - End Time 2024-12-27 03:14:05 [2024-12-27 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111370', 'tblTempUsageDetail_20' ) start [2024-12-27 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111370', 'tblTempUsageDetail_20' ) end [2024-12-27 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111370', 'tblTempVendorCDR_20' ) start [2024-12-27 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111370', 'tblTempVendorCDR_20' ) end [2024-12-27 03:14:17] Production.INFO: ProcessCDR(1,14111370,1,1,2) [2024-12-27 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111370', 'tblTempUsageDetail_20' ) start [2024-12-27 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111370', 'tblTempUsageDetail_20' ) end [2024-12-27 03:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:14:20] Production.INFO: ==533== Releasing lock... [2024-12-27 03:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:14:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:15:05 [end_date_ymd] => 2024-12-27 03:15:05 [RateCDR] => 1 ) [2024-12-27 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:15:05' and `end` < '2024-12-27 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:15:17] Production.INFO: count ==261 [2024-12-27 03:15:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:15:05 - End Time 2024-12-27 03:15:05 [2024-12-27 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111375', 'tblTempUsageDetail_20' ) start [2024-12-27 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111375', 'tblTempUsageDetail_20' ) end [2024-12-27 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111375', 'tblTempVendorCDR_20' ) start [2024-12-27 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111375', 'tblTempVendorCDR_20' ) end [2024-12-27 03:15:17] Production.INFO: ProcessCDR(1,14111375,1,1,2) [2024-12-27 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111375', 'tblTempUsageDetail_20' ) start [2024-12-27 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111375', 'tblTempUsageDetail_20' ) end [2024-12-27 03:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:15:20] Production.INFO: ==676== Releasing lock... [2024-12-27 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:15:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:16:05 [end_date_ymd] => 2024-12-27 03:16:05 [RateCDR] => 1 ) [2024-12-27 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:16:05' and `end` < '2024-12-27 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:16:17] Production.INFO: count ==256 [2024-12-27 03:16:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:16:05 - End Time 2024-12-27 03:16:05 [2024-12-27 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111380', 'tblTempUsageDetail_20' ) start [2024-12-27 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111380', 'tblTempUsageDetail_20' ) end [2024-12-27 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111380', 'tblTempVendorCDR_20' ) start [2024-12-27 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111380', 'tblTempVendorCDR_20' ) end [2024-12-27 03:16:17] Production.INFO: ProcessCDR(1,14111380,1,1,2) [2024-12-27 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111380', 'tblTempUsageDetail_20' ) start [2024-12-27 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111380', 'tblTempUsageDetail_20' ) end [2024-12-27 03:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:16:20] Production.INFO: ==797== Releasing lock... [2024-12-27 03:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:16:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:17:05 [end_date_ymd] => 2024-12-27 03:17:05 [RateCDR] => 1 ) [2024-12-27 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:17:05' and `end` < '2024-12-27 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:17:17] Production.INFO: count ==255 [2024-12-27 03:17:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:17:05 - End Time 2024-12-27 03:17:05 [2024-12-27 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111385', 'tblTempUsageDetail_20' ) start [2024-12-27 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111385', 'tblTempUsageDetail_20' ) end [2024-12-27 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111385', 'tblTempVendorCDR_20' ) start [2024-12-27 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111385', 'tblTempVendorCDR_20' ) end [2024-12-27 03:17:17] Production.INFO: ProcessCDR(1,14111385,1,1,2) [2024-12-27 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111385', 'tblTempUsageDetail_20' ) start [2024-12-27 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111385', 'tblTempUsageDetail_20' ) end [2024-12-27 03:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:17:20] Production.INFO: ==956== Releasing lock... [2024-12-27 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:17:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:18:05 [end_date_ymd] => 2024-12-27 03:18:05 [RateCDR] => 1 ) [2024-12-27 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:18:05' and `end` < '2024-12-27 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:18:17] Production.INFO: count ==255 [2024-12-27 03:18:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:18:05 - End Time 2024-12-27 03:18:05 [2024-12-27 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111390', 'tblTempUsageDetail_20' ) start [2024-12-27 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111390', 'tblTempUsageDetail_20' ) end [2024-12-27 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111390', 'tblTempVendorCDR_20' ) start [2024-12-27 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111390', 'tblTempVendorCDR_20' ) end [2024-12-27 03:18:17] Production.INFO: ProcessCDR(1,14111390,1,1,2) [2024-12-27 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111390', 'tblTempUsageDetail_20' ) start [2024-12-27 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111390', 'tblTempUsageDetail_20' ) end [2024-12-27 03:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:18:20] Production.INFO: ==1043== Releasing lock... [2024-12-27 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:18:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:19:05 [end_date_ymd] => 2024-12-27 03:19:05 [RateCDR] => 1 ) [2024-12-27 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:19:05' and `end` < '2024-12-27 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:19:18] Production.INFO: count ==255 [2024-12-27 03:19:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:19:05 - End Time 2024-12-27 03:19:05 [2024-12-27 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111395', 'tblTempUsageDetail_20' ) start [2024-12-27 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111395', 'tblTempUsageDetail_20' ) end [2024-12-27 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111395', 'tblTempVendorCDR_20' ) start [2024-12-27 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111395', 'tblTempVendorCDR_20' ) end [2024-12-27 03:19:18] Production.INFO: ProcessCDR(1,14111395,1,1,2) [2024-12-27 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111395', 'tblTempUsageDetail_20' ) start [2024-12-27 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111395', 'tblTempUsageDetail_20' ) end [2024-12-27 03:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:19:21] Production.INFO: ==1134== Releasing lock... [2024-12-27 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:19:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:20:05 [end_date_ymd] => 2024-12-27 03:20:05 [RateCDR] => 1 ) [2024-12-27 03: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-27 00:20:05' and `end` < '2024-12-27 03: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-27 03:20:18] Production.INFO: count ==255 [2024-12-27 03:20:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:20:05 - End Time 2024-12-27 03:20:05 [2024-12-27 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111401', 'tblTempUsageDetail_20' ) start [2024-12-27 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111401', 'tblTempUsageDetail_20' ) end [2024-12-27 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111401', 'tblTempVendorCDR_20' ) start [2024-12-27 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111401', 'tblTempVendorCDR_20' ) end [2024-12-27 03:20:18] Production.INFO: ProcessCDR(1,14111401,1,1,2) [2024-12-27 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111401', 'tblTempUsageDetail_20' ) start [2024-12-27 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111401', 'tblTempUsageDetail_20' ) end [2024-12-27 03:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:20:21] Production.INFO: ==1236== Releasing lock... [2024-12-27 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:20:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:21:04 [end_date_ymd] => 2024-12-27 03:21:04 [RateCDR] => 1 ) [2024-12-27 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-27 00:21:04' and `end` < '2024-12-27 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-27 03:21:18] Production.INFO: count ==246 [2024-12-27 03:21:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:21:04 - End Time 2024-12-27 03:21:04 [2024-12-27 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111406', 'tblTempUsageDetail_20' ) start [2024-12-27 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111406', 'tblTempUsageDetail_20' ) end [2024-12-27 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111406', 'tblTempVendorCDR_20' ) start [2024-12-27 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111406', 'tblTempVendorCDR_20' ) end [2024-12-27 03:21:18] Production.INFO: ProcessCDR(1,14111406,1,1,2) [2024-12-27 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111406', 'tblTempUsageDetail_20' ) start [2024-12-27 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111406', 'tblTempUsageDetail_20' ) end [2024-12-27 03:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:21:21] Production.INFO: ==1353== Releasing lock... [2024-12-27 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:21:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:22:05 [end_date_ymd] => 2024-12-27 03:22:05 [RateCDR] => 1 ) [2024-12-27 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:22:05' and `end` < '2024-12-27 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:22:18] Production.INFO: count ==245 [2024-12-27 03:22:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:22:05 - End Time 2024-12-27 03:22:05 [2024-12-27 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111411', 'tblTempUsageDetail_20' ) start [2024-12-27 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111411', 'tblTempUsageDetail_20' ) end [2024-12-27 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111411', 'tblTempVendorCDR_20' ) start [2024-12-27 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111411', 'tblTempVendorCDR_20' ) end [2024-12-27 03:22:18] Production.INFO: ProcessCDR(1,14111411,1,1,2) [2024-12-27 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111411', 'tblTempUsageDetail_20' ) start [2024-12-27 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111411', 'tblTempUsageDetail_20' ) end [2024-12-27 03:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:22:21] Production.INFO: ==1491== Releasing lock... [2024-12-27 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:22:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:23:05 [end_date_ymd] => 2024-12-27 03:23:05 [RateCDR] => 1 ) [2024-12-27 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:23:05' and `end` < '2024-12-27 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:23:17] Production.INFO: count ==245 [2024-12-27 03:23:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:23:05 - End Time 2024-12-27 03:23:05 [2024-12-27 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111416', 'tblTempUsageDetail_20' ) start [2024-12-27 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111416', 'tblTempUsageDetail_20' ) end [2024-12-27 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111416', 'tblTempVendorCDR_20' ) start [2024-12-27 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111416', 'tblTempVendorCDR_20' ) end [2024-12-27 03:23:17] Production.INFO: ProcessCDR(1,14111416,1,1,2) [2024-12-27 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111416', 'tblTempUsageDetail_20' ) start [2024-12-27 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111416', 'tblTempUsageDetail_20' ) end [2024-12-27 03:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:23:20] Production.INFO: ==1622== Releasing lock... [2024-12-27 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:23:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:24:05 [end_date_ymd] => 2024-12-27 03:24:05 [RateCDR] => 1 ) [2024-12-27 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:24:05' and `end` < '2024-12-27 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:24:18] Production.INFO: count ==245 [2024-12-27 03:24:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:24:05 - End Time 2024-12-27 03:24:05 [2024-12-27 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111421', 'tblTempUsageDetail_20' ) start [2024-12-27 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111421', 'tblTempUsageDetail_20' ) end [2024-12-27 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111421', 'tblTempVendorCDR_20' ) start [2024-12-27 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111421', 'tblTempVendorCDR_20' ) end [2024-12-27 03:24:18] Production.INFO: ProcessCDR(1,14111421,1,1,2) [2024-12-27 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111421', 'tblTempUsageDetail_20' ) start [2024-12-27 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111421', 'tblTempUsageDetail_20' ) end [2024-12-27 03:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:24:21] Production.INFO: ==1719== Releasing lock... [2024-12-27 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:24:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:25:04 [end_date_ymd] => 2024-12-27 03:25:04 [RateCDR] => 1 ) [2024-12-27 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-27 00:25:04' and `end` < '2024-12-27 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-27 03:25:16] Production.INFO: count ==245 [2024-12-27 03:25:16] Production.ERROR: pbx CDR StartTime 2024-12-27 00:25:04 - End Time 2024-12-27 03:25:04 [2024-12-27 03:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111426', 'tblTempUsageDetail_20' ) start [2024-12-27 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111426', 'tblTempUsageDetail_20' ) end [2024-12-27 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111426', 'tblTempVendorCDR_20' ) start [2024-12-27 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111426', 'tblTempVendorCDR_20' ) end [2024-12-27 03:25:16] Production.INFO: ProcessCDR(1,14111426,1,1,2) [2024-12-27 03:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111426', 'tblTempUsageDetail_20' ) start [2024-12-27 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111426', 'tblTempUsageDetail_20' ) end [2024-12-27 03:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:25:20] Production.INFO: ==1802== Releasing lock... [2024-12-27 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:25:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:26:05 [end_date_ymd] => 2024-12-27 03:26:05 [RateCDR] => 1 ) [2024-12-27 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:26:05' and `end` < '2024-12-27 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:26:17] Production.INFO: count ==245 [2024-12-27 03:26:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:26:05 - End Time 2024-12-27 03:26:05 [2024-12-27 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111431', 'tblTempUsageDetail_20' ) start [2024-12-27 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111431', 'tblTempUsageDetail_20' ) end [2024-12-27 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111431', 'tblTempVendorCDR_20' ) start [2024-12-27 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111431', 'tblTempVendorCDR_20' ) end [2024-12-27 03:26:18] Production.INFO: ProcessCDR(1,14111431,1,1,2) [2024-12-27 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111431', 'tblTempUsageDetail_20' ) start [2024-12-27 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111431', 'tblTempUsageDetail_20' ) end [2024-12-27 03:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:26:20] Production.INFO: ==1887== Releasing lock... [2024-12-27 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:26:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:27:04 [end_date_ymd] => 2024-12-27 03:27:04 [RateCDR] => 1 ) [2024-12-27 03: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-27 00:27:04' and `end` < '2024-12-27 03: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-27 03:27:17] Production.INFO: count ==245 [2024-12-27 03:27:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:27:04 - End Time 2024-12-27 03:27:04 [2024-12-27 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111436', 'tblTempUsageDetail_20' ) start [2024-12-27 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111436', 'tblTempUsageDetail_20' ) end [2024-12-27 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111436', 'tblTempVendorCDR_20' ) start [2024-12-27 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111436', 'tblTempVendorCDR_20' ) end [2024-12-27 03:27:17] Production.INFO: ProcessCDR(1,14111436,1,1,2) [2024-12-27 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111436', 'tblTempUsageDetail_20' ) start [2024-12-27 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111436', 'tblTempUsageDetail_20' ) end [2024-12-27 03:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:27:20] Production.INFO: ==1969== Releasing lock... [2024-12-27 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:27:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:28:04 [end_date_ymd] => 2024-12-27 03:28:04 [RateCDR] => 1 ) [2024-12-27 03: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-27 00:28:04' and `end` < '2024-12-27 03: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-27 03:28:17] Production.INFO: count ==236 [2024-12-27 03:28:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:28:04 - End Time 2024-12-27 03:28:04 [2024-12-27 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111441', 'tblTempUsageDetail_20' ) start [2024-12-27 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111441', 'tblTempUsageDetail_20' ) end [2024-12-27 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111441', 'tblTempVendorCDR_20' ) start [2024-12-27 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111441', 'tblTempVendorCDR_20' ) end [2024-12-27 03:28:17] Production.INFO: ProcessCDR(1,14111441,1,1,2) [2024-12-27 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111441', 'tblTempUsageDetail_20' ) start [2024-12-27 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111441', 'tblTempUsageDetail_20' ) end [2024-12-27 03:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:28:20] Production.INFO: ==2053== Releasing lock... [2024-12-27 03:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:28:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:29:05 [end_date_ymd] => 2024-12-27 03:29:05 [RateCDR] => 1 ) [2024-12-27 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:29:05' and `end` < '2024-12-27 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:29:17] Production.INFO: count ==235 [2024-12-27 03:29:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:29:05 - End Time 2024-12-27 03:29:05 [2024-12-27 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111446', 'tblTempUsageDetail_20' ) start [2024-12-27 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111446', 'tblTempUsageDetail_20' ) end [2024-12-27 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111446', 'tblTempVendorCDR_20' ) start [2024-12-27 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111446', 'tblTempVendorCDR_20' ) end [2024-12-27 03:29:17] Production.INFO: ProcessCDR(1,14111446,1,1,2) [2024-12-27 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111446', 'tblTempUsageDetail_20' ) start [2024-12-27 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111446', 'tblTempUsageDetail_20' ) end [2024-12-27 03:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:29:20] Production.INFO: ==2136== Releasing lock... [2024-12-27 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:29:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:30:05 [end_date_ymd] => 2024-12-27 03:30:05 [RateCDR] => 1 ) [2024-12-27 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-27 00:30:05' and `end` < '2024-12-27 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-27 03:30:18] Production.INFO: count ==229 [2024-12-27 03:30:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:30:05 - End Time 2024-12-27 03:30:05 [2024-12-27 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111452', 'tblTempUsageDetail_20' ) start [2024-12-27 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111452', 'tblTempUsageDetail_20' ) end [2024-12-27 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111452', 'tblTempVendorCDR_20' ) start [2024-12-27 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111452', 'tblTempVendorCDR_20' ) end [2024-12-27 03:30:18] Production.INFO: ProcessCDR(1,14111452,1,1,2) [2024-12-27 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111452', 'tblTempUsageDetail_20' ) start [2024-12-27 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111452', 'tblTempUsageDetail_20' ) end [2024-12-27 03:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:30:21] Production.INFO: ==2221== Releasing lock... [2024-12-27 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:30:21] Production.INFO: 29 MB #Memory Used# [2024-12-27 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:31:05 [end_date_ymd] => 2024-12-27 03:31:05 [RateCDR] => 1 ) [2024-12-27 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-27 00:31:05' and `end` < '2024-12-27 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-27 03:31:18] Production.INFO: count ==215 [2024-12-27 03:31:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:31:05 - End Time 2024-12-27 03:31:05 [2024-12-27 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111457', 'tblTempUsageDetail_20' ) start [2024-12-27 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111457', 'tblTempUsageDetail_20' ) end [2024-12-27 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111457', 'tblTempVendorCDR_20' ) start [2024-12-27 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111457', 'tblTempVendorCDR_20' ) end [2024-12-27 03:31:18] Production.INFO: ProcessCDR(1,14111457,1,1,2) [2024-12-27 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111457', 'tblTempUsageDetail_20' ) start [2024-12-27 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111457', 'tblTempUsageDetail_20' ) end [2024-12-27 03:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:31:21] Production.INFO: ==2304== Releasing lock... [2024-12-27 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:31:21] Production.INFO: 29 MB #Memory Used# [2024-12-27 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:32:05 [end_date_ymd] => 2024-12-27 03:32:05 [RateCDR] => 1 ) [2024-12-27 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:32:05' and `end` < '2024-12-27 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:32:18] Production.INFO: count ==212 [2024-12-27 03:32:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:32:05 - End Time 2024-12-27 03:32:05 [2024-12-27 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111462', 'tblTempUsageDetail_20' ) start [2024-12-27 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111462', 'tblTempUsageDetail_20' ) end [2024-12-27 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111462', 'tblTempVendorCDR_20' ) start [2024-12-27 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111462', 'tblTempVendorCDR_20' ) end [2024-12-27 03:32:18] Production.INFO: ProcessCDR(1,14111462,1,1,2) [2024-12-27 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111462', 'tblTempUsageDetail_20' ) start [2024-12-27 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111462', 'tblTempUsageDetail_20' ) end [2024-12-27 03:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:32:21] Production.INFO: ==2388== Releasing lock... [2024-12-27 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:32:21] Production.INFO: 29 MB #Memory Used# [2024-12-27 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:33:05 [end_date_ymd] => 2024-12-27 03:33:05 [RateCDR] => 1 ) [2024-12-27 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:33:05' and `end` < '2024-12-27 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:33:18] Production.INFO: count ==212 [2024-12-27 03:33:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:33:05 - End Time 2024-12-27 03:33:05 [2024-12-27 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111467', 'tblTempUsageDetail_20' ) start [2024-12-27 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111467', 'tblTempUsageDetail_20' ) end [2024-12-27 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111467', 'tblTempVendorCDR_20' ) start [2024-12-27 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111467', 'tblTempVendorCDR_20' ) end [2024-12-27 03:33:18] Production.INFO: ProcessCDR(1,14111467,1,1,2) [2024-12-27 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111467', 'tblTempUsageDetail_20' ) start [2024-12-27 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111467', 'tblTempUsageDetail_20' ) end [2024-12-27 03:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:33:21] Production.INFO: ==2469== Releasing lock... [2024-12-27 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:33:21] Production.INFO: 29 MB #Memory Used# [2024-12-27 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:34:05 [end_date_ymd] => 2024-12-27 03:34:05 [RateCDR] => 1 ) [2024-12-27 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:34:05' and `end` < '2024-12-27 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:34:17] Production.INFO: count ==212 [2024-12-27 03:34:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:34:05 - End Time 2024-12-27 03:34:05 [2024-12-27 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111472', 'tblTempUsageDetail_20' ) start [2024-12-27 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111472', 'tblTempUsageDetail_20' ) end [2024-12-27 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111472', 'tblTempVendorCDR_20' ) start [2024-12-27 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111472', 'tblTempVendorCDR_20' ) end [2024-12-27 03:34:17] Production.INFO: ProcessCDR(1,14111472,1,1,2) [2024-12-27 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111472', 'tblTempUsageDetail_20' ) start [2024-12-27 03:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111472', 'tblTempUsageDetail_20' ) end [2024-12-27 03:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:34:20] Production.INFO: ==2551== Releasing lock... [2024-12-27 03:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:34:20] Production.INFO: 29 MB #Memory Used# [2024-12-27 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:35:05 [end_date_ymd] => 2024-12-27 03:35:05 [RateCDR] => 1 ) [2024-12-27 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:35:05' and `end` < '2024-12-27 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:35:17] Production.INFO: count ==212 [2024-12-27 03:35:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:35:05 - End Time 2024-12-27 03:35:05 [2024-12-27 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111477', 'tblTempUsageDetail_20' ) start [2024-12-27 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111477', 'tblTempUsageDetail_20' ) end [2024-12-27 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111477', 'tblTempVendorCDR_20' ) start [2024-12-27 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111477', 'tblTempVendorCDR_20' ) end [2024-12-27 03:35:17] Production.INFO: ProcessCDR(1,14111477,1,1,2) [2024-12-27 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111477', 'tblTempUsageDetail_20' ) start [2024-12-27 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111477', 'tblTempUsageDetail_20' ) end [2024-12-27 03:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:35:20] Production.INFO: ==2628== Releasing lock... [2024-12-27 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:35:20] Production.INFO: 29 MB #Memory Used# [2024-12-27 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:36:05 [end_date_ymd] => 2024-12-27 03:36:05 [RateCDR] => 1 ) [2024-12-27 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:36:05' and `end` < '2024-12-27 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:36:17] Production.INFO: count ==212 [2024-12-27 03:36:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:36:05 - End Time 2024-12-27 03:36:05 [2024-12-27 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111482', 'tblTempUsageDetail_20' ) start [2024-12-27 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111482', 'tblTempUsageDetail_20' ) end [2024-12-27 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111482', 'tblTempVendorCDR_20' ) start [2024-12-27 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111482', 'tblTempVendorCDR_20' ) end [2024-12-27 03:36:17] Production.INFO: ProcessCDR(1,14111482,1,1,2) [2024-12-27 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111482', 'tblTempUsageDetail_20' ) start [2024-12-27 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111482', 'tblTempUsageDetail_20' ) end [2024-12-27 03:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:36:20] Production.INFO: ==2709== Releasing lock... [2024-12-27 03:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:36:20] Production.INFO: 29 MB #Memory Used# [2024-12-27 03:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:37:04 [end_date_ymd] => 2024-12-27 03:37:04 [RateCDR] => 1 ) [2024-12-27 03: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-27 00:37:04' and `end` < '2024-12-27 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-27 03:37:18] Production.INFO: count ==212 [2024-12-27 03:37:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:37:04 - End Time 2024-12-27 03:37:04 [2024-12-27 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111487', 'tblTempUsageDetail_20' ) start [2024-12-27 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111487', 'tblTempUsageDetail_20' ) end [2024-12-27 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111487', 'tblTempVendorCDR_20' ) start [2024-12-27 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111487', 'tblTempVendorCDR_20' ) end [2024-12-27 03:37:18] Production.INFO: ProcessCDR(1,14111487,1,1,2) [2024-12-27 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111487', 'tblTempUsageDetail_20' ) start [2024-12-27 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111487', 'tblTempUsageDetail_20' ) end [2024-12-27 03:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:37:21] Production.INFO: ==2787== Releasing lock... [2024-12-27 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:37:21] Production.INFO: 29 MB #Memory Used# [2024-12-27 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:38:05 [end_date_ymd] => 2024-12-27 03:38:05 [RateCDR] => 1 ) [2024-12-27 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:38:05' and `end` < '2024-12-27 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:38:18] Production.INFO: count ==212 [2024-12-27 03:38:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:38:05 - End Time 2024-12-27 03:38:05 [2024-12-27 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111492', 'tblTempUsageDetail_20' ) start [2024-12-27 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111492', 'tblTempUsageDetail_20' ) end [2024-12-27 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111492', 'tblTempVendorCDR_20' ) start [2024-12-27 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111492', 'tblTempVendorCDR_20' ) end [2024-12-27 03:38:18] Production.INFO: ProcessCDR(1,14111492,1,1,2) [2024-12-27 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111492', 'tblTempUsageDetail_20' ) start [2024-12-27 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111492', 'tblTempUsageDetail_20' ) end [2024-12-27 03:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:38:21] Production.INFO: ==2916== Releasing lock... [2024-12-27 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:38:21] Production.INFO: 29 MB #Memory Used# [2024-12-27 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:39:05 [end_date_ymd] => 2024-12-27 03:39:05 [RateCDR] => 1 ) [2024-12-27 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-27 00:39:05' and `end` < '2024-12-27 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-27 03:39:17] Production.INFO: count ==212 [2024-12-27 03:39:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:39:05 - End Time 2024-12-27 03:39:05 [2024-12-27 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111497', 'tblTempUsageDetail_20' ) start [2024-12-27 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111497', 'tblTempUsageDetail_20' ) end [2024-12-27 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111497', 'tblTempVendorCDR_20' ) start [2024-12-27 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111497', 'tblTempVendorCDR_20' ) end [2024-12-27 03:39:17] Production.INFO: ProcessCDR(1,14111497,1,1,2) [2024-12-27 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111497', 'tblTempUsageDetail_20' ) start [2024-12-27 03:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111497', 'tblTempUsageDetail_20' ) end [2024-12-27 03:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:39:21] Production.INFO: ==2995== Releasing lock... [2024-12-27 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:39:21] Production.INFO: 29 MB #Memory Used# [2024-12-27 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:40:05 [end_date_ymd] => 2024-12-27 03:40:05 [RateCDR] => 1 ) [2024-12-27 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-27 00:40:05' and `end` < '2024-12-27 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-27 03:40:18] Production.INFO: count ==206 [2024-12-27 03:40:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:40:05 - End Time 2024-12-27 03:40:05 [2024-12-27 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111503', 'tblTempUsageDetail_20' ) start [2024-12-27 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111503', 'tblTempUsageDetail_20' ) end [2024-12-27 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111503', 'tblTempVendorCDR_20' ) start [2024-12-27 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111503', 'tblTempVendorCDR_20' ) end [2024-12-27 03:40:18] Production.INFO: ProcessCDR(1,14111503,1,1,2) [2024-12-27 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111503', 'tblTempUsageDetail_20' ) start [2024-12-27 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111503', 'tblTempUsageDetail_20' ) end [2024-12-27 03:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:40:21] Production.INFO: ==3077== Releasing lock... [2024-12-27 03:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:40:21] Production.INFO: 29 MB #Memory Used# [2024-12-27 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:41:05 [end_date_ymd] => 2024-12-27 03:41:05 [RateCDR] => 1 ) [2024-12-27 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:41:05' and `end` < '2024-12-27 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:41:17] Production.INFO: count ==206 [2024-12-27 03:41:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:41:05 - End Time 2024-12-27 03:41:05 [2024-12-27 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111508', 'tblTempUsageDetail_20' ) start [2024-12-27 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111508', 'tblTempUsageDetail_20' ) end [2024-12-27 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111508', 'tblTempVendorCDR_20' ) start [2024-12-27 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111508', 'tblTempVendorCDR_20' ) end [2024-12-27 03:41:17] Production.INFO: ProcessCDR(1,14111508,1,1,2) [2024-12-27 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111508', 'tblTempUsageDetail_20' ) start [2024-12-27 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111508', 'tblTempUsageDetail_20' ) end [2024-12-27 03:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:41:20] Production.INFO: ==3163== Releasing lock... [2024-12-27 03:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:41:20] Production.INFO: 29 MB #Memory Used# [2024-12-27 03:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:42:04 [end_date_ymd] => 2024-12-27 03:42:04 [RateCDR] => 1 ) [2024-12-27 03: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-27 00:42:04' and `end` < '2024-12-27 03: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-27 03:42:17] Production.INFO: count ==206 [2024-12-27 03:42:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:42:04 - End Time 2024-12-27 03:42:04 [2024-12-27 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111513', 'tblTempUsageDetail_20' ) start [2024-12-27 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111513', 'tblTempUsageDetail_20' ) end [2024-12-27 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111513', 'tblTempVendorCDR_20' ) start [2024-12-27 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111513', 'tblTempVendorCDR_20' ) end [2024-12-27 03:42:17] Production.INFO: ProcessCDR(1,14111513,1,1,2) [2024-12-27 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111513', 'tblTempUsageDetail_20' ) start [2024-12-27 03:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111513', 'tblTempUsageDetail_20' ) end [2024-12-27 03:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:42:20] Production.INFO: ==3250== Releasing lock... [2024-12-27 03:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:42:20] Production.INFO: 29 MB #Memory Used# [2024-12-27 03:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:43:04 [end_date_ymd] => 2024-12-27 03:43:04 [RateCDR] => 1 ) [2024-12-27 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-27 00:43:04' and `end` < '2024-12-27 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-27 03:43:16] Production.INFO: count ==206 [2024-12-27 03:43:16] Production.ERROR: pbx CDR StartTime 2024-12-27 00:43:04 - End Time 2024-12-27 03:43:04 [2024-12-27 03:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111518', 'tblTempUsageDetail_20' ) start [2024-12-27 03:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111518', 'tblTempUsageDetail_20' ) end [2024-12-27 03:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111518', 'tblTempVendorCDR_20' ) start [2024-12-27 03:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111518', 'tblTempVendorCDR_20' ) end [2024-12-27 03:43:16] Production.INFO: ProcessCDR(1,14111518,1,1,2) [2024-12-27 03:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:43:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111518', 'tblTempUsageDetail_20' ) start [2024-12-27 03:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111518', 'tblTempUsageDetail_20' ) end [2024-12-27 03:43:19] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:43:19] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:43:19] Production.INFO: ==3371== Releasing lock... [2024-12-27 03:43:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:43:19] Production.INFO: 29 MB #Memory Used# [2024-12-27 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:44:05 [end_date_ymd] => 2024-12-27 03:44:05 [RateCDR] => 1 ) [2024-12-27 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:44:05' and `end` < '2024-12-27 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:44:17] Production.INFO: count ==206 [2024-12-27 03:44:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:44:05 - End Time 2024-12-27 03:44:05 [2024-12-27 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111523', 'tblTempUsageDetail_20' ) start [2024-12-27 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111523', 'tblTempUsageDetail_20' ) end [2024-12-27 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111523', 'tblTempVendorCDR_20' ) start [2024-12-27 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111523', 'tblTempVendorCDR_20' ) end [2024-12-27 03:44:17] Production.INFO: ProcessCDR(1,14111523,1,1,2) [2024-12-27 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111523', 'tblTempUsageDetail_20' ) start [2024-12-27 03:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111523', 'tblTempUsageDetail_20' ) end [2024-12-27 03:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:44:20] Production.INFO: ==3458== Releasing lock... [2024-12-27 03:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:44:20] Production.INFO: 29 MB #Memory Used# [2024-12-27 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:45:05 [end_date_ymd] => 2024-12-27 03:45:05 [RateCDR] => 1 ) [2024-12-27 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:45:05' and `end` < '2024-12-27 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:45:17] Production.INFO: count ==202 [2024-12-27 03:45:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:45:05 - End Time 2024-12-27 03:45:05 [2024-12-27 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111528', 'tblTempUsageDetail_20' ) start [2024-12-27 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111528', 'tblTempUsageDetail_20' ) end [2024-12-27 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111528', 'tblTempVendorCDR_20' ) start [2024-12-27 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111528', 'tblTempVendorCDR_20' ) end [2024-12-27 03:45:17] Production.INFO: ProcessCDR(1,14111528,1,1,2) [2024-12-27 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111528', 'tblTempUsageDetail_20' ) start [2024-12-27 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111528', 'tblTempUsageDetail_20' ) end [2024-12-27 03:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:45:20] Production.INFO: ==3535== Releasing lock... [2024-12-27 03:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:45:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:46:05 [end_date_ymd] => 2024-12-27 03:46:05 [RateCDR] => 1 ) [2024-12-27 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-27 00:46:05' and `end` < '2024-12-27 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-27 03:46:17] Production.INFO: count ==202 [2024-12-27 03:46:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:46:05 - End Time 2024-12-27 03:46:05 [2024-12-27 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111533', 'tblTempUsageDetail_20' ) start [2024-12-27 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111533', 'tblTempUsageDetail_20' ) end [2024-12-27 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111533', 'tblTempVendorCDR_20' ) start [2024-12-27 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111533', 'tblTempVendorCDR_20' ) end [2024-12-27 03:46:17] Production.INFO: ProcessCDR(1,14111533,1,1,2) [2024-12-27 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111533', 'tblTempUsageDetail_20' ) start [2024-12-27 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111533', 'tblTempUsageDetail_20' ) end [2024-12-27 03:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:46:20] Production.INFO: ==3623== Releasing lock... [2024-12-27 03:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:46:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:47:05 [end_date_ymd] => 2024-12-27 03:47:05 [RateCDR] => 1 ) [2024-12-27 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:47:05' and `end` < '2024-12-27 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:47:18] Production.INFO: count ==202 [2024-12-27 03:47:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:47:05 - End Time 2024-12-27 03:47:05 [2024-12-27 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111538', 'tblTempUsageDetail_20' ) start [2024-12-27 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111538', 'tblTempUsageDetail_20' ) end [2024-12-27 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111538', 'tblTempVendorCDR_20' ) start [2024-12-27 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111538', 'tblTempVendorCDR_20' ) end [2024-12-27 03:47:18] Production.INFO: ProcessCDR(1,14111538,1,1,2) [2024-12-27 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111538', 'tblTempUsageDetail_20' ) start [2024-12-27 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111538', 'tblTempUsageDetail_20' ) end [2024-12-27 03:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:47:21] Production.INFO: ==3708== Releasing lock... [2024-12-27 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:47:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 03:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:48:04 [end_date_ymd] => 2024-12-27 03:48:04 [RateCDR] => 1 ) [2024-12-27 03: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-27 00:48:04' and `end` < '2024-12-27 03: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-27 03:48:17] Production.INFO: count ==199 [2024-12-27 03:48:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:48:04 - End Time 2024-12-27 03:48:04 [2024-12-27 03:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111543', 'tblTempUsageDetail_20' ) start [2024-12-27 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111543', 'tblTempUsageDetail_20' ) end [2024-12-27 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111543', 'tblTempVendorCDR_20' ) start [2024-12-27 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111543', 'tblTempVendorCDR_20' ) end [2024-12-27 03:48:17] Production.INFO: ProcessCDR(1,14111543,1,1,2) [2024-12-27 03:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111543', 'tblTempUsageDetail_20' ) start [2024-12-27 03:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111543', 'tblTempUsageDetail_20' ) end [2024-12-27 03:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:48:20] Production.INFO: ==3800== Releasing lock... [2024-12-27 03:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:48:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 03:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:49:04 [end_date_ymd] => 2024-12-27 03:49:04 [RateCDR] => 1 ) [2024-12-27 03:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:49:04' and `end` < '2024-12-27 03:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:49:18] Production.INFO: count ==199 [2024-12-27 03:49:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:49:04 - End Time 2024-12-27 03:49:04 [2024-12-27 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111548', 'tblTempUsageDetail_20' ) start [2024-12-27 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111548', 'tblTempUsageDetail_20' ) end [2024-12-27 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111548', 'tblTempVendorCDR_20' ) start [2024-12-27 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111548', 'tblTempVendorCDR_20' ) end [2024-12-27 03:49:18] Production.INFO: ProcessCDR(1,14111548,1,1,2) [2024-12-27 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111548', 'tblTempUsageDetail_20' ) start [2024-12-27 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111548', 'tblTempUsageDetail_20' ) end [2024-12-27 03:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:49:21] Production.INFO: ==3890== Releasing lock... [2024-12-27 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:49:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:50:06 [end_date_ymd] => 2024-12-27 03:50:06 [RateCDR] => 1 ) [2024-12-27 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:50:06' and `end` < '2024-12-27 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:50:18] Production.INFO: count ==188 [2024-12-27 03:50:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:50:06 - End Time 2024-12-27 03:50:06 [2024-12-27 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111554', 'tblTempUsageDetail_20' ) start [2024-12-27 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111554', 'tblTempUsageDetail_20' ) end [2024-12-27 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111554', 'tblTempVendorCDR_20' ) start [2024-12-27 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111554', 'tblTempVendorCDR_20' ) end [2024-12-27 03:50:18] Production.INFO: ProcessCDR(1,14111554,1,1,2) [2024-12-27 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111554', 'tblTempUsageDetail_20' ) start [2024-12-27 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111554', 'tblTempUsageDetail_20' ) end [2024-12-27 03:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:50:21] Production.INFO: ==3975== Releasing lock... [2024-12-27 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:50:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:51:05 [end_date_ymd] => 2024-12-27 03:51:05 [RateCDR] => 1 ) [2024-12-27 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:51:05' and `end` < '2024-12-27 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:51:18] Production.INFO: count ==184 [2024-12-27 03:51:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:51:05 - End Time 2024-12-27 03:51:05 [2024-12-27 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111559', 'tblTempUsageDetail_20' ) start [2024-12-27 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111559', 'tblTempUsageDetail_20' ) end [2024-12-27 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111559', 'tblTempVendorCDR_20' ) start [2024-12-27 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111559', 'tblTempVendorCDR_20' ) end [2024-12-27 03:51:18] Production.INFO: ProcessCDR(1,14111559,1,1,2) [2024-12-27 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111559', 'tblTempUsageDetail_20' ) start [2024-12-27 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111559', 'tblTempUsageDetail_20' ) end [2024-12-27 03:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:51:21] Production.INFO: ==4067== Releasing lock... [2024-12-27 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:51:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:52:05 [end_date_ymd] => 2024-12-27 03:52:05 [RateCDR] => 1 ) [2024-12-27 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:52:05' and `end` < '2024-12-27 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:52:17] Production.INFO: count ==184 [2024-12-27 03:52:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:52:05 - End Time 2024-12-27 03:52:05 [2024-12-27 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111564', 'tblTempUsageDetail_20' ) start [2024-12-27 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111564', 'tblTempUsageDetail_20' ) end [2024-12-27 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111564', 'tblTempVendorCDR_20' ) start [2024-12-27 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111564', 'tblTempVendorCDR_20' ) end [2024-12-27 03:52:17] Production.INFO: ProcessCDR(1,14111564,1,1,2) [2024-12-27 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111564', 'tblTempUsageDetail_20' ) start [2024-12-27 03:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111564', 'tblTempUsageDetail_20' ) end [2024-12-27 03:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:52:20] Production.INFO: ==4156== Releasing lock... [2024-12-27 03:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:52:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:53:05 [end_date_ymd] => 2024-12-27 03:53:05 [RateCDR] => 1 ) [2024-12-27 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:53:05' and `end` < '2024-12-27 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:53:17] Production.INFO: count ==184 [2024-12-27 03:53:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:53:05 - End Time 2024-12-27 03:53:05 [2024-12-27 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111569', 'tblTempUsageDetail_20' ) start [2024-12-27 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111569', 'tblTempUsageDetail_20' ) end [2024-12-27 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111569', 'tblTempVendorCDR_20' ) start [2024-12-27 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111569', 'tblTempVendorCDR_20' ) end [2024-12-27 03:53:17] Production.INFO: ProcessCDR(1,14111569,1,1,2) [2024-12-27 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111569', 'tblTempUsageDetail_20' ) start [2024-12-27 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111569', 'tblTempUsageDetail_20' ) end [2024-12-27 03:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:53:20] Production.INFO: ==4284== Releasing lock... [2024-12-27 03:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:53:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 03:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:54:04 [end_date_ymd] => 2024-12-27 03:54:04 [RateCDR] => 1 ) [2024-12-27 03:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:54:04' and `end` < '2024-12-27 03:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:54:16] Production.INFO: count ==184 [2024-12-27 03:54:16] Production.ERROR: pbx CDR StartTime 2024-12-27 00:54:04 - End Time 2024-12-27 03:54:04 [2024-12-27 03:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111574', 'tblTempUsageDetail_20' ) start [2024-12-27 03:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111574', 'tblTempUsageDetail_20' ) end [2024-12-27 03:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111574', 'tblTempVendorCDR_20' ) start [2024-12-27 03:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111574', 'tblTempVendorCDR_20' ) end [2024-12-27 03:54:16] Production.INFO: ProcessCDR(1,14111574,1,1,2) [2024-12-27 03:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:54:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:54:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111574', 'tblTempUsageDetail_20' ) start [2024-12-27 03:54:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111574', 'tblTempUsageDetail_20' ) end [2024-12-27 03:54:19] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:54:19] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:54:19] Production.INFO: ==4372== Releasing lock... [2024-12-27 03:54:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:54:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:55:05 [end_date_ymd] => 2024-12-27 03:55:05 [RateCDR] => 1 ) [2024-12-27 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-27 00:55:05' and `end` < '2024-12-27 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:55:18] Production.INFO: count ==184 [2024-12-27 03:55:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:55:05 - End Time 2024-12-27 03:55:05 [2024-12-27 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111579', 'tblTempUsageDetail_20' ) start [2024-12-27 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111579', 'tblTempUsageDetail_20' ) end [2024-12-27 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111579', 'tblTempVendorCDR_20' ) start [2024-12-27 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111579', 'tblTempVendorCDR_20' ) end [2024-12-27 03:55:18] Production.INFO: ProcessCDR(1,14111579,1,1,2) [2024-12-27 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111579', 'tblTempUsageDetail_20' ) start [2024-12-27 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111579', 'tblTempUsageDetail_20' ) end [2024-12-27 03:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:55:21] Production.INFO: ==4457== Releasing lock... [2024-12-27 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:55:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:56:05 [end_date_ymd] => 2024-12-27 03:56:05 [RateCDR] => 1 ) [2024-12-27 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-27 00:56:05' and `end` < '2024-12-27 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-27 03:56:17] Production.INFO: count ==184 [2024-12-27 03:56:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:56:05 - End Time 2024-12-27 03:56:05 [2024-12-27 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111584', 'tblTempUsageDetail_20' ) start [2024-12-27 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111584', 'tblTempUsageDetail_20' ) end [2024-12-27 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111584', 'tblTempVendorCDR_20' ) start [2024-12-27 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111584', 'tblTempVendorCDR_20' ) end [2024-12-27 03:56:17] Production.INFO: ProcessCDR(1,14111584,1,1,2) [2024-12-27 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111584', 'tblTempUsageDetail_20' ) start [2024-12-27 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111584', 'tblTempUsageDetail_20' ) end [2024-12-27 03:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:56:20] Production.INFO: ==4540== Releasing lock... [2024-12-27 03:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:56:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 03:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:57:04 [end_date_ymd] => 2024-12-27 03:57:04 [RateCDR] => 1 ) [2024-12-27 03: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-27 00:57:04' and `end` < '2024-12-27 03: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-27 03:57:16] Production.INFO: count ==184 [2024-12-27 03:57:16] Production.ERROR: pbx CDR StartTime 2024-12-27 00:57:04 - End Time 2024-12-27 03:57:04 [2024-12-27 03:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111589', 'tblTempUsageDetail_20' ) start [2024-12-27 03:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111589', 'tblTempUsageDetail_20' ) end [2024-12-27 03:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111589', 'tblTempVendorCDR_20' ) start [2024-12-27 03:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111589', 'tblTempVendorCDR_20' ) end [2024-12-27 03:57:16] Production.INFO: ProcessCDR(1,14111589,1,1,2) [2024-12-27 03:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:57:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111589', 'tblTempUsageDetail_20' ) start [2024-12-27 03:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111589', 'tblTempUsageDetail_20' ) end [2024-12-27 03:57:19] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:57:19] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:57:19] Production.INFO: ==4633== Releasing lock... [2024-12-27 03:57:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:57:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:58:05 [end_date_ymd] => 2024-12-27 03:58:05 [RateCDR] => 1 ) [2024-12-27 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 00:58:05' and `end` < '2024-12-27 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 03:58:18] Production.INFO: count ==181 [2024-12-27 03:58:18] Production.ERROR: pbx CDR StartTime 2024-12-27 00:58:05 - End Time 2024-12-27 03:58:05 [2024-12-27 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111593', 'tblTempUsageDetail_20' ) start [2024-12-27 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111593', 'tblTempUsageDetail_20' ) end [2024-12-27 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111593', 'tblTempVendorCDR_20' ) start [2024-12-27 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111593', 'tblTempVendorCDR_20' ) end [2024-12-27 03:58:18] Production.INFO: ProcessCDR(1,14111593,1,1,2) [2024-12-27 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111593', 'tblTempUsageDetail_20' ) start [2024-12-27 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111593', 'tblTempUsageDetail_20' ) end [2024-12-27 03:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:58:21] Production.INFO: ==4722== Releasing lock... [2024-12-27 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:58:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 03:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 00:59:04 [end_date_ymd] => 2024-12-27 03:59:04 [RateCDR] => 1 ) [2024-12-27 03: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-27 00:59:04' and `end` < '2024-12-27 03: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-27 03:59:17] Production.INFO: count ==181 [2024-12-27 03:59:17] Production.ERROR: pbx CDR StartTime 2024-12-27 00:59:04 - End Time 2024-12-27 03:59:04 [2024-12-27 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111599', 'tblTempUsageDetail_20' ) start [2024-12-27 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111599', 'tblTempUsageDetail_20' ) end [2024-12-27 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111599', 'tblTempVendorCDR_20' ) start [2024-12-27 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111599', 'tblTempVendorCDR_20' ) end [2024-12-27 03:59:17] Production.INFO: ProcessCDR(1,14111599,1,1,2) [2024-12-27 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111599', 'tblTempUsageDetail_20' ) start [2024-12-27 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111599', 'tblTempUsageDetail_20' ) end [2024-12-27 03:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 03:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 03:59:20] Production.INFO: ==4801== Releasing lock... [2024-12-27 03:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 03:59:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 04:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:00:05 [end_date_ymd] => 2024-12-27 04:00:05 [RateCDR] => 1 ) [2024-12-27 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-27 01:00:05' and `end` < '2024-12-27 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-27 04:00:18] Production.INFO: count ==177 [2024-12-27 04:00:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:00:05 - End Time 2024-12-27 04:00:05 [2024-12-27 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111606', 'tblTempUsageDetail_20' ) start [2024-12-27 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111606', 'tblTempUsageDetail_20' ) end [2024-12-27 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111606', 'tblTempVendorCDR_20' ) start [2024-12-27 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111606', 'tblTempVendorCDR_20' ) end [2024-12-27 04:00:18] Production.INFO: ProcessCDR(1,14111606,1,1,2) [2024-12-27 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111606', 'tblTempUsageDetail_20' ) start [2024-12-27 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111606', 'tblTempUsageDetail_20' ) end [2024-12-27 04:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:00:21] Production.INFO: ==4894== Releasing lock... [2024-12-27 04:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:00:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:01:05 [end_date_ymd] => 2024-12-27 04:01:05 [RateCDR] => 1 ) [2024-12-27 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:01:05' and `end` < '2024-12-27 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:01:18] Production.INFO: count ==175 [2024-12-27 04:01:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:01:05 - End Time 2024-12-27 04:01:05 [2024-12-27 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111611', 'tblTempUsageDetail_20' ) start [2024-12-27 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111611', 'tblTempUsageDetail_20' ) end [2024-12-27 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111611', 'tblTempVendorCDR_20' ) start [2024-12-27 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111611', 'tblTempVendorCDR_20' ) end [2024-12-27 04:01:18] Production.INFO: ProcessCDR(1,14111611,1,1,2) [2024-12-27 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111611', 'tblTempUsageDetail_20' ) start [2024-12-27 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111611', 'tblTempUsageDetail_20' ) end [2024-12-27 04:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:01:21] Production.INFO: ==5014== Releasing lock... [2024-12-27 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:01:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:02:05 [end_date_ymd] => 2024-12-27 04:02:05 [RateCDR] => 1 ) [2024-12-27 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:02:05' and `end` < '2024-12-27 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:02:17] Production.INFO: count ==175 [2024-12-27 04:02:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:02:05 - End Time 2024-12-27 04:02:05 [2024-12-27 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111616', 'tblTempUsageDetail_20' ) start [2024-12-27 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111616', 'tblTempUsageDetail_20' ) end [2024-12-27 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111616', 'tblTempVendorCDR_20' ) start [2024-12-27 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111616', 'tblTempVendorCDR_20' ) end [2024-12-27 04:02:17] Production.INFO: ProcessCDR(1,14111616,1,1,2) [2024-12-27 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111616', 'tblTempUsageDetail_20' ) start [2024-12-27 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111616', 'tblTempUsageDetail_20' ) end [2024-12-27 04:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:02:20] Production.INFO: ==5100== Releasing lock... [2024-12-27 04:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:02:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:03:05 [end_date_ymd] => 2024-12-27 04:03:05 [RateCDR] => 1 ) [2024-12-27 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:03:05' and `end` < '2024-12-27 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:03:17] Production.INFO: count ==173 [2024-12-27 04:03:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:03:05 - End Time 2024-12-27 04:03:05 [2024-12-27 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111621', 'tblTempUsageDetail_20' ) start [2024-12-27 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111621', 'tblTempUsageDetail_20' ) end [2024-12-27 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111621', 'tblTempVendorCDR_20' ) start [2024-12-27 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111621', 'tblTempVendorCDR_20' ) end [2024-12-27 04:03:17] Production.INFO: ProcessCDR(1,14111621,1,1,2) [2024-12-27 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111621', 'tblTempUsageDetail_20' ) start [2024-12-27 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111621', 'tblTempUsageDetail_20' ) end [2024-12-27 04:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:03:21] Production.INFO: ==5191== Releasing lock... [2024-12-27 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:03:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-27 04:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:04:04 [end_date_ymd] => 2024-12-27 04:04:04 [RateCDR] => 1 ) [2024-12-27 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-27 01:04:04' and `end` < '2024-12-27 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-27 04:04:18] Production.INFO: count ==173 [2024-12-27 04:04:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:04:04 - End Time 2024-12-27 04:04:04 [2024-12-27 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111626', 'tblTempUsageDetail_20' ) start [2024-12-27 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111626', 'tblTempUsageDetail_20' ) end [2024-12-27 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111626', 'tblTempVendorCDR_20' ) start [2024-12-27 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111626', 'tblTempVendorCDR_20' ) end [2024-12-27 04:04:18] Production.INFO: ProcessCDR(1,14111626,1,1,2) [2024-12-27 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111626', 'tblTempUsageDetail_20' ) start [2024-12-27 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111626', 'tblTempUsageDetail_20' ) end [2024-12-27 04:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:04:21] Production.INFO: ==5276== Releasing lock... [2024-12-27 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:04:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:05:05 [end_date_ymd] => 2024-12-27 04:05:05 [RateCDR] => 1 ) [2024-12-27 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:05:05' and `end` < '2024-12-27 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:05:17] Production.INFO: count ==172 [2024-12-27 04:05:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:05:05 - End Time 2024-12-27 04:05:05 [2024-12-27 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111631', 'tblTempUsageDetail_20' ) start [2024-12-27 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111631', 'tblTempUsageDetail_20' ) end [2024-12-27 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111631', 'tblTempVendorCDR_20' ) start [2024-12-27 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111631', 'tblTempVendorCDR_20' ) end [2024-12-27 04:05:17] Production.INFO: ProcessCDR(1,14111631,1,1,2) [2024-12-27 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111631', 'tblTempUsageDetail_20' ) start [2024-12-27 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111631', 'tblTempUsageDetail_20' ) end [2024-12-27 04:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:05:20] Production.INFO: ==5364== Releasing lock... [2024-12-27 04:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:05:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-27 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:06:05 [end_date_ymd] => 2024-12-27 04:06:05 [RateCDR] => 1 ) [2024-12-27 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:06:05' and `end` < '2024-12-27 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:06:18] Production.INFO: count ==172 [2024-12-27 04:06:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:06:05 - End Time 2024-12-27 04:06:05 [2024-12-27 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111636', 'tblTempUsageDetail_20' ) start [2024-12-27 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111636', 'tblTempUsageDetail_20' ) end [2024-12-27 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111636', 'tblTempVendorCDR_20' ) start [2024-12-27 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111636', 'tblTempVendorCDR_20' ) end [2024-12-27 04:06:18] Production.INFO: ProcessCDR(1,14111636,1,1,2) [2024-12-27 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111636', 'tblTempUsageDetail_20' ) start [2024-12-27 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111636', 'tblTempUsageDetail_20' ) end [2024-12-27 04:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:06:21] Production.INFO: ==5452== Releasing lock... [2024-12-27 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:06:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-27 04:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:07:04 [end_date_ymd] => 2024-12-27 04:07:04 [RateCDR] => 1 ) [2024-12-27 04: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-27 01:07:04' and `end` < '2024-12-27 04: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-27 04:07:17] Production.INFO: count ==172 [2024-12-27 04:07:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:07:04 - End Time 2024-12-27 04:07:04 [2024-12-27 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111641', 'tblTempUsageDetail_20' ) start [2024-12-27 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111641', 'tblTempUsageDetail_20' ) end [2024-12-27 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111641', 'tblTempVendorCDR_20' ) start [2024-12-27 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111641', 'tblTempVendorCDR_20' ) end [2024-12-27 04:07:17] Production.INFO: ProcessCDR(1,14111641,1,1,2) [2024-12-27 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111641', 'tblTempUsageDetail_20' ) start [2024-12-27 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111641', 'tblTempUsageDetail_20' ) end [2024-12-27 04:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:07:20] Production.INFO: ==5533== Releasing lock... [2024-12-27 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:07:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-27 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:08:05 [end_date_ymd] => 2024-12-27 04:08:05 [RateCDR] => 1 ) [2024-12-27 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:08:05' and `end` < '2024-12-27 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:08:17] Production.INFO: count ==172 [2024-12-27 04:08:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:08:05 - End Time 2024-12-27 04:08:05 [2024-12-27 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111646', 'tblTempUsageDetail_20' ) start [2024-12-27 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111646', 'tblTempUsageDetail_20' ) end [2024-12-27 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111646', 'tblTempVendorCDR_20' ) start [2024-12-27 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111646', 'tblTempVendorCDR_20' ) end [2024-12-27 04:08:17] Production.INFO: ProcessCDR(1,14111646,1,1,2) [2024-12-27 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111646', 'tblTempUsageDetail_20' ) start [2024-12-27 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111646', 'tblTempUsageDetail_20' ) end [2024-12-27 04:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:08:20] Production.INFO: ==5630== Releasing lock... [2024-12-27 04:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:08:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-27 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:09:04 [end_date_ymd] => 2024-12-27 04:09:04 [RateCDR] => 1 ) [2024-12-27 04:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:09:04' and `end` < '2024-12-27 04:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:09:17] Production.INFO: count ==172 [2024-12-27 04:09:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:09:04 - End Time 2024-12-27 04:09:04 [2024-12-27 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111651', 'tblTempUsageDetail_20' ) start [2024-12-27 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111651', 'tblTempUsageDetail_20' ) end [2024-12-27 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111651', 'tblTempVendorCDR_20' ) start [2024-12-27 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111651', 'tblTempVendorCDR_20' ) end [2024-12-27 04:09:17] Production.INFO: ProcessCDR(1,14111651,1,1,2) [2024-12-27 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111651', 'tblTempUsageDetail_20' ) start [2024-12-27 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111651', 'tblTempUsageDetail_20' ) end [2024-12-27 04:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:09:20] Production.INFO: ==5754== Releasing lock... [2024-12-27 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:09:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-27 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:10:06 [end_date_ymd] => 2024-12-27 04:10:06 [RateCDR] => 1 ) [2024-12-27 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:10:06' and `end` < '2024-12-27 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:10:19] Production.INFO: count ==164 [2024-12-27 04:10:19] Production.ERROR: pbx CDR StartTime 2024-12-27 01:10:06 - End Time 2024-12-27 04:10:06 [2024-12-27 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111657', 'tblTempUsageDetail_20' ) start [2024-12-27 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111657', 'tblTempUsageDetail_20' ) end [2024-12-27 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111657', 'tblTempVendorCDR_20' ) start [2024-12-27 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111657', 'tblTempVendorCDR_20' ) end [2024-12-27 04:10:19] Production.INFO: ProcessCDR(1,14111657,1,1,2) [2024-12-27 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111657', 'tblTempUsageDetail_20' ) start [2024-12-27 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111657', 'tblTempUsageDetail_20' ) end [2024-12-27 04:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:10:22] Production.INFO: ==5845== Releasing lock... [2024-12-27 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:10:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-27 04:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:11:04 [end_date_ymd] => 2024-12-27 04:11:04 [RateCDR] => 1 ) [2024-12-27 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-27 01:11:04' and `end` < '2024-12-27 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-27 04:11:17] Production.INFO: count ==139 [2024-12-27 04:11:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:11:04 - End Time 2024-12-27 04:11:04 [2024-12-27 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111662', 'tblTempUsageDetail_20' ) start [2024-12-27 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111662', 'tblTempUsageDetail_20' ) end [2024-12-27 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111662', 'tblTempVendorCDR_20' ) start [2024-12-27 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111662', 'tblTempVendorCDR_20' ) end [2024-12-27 04:11:17] Production.INFO: ProcessCDR(1,14111662,1,1,2) [2024-12-27 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111662', 'tblTempUsageDetail_20' ) start [2024-12-27 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111662', 'tblTempUsageDetail_20' ) end [2024-12-27 04:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:11:20] Production.INFO: ==5931== Releasing lock... [2024-12-27 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:11:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-27 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:12:05 [end_date_ymd] => 2024-12-27 04:12:05 [RateCDR] => 1 ) [2024-12-27 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:12:05' and `end` < '2024-12-27 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:12:18] Production.INFO: count ==127 [2024-12-27 04:12:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:12:05 - End Time 2024-12-27 04:12:05 [2024-12-27 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111667', 'tblTempUsageDetail_20' ) start [2024-12-27 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111667', 'tblTempUsageDetail_20' ) end [2024-12-27 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111667', 'tblTempVendorCDR_20' ) start [2024-12-27 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111667', 'tblTempVendorCDR_20' ) end [2024-12-27 04:12:18] Production.INFO: ProcessCDR(1,14111667,1,1,2) [2024-12-27 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111667', 'tblTempUsageDetail_20' ) start [2024-12-27 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111667', 'tblTempUsageDetail_20' ) end [2024-12-27 04:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:12:21] Production.INFO: ==6017== Releasing lock... [2024-12-27 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:12:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-27 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:13:05 [end_date_ymd] => 2024-12-27 04:13:05 [RateCDR] => 1 ) [2024-12-27 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:13:05' and `end` < '2024-12-27 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:13:17] Production.INFO: count ==127 [2024-12-27 04:13:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:13:05 - End Time 2024-12-27 04:13:05 [2024-12-27 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111672', 'tblTempUsageDetail_20' ) start [2024-12-27 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111672', 'tblTempUsageDetail_20' ) end [2024-12-27 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111672', 'tblTempVendorCDR_20' ) start [2024-12-27 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111672', 'tblTempVendorCDR_20' ) end [2024-12-27 04:13:17] Production.INFO: ProcessCDR(1,14111672,1,1,2) [2024-12-27 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111672', 'tblTempUsageDetail_20' ) start [2024-12-27 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111672', 'tblTempUsageDetail_20' ) end [2024-12-27 04:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:13:20] Production.INFO: ==6099== Releasing lock... [2024-12-27 04:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:13:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-27 04:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:14:04 [end_date_ymd] => 2024-12-27 04:14:04 [RateCDR] => 1 ) [2024-12-27 04: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-27 01:14:04' and `end` < '2024-12-27 04: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-27 04:14:16] Production.INFO: count ==125 [2024-12-27 04:14:16] Production.ERROR: pbx CDR StartTime 2024-12-27 01:14:04 - End Time 2024-12-27 04:14:04 [2024-12-27 04:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111677', 'tblTempUsageDetail_20' ) start [2024-12-27 04:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111677', 'tblTempUsageDetail_20' ) end [2024-12-27 04:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111677', 'tblTempVendorCDR_20' ) start [2024-12-27 04:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111677', 'tblTempVendorCDR_20' ) end [2024-12-27 04:14:16] Production.INFO: ProcessCDR(1,14111677,1,1,2) [2024-12-27 04:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:14:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:14:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:14:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:14:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111677', 'tblTempUsageDetail_20' ) start [2024-12-27 04:14:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111677', 'tblTempUsageDetail_20' ) end [2024-12-27 04:14:19] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:14:19] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:14:19] Production.INFO: ==6185== Releasing lock... [2024-12-27 04:14:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:14:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-27 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:15:05 [end_date_ymd] => 2024-12-27 04:15:05 [RateCDR] => 1 ) [2024-12-27 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:15:05' and `end` < '2024-12-27 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:15:17] Production.INFO: count ==125 [2024-12-27 04:15:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:15:05 - End Time 2024-12-27 04:15:05 [2024-12-27 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111682', 'tblTempUsageDetail_20' ) start [2024-12-27 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111682', 'tblTempUsageDetail_20' ) end [2024-12-27 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111682', 'tblTempVendorCDR_20' ) start [2024-12-27 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111682', 'tblTempVendorCDR_20' ) end [2024-12-27 04:15:17] Production.INFO: ProcessCDR(1,14111682,1,1,2) [2024-12-27 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111682', 'tblTempUsageDetail_20' ) start [2024-12-27 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111682', 'tblTempUsageDetail_20' ) end [2024-12-27 04:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:15:21] Production.INFO: ==6267== Releasing lock... [2024-12-27 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:15:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-27 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:16:05 [end_date_ymd] => 2024-12-27 04:16:05 [RateCDR] => 1 ) [2024-12-27 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:16:05' and `end` < '2024-12-27 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:16:17] Production.INFO: count ==124 [2024-12-27 04:16:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:16:05 - End Time 2024-12-27 04:16:05 [2024-12-27 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111687', 'tblTempUsageDetail_20' ) start [2024-12-27 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111687', 'tblTempUsageDetail_20' ) end [2024-12-27 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111687', 'tblTempVendorCDR_20' ) start [2024-12-27 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111687', 'tblTempVendorCDR_20' ) end [2024-12-27 04:16:17] Production.INFO: ProcessCDR(1,14111687,1,1,2) [2024-12-27 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111687', 'tblTempUsageDetail_20' ) start [2024-12-27 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111687', 'tblTempUsageDetail_20' ) end [2024-12-27 04:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:16:20] Production.INFO: ==6352== Releasing lock... [2024-12-27 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:16:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-27 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:17:05 [end_date_ymd] => 2024-12-27 04:17:05 [RateCDR] => 1 ) [2024-12-27 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:17:05' and `end` < '2024-12-27 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:17:18] Production.INFO: count ==115 [2024-12-27 04:17:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:17:05 - End Time 2024-12-27 04:17:05 [2024-12-27 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111692', 'tblTempUsageDetail_20' ) start [2024-12-27 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111692', 'tblTempUsageDetail_20' ) end [2024-12-27 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111692', 'tblTempVendorCDR_20' ) start [2024-12-27 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111692', 'tblTempVendorCDR_20' ) end [2024-12-27 04:17:18] Production.INFO: ProcessCDR(1,14111692,1,1,2) [2024-12-27 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111692', 'tblTempUsageDetail_20' ) start [2024-12-27 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111692', 'tblTempUsageDetail_20' ) end [2024-12-27 04:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:17:21] Production.INFO: ==6446== Releasing lock... [2024-12-27 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:17:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-27 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:18:05 [end_date_ymd] => 2024-12-27 04:18:05 [RateCDR] => 1 ) [2024-12-27 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:18:05' and `end` < '2024-12-27 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:18:17] Production.INFO: count ==114 [2024-12-27 04:18:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:18:05 - End Time 2024-12-27 04:18:05 [2024-12-27 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111697', 'tblTempUsageDetail_20' ) start [2024-12-27 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111697', 'tblTempUsageDetail_20' ) end [2024-12-27 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111697', 'tblTempVendorCDR_20' ) start [2024-12-27 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111697', 'tblTempVendorCDR_20' ) end [2024-12-27 04:18:17] Production.INFO: ProcessCDR(1,14111697,1,1,2) [2024-12-27 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111697', 'tblTempUsageDetail_20' ) start [2024-12-27 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111697', 'tblTempUsageDetail_20' ) end [2024-12-27 04:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:18:20] Production.INFO: ==6528== Releasing lock... [2024-12-27 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:18:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-27 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:19:05 [end_date_ymd] => 2024-12-27 04:19:05 [RateCDR] => 1 ) [2024-12-27 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:19:05' and `end` < '2024-12-27 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:19:18] Production.INFO: count ==114 [2024-12-27 04:19:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:19:05 - End Time 2024-12-27 04:19:05 [2024-12-27 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111702', 'tblTempUsageDetail_20' ) start [2024-12-27 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111702', 'tblTempUsageDetail_20' ) end [2024-12-27 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111702', 'tblTempVendorCDR_20' ) start [2024-12-27 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111702', 'tblTempVendorCDR_20' ) end [2024-12-27 04:19:18] Production.INFO: ProcessCDR(1,14111702,1,1,2) [2024-12-27 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111702', 'tblTempUsageDetail_20' ) start [2024-12-27 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111702', 'tblTempUsageDetail_20' ) end [2024-12-27 04:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:19:21] Production.INFO: ==6616== Releasing lock... [2024-12-27 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:19:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-27 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:20:05 [end_date_ymd] => 2024-12-27 04:20:05 [RateCDR] => 1 ) [2024-12-27 04:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:20:05' and `end` < '2024-12-27 04:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:20:18] Production.INFO: count ==107 [2024-12-27 04:20:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:20:05 - End Time 2024-12-27 04:20:05 [2024-12-27 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111708', 'tblTempUsageDetail_20' ) start [2024-12-27 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111708', 'tblTempUsageDetail_20' ) end [2024-12-27 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111708', 'tblTempVendorCDR_20' ) start [2024-12-27 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111708', 'tblTempVendorCDR_20' ) end [2024-12-27 04:20:18] Production.INFO: ProcessCDR(1,14111708,1,1,2) [2024-12-27 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111708', 'tblTempUsageDetail_20' ) start [2024-12-27 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111708', 'tblTempUsageDetail_20' ) end [2024-12-27 04:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:20:21] Production.INFO: ==6695== Releasing lock... [2024-12-27 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:20:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-27 04:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:21:04 [end_date_ymd] => 2024-12-27 04:21:04 [RateCDR] => 1 ) [2024-12-27 04: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-27 01:21:04' and `end` < '2024-12-27 04: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-27 04:21:17] Production.INFO: count ==79 [2024-12-27 04:21:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:21:04 - End Time 2024-12-27 04:21:04 [2024-12-27 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111713', 'tblTempUsageDetail_20' ) start [2024-12-27 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111713', 'tblTempUsageDetail_20' ) end [2024-12-27 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111713', 'tblTempVendorCDR_20' ) start [2024-12-27 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111713', 'tblTempVendorCDR_20' ) end [2024-12-27 04:21:17] Production.INFO: ProcessCDR(1,14111713,1,1,2) [2024-12-27 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111713', 'tblTempUsageDetail_20' ) start [2024-12-27 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111713', 'tblTempUsageDetail_20' ) end [2024-12-27 04:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:21:20] Production.INFO: ==6786== Releasing lock... [2024-12-27 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:21:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:22:05 [end_date_ymd] => 2024-12-27 04:22:05 [RateCDR] => 1 ) [2024-12-27 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:22:05' and `end` < '2024-12-27 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:22:18] Production.INFO: count ==79 [2024-12-27 04:22:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:22:05 - End Time 2024-12-27 04:22:05 [2024-12-27 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111718', 'tblTempUsageDetail_20' ) start [2024-12-27 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111718', 'tblTempUsageDetail_20' ) end [2024-12-27 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111718', 'tblTempVendorCDR_20' ) start [2024-12-27 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111718', 'tblTempVendorCDR_20' ) end [2024-12-27 04:22:18] Production.INFO: ProcessCDR(1,14111718,1,1,2) [2024-12-27 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111718', 'tblTempUsageDetail_20' ) start [2024-12-27 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111718', 'tblTempUsageDetail_20' ) end [2024-12-27 04:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:22:21] Production.INFO: ==6869== Releasing lock... [2024-12-27 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:22:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:23:04 [end_date_ymd] => 2024-12-27 04:23:04 [RateCDR] => 1 ) [2024-12-27 04: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-27 01:23:04' and `end` < '2024-12-27 04: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-27 04:23:17] Production.INFO: count ==79 [2024-12-27 04:23:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:23:04 - End Time 2024-12-27 04:23:04 [2024-12-27 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111723', 'tblTempUsageDetail_20' ) start [2024-12-27 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111723', 'tblTempUsageDetail_20' ) end [2024-12-27 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111723', 'tblTempVendorCDR_20' ) start [2024-12-27 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111723', 'tblTempVendorCDR_20' ) end [2024-12-27 04:23:17] Production.INFO: ProcessCDR(1,14111723,1,1,2) [2024-12-27 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111723', 'tblTempUsageDetail_20' ) start [2024-12-27 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111723', 'tblTempUsageDetail_20' ) end [2024-12-27 04:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:23:20] Production.INFO: ==6954== Releasing lock... [2024-12-27 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:23:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:24:05 [end_date_ymd] => 2024-12-27 04:24:05 [RateCDR] => 1 ) [2024-12-27 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:24:05' and `end` < '2024-12-27 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:24:17] Production.INFO: count ==79 [2024-12-27 04:24:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:24:05 - End Time 2024-12-27 04:24:05 [2024-12-27 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111728', 'tblTempUsageDetail_20' ) start [2024-12-27 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111728', 'tblTempUsageDetail_20' ) end [2024-12-27 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111728', 'tblTempVendorCDR_20' ) start [2024-12-27 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111728', 'tblTempVendorCDR_20' ) end [2024-12-27 04:24:17] Production.INFO: ProcessCDR(1,14111728,1,1,2) [2024-12-27 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111728', 'tblTempUsageDetail_20' ) start [2024-12-27 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111728', 'tblTempUsageDetail_20' ) end [2024-12-27 04:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:24:20] Production.INFO: ==7041== Releasing lock... [2024-12-27 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:24:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:25:04 [end_date_ymd] => 2024-12-27 04:25:04 [RateCDR] => 1 ) [2024-12-27 04: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-27 01:25:04' and `end` < '2024-12-27 04: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-27 04:25:17] Production.INFO: count ==79 [2024-12-27 04:25:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:25:04 - End Time 2024-12-27 04:25:04 [2024-12-27 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111733', 'tblTempUsageDetail_20' ) start [2024-12-27 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111733', 'tblTempUsageDetail_20' ) end [2024-12-27 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111733', 'tblTempVendorCDR_20' ) start [2024-12-27 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111733', 'tblTempVendorCDR_20' ) end [2024-12-27 04:25:17] Production.INFO: ProcessCDR(1,14111733,1,1,2) [2024-12-27 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111733', 'tblTempUsageDetail_20' ) start [2024-12-27 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111733', 'tblTempUsageDetail_20' ) end [2024-12-27 04:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:25:20] Production.INFO: ==7165== Releasing lock... [2024-12-27 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:25:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:26:05 [end_date_ymd] => 2024-12-27 04:26:05 [RateCDR] => 1 ) [2024-12-27 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:26:05' and `end` < '2024-12-27 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:26:17] Production.INFO: count ==79 [2024-12-27 04:26:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:26:05 - End Time 2024-12-27 04:26:05 [2024-12-27 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111738', 'tblTempUsageDetail_20' ) start [2024-12-27 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111738', 'tblTempUsageDetail_20' ) end [2024-12-27 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111738', 'tblTempVendorCDR_20' ) start [2024-12-27 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111738', 'tblTempVendorCDR_20' ) end [2024-12-27 04:26:17] Production.INFO: ProcessCDR(1,14111738,1,1,2) [2024-12-27 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111738', 'tblTempUsageDetail_20' ) start [2024-12-27 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111738', 'tblTempUsageDetail_20' ) end [2024-12-27 04:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:26:20] Production.INFO: ==7252== Releasing lock... [2024-12-27 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:26:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:27:05 [end_date_ymd] => 2024-12-27 04:27:05 [RateCDR] => 1 ) [2024-12-27 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:27:05' and `end` < '2024-12-27 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:27:17] Production.INFO: count ==79 [2024-12-27 04:27:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:27:05 - End Time 2024-12-27 04:27:05 [2024-12-27 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111743', 'tblTempUsageDetail_20' ) start [2024-12-27 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111743', 'tblTempUsageDetail_20' ) end [2024-12-27 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111743', 'tblTempVendorCDR_20' ) start [2024-12-27 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111743', 'tblTempVendorCDR_20' ) end [2024-12-27 04:27:17] Production.INFO: ProcessCDR(1,14111743,1,1,2) [2024-12-27 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111743', 'tblTempUsageDetail_20' ) start [2024-12-27 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111743', 'tblTempUsageDetail_20' ) end [2024-12-27 04:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:27:20] Production.INFO: ==7335== Releasing lock... [2024-12-27 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:27:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:28:04 [end_date_ymd] => 2024-12-27 04:28:04 [RateCDR] => 1 ) [2024-12-27 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-27 01:28:04' and `end` < '2024-12-27 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-27 04:28:17] Production.INFO: count ==79 [2024-12-27 04:28:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:28:04 - End Time 2024-12-27 04:28:04 [2024-12-27 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111748', 'tblTempUsageDetail_20' ) start [2024-12-27 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111748', 'tblTempUsageDetail_20' ) end [2024-12-27 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111748', 'tblTempVendorCDR_20' ) start [2024-12-27 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111748', 'tblTempVendorCDR_20' ) end [2024-12-27 04:28:17] Production.INFO: ProcessCDR(1,14111748,1,1,2) [2024-12-27 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111748', 'tblTempUsageDetail_20' ) start [2024-12-27 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111748', 'tblTempUsageDetail_20' ) end [2024-12-27 04:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:28:20] Production.INFO: ==7416== Releasing lock... [2024-12-27 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:28:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:29:04 [end_date_ymd] => 2024-12-27 04:29:04 [RateCDR] => 1 ) [2024-12-27 04: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-27 01:29:04' and `end` < '2024-12-27 04: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-27 04:29:17] Production.INFO: count ==78 [2024-12-27 04:29:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:29:04 - End Time 2024-12-27 04:29:04 [2024-12-27 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111753', 'tblTempUsageDetail_20' ) start [2024-12-27 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111753', 'tblTempUsageDetail_20' ) end [2024-12-27 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111753', 'tblTempVendorCDR_20' ) start [2024-12-27 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111753', 'tblTempVendorCDR_20' ) end [2024-12-27 04:29:17] Production.INFO: ProcessCDR(1,14111753,1,1,2) [2024-12-27 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111753', 'tblTempUsageDetail_20' ) start [2024-12-27 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111753', 'tblTempUsageDetail_20' ) end [2024-12-27 04:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:29:20] Production.INFO: ==7495== Releasing lock... [2024-12-27 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:29:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:30:06 [end_date_ymd] => 2024-12-27 04:30:06 [RateCDR] => 1 ) [2024-12-27 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:30:06' and `end` < '2024-12-27 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:30:18] Production.INFO: count ==72 [2024-12-27 04:30:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:30:06 - End Time 2024-12-27 04:30:06 [2024-12-27 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111759', 'tblTempUsageDetail_20' ) start [2024-12-27 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111759', 'tblTempUsageDetail_20' ) end [2024-12-27 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111759', 'tblTempVendorCDR_20' ) start [2024-12-27 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111759', 'tblTempVendorCDR_20' ) end [2024-12-27 04:30:18] Production.INFO: ProcessCDR(1,14111759,1,1,2) [2024-12-27 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111759', 'tblTempUsageDetail_20' ) start [2024-12-27 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111759', 'tblTempUsageDetail_20' ) end [2024-12-27 04:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:30:22] Production.INFO: ==7584== Releasing lock... [2024-12-27 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:30:22] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:31:05 [end_date_ymd] => 2024-12-27 04:31:05 [RateCDR] => 1 ) [2024-12-27 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:31:05' and `end` < '2024-12-27 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:31:18] Production.INFO: count ==67 [2024-12-27 04:31:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:31:05 - End Time 2024-12-27 04:31:05 [2024-12-27 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111765', 'tblTempUsageDetail_20' ) start [2024-12-27 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111765', 'tblTempUsageDetail_20' ) end [2024-12-27 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111765', 'tblTempVendorCDR_20' ) start [2024-12-27 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111765', 'tblTempVendorCDR_20' ) end [2024-12-27 04:31:18] Production.INFO: ProcessCDR(1,14111765,1,1,2) [2024-12-27 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111765', 'tblTempUsageDetail_20' ) start [2024-12-27 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111765', 'tblTempUsageDetail_20' ) end [2024-12-27 04:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:31:21] Production.INFO: ==7748== Releasing lock... [2024-12-27 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:31:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:32:05 [end_date_ymd] => 2024-12-27 04:32:05 [RateCDR] => 1 ) [2024-12-27 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:32:05' and `end` < '2024-12-27 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:32:18] Production.INFO: count ==67 [2024-12-27 04:32:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:32:05 - End Time 2024-12-27 04:32:05 [2024-12-27 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111770', 'tblTempUsageDetail_20' ) start [2024-12-27 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111770', 'tblTempUsageDetail_20' ) end [2024-12-27 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111770', 'tblTempVendorCDR_20' ) start [2024-12-27 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111770', 'tblTempVendorCDR_20' ) end [2024-12-27 04:32:18] Production.INFO: ProcessCDR(1,14111770,1,1,2) [2024-12-27 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111770', 'tblTempUsageDetail_20' ) start [2024-12-27 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111770', 'tblTempUsageDetail_20' ) end [2024-12-27 04:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:32:20] Production.INFO: ==7836== Releasing lock... [2024-12-27 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:32:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:33:04 [end_date_ymd] => 2024-12-27 04:33:04 [RateCDR] => 1 ) [2024-12-27 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-27 01:33:04' and `end` < '2024-12-27 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-27 04:33:17] Production.INFO: count ==67 [2024-12-27 04:33:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:33:04 - End Time 2024-12-27 04:33:04 [2024-12-27 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111775', 'tblTempUsageDetail_20' ) start [2024-12-27 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111775', 'tblTempUsageDetail_20' ) end [2024-12-27 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111775', 'tblTempVendorCDR_20' ) start [2024-12-27 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111775', 'tblTempVendorCDR_20' ) end [2024-12-27 04:33:17] Production.INFO: ProcessCDR(1,14111775,1,1,2) [2024-12-27 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111775', 'tblTempUsageDetail_20' ) start [2024-12-27 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111775', 'tblTempUsageDetail_20' ) end [2024-12-27 04:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:33:20] Production.INFO: ==7914== Releasing lock... [2024-12-27 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:33:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:34:05 [end_date_ymd] => 2024-12-27 04:34:05 [RateCDR] => 1 ) [2024-12-27 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:34:05' and `end` < '2024-12-27 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:34:18] Production.INFO: count ==67 [2024-12-27 04:34:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:34:05 - End Time 2024-12-27 04:34:05 [2024-12-27 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111780', 'tblTempUsageDetail_20' ) start [2024-12-27 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111780', 'tblTempUsageDetail_20' ) end [2024-12-27 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111780', 'tblTempVendorCDR_20' ) start [2024-12-27 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111780', 'tblTempVendorCDR_20' ) end [2024-12-27 04:34:18] Production.INFO: ProcessCDR(1,14111780,1,1,2) [2024-12-27 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111780', 'tblTempUsageDetail_20' ) start [2024-12-27 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111780', 'tblTempUsageDetail_20' ) end [2024-12-27 04:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:34:21] Production.INFO: ==8000== Releasing lock... [2024-12-27 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:34:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:35:04 [end_date_ymd] => 2024-12-27 04:35:04 [RateCDR] => 1 ) [2024-12-27 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-27 01:35:04' and `end` < '2024-12-27 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-27 04:35:17] Production.INFO: count ==66 [2024-12-27 04:35:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:35:04 - End Time 2024-12-27 04:35:04 [2024-12-27 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111785', 'tblTempUsageDetail_20' ) start [2024-12-27 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111785', 'tblTempUsageDetail_20' ) end [2024-12-27 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111785', 'tblTempVendorCDR_20' ) start [2024-12-27 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111785', 'tblTempVendorCDR_20' ) end [2024-12-27 04:35:17] Production.INFO: ProcessCDR(1,14111785,1,1,2) [2024-12-27 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111785', 'tblTempUsageDetail_20' ) start [2024-12-27 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111785', 'tblTempUsageDetail_20' ) end [2024-12-27 04:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:35:20] Production.INFO: ==8083== Releasing lock... [2024-12-27 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:35:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:36:04 [end_date_ymd] => 2024-12-27 04:36:04 [RateCDR] => 1 ) [2024-12-27 04: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-27 01:36:04' and `end` < '2024-12-27 04: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-27 04:36:18] Production.INFO: count ==65 [2024-12-27 04:36:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:36:04 - End Time 2024-12-27 04:36:04 [2024-12-27 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111790', 'tblTempUsageDetail_20' ) start [2024-12-27 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111790', 'tblTempUsageDetail_20' ) end [2024-12-27 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111790', 'tblTempVendorCDR_20' ) start [2024-12-27 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111790', 'tblTempVendorCDR_20' ) end [2024-12-27 04:36:18] Production.INFO: ProcessCDR(1,14111790,1,1,2) [2024-12-27 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111790', 'tblTempUsageDetail_20' ) start [2024-12-27 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111790', 'tblTempUsageDetail_20' ) end [2024-12-27 04:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:36:21] Production.INFO: ==8170== Releasing lock... [2024-12-27 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:36:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:37:05 [end_date_ymd] => 2024-12-27 04:37:05 [RateCDR] => 1 ) [2024-12-27 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:37:05' and `end` < '2024-12-27 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:37:18] Production.INFO: count ==65 [2024-12-27 04:37:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:37:05 - End Time 2024-12-27 04:37:05 [2024-12-27 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111795', 'tblTempUsageDetail_20' ) start [2024-12-27 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111795', 'tblTempUsageDetail_20' ) end [2024-12-27 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111795', 'tblTempVendorCDR_20' ) start [2024-12-27 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111795', 'tblTempVendorCDR_20' ) end [2024-12-27 04:37:18] Production.INFO: ProcessCDR(1,14111795,1,1,2) [2024-12-27 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111795', 'tblTempUsageDetail_20' ) start [2024-12-27 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111795', 'tblTempUsageDetail_20' ) end [2024-12-27 04:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:37:21] Production.INFO: ==8249== Releasing lock... [2024-12-27 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:37:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:38:05 [end_date_ymd] => 2024-12-27 04:38:05 [RateCDR] => 1 ) [2024-12-27 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:38:05' and `end` < '2024-12-27 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:38:18] Production.INFO: count ==65 [2024-12-27 04:38:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:38:05 - End Time 2024-12-27 04:38:05 [2024-12-27 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111800', 'tblTempUsageDetail_20' ) start [2024-12-27 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111800', 'tblTempUsageDetail_20' ) end [2024-12-27 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111800', 'tblTempVendorCDR_20' ) start [2024-12-27 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111800', 'tblTempVendorCDR_20' ) end [2024-12-27 04:38:18] Production.INFO: ProcessCDR(1,14111800,1,1,2) [2024-12-27 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111800', 'tblTempUsageDetail_20' ) start [2024-12-27 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111800', 'tblTempUsageDetail_20' ) end [2024-12-27 04:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:38:21] Production.INFO: ==8336== Releasing lock... [2024-12-27 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:38:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:39:05 [end_date_ymd] => 2024-12-27 04:39:05 [RateCDR] => 1 ) [2024-12-27 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:39:05' and `end` < '2024-12-27 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:39:17] Production.INFO: count ==64 [2024-12-27 04:39:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:39:05 - End Time 2024-12-27 04:39:05 [2024-12-27 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111805', 'tblTempUsageDetail_20' ) start [2024-12-27 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111805', 'tblTempUsageDetail_20' ) end [2024-12-27 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111805', 'tblTempVendorCDR_20' ) start [2024-12-27 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111805', 'tblTempVendorCDR_20' ) end [2024-12-27 04:39:17] Production.INFO: ProcessCDR(1,14111805,1,1,2) [2024-12-27 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111805', 'tblTempUsageDetail_20' ) start [2024-12-27 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111805', 'tblTempUsageDetail_20' ) end [2024-12-27 04:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:39:20] Production.INFO: ==8427== Releasing lock... [2024-12-27 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:39:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:40:05 [end_date_ymd] => 2024-12-27 04:40:05 [RateCDR] => 1 ) [2024-12-27 04:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:40:05' and `end` < '2024-12-27 04:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:40:17] Production.INFO: count ==58 [2024-12-27 04:40:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:40:05 - End Time 2024-12-27 04:40:05 [2024-12-27 04:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111811', 'tblTempUsageDetail_20' ) start [2024-12-27 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111811', 'tblTempUsageDetail_20' ) end [2024-12-27 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111811', 'tblTempVendorCDR_20' ) start [2024-12-27 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111811', 'tblTempVendorCDR_20' ) end [2024-12-27 04:40:17] Production.INFO: ProcessCDR(1,14111811,1,1,2) [2024-12-27 04:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111811', 'tblTempUsageDetail_20' ) start [2024-12-27 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111811', 'tblTempUsageDetail_20' ) end [2024-12-27 04:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:40:20] Production.INFO: ==8553== Releasing lock... [2024-12-27 04:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:40:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:41:05 [end_date_ymd] => 2024-12-27 04:41:05 [RateCDR] => 1 ) [2024-12-27 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:41:05' and `end` < '2024-12-27 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:41:18] Production.INFO: count ==52 [2024-12-27 04:41:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:41:05 - End Time 2024-12-27 04:41:05 [2024-12-27 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111816', 'tblTempUsageDetail_20' ) start [2024-12-27 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111816', 'tblTempUsageDetail_20' ) end [2024-12-27 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111816', 'tblTempVendorCDR_20' ) start [2024-12-27 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111816', 'tblTempVendorCDR_20' ) end [2024-12-27 04:41:18] Production.INFO: ProcessCDR(1,14111816,1,1,2) [2024-12-27 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111816', 'tblTempUsageDetail_20' ) start [2024-12-27 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111816', 'tblTempUsageDetail_20' ) end [2024-12-27 04:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:41:21] Production.INFO: ==8642== Releasing lock... [2024-12-27 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:41:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:42:05 [end_date_ymd] => 2024-12-27 04:42:05 [RateCDR] => 1 ) [2024-12-27 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:42:05' and `end` < '2024-12-27 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:42:17] Production.INFO: count ==49 [2024-12-27 04:42:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:42:05 - End Time 2024-12-27 04:42:05 [2024-12-27 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111821', 'tblTempUsageDetail_20' ) start [2024-12-27 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111821', 'tblTempUsageDetail_20' ) end [2024-12-27 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111821', 'tblTempVendorCDR_20' ) start [2024-12-27 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111821', 'tblTempVendorCDR_20' ) end [2024-12-27 04:42:17] Production.INFO: ProcessCDR(1,14111821,1,1,2) [2024-12-27 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111821', 'tblTempUsageDetail_20' ) start [2024-12-27 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111821', 'tblTempUsageDetail_20' ) end [2024-12-27 04:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:42:20] Production.INFO: ==8723== Releasing lock... [2024-12-27 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:42:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:43:04 [end_date_ymd] => 2024-12-27 04:43:04 [RateCDR] => 1 ) [2024-12-27 04: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-27 01:43:04' and `end` < '2024-12-27 04: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-27 04:43:17] Production.INFO: count ==49 [2024-12-27 04:43:17] Production.ERROR: pbx CDR StartTime 2024-12-27 01:43:04 - End Time 2024-12-27 04:43:04 [2024-12-27 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111826', 'tblTempUsageDetail_20' ) start [2024-12-27 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111826', 'tblTempUsageDetail_20' ) end [2024-12-27 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111826', 'tblTempVendorCDR_20' ) start [2024-12-27 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111826', 'tblTempVendorCDR_20' ) end [2024-12-27 04:43:17] Production.INFO: ProcessCDR(1,14111826,1,1,2) [2024-12-27 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111826', 'tblTempUsageDetail_20' ) start [2024-12-27 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111826', 'tblTempUsageDetail_20' ) end [2024-12-27 04:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:43:20] Production.INFO: ==8805== Releasing lock... [2024-12-27 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:43:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:44:05 [end_date_ymd] => 2024-12-27 04:44:05 [RateCDR] => 1 ) [2024-12-27 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:44:05' and `end` < '2024-12-27 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:44:18] Production.INFO: count ==49 [2024-12-27 04:44:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:44:05 - End Time 2024-12-27 04:44:05 [2024-12-27 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111831', 'tblTempUsageDetail_20' ) start [2024-12-27 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111831', 'tblTempUsageDetail_20' ) end [2024-12-27 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111831', 'tblTempVendorCDR_20' ) start [2024-12-27 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111831', 'tblTempVendorCDR_20' ) end [2024-12-27 04:44:18] Production.INFO: ProcessCDR(1,14111831,1,1,2) [2024-12-27 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111831', 'tblTempUsageDetail_20' ) start [2024-12-27 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111831', 'tblTempUsageDetail_20' ) end [2024-12-27 04:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:44:21] Production.INFO: ==8886== Releasing lock... [2024-12-27 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:44:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:45:04 [end_date_ymd] => 2024-12-27 04:45:04 [RateCDR] => 1 ) [2024-12-27 04:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:45:04' and `end` < '2024-12-27 04:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:45:16] Production.INFO: count ==49 [2024-12-27 04:45:16] Production.ERROR: pbx CDR StartTime 2024-12-27 01:45:04 - End Time 2024-12-27 04:45:04 [2024-12-27 04:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111836', 'tblTempUsageDetail_20' ) start [2024-12-27 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111836', 'tblTempUsageDetail_20' ) end [2024-12-27 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111836', 'tblTempVendorCDR_20' ) start [2024-12-27 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111836', 'tblTempVendorCDR_20' ) end [2024-12-27 04:45:16] Production.INFO: ProcessCDR(1,14111836,1,1,2) [2024-12-27 04:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111836', 'tblTempUsageDetail_20' ) start [2024-12-27 04:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111836', 'tblTempUsageDetail_20' ) end [2024-12-27 04:45:19] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:45:19] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:45:19] Production.INFO: ==8971== Releasing lock... [2024-12-27 04:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:45:19] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:46:05 [end_date_ymd] => 2024-12-27 04:46:05 [RateCDR] => 1 ) [2024-12-27 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-27 01:46:05' and `end` < '2024-12-27 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-27 04:46:28] Production.INFO: count ==46 [2024-12-27 04:46:28] Production.ERROR: pbx CDR StartTime 2024-12-27 01:46:05 - End Time 2024-12-27 04:46:05 [2024-12-27 04:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111841', 'tblTempUsageDetail_20' ) start [2024-12-27 04:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111841', 'tblTempUsageDetail_20' ) end [2024-12-27 04:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111841', 'tblTempVendorCDR_20' ) start [2024-12-27 04:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111841', 'tblTempVendorCDR_20' ) end [2024-12-27 04:46:28] Production.INFO: ProcessCDR(1,14111841,1,1,2) [2024-12-27 04:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111841', 'tblTempUsageDetail_20' ) start [2024-12-27 04:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111841', 'tblTempUsageDetail_20' ) end [2024-12-27 04:46:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:46:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:46:31] Production.INFO: ==9056== Releasing lock... [2024-12-27 04:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:46:31] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:47:05 [end_date_ymd] => 2024-12-27 04:47:05 [RateCDR] => 1 ) [2024-12-27 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:47:05' and `end` < '2024-12-27 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:47:20] Production.INFO: count ==46 [2024-12-27 04:47:20] Production.ERROR: pbx CDR StartTime 2024-12-27 01:47:05 - End Time 2024-12-27 04:47:05 [2024-12-27 04:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111846', 'tblTempUsageDetail_20' ) start [2024-12-27 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111846', 'tblTempUsageDetail_20' ) end [2024-12-27 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111846', 'tblTempVendorCDR_20' ) start [2024-12-27 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111846', 'tblTempVendorCDR_20' ) end [2024-12-27 04:47:20] Production.INFO: ProcessCDR(1,14111846,1,1,2) [2024-12-27 04:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111846', 'tblTempUsageDetail_20' ) start [2024-12-27 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111846', 'tblTempUsageDetail_20' ) end [2024-12-27 04:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:47:23] Production.INFO: ==9139== Releasing lock... [2024-12-27 04:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:47:23] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:48:05 [end_date_ymd] => 2024-12-27 04:48:05 [RateCDR] => 1 ) [2024-12-27 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:48:05' and `end` < '2024-12-27 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:48:19] Production.INFO: count ==46 [2024-12-27 04:48:19] Production.ERROR: pbx CDR StartTime 2024-12-27 01:48:05 - End Time 2024-12-27 04:48:05 [2024-12-27 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111851', 'tblTempUsageDetail_20' ) start [2024-12-27 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111851', 'tblTempUsageDetail_20' ) end [2024-12-27 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111851', 'tblTempVendorCDR_20' ) start [2024-12-27 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111851', 'tblTempVendorCDR_20' ) end [2024-12-27 04:48:19] Production.INFO: ProcessCDR(1,14111851,1,1,2) [2024-12-27 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111851', 'tblTempUsageDetail_20' ) start [2024-12-27 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111851', 'tblTempUsageDetail_20' ) end [2024-12-27 04:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:48:22] Production.INFO: ==9227== Releasing lock... [2024-12-27 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:48:22] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:49:05 [end_date_ymd] => 2024-12-27 04:49:05 [RateCDR] => 1 ) [2024-12-27 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:49:05' and `end` < '2024-12-27 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:49:18] Production.INFO: count ==46 [2024-12-27 04:49:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:49:05 - End Time 2024-12-27 04:49:05 [2024-12-27 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111856', 'tblTempUsageDetail_20' ) start [2024-12-27 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111856', 'tblTempUsageDetail_20' ) end [2024-12-27 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111856', 'tblTempVendorCDR_20' ) start [2024-12-27 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111856', 'tblTempVendorCDR_20' ) end [2024-12-27 04:49:18] Production.INFO: ProcessCDR(1,14111856,1,1,2) [2024-12-27 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111856', 'tblTempUsageDetail_20' ) start [2024-12-27 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111856', 'tblTempUsageDetail_20' ) end [2024-12-27 04:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:49:22] Production.INFO: ==9311== Releasing lock... [2024-12-27 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:49:22] Production.INFO: 28 MB #Memory Used# [2024-12-27 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:50:05 [end_date_ymd] => 2024-12-27 04:50:05 [RateCDR] => 1 ) [2024-12-27 04:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:50:05' and `end` < '2024-12-27 04:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:50:20] Production.INFO: count ==42 [2024-12-27 04:50:20] Production.ERROR: pbx CDR StartTime 2024-12-27 01:50:05 - End Time 2024-12-27 04:50:05 [2024-12-27 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111862', 'tblTempUsageDetail_20' ) start [2024-12-27 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111862', 'tblTempUsageDetail_20' ) end [2024-12-27 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111862', 'tblTempVendorCDR_20' ) start [2024-12-27 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111862', 'tblTempVendorCDR_20' ) end [2024-12-27 04:50:20] Production.INFO: ProcessCDR(1,14111862,1,1,2) [2024-12-27 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111862', 'tblTempUsageDetail_20' ) start [2024-12-27 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111862', 'tblTempUsageDetail_20' ) end [2024-12-27 04:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:50:23] Production.INFO: ==9387== Releasing lock... [2024-12-27 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:50:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:51:05 [end_date_ymd] => 2024-12-27 04:51:05 [RateCDR] => 1 ) [2024-12-27 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:51:05' and `end` < '2024-12-27 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:51:19] Production.INFO: count ==42 [2024-12-27 04:51:19] Production.ERROR: pbx CDR StartTime 2024-12-27 01:51:05 - End Time 2024-12-27 04:51:05 [2024-12-27 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111867', 'tblTempUsageDetail_20' ) start [2024-12-27 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111867', 'tblTempUsageDetail_20' ) end [2024-12-27 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111867', 'tblTempVendorCDR_20' ) start [2024-12-27 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111867', 'tblTempVendorCDR_20' ) end [2024-12-27 04:51:19] Production.INFO: ProcessCDR(1,14111867,1,1,2) [2024-12-27 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111867', 'tblTempUsageDetail_20' ) start [2024-12-27 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111867', 'tblTempUsageDetail_20' ) end [2024-12-27 04:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:51:22] Production.INFO: ==9475== Releasing lock... [2024-12-27 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:51:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:52:05 [end_date_ymd] => 2024-12-27 04:52:05 [RateCDR] => 1 ) [2024-12-27 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:52:05' and `end` < '2024-12-27 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:52:20] Production.INFO: count ==42 [2024-12-27 04:52:20] Production.ERROR: pbx CDR StartTime 2024-12-27 01:52:05 - End Time 2024-12-27 04:52:05 [2024-12-27 04:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111872', 'tblTempUsageDetail_20' ) start [2024-12-27 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111872', 'tblTempUsageDetail_20' ) end [2024-12-27 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111872', 'tblTempVendorCDR_20' ) start [2024-12-27 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111872', 'tblTempVendorCDR_20' ) end [2024-12-27 04:52:20] Production.INFO: ProcessCDR(1,14111872,1,1,2) [2024-12-27 04:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111872', 'tblTempUsageDetail_20' ) start [2024-12-27 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111872', 'tblTempUsageDetail_20' ) end [2024-12-27 04:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:52:23] Production.INFO: ==9557== Releasing lock... [2024-12-27 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:52:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:53:05 [end_date_ymd] => 2024-12-27 04:53:05 [RateCDR] => 1 ) [2024-12-27 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:53:05' and `end` < '2024-12-27 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:53:20] Production.INFO: count ==42 [2024-12-27 04:53:20] Production.ERROR: pbx CDR StartTime 2024-12-27 01:53:05 - End Time 2024-12-27 04:53:05 [2024-12-27 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111877', 'tblTempUsageDetail_20' ) start [2024-12-27 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111877', 'tblTempUsageDetail_20' ) end [2024-12-27 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111877', 'tblTempVendorCDR_20' ) start [2024-12-27 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111877', 'tblTempVendorCDR_20' ) end [2024-12-27 04:53:20] Production.INFO: ProcessCDR(1,14111877,1,1,2) [2024-12-27 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111877', 'tblTempUsageDetail_20' ) start [2024-12-27 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111877', 'tblTempUsageDetail_20' ) end [2024-12-27 04:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:53:23] Production.INFO: ==9639== Releasing lock... [2024-12-27 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:53:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 04:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:54:04 [end_date_ymd] => 2024-12-27 04:54:04 [RateCDR] => 1 ) [2024-12-27 04:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:54:04' and `end` < '2024-12-27 04:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:54:19] Production.INFO: count ==42 [2024-12-27 04:54:19] Production.ERROR: pbx CDR StartTime 2024-12-27 01:54:04 - End Time 2024-12-27 04:54:04 [2024-12-27 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111882', 'tblTempUsageDetail_20' ) start [2024-12-27 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111882', 'tblTempUsageDetail_20' ) end [2024-12-27 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111882', 'tblTempVendorCDR_20' ) start [2024-12-27 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111882', 'tblTempVendorCDR_20' ) end [2024-12-27 04:54:19] Production.INFO: ProcessCDR(1,14111882,1,1,2) [2024-12-27 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111882', 'tblTempUsageDetail_20' ) start [2024-12-27 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111882', 'tblTempUsageDetail_20' ) end [2024-12-27 04:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:54:23] Production.INFO: ==9723== Releasing lock... [2024-12-27 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:54:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 04:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:55:04 [end_date_ymd] => 2024-12-27 04:55:04 [RateCDR] => 1 ) [2024-12-27 04: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-27 01:55:04' and `end` < '2024-12-27 04: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-27 04:55:19] Production.INFO: count ==42 [2024-12-27 04:55:19] Production.ERROR: pbx CDR StartTime 2024-12-27 01:55:04 - End Time 2024-12-27 04:55:04 [2024-12-27 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111885', 'tblTempUsageDetail_20' ) start [2024-12-27 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111885', 'tblTempUsageDetail_20' ) end [2024-12-27 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111885', 'tblTempVendorCDR_20' ) start [2024-12-27 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111885', 'tblTempVendorCDR_20' ) end [2024-12-27 04:55:19] Production.INFO: ProcessCDR(1,14111885,1,1,2) [2024-12-27 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111885', 'tblTempUsageDetail_20' ) start [2024-12-27 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111885', 'tblTempUsageDetail_20' ) end [2024-12-27 04:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:55:22] Production.INFO: ==9807== Releasing lock... [2024-12-27 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:55:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:56:05 [end_date_ymd] => 2024-12-27 04:56:05 [RateCDR] => 1 ) [2024-12-27 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-27 01:56:05' and `end` < '2024-12-27 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-27 04:56:19] Production.INFO: count ==42 [2024-12-27 04:56:19] Production.ERROR: pbx CDR StartTime 2024-12-27 01:56:05 - End Time 2024-12-27 04:56:05 [2024-12-27 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111892', 'tblTempUsageDetail_20' ) start [2024-12-27 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111892', 'tblTempUsageDetail_20' ) end [2024-12-27 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111892', 'tblTempVendorCDR_20' ) start [2024-12-27 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111892', 'tblTempVendorCDR_20' ) end [2024-12-27 04:56:19] Production.INFO: ProcessCDR(1,14111892,1,1,2) [2024-12-27 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111892', 'tblTempUsageDetail_20' ) start [2024-12-27 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111892', 'tblTempUsageDetail_20' ) end [2024-12-27 04:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:56:22] Production.INFO: ==9925== Releasing lock... [2024-12-27 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:56:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:57:05 [end_date_ymd] => 2024-12-27 04:57:05 [RateCDR] => 1 ) [2024-12-27 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:57:05' and `end` < '2024-12-27 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:57:19] Production.INFO: count ==42 [2024-12-27 04:57:19] Production.ERROR: pbx CDR StartTime 2024-12-27 01:57:05 - End Time 2024-12-27 04:57:05 [2024-12-27 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111896', 'tblTempUsageDetail_20' ) start [2024-12-27 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111896', 'tblTempUsageDetail_20' ) end [2024-12-27 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111896', 'tblTempVendorCDR_20' ) start [2024-12-27 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111896', 'tblTempVendorCDR_20' ) end [2024-12-27 04:57:19] Production.INFO: ProcessCDR(1,14111896,1,1,2) [2024-12-27 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111896', 'tblTempUsageDetail_20' ) start [2024-12-27 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111896', 'tblTempUsageDetail_20' ) end [2024-12-27 04:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:57:22] Production.INFO: ==10005== Releasing lock... [2024-12-27 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:57:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:58:05 [end_date_ymd] => 2024-12-27 04:58:05 [RateCDR] => 1 ) [2024-12-27 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:58:05' and `end` < '2024-12-27 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:58:18] Production.INFO: count ==42 [2024-12-27 04:58:18] Production.ERROR: pbx CDR StartTime 2024-12-27 01:58:05 - End Time 2024-12-27 04:58:05 [2024-12-27 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111902', 'tblTempUsageDetail_20' ) start [2024-12-27 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111902', 'tblTempUsageDetail_20' ) end [2024-12-27 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111902', 'tblTempVendorCDR_20' ) start [2024-12-27 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111902', 'tblTempVendorCDR_20' ) end [2024-12-27 04:58:18] Production.INFO: ProcessCDR(1,14111902,1,1,2) [2024-12-27 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111902', 'tblTempUsageDetail_20' ) start [2024-12-27 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111902', 'tblTempUsageDetail_20' ) end [2024-12-27 04:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:58:22] Production.INFO: ==10083== Releasing lock... [2024-12-27 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:58:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 01:59:05 [end_date_ymd] => 2024-12-27 04:59:05 [RateCDR] => 1 ) [2024-12-27 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 01:59:05' and `end` < '2024-12-27 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 04:59:19] Production.INFO: count ==42 [2024-12-27 04:59:19] Production.ERROR: pbx CDR StartTime 2024-12-27 01:59:05 - End Time 2024-12-27 04:59:05 [2024-12-27 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111907', 'tblTempUsageDetail_20' ) start [2024-12-27 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111907', 'tblTempUsageDetail_20' ) end [2024-12-27 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111907', 'tblTempVendorCDR_20' ) start [2024-12-27 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111907', 'tblTempVendorCDR_20' ) end [2024-12-27 04:59:19] Production.INFO: ProcessCDR(1,14111907,1,1,2) [2024-12-27 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111907', 'tblTempUsageDetail_20' ) start [2024-12-27 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111907', 'tblTempUsageDetail_20' ) end [2024-12-27 04:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 04:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 04:59:22] Production.INFO: ==10164== Releasing lock... [2024-12-27 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 04:59:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:00:05 [end_date_ymd] => 2024-12-27 05:00:05 [RateCDR] => 1 ) [2024-12-27 05: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-27 02:00:05' and `end` < '2024-12-27 05: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-27 05:00:19] Production.INFO: count ==35 [2024-12-27 05:00:19] Production.ERROR: pbx CDR StartTime 2024-12-27 02:00:05 - End Time 2024-12-27 05:00:05 [2024-12-27 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111913', 'tblTempUsageDetail_20' ) start [2024-12-27 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111913', 'tblTempUsageDetail_20' ) end [2024-12-27 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111913', 'tblTempVendorCDR_20' ) start [2024-12-27 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111913', 'tblTempVendorCDR_20' ) end [2024-12-27 05:00:19] Production.INFO: ProcessCDR(1,14111913,1,1,2) [2024-12-27 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111913', 'tblTempUsageDetail_20' ) start [2024-12-27 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111913', 'tblTempUsageDetail_20' ) end [2024-12-27 05:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:00:22] Production.INFO: ==10246== Releasing lock... [2024-12-27 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:00:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:01:05 [end_date_ymd] => 2024-12-27 05:01:05 [RateCDR] => 1 ) [2024-12-27 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:01:05' and `end` < '2024-12-27 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:01:19] Production.INFO: count ==29 [2024-12-27 05:01:19] Production.ERROR: pbx CDR StartTime 2024-12-27 02:01:05 - End Time 2024-12-27 05:01:05 [2024-12-27 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111918', 'tblTempUsageDetail_20' ) start [2024-12-27 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111918', 'tblTempUsageDetail_20' ) end [2024-12-27 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111918', 'tblTempVendorCDR_20' ) start [2024-12-27 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111918', 'tblTempVendorCDR_20' ) end [2024-12-27 05:01:19] Production.INFO: ProcessCDR(1,14111918,1,1,2) [2024-12-27 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111918', 'tblTempUsageDetail_20' ) start [2024-12-27 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111918', 'tblTempUsageDetail_20' ) end [2024-12-27 05:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:01:22] Production.INFO: ==10342== Releasing lock... [2024-12-27 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:01:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:02:05 [end_date_ymd] => 2024-12-27 05:02:05 [RateCDR] => 1 ) [2024-12-27 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:02:05' and `end` < '2024-12-27 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:02:19] Production.INFO: count ==29 [2024-12-27 05:02:19] Production.ERROR: pbx CDR StartTime 2024-12-27 02:02:05 - End Time 2024-12-27 05:02:05 [2024-12-27 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111923', 'tblTempUsageDetail_20' ) start [2024-12-27 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111923', 'tblTempUsageDetail_20' ) end [2024-12-27 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111923', 'tblTempVendorCDR_20' ) start [2024-12-27 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111923', 'tblTempVendorCDR_20' ) end [2024-12-27 05:02:19] Production.INFO: ProcessCDR(1,14111923,1,1,2) [2024-12-27 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111923', 'tblTempUsageDetail_20' ) start [2024-12-27 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111923', 'tblTempUsageDetail_20' ) end [2024-12-27 05:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:02:22] Production.INFO: ==10418== Releasing lock... [2024-12-27 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:02:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:03:04 [end_date_ymd] => 2024-12-27 05:03:04 [RateCDR] => 1 ) [2024-12-27 05: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-27 02:03:04' and `end` < '2024-12-27 05: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-27 05:03:16] Production.INFO: count ==28 [2024-12-27 05:03:16] Production.ERROR: pbx CDR StartTime 2024-12-27 02:03:04 - End Time 2024-12-27 05:03:04 [2024-12-27 05:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111928', 'tblTempUsageDetail_20' ) start [2024-12-27 05:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111928', 'tblTempUsageDetail_20' ) end [2024-12-27 05:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111928', 'tblTempVendorCDR_20' ) start [2024-12-27 05:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111928', 'tblTempVendorCDR_20' ) end [2024-12-27 05:03:16] Production.INFO: ProcessCDR(1,14111928,1,1,2) [2024-12-27 05:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:03:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111928', 'tblTempUsageDetail_20' ) start [2024-12-27 05:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111928', 'tblTempUsageDetail_20' ) end [2024-12-27 05:03:19] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:03:19] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:03:19] Production.INFO: ==10496== Releasing lock... [2024-12-27 05:03:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:03:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:04:05 [end_date_ymd] => 2024-12-27 05:04:05 [RateCDR] => 1 ) [2024-12-27 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:04:05' and `end` < '2024-12-27 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:04:17] Production.INFO: count ==28 [2024-12-27 05:04:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:04:05 - End Time 2024-12-27 05:04:05 [2024-12-27 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111933', 'tblTempUsageDetail_20' ) start [2024-12-27 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111933', 'tblTempUsageDetail_20' ) end [2024-12-27 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111933', 'tblTempVendorCDR_20' ) start [2024-12-27 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111933', 'tblTempVendorCDR_20' ) end [2024-12-27 05:04:17] Production.INFO: ProcessCDR(1,14111933,1,1,2) [2024-12-27 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111933', 'tblTempUsageDetail_20' ) start [2024-12-27 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111933', 'tblTempUsageDetail_20' ) end [2024-12-27 05:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:04:21] Production.INFO: ==10581== Releasing lock... [2024-12-27 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:04:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 05:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:05:04 [end_date_ymd] => 2024-12-27 05:05:04 [RateCDR] => 1 ) [2024-12-27 05: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-27 02:05:04' and `end` < '2024-12-27 05: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-27 05:05:17] Production.INFO: count ==28 [2024-12-27 05:05:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:05:04 - End Time 2024-12-27 05:05:04 [2024-12-27 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111938', 'tblTempUsageDetail_20' ) start [2024-12-27 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111938', 'tblTempUsageDetail_20' ) end [2024-12-27 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111938', 'tblTempVendorCDR_20' ) start [2024-12-27 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111938', 'tblTempVendorCDR_20' ) end [2024-12-27 05:05:17] Production.INFO: ProcessCDR(1,14111938,1,1,2) [2024-12-27 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111938', 'tblTempUsageDetail_20' ) start [2024-12-27 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111938', 'tblTempUsageDetail_20' ) end [2024-12-27 05:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:05:20] Production.INFO: ==10659== Releasing lock... [2024-12-27 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:05:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:06:05 [end_date_ymd] => 2024-12-27 05:06:05 [RateCDR] => 1 ) [2024-12-27 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:06:05' and `end` < '2024-12-27 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:07:03] Production.INFO: count ==28 [2024-12-27 05:07:03] Production.ERROR: pbx CDR StartTime 2024-12-27 02:06:05 - End Time 2024-12-27 05:06:05 [2024-12-27 05:07:03] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:07:03] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111943', 'tblTempUsageDetail_20' ) start [2024-12-27 05:07:03] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111943', 'tblTempUsageDetail_20' ) end [2024-12-27 05:07:03] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111943', 'tblTempVendorCDR_20' ) start [2024-12-27 05:07:03] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111943', 'tblTempVendorCDR_20' ) end [2024-12-27 05:07:03] Production.INFO: ProcessCDR(1,14111943,1,1,2) [2024-12-27 05:07:03] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:07:05] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:07:05] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:07:09] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:07:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111943', 'tblTempUsageDetail_20' ) start [2024-12-27 05:07:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111943', 'tblTempUsageDetail_20' ) end [2024-12-27 05:07:09] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:07:09] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:07:09] Production.INFO: ==10732== Releasing lock... [2024-12-27 05:07:09] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:07:09] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:08:05 [end_date_ymd] => 2024-12-27 05:08:05 [RateCDR] => 1 ) [2024-12-27 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:08:05' and `end` < '2024-12-27 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:08:18] Production.INFO: count ==28 [2024-12-27 05:08:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:08:05 - End Time 2024-12-27 05:08:05 [2024-12-27 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111952', 'tblTempUsageDetail_20' ) start [2024-12-27 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111952', 'tblTempUsageDetail_20' ) end [2024-12-27 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111952', 'tblTempVendorCDR_20' ) start [2024-12-27 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111952', 'tblTempVendorCDR_20' ) end [2024-12-27 05:08:18] Production.INFO: ProcessCDR(1,14111952,1,1,2) [2024-12-27 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111952', 'tblTempUsageDetail_20' ) start [2024-12-27 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111952', 'tblTempUsageDetail_20' ) end [2024-12-27 05:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:08:21] Production.INFO: ==10874== Releasing lock... [2024-12-27 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:08:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:09:05 [end_date_ymd] => 2024-12-27 05:09:05 [RateCDR] => 1 ) [2024-12-27 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:09:05' and `end` < '2024-12-27 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:09:17] Production.INFO: count ==28 [2024-12-27 05:09:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:09:05 - End Time 2024-12-27 05:09:05 [2024-12-27 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111957', 'tblTempUsageDetail_20' ) start [2024-12-27 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111957', 'tblTempUsageDetail_20' ) end [2024-12-27 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111957', 'tblTempVendorCDR_20' ) start [2024-12-27 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111957', 'tblTempVendorCDR_20' ) end [2024-12-27 05:09:17] Production.INFO: ProcessCDR(1,14111957,1,1,2) [2024-12-27 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111957', 'tblTempUsageDetail_20' ) start [2024-12-27 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111957', 'tblTempUsageDetail_20' ) end [2024-12-27 05:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:09:21] Production.INFO: ==10960== Releasing lock... [2024-12-27 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:09:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:10:06 [end_date_ymd] => 2024-12-27 05:10:06 [RateCDR] => 1 ) [2024-12-27 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:10:06' and `end` < '2024-12-27 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:10:19] Production.INFO: count ==24 [2024-12-27 05:10:19] Production.ERROR: pbx CDR StartTime 2024-12-27 02:10:06 - End Time 2024-12-27 05:10:06 [2024-12-27 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111963', 'tblTempUsageDetail_20' ) start [2024-12-27 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111963', 'tblTempUsageDetail_20' ) end [2024-12-27 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111963', 'tblTempVendorCDR_20' ) start [2024-12-27 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111963', 'tblTempVendorCDR_20' ) end [2024-12-27 05:10:19] Production.INFO: ProcessCDR(1,14111963,1,1,2) [2024-12-27 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111963', 'tblTempUsageDetail_20' ) start [2024-12-27 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111963', 'tblTempUsageDetail_20' ) end [2024-12-27 05:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:10:22] Production.INFO: ==11039== Releasing lock... [2024-12-27 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:10:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:11:05 [end_date_ymd] => 2024-12-27 05:11:05 [RateCDR] => 1 ) [2024-12-27 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:11:05' and `end` < '2024-12-27 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:11:18] Production.INFO: count ==24 [2024-12-27 05:11:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:11:05 - End Time 2024-12-27 05:11:05 [2024-12-27 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111968', 'tblTempUsageDetail_20' ) start [2024-12-27 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111968', 'tblTempUsageDetail_20' ) end [2024-12-27 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111968', 'tblTempVendorCDR_20' ) start [2024-12-27 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111968', 'tblTempVendorCDR_20' ) end [2024-12-27 05:11:18] Production.INFO: ProcessCDR(1,14111968,1,1,2) [2024-12-27 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111968', 'tblTempUsageDetail_20' ) start [2024-12-27 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111968', 'tblTempUsageDetail_20' ) end [2024-12-27 05:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:11:21] Production.INFO: ==11119== Releasing lock... [2024-12-27 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:11:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:12:05 [end_date_ymd] => 2024-12-27 05:12:05 [RateCDR] => 1 ) [2024-12-27 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:12:05' and `end` < '2024-12-27 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:12:18] Production.INFO: count ==24 [2024-12-27 05:12:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:12:05 - End Time 2024-12-27 05:12:05 [2024-12-27 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111973', 'tblTempUsageDetail_20' ) start [2024-12-27 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111973', 'tblTempUsageDetail_20' ) end [2024-12-27 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111973', 'tblTempVendorCDR_20' ) start [2024-12-27 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111973', 'tblTempVendorCDR_20' ) end [2024-12-27 05:12:18] Production.INFO: ProcessCDR(1,14111973,1,1,2) [2024-12-27 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111973', 'tblTempUsageDetail_20' ) start [2024-12-27 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111973', 'tblTempUsageDetail_20' ) end [2024-12-27 05:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:12:21] Production.INFO: ==11229== Releasing lock... [2024-12-27 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:12:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:13:04 [end_date_ymd] => 2024-12-27 05:13:04 [RateCDR] => 1 ) [2024-12-27 05: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-27 02:13:04' and `end` < '2024-12-27 05: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-27 05:13:17] Production.INFO: count ==24 [2024-12-27 05:13:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:13:04 - End Time 2024-12-27 05:13:04 [2024-12-27 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111978', 'tblTempUsageDetail_20' ) start [2024-12-27 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111978', 'tblTempUsageDetail_20' ) end [2024-12-27 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111978', 'tblTempVendorCDR_20' ) start [2024-12-27 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111978', 'tblTempVendorCDR_20' ) end [2024-12-27 05:13:17] Production.INFO: ProcessCDR(1,14111978,1,1,2) [2024-12-27 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111978', 'tblTempUsageDetail_20' ) start [2024-12-27 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111978', 'tblTempUsageDetail_20' ) end [2024-12-27 05:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:13:20] Production.INFO: ==11303== Releasing lock... [2024-12-27 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:13:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:14:05 [end_date_ymd] => 2024-12-27 05:14:05 [RateCDR] => 1 ) [2024-12-27 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:14:05' and `end` < '2024-12-27 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:14:18] Production.INFO: count ==24 [2024-12-27 05:14:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:14:05 - End Time 2024-12-27 05:14:05 [2024-12-27 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111983', 'tblTempUsageDetail_20' ) start [2024-12-27 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111983', 'tblTempUsageDetail_20' ) end [2024-12-27 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111983', 'tblTempVendorCDR_20' ) start [2024-12-27 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111983', 'tblTempVendorCDR_20' ) end [2024-12-27 05:14:18] Production.INFO: ProcessCDR(1,14111983,1,1,2) [2024-12-27 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111983', 'tblTempUsageDetail_20' ) start [2024-12-27 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111983', 'tblTempUsageDetail_20' ) end [2024-12-27 05:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:14:21] Production.INFO: ==11379== Releasing lock... [2024-12-27 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:14:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:15:05 [end_date_ymd] => 2024-12-27 05:15:05 [RateCDR] => 1 ) [2024-12-27 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:15:05' and `end` < '2024-12-27 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:15:17] Production.INFO: count ==24 [2024-12-27 05:15:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:15:05 - End Time 2024-12-27 05:15:05 [2024-12-27 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111988', 'tblTempUsageDetail_20' ) start [2024-12-27 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111988', 'tblTempUsageDetail_20' ) end [2024-12-27 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111988', 'tblTempVendorCDR_20' ) start [2024-12-27 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111988', 'tblTempVendorCDR_20' ) end [2024-12-27 05:15:17] Production.INFO: ProcessCDR(1,14111988,1,1,2) [2024-12-27 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111988', 'tblTempUsageDetail_20' ) start [2024-12-27 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111988', 'tblTempUsageDetail_20' ) end [2024-12-27 05:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:15:20] Production.INFO: ==11463== Releasing lock... [2024-12-27 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:15:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:16:04 [end_date_ymd] => 2024-12-27 05:16:04 [RateCDR] => 1 ) [2024-12-27 05:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:16:04' and `end` < '2024-12-27 05:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:16:17] Production.INFO: count ==24 [2024-12-27 05:16:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:16:04 - End Time 2024-12-27 05:16:04 [2024-12-27 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111993', 'tblTempUsageDetail_20' ) start [2024-12-27 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111993', 'tblTempUsageDetail_20' ) end [2024-12-27 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111993', 'tblTempVendorCDR_20' ) start [2024-12-27 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111993', 'tblTempVendorCDR_20' ) end [2024-12-27 05:16:17] Production.INFO: ProcessCDR(1,14111993,1,1,2) [2024-12-27 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111993', 'tblTempUsageDetail_20' ) start [2024-12-27 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111993', 'tblTempUsageDetail_20' ) end [2024-12-27 05:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:16:20] Production.INFO: ==11534== Releasing lock... [2024-12-27 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:16:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:17:05 [end_date_ymd] => 2024-12-27 05:17:05 [RateCDR] => 1 ) [2024-12-27 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:17:05' and `end` < '2024-12-27 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:17:17] Production.INFO: count ==24 [2024-12-27 05:17:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:17:05 - End Time 2024-12-27 05:17:05 [2024-12-27 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111998', 'tblTempUsageDetail_20' ) start [2024-12-27 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14111998', 'tblTempUsageDetail_20' ) end [2024-12-27 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111998', 'tblTempVendorCDR_20' ) start [2024-12-27 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14111998', 'tblTempVendorCDR_20' ) end [2024-12-27 05:17:17] Production.INFO: ProcessCDR(1,14111998,1,1,2) [2024-12-27 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14111998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14111998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14111998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14111998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111998', 'tblTempUsageDetail_20' ) start [2024-12-27 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14111998', 'tblTempUsageDetail_20' ) end [2024-12-27 05:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:17:20] Production.INFO: ==11616== Releasing lock... [2024-12-27 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:17:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:18:05 [end_date_ymd] => 2024-12-27 05:18:05 [RateCDR] => 1 ) [2024-12-27 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:18:05' and `end` < '2024-12-27 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:18:17] Production.INFO: count ==24 [2024-12-27 05:18:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:18:05 - End Time 2024-12-27 05:18:05 [2024-12-27 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112003', 'tblTempUsageDetail_20' ) start [2024-12-27 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112003', 'tblTempUsageDetail_20' ) end [2024-12-27 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112003', 'tblTempVendorCDR_20' ) start [2024-12-27 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112003', 'tblTempVendorCDR_20' ) end [2024-12-27 05:18:17] Production.INFO: ProcessCDR(1,14112003,1,1,2) [2024-12-27 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112003', 'tblTempUsageDetail_20' ) start [2024-12-27 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112003', 'tblTempUsageDetail_20' ) end [2024-12-27 05:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:18:20] Production.INFO: ==11689== Releasing lock... [2024-12-27 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:18:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:19:05 [end_date_ymd] => 2024-12-27 05:19:05 [RateCDR] => 1 ) [2024-12-27 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:19:05' and `end` < '2024-12-27 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:19:18] Production.INFO: count ==24 [2024-12-27 05:19:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:19:05 - End Time 2024-12-27 05:19:05 [2024-12-27 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112008', 'tblTempUsageDetail_20' ) start [2024-12-27 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112008', 'tblTempUsageDetail_20' ) end [2024-12-27 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112008', 'tblTempVendorCDR_20' ) start [2024-12-27 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112008', 'tblTempVendorCDR_20' ) end [2024-12-27 05:19:18] Production.INFO: ProcessCDR(1,14112008,1,1,2) [2024-12-27 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112008', 'tblTempUsageDetail_20' ) start [2024-12-27 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112008', 'tblTempUsageDetail_20' ) end [2024-12-27 05:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:19:21] Production.INFO: ==11766== Releasing lock... [2024-12-27 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:19:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:20:05 [end_date_ymd] => 2024-12-27 05:20:05 [RateCDR] => 1 ) [2024-12-27 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-27 02:20:05' and `end` < '2024-12-27 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-27 05:20:18] Production.INFO: count ==22 [2024-12-27 05:20:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:20:05 - End Time 2024-12-27 05:20:05 [2024-12-27 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112014', 'tblTempUsageDetail_20' ) start [2024-12-27 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112014', 'tblTempUsageDetail_20' ) end [2024-12-27 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112014', 'tblTempVendorCDR_20' ) start [2024-12-27 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112014', 'tblTempVendorCDR_20' ) end [2024-12-27 05:20:18] Production.INFO: ProcessCDR(1,14112014,1,1,2) [2024-12-27 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112014', 'tblTempUsageDetail_20' ) start [2024-12-27 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112014', 'tblTempUsageDetail_20' ) end [2024-12-27 05:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:20:21] Production.INFO: ==11845== Releasing lock... [2024-12-27 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:20:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:21:04 [end_date_ymd] => 2024-12-27 05:21:04 [RateCDR] => 1 ) [2024-12-27 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-27 02:21:04' and `end` < '2024-12-27 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-27 05:21:17] Production.INFO: count ==22 [2024-12-27 05:21:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:21:04 - End Time 2024-12-27 05:21:04 [2024-12-27 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112019', 'tblTempUsageDetail_20' ) start [2024-12-27 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112019', 'tblTempUsageDetail_20' ) end [2024-12-27 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112019', 'tblTempVendorCDR_20' ) start [2024-12-27 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112019', 'tblTempVendorCDR_20' ) end [2024-12-27 05:21:17] Production.INFO: ProcessCDR(1,14112019,1,1,2) [2024-12-27 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112019', 'tblTempUsageDetail_20' ) start [2024-12-27 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112019', 'tblTempUsageDetail_20' ) end [2024-12-27 05:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:21:20] Production.INFO: ==11921== Releasing lock... [2024-12-27 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:21:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:22:05 [end_date_ymd] => 2024-12-27 05:22:05 [RateCDR] => 1 ) [2024-12-27 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:22:05' and `end` < '2024-12-27 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:22:19] Production.INFO: count ==22 [2024-12-27 05:22:19] Production.ERROR: pbx CDR StartTime 2024-12-27 02:22:05 - End Time 2024-12-27 05:22:05 [2024-12-27 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112024', 'tblTempUsageDetail_20' ) start [2024-12-27 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112024', 'tblTempUsageDetail_20' ) end [2024-12-27 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112024', 'tblTempVendorCDR_20' ) start [2024-12-27 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112024', 'tblTempVendorCDR_20' ) end [2024-12-27 05:22:19] Production.INFO: ProcessCDR(1,14112024,1,1,2) [2024-12-27 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112024', 'tblTempUsageDetail_20' ) start [2024-12-27 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112024', 'tblTempUsageDetail_20' ) end [2024-12-27 05:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:22:22] Production.INFO: ==11995== Releasing lock... [2024-12-27 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:22:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:23:05 [end_date_ymd] => 2024-12-27 05:23:05 [RateCDR] => 1 ) [2024-12-27 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:23:05' and `end` < '2024-12-27 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:23:18] Production.INFO: count ==22 [2024-12-27 05:23:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:23:05 - End Time 2024-12-27 05:23:05 [2024-12-27 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112029', 'tblTempUsageDetail_20' ) start [2024-12-27 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112029', 'tblTempUsageDetail_20' ) end [2024-12-27 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112029', 'tblTempVendorCDR_20' ) start [2024-12-27 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112029', 'tblTempVendorCDR_20' ) end [2024-12-27 05:23:18] Production.INFO: ProcessCDR(1,14112029,1,1,2) [2024-12-27 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112029', 'tblTempUsageDetail_20' ) start [2024-12-27 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112029', 'tblTempUsageDetail_20' ) end [2024-12-27 05:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:23:21] Production.INFO: ==12068== Releasing lock... [2024-12-27 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:23:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:24:05 [end_date_ymd] => 2024-12-27 05:24:05 [RateCDR] => 1 ) [2024-12-27 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:24:05' and `end` < '2024-12-27 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:24:18] Production.INFO: count ==22 [2024-12-27 05:24:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:24:05 - End Time 2024-12-27 05:24:05 [2024-12-27 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112034', 'tblTempUsageDetail_20' ) start [2024-12-27 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112034', 'tblTempUsageDetail_20' ) end [2024-12-27 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112034', 'tblTempVendorCDR_20' ) start [2024-12-27 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112034', 'tblTempVendorCDR_20' ) end [2024-12-27 05:24:18] Production.INFO: ProcessCDR(1,14112034,1,1,2) [2024-12-27 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112034', 'tblTempUsageDetail_20' ) start [2024-12-27 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112034', 'tblTempUsageDetail_20' ) end [2024-12-27 05:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:24:21] Production.INFO: ==12154== Releasing lock... [2024-12-27 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:24:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:25:04 [end_date_ymd] => 2024-12-27 05:25:04 [RateCDR] => 1 ) [2024-12-27 05: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-27 02:25:04' and `end` < '2024-12-27 05: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-27 05:25:17] Production.INFO: count ==22 [2024-12-27 05:25:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:25:04 - End Time 2024-12-27 05:25:04 [2024-12-27 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112039', 'tblTempUsageDetail_20' ) start [2024-12-27 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112039', 'tblTempUsageDetail_20' ) end [2024-12-27 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112039', 'tblTempVendorCDR_20' ) start [2024-12-27 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112039', 'tblTempVendorCDR_20' ) end [2024-12-27 05:25:17] Production.INFO: ProcessCDR(1,14112039,1,1,2) [2024-12-27 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112039', 'tblTempUsageDetail_20' ) start [2024-12-27 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112039', 'tblTempUsageDetail_20' ) end [2024-12-27 05:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:25:20] Production.INFO: ==12234== Releasing lock... [2024-12-27 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:25:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:26:05 [end_date_ymd] => 2024-12-27 05:26:05 [RateCDR] => 1 ) [2024-12-27 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:26:05' and `end` < '2024-12-27 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:26:19] Production.INFO: count ==22 [2024-12-27 05:26:19] Production.ERROR: pbx CDR StartTime 2024-12-27 02:26:05 - End Time 2024-12-27 05:26:05 [2024-12-27 05:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112044', 'tblTempUsageDetail_20' ) start [2024-12-27 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112044', 'tblTempUsageDetail_20' ) end [2024-12-27 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112044', 'tblTempVendorCDR_20' ) start [2024-12-27 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112044', 'tblTempVendorCDR_20' ) end [2024-12-27 05:26:19] Production.INFO: ProcessCDR(1,14112044,1,1,2) [2024-12-27 05:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112044', 'tblTempUsageDetail_20' ) start [2024-12-27 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112044', 'tblTempUsageDetail_20' ) end [2024-12-27 05:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:26:22] Production.INFO: ==12311== Releasing lock... [2024-12-27 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:26:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:27:05 [end_date_ymd] => 2024-12-27 05:27:05 [RateCDR] => 1 ) [2024-12-27 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:27:05' and `end` < '2024-12-27 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:27:17] Production.INFO: count ==22 [2024-12-27 05:27:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:27:05 - End Time 2024-12-27 05:27:05 [2024-12-27 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112049', 'tblTempUsageDetail_20' ) start [2024-12-27 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112049', 'tblTempUsageDetail_20' ) end [2024-12-27 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112049', 'tblTempVendorCDR_20' ) start [2024-12-27 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112049', 'tblTempVendorCDR_20' ) end [2024-12-27 05:27:17] Production.INFO: ProcessCDR(1,14112049,1,1,2) [2024-12-27 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112049', 'tblTempUsageDetail_20' ) start [2024-12-27 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112049', 'tblTempUsageDetail_20' ) end [2024-12-27 05:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:27:20] Production.INFO: ==12423== Releasing lock... [2024-12-27 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:27:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:28:05 [end_date_ymd] => 2024-12-27 05:28:05 [RateCDR] => 1 ) [2024-12-27 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:28:05' and `end` < '2024-12-27 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:28:17] Production.INFO: count ==22 [2024-12-27 05:28:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:28:05 - End Time 2024-12-27 05:28:05 [2024-12-27 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112054', 'tblTempUsageDetail_20' ) start [2024-12-27 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112054', 'tblTempUsageDetail_20' ) end [2024-12-27 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112054', 'tblTempVendorCDR_20' ) start [2024-12-27 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112054', 'tblTempVendorCDR_20' ) end [2024-12-27 05:28:17] Production.INFO: ProcessCDR(1,14112054,1,1,2) [2024-12-27 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112054', 'tblTempUsageDetail_20' ) start [2024-12-27 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112054', 'tblTempUsageDetail_20' ) end [2024-12-27 05:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:28:21] Production.INFO: ==12498== Releasing lock... [2024-12-27 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:28:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:29:04 [end_date_ymd] => 2024-12-27 05:29:04 [RateCDR] => 1 ) [2024-12-27 05:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:29:04' and `end` < '2024-12-27 05:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:29:17] Production.INFO: count ==22 [2024-12-27 05:29:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:29:04 - End Time 2024-12-27 05:29:04 [2024-12-27 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112059', 'tblTempUsageDetail_20' ) start [2024-12-27 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112059', 'tblTempUsageDetail_20' ) end [2024-12-27 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112059', 'tblTempVendorCDR_20' ) start [2024-12-27 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112059', 'tblTempVendorCDR_20' ) end [2024-12-27 05:29:17] Production.INFO: ProcessCDR(1,14112059,1,1,2) [2024-12-27 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112059', 'tblTempUsageDetail_20' ) start [2024-12-27 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112059', 'tblTempUsageDetail_20' ) end [2024-12-27 05:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:29:20] Production.INFO: ==12569== Releasing lock... [2024-12-27 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:29:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:30:05 [end_date_ymd] => 2024-12-27 05:30:05 [RateCDR] => 1 ) [2024-12-27 05:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:30:05' and `end` < '2024-12-27 05:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:30:18] Production.INFO: count ==17 [2024-12-27 05:30:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:30:05 - End Time 2024-12-27 05:30:05 [2024-12-27 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112065', 'tblTempUsageDetail_20' ) start [2024-12-27 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112065', 'tblTempUsageDetail_20' ) end [2024-12-27 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112065', 'tblTempVendorCDR_20' ) start [2024-12-27 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112065', 'tblTempVendorCDR_20' ) end [2024-12-27 05:30:18] Production.INFO: ProcessCDR(1,14112065,1,1,2) [2024-12-27 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112065', 'tblTempUsageDetail_20' ) start [2024-12-27 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112065', 'tblTempUsageDetail_20' ) end [2024-12-27 05:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:30:21] Production.INFO: ==12656== Releasing lock... [2024-12-27 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:30:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:31:04 [end_date_ymd] => 2024-12-27 05:31:04 [RateCDR] => 1 ) [2024-12-27 05: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-27 02:31:04' and `end` < '2024-12-27 05: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-27 05:31:17] Production.INFO: count ==17 [2024-12-27 05:31:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:31:04 - End Time 2024-12-27 05:31:04 [2024-12-27 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112070', 'tblTempUsageDetail_20' ) start [2024-12-27 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112070', 'tblTempUsageDetail_20' ) end [2024-12-27 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112070', 'tblTempVendorCDR_20' ) start [2024-12-27 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112070', 'tblTempVendorCDR_20' ) end [2024-12-27 05:31:18] Production.INFO: ProcessCDR(1,14112070,1,1,2) [2024-12-27 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112070', 'tblTempUsageDetail_20' ) start [2024-12-27 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112070', 'tblTempUsageDetail_20' ) end [2024-12-27 05:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:31:21] Production.INFO: ==12764== Releasing lock... [2024-12-27 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:31:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:32:05 [end_date_ymd] => 2024-12-27 05:32:05 [RateCDR] => 1 ) [2024-12-27 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:32:05' and `end` < '2024-12-27 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:32:18] Production.INFO: count ==17 [2024-12-27 05:32:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:32:05 - End Time 2024-12-27 05:32:05 [2024-12-27 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112075', 'tblTempUsageDetail_20' ) start [2024-12-27 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112075', 'tblTempUsageDetail_20' ) end [2024-12-27 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112075', 'tblTempVendorCDR_20' ) start [2024-12-27 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112075', 'tblTempVendorCDR_20' ) end [2024-12-27 05:32:18] Production.INFO: ProcessCDR(1,14112075,1,1,2) [2024-12-27 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112075', 'tblTempUsageDetail_20' ) start [2024-12-27 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112075', 'tblTempUsageDetail_20' ) end [2024-12-27 05:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:32:21] Production.INFO: ==12870== Releasing lock... [2024-12-27 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:32:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:33:05 [end_date_ymd] => 2024-12-27 05:33:05 [RateCDR] => 1 ) [2024-12-27 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:33:05' and `end` < '2024-12-27 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:33:18] Production.INFO: count ==17 [2024-12-27 05:33:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:33:05 - End Time 2024-12-27 05:33:05 [2024-12-27 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112080', 'tblTempUsageDetail_20' ) start [2024-12-27 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112080', 'tblTempUsageDetail_20' ) end [2024-12-27 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112080', 'tblTempVendorCDR_20' ) start [2024-12-27 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112080', 'tblTempVendorCDR_20' ) end [2024-12-27 05:33:18] Production.INFO: ProcessCDR(1,14112080,1,1,2) [2024-12-27 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112080', 'tblTempUsageDetail_20' ) start [2024-12-27 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112080', 'tblTempUsageDetail_20' ) end [2024-12-27 05:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:33:21] Production.INFO: ==12972== Releasing lock... [2024-12-27 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:33:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:34:05 [end_date_ymd] => 2024-12-27 05:34:05 [RateCDR] => 1 ) [2024-12-27 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:34:05' and `end` < '2024-12-27 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:34:18] Production.INFO: count ==17 [2024-12-27 05:34:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:34:05 - End Time 2024-12-27 05:34:05 [2024-12-27 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112085', 'tblTempUsageDetail_20' ) start [2024-12-27 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112085', 'tblTempUsageDetail_20' ) end [2024-12-27 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112085', 'tblTempVendorCDR_20' ) start [2024-12-27 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112085', 'tblTempVendorCDR_20' ) end [2024-12-27 05:34:18] Production.INFO: ProcessCDR(1,14112085,1,1,2) [2024-12-27 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112085', 'tblTempUsageDetail_20' ) start [2024-12-27 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112085', 'tblTempUsageDetail_20' ) end [2024-12-27 05:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:34:21] Production.INFO: ==13079== Releasing lock... [2024-12-27 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:34:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:35:05 [end_date_ymd] => 2024-12-27 05:35:05 [RateCDR] => 1 ) [2024-12-27 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:35:05' and `end` < '2024-12-27 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:35:17] Production.INFO: count ==17 [2024-12-27 05:35:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:35:05 - End Time 2024-12-27 05:35:05 [2024-12-27 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112090', 'tblTempUsageDetail_20' ) start [2024-12-27 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112090', 'tblTempUsageDetail_20' ) end [2024-12-27 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112090', 'tblTempVendorCDR_20' ) start [2024-12-27 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112090', 'tblTempVendorCDR_20' ) end [2024-12-27 05:35:17] Production.INFO: ProcessCDR(1,14112090,1,1,2) [2024-12-27 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112090', 'tblTempUsageDetail_20' ) start [2024-12-27 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112090', 'tblTempUsageDetail_20' ) end [2024-12-27 05:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:35:20] Production.INFO: ==13184== Releasing lock... [2024-12-27 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:35:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:36:04 [end_date_ymd] => 2024-12-27 05:36:04 [RateCDR] => 1 ) [2024-12-27 05: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-27 02:36:04' and `end` < '2024-12-27 05: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-27 05:36:17] Production.INFO: count ==17 [2024-12-27 05:36:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:36:04 - End Time 2024-12-27 05:36:04 [2024-12-27 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112095', 'tblTempUsageDetail_20' ) start [2024-12-27 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112095', 'tblTempUsageDetail_20' ) end [2024-12-27 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112095', 'tblTempVendorCDR_20' ) start [2024-12-27 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112095', 'tblTempVendorCDR_20' ) end [2024-12-27 05:36:17] Production.INFO: ProcessCDR(1,14112095,1,1,2) [2024-12-27 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112095', 'tblTempUsageDetail_20' ) start [2024-12-27 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112095', 'tblTempUsageDetail_20' ) end [2024-12-27 05:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:36:20] Production.INFO: ==13292== Releasing lock... [2024-12-27 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:36:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:37:04 [end_date_ymd] => 2024-12-27 05:37:04 [RateCDR] => 1 ) [2024-12-27 05: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-27 02:37:04' and `end` < '2024-12-27 05: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-27 05:37:17] Production.INFO: count ==17 [2024-12-27 05:37:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:37:04 - End Time 2024-12-27 05:37:04 [2024-12-27 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112100', 'tblTempUsageDetail_20' ) start [2024-12-27 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112100', 'tblTempUsageDetail_20' ) end [2024-12-27 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112100', 'tblTempVendorCDR_20' ) start [2024-12-27 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112100', 'tblTempVendorCDR_20' ) end [2024-12-27 05:37:17] Production.INFO: ProcessCDR(1,14112100,1,1,2) [2024-12-27 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112100', 'tblTempUsageDetail_20' ) start [2024-12-27 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112100', 'tblTempUsageDetail_20' ) end [2024-12-27 05:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:37:20] Production.INFO: ==13398== Releasing lock... [2024-12-27 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:37:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:38:05 [end_date_ymd] => 2024-12-27 05:38:05 [RateCDR] => 1 ) [2024-12-27 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:38:05' and `end` < '2024-12-27 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:38:17] Production.INFO: count ==17 [2024-12-27 05:38:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:38:05 - End Time 2024-12-27 05:38:05 [2024-12-27 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112105', 'tblTempUsageDetail_20' ) start [2024-12-27 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112105', 'tblTempUsageDetail_20' ) end [2024-12-27 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112105', 'tblTempVendorCDR_20' ) start [2024-12-27 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112105', 'tblTempVendorCDR_20' ) end [2024-12-27 05:38:17] Production.INFO: ProcessCDR(1,14112105,1,1,2) [2024-12-27 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112105', 'tblTempUsageDetail_20' ) start [2024-12-27 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112105', 'tblTempUsageDetail_20' ) end [2024-12-27 05:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:38:20] Production.INFO: ==13510== Releasing lock... [2024-12-27 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:38:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:39:05 [end_date_ymd] => 2024-12-27 05:39:05 [RateCDR] => 1 ) [2024-12-27 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:39:05' and `end` < '2024-12-27 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:39:17] Production.INFO: count ==17 [2024-12-27 05:39:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:39:05 - End Time 2024-12-27 05:39:05 [2024-12-27 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112110', 'tblTempUsageDetail_20' ) start [2024-12-27 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112110', 'tblTempUsageDetail_20' ) end [2024-12-27 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112110', 'tblTempVendorCDR_20' ) start [2024-12-27 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112110', 'tblTempVendorCDR_20' ) end [2024-12-27 05:39:17] Production.INFO: ProcessCDR(1,14112110,1,1,2) [2024-12-27 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112110', 'tblTempUsageDetail_20' ) start [2024-12-27 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112110', 'tblTempUsageDetail_20' ) end [2024-12-27 05:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:39:20] Production.INFO: ==13620== Releasing lock... [2024-12-27 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:39:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:40:06 [end_date_ymd] => 2024-12-27 05:40:06 [RateCDR] => 1 ) [2024-12-27 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:40:06' and `end` < '2024-12-27 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:40:18] Production.INFO: count ==14 [2024-12-27 05:40:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:40:06 - End Time 2024-12-27 05:40:06 [2024-12-27 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112116', 'tblTempUsageDetail_20' ) start [2024-12-27 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112116', 'tblTempUsageDetail_20' ) end [2024-12-27 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112116', 'tblTempVendorCDR_20' ) start [2024-12-27 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112116', 'tblTempVendorCDR_20' ) end [2024-12-27 05:40:18] Production.INFO: ProcessCDR(1,14112116,1,1,2) [2024-12-27 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112116', 'tblTempUsageDetail_20' ) start [2024-12-27 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112116', 'tblTempUsageDetail_20' ) end [2024-12-27 05:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:40:21] Production.INFO: ==13723== Releasing lock... [2024-12-27 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:40:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:41:05 [end_date_ymd] => 2024-12-27 05:41:05 [RateCDR] => 1 ) [2024-12-27 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:41:05' and `end` < '2024-12-27 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:41:18] Production.INFO: count ==14 [2024-12-27 05:41:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:41:05 - End Time 2024-12-27 05:41:05 [2024-12-27 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112121', 'tblTempUsageDetail_20' ) start [2024-12-27 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112121', 'tblTempUsageDetail_20' ) end [2024-12-27 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112121', 'tblTempVendorCDR_20' ) start [2024-12-27 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112121', 'tblTempVendorCDR_20' ) end [2024-12-27 05:41:18] Production.INFO: ProcessCDR(1,14112121,1,1,2) [2024-12-27 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112121', 'tblTempUsageDetail_20' ) start [2024-12-27 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112121', 'tblTempUsageDetail_20' ) end [2024-12-27 05:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:41:21] Production.INFO: ==13836== Releasing lock... [2024-12-27 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:41:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:42:05 [end_date_ymd] => 2024-12-27 05:42:05 [RateCDR] => 1 ) [2024-12-27 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:42:05' and `end` < '2024-12-27 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:42:18] Production.INFO: count ==14 [2024-12-27 05:42:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:42:05 - End Time 2024-12-27 05:42:05 [2024-12-27 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112126', 'tblTempUsageDetail_20' ) start [2024-12-27 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112126', 'tblTempUsageDetail_20' ) end [2024-12-27 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112126', 'tblTempVendorCDR_20' ) start [2024-12-27 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112126', 'tblTempVendorCDR_20' ) end [2024-12-27 05:42:18] Production.INFO: ProcessCDR(1,14112126,1,1,2) [2024-12-27 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112126', 'tblTempUsageDetail_20' ) start [2024-12-27 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112126', 'tblTempUsageDetail_20' ) end [2024-12-27 05:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:42:21] Production.INFO: ==13938== Releasing lock... [2024-12-27 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:42:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:43:05 [end_date_ymd] => 2024-12-27 05:43:05 [RateCDR] => 1 ) [2024-12-27 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:43:05' and `end` < '2024-12-27 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:43:18] Production.INFO: count ==14 [2024-12-27 05:43:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:43:05 - End Time 2024-12-27 05:43:05 [2024-12-27 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112131', 'tblTempUsageDetail_20' ) start [2024-12-27 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112131', 'tblTempUsageDetail_20' ) end [2024-12-27 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112131', 'tblTempVendorCDR_20' ) start [2024-12-27 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112131', 'tblTempVendorCDR_20' ) end [2024-12-27 05:43:18] Production.INFO: ProcessCDR(1,14112131,1,1,2) [2024-12-27 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112131', 'tblTempUsageDetail_20' ) start [2024-12-27 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112131', 'tblTempUsageDetail_20' ) end [2024-12-27 05:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:43:21] Production.INFO: ==14079== Releasing lock... [2024-12-27 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:43:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:44:04 [end_date_ymd] => 2024-12-27 05:44:04 [RateCDR] => 1 ) [2024-12-27 05:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:44:04' and `end` < '2024-12-27 05:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:44:17] Production.INFO: count ==14 [2024-12-27 05:44:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:44:04 - End Time 2024-12-27 05:44:04 [2024-12-27 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112136', 'tblTempUsageDetail_20' ) start [2024-12-27 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112136', 'tblTempUsageDetail_20' ) end [2024-12-27 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112136', 'tblTempVendorCDR_20' ) start [2024-12-27 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112136', 'tblTempVendorCDR_20' ) end [2024-12-27 05:44:17] Production.INFO: ProcessCDR(1,14112136,1,1,2) [2024-12-27 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112136', 'tblTempUsageDetail_20' ) start [2024-12-27 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112136', 'tblTempUsageDetail_20' ) end [2024-12-27 05:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:44:20] Production.INFO: ==14186== Releasing lock... [2024-12-27 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:44:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:45:05 [end_date_ymd] => 2024-12-27 05:45:05 [RateCDR] => 1 ) [2024-12-27 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:45:05' and `end` < '2024-12-27 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:45:17] Production.INFO: count ==14 [2024-12-27 05:45:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:45:05 - End Time 2024-12-27 05:45:05 [2024-12-27 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112141', 'tblTempUsageDetail_20' ) start [2024-12-27 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112141', 'tblTempUsageDetail_20' ) end [2024-12-27 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112141', 'tblTempVendorCDR_20' ) start [2024-12-27 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112141', 'tblTempVendorCDR_20' ) end [2024-12-27 05:45:17] Production.INFO: ProcessCDR(1,14112141,1,1,2) [2024-12-27 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112141', 'tblTempUsageDetail_20' ) start [2024-12-27 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112141', 'tblTempUsageDetail_20' ) end [2024-12-27 05:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:45:20] Production.INFO: ==14288== Releasing lock... [2024-12-27 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:45:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:46:05 [end_date_ymd] => 2024-12-27 05:46:05 [RateCDR] => 1 ) [2024-12-27 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:46:05' and `end` < '2024-12-27 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:46:17] Production.INFO: count ==14 [2024-12-27 05:46:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:46:05 - End Time 2024-12-27 05:46:05 [2024-12-27 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112146', 'tblTempUsageDetail_20' ) start [2024-12-27 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112146', 'tblTempUsageDetail_20' ) end [2024-12-27 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112146', 'tblTempVendorCDR_20' ) start [2024-12-27 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112146', 'tblTempVendorCDR_20' ) end [2024-12-27 05:46:17] Production.INFO: ProcessCDR(1,14112146,1,1,2) [2024-12-27 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112146', 'tblTempUsageDetail_20' ) start [2024-12-27 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112146', 'tblTempUsageDetail_20' ) end [2024-12-27 05:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:46:20] Production.INFO: ==14393== Releasing lock... [2024-12-27 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:46:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:47:04 [end_date_ymd] => 2024-12-27 05:47:04 [RateCDR] => 1 ) [2024-12-27 05: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-27 02:47:04' and `end` < '2024-12-27 05: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-27 05:47:17] Production.INFO: count ==14 [2024-12-27 05:47:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:47:04 - End Time 2024-12-27 05:47:04 [2024-12-27 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112151', 'tblTempUsageDetail_20' ) start [2024-12-27 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112151', 'tblTempUsageDetail_20' ) end [2024-12-27 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112151', 'tblTempVendorCDR_20' ) start [2024-12-27 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112151', 'tblTempVendorCDR_20' ) end [2024-12-27 05:47:17] Production.INFO: ProcessCDR(1,14112151,1,1,2) [2024-12-27 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112151', 'tblTempUsageDetail_20' ) start [2024-12-27 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112151', 'tblTempUsageDetail_20' ) end [2024-12-27 05:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:47:20] Production.INFO: ==14474== Releasing lock... [2024-12-27 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:47:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:48:05 [end_date_ymd] => 2024-12-27 05:48:05 [RateCDR] => 1 ) [2024-12-27 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:48:05' and `end` < '2024-12-27 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:48:17] Production.INFO: count ==14 [2024-12-27 05:48:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:48:05 - End Time 2024-12-27 05:48:05 [2024-12-27 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112156', 'tblTempUsageDetail_20' ) start [2024-12-27 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112156', 'tblTempUsageDetail_20' ) end [2024-12-27 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112156', 'tblTempVendorCDR_20' ) start [2024-12-27 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112156', 'tblTempVendorCDR_20' ) end [2024-12-27 05:48:17] Production.INFO: ProcessCDR(1,14112156,1,1,2) [2024-12-27 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112156', 'tblTempUsageDetail_20' ) start [2024-12-27 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112156', 'tblTempUsageDetail_20' ) end [2024-12-27 05:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:48:20] Production.INFO: ==14546== Releasing lock... [2024-12-27 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:48:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:49:04 [end_date_ymd] => 2024-12-27 05:49:04 [RateCDR] => 1 ) [2024-12-27 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-27 02:49:04' and `end` < '2024-12-27 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-27 05:49:16] Production.INFO: count ==14 [2024-12-27 05:49:16] Production.ERROR: pbx CDR StartTime 2024-12-27 02:49:04 - End Time 2024-12-27 05:49:04 [2024-12-27 05:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112161', 'tblTempUsageDetail_20' ) start [2024-12-27 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112161', 'tblTempUsageDetail_20' ) end [2024-12-27 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112161', 'tblTempVendorCDR_20' ) start [2024-12-27 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112161', 'tblTempVendorCDR_20' ) end [2024-12-27 05:49:16] Production.INFO: ProcessCDR(1,14112161,1,1,2) [2024-12-27 05:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:49:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112161', 'tblTempUsageDetail_20' ) start [2024-12-27 05:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112161', 'tblTempUsageDetail_20' ) end [2024-12-27 05:49:19] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:49:19] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:49:19] Production.INFO: ==14626== Releasing lock... [2024-12-27 05:49:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:49:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:50:05 [end_date_ymd] => 2024-12-27 05:50:05 [RateCDR] => 1 ) [2024-12-27 05:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:50:05' and `end` < '2024-12-27 05:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:50:17] Production.INFO: count ==14 [2024-12-27 05:50:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:50:05 - End Time 2024-12-27 05:50:05 [2024-12-27 05:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112166', 'tblTempUsageDetail_20' ) start [2024-12-27 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112166', 'tblTempUsageDetail_20' ) end [2024-12-27 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112166', 'tblTempVendorCDR_20' ) start [2024-12-27 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112166', 'tblTempVendorCDR_20' ) end [2024-12-27 05:50:17] Production.INFO: ProcessCDR(1,14112166,1,1,2) [2024-12-27 05:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112166', 'tblTempUsageDetail_20' ) start [2024-12-27 05:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112166', 'tblTempUsageDetail_20' ) end [2024-12-27 05:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:50:20] Production.INFO: ==14701== Releasing lock... [2024-12-27 05:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:50:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:51:05 [end_date_ymd] => 2024-12-27 05:51:05 [RateCDR] => 1 ) [2024-12-27 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:51:05' and `end` < '2024-12-27 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:51:18] Production.INFO: count ==14 [2024-12-27 05:51:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:51:05 - End Time 2024-12-27 05:51:05 [2024-12-27 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112172', 'tblTempUsageDetail_20' ) start [2024-12-27 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112172', 'tblTempUsageDetail_20' ) end [2024-12-27 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112172', 'tblTempVendorCDR_20' ) start [2024-12-27 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112172', 'tblTempVendorCDR_20' ) end [2024-12-27 05:51:18] Production.INFO: ProcessCDR(1,14112172,1,1,2) [2024-12-27 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112172', 'tblTempUsageDetail_20' ) start [2024-12-27 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112172', 'tblTempUsageDetail_20' ) end [2024-12-27 05:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:51:21] Production.INFO: ==14782== Releasing lock... [2024-12-27 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:51:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:52:04 [end_date_ymd] => 2024-12-27 05:52:04 [RateCDR] => 1 ) [2024-12-27 05: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-27 02:52:04' and `end` < '2024-12-27 05: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-27 05:52:17] Production.INFO: count ==14 [2024-12-27 05:52:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:52:04 - End Time 2024-12-27 05:52:04 [2024-12-27 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112177', 'tblTempUsageDetail_20' ) start [2024-12-27 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112177', 'tblTempUsageDetail_20' ) end [2024-12-27 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112177', 'tblTempVendorCDR_20' ) start [2024-12-27 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112177', 'tblTempVendorCDR_20' ) end [2024-12-27 05:52:17] Production.INFO: ProcessCDR(1,14112177,1,1,2) [2024-12-27 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112177', 'tblTempUsageDetail_20' ) start [2024-12-27 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112177', 'tblTempUsageDetail_20' ) end [2024-12-27 05:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:52:20] Production.INFO: ==14851== Releasing lock... [2024-12-27 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:52:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:53:05 [end_date_ymd] => 2024-12-27 05:53:05 [RateCDR] => 1 ) [2024-12-27 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:53:05' and `end` < '2024-12-27 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:53:18] Production.INFO: count ==14 [2024-12-27 05:53:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:53:05 - End Time 2024-12-27 05:53:05 [2024-12-27 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112182', 'tblTempUsageDetail_20' ) start [2024-12-27 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112182', 'tblTempUsageDetail_20' ) end [2024-12-27 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112182', 'tblTempVendorCDR_20' ) start [2024-12-27 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112182', 'tblTempVendorCDR_20' ) end [2024-12-27 05:53:18] Production.INFO: ProcessCDR(1,14112182,1,1,2) [2024-12-27 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112182', 'tblTempUsageDetail_20' ) start [2024-12-27 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112182', 'tblTempUsageDetail_20' ) end [2024-12-27 05:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:53:21] Production.INFO: ==14930== Releasing lock... [2024-12-27 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:53:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:54:04 [end_date_ymd] => 2024-12-27 05:54:04 [RateCDR] => 1 ) [2024-12-27 05: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-27 02:54:04' and `end` < '2024-12-27 05: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-27 05:54:17] Production.INFO: count ==14 [2024-12-27 05:54:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:54:04 - End Time 2024-12-27 05:54:04 [2024-12-27 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112187', 'tblTempUsageDetail_20' ) start [2024-12-27 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112187', 'tblTempUsageDetail_20' ) end [2024-12-27 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112187', 'tblTempVendorCDR_20' ) start [2024-12-27 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112187', 'tblTempVendorCDR_20' ) end [2024-12-27 05:54:17] Production.INFO: ProcessCDR(1,14112187,1,1,2) [2024-12-27 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112187', 'tblTempUsageDetail_20' ) start [2024-12-27 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112187', 'tblTempUsageDetail_20' ) end [2024-12-27 05:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:54:20] Production.INFO: ==15005== Releasing lock... [2024-12-27 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:54:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:55:05 [end_date_ymd] => 2024-12-27 05:55:05 [RateCDR] => 1 ) [2024-12-27 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:55:05' and `end` < '2024-12-27 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:55:18] Production.INFO: count ==14 [2024-12-27 05:55:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:55:05 - End Time 2024-12-27 05:55:05 [2024-12-27 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112192', 'tblTempUsageDetail_20' ) start [2024-12-27 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112192', 'tblTempUsageDetail_20' ) end [2024-12-27 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112192', 'tblTempVendorCDR_20' ) start [2024-12-27 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112192', 'tblTempVendorCDR_20' ) end [2024-12-27 05:55:18] Production.INFO: ProcessCDR(1,14112192,1,1,2) [2024-12-27 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112192', 'tblTempUsageDetail_20' ) start [2024-12-27 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112192', 'tblTempUsageDetail_20' ) end [2024-12-27 05:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:55:21] Production.INFO: ==15078== Releasing lock... [2024-12-27 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:55:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:56:05 [end_date_ymd] => 2024-12-27 05:56:05 [RateCDR] => 1 ) [2024-12-27 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:56:05' and `end` < '2024-12-27 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:56:17] Production.INFO: count ==14 [2024-12-27 05:56:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:56:05 - End Time 2024-12-27 05:56:05 [2024-12-27 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112197', 'tblTempUsageDetail_20' ) start [2024-12-27 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112197', 'tblTempUsageDetail_20' ) end [2024-12-27 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112197', 'tblTempVendorCDR_20' ) start [2024-12-27 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112197', 'tblTempVendorCDR_20' ) end [2024-12-27 05:56:17] Production.INFO: ProcessCDR(1,14112197,1,1,2) [2024-12-27 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112197', 'tblTempUsageDetail_20' ) start [2024-12-27 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112197', 'tblTempUsageDetail_20' ) end [2024-12-27 05:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:56:20] Production.INFO: ==15153== Releasing lock... [2024-12-27 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:56:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:57:05 [end_date_ymd] => 2024-12-27 05:57:05 [RateCDR] => 1 ) [2024-12-27 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:57:05' and `end` < '2024-12-27 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:57:17] Production.INFO: count ==13 [2024-12-27 05:57:17] Production.ERROR: pbx CDR StartTime 2024-12-27 02:57:05 - End Time 2024-12-27 05:57:05 [2024-12-27 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112202', 'tblTempUsageDetail_20' ) start [2024-12-27 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112202', 'tblTempUsageDetail_20' ) end [2024-12-27 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112202', 'tblTempVendorCDR_20' ) start [2024-12-27 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112202', 'tblTempVendorCDR_20' ) end [2024-12-27 05:57:17] Production.INFO: ProcessCDR(1,14112202,1,1,2) [2024-12-27 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112202', 'tblTempUsageDetail_20' ) start [2024-12-27 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112202', 'tblTempUsageDetail_20' ) end [2024-12-27 05:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:57:20] Production.INFO: ==15229== Releasing lock... [2024-12-27 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:57:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:58:04 [end_date_ymd] => 2024-12-27 05:58:04 [RateCDR] => 1 ) [2024-12-27 05: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-27 02:58:04' and `end` < '2024-12-27 05: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-27 05:58:18] Production.INFO: count ==13 [2024-12-27 05:58:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:58:04 - End Time 2024-12-27 05:58:04 [2024-12-27 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112207', 'tblTempUsageDetail_20' ) start [2024-12-27 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112207', 'tblTempUsageDetail_20' ) end [2024-12-27 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112207', 'tblTempVendorCDR_20' ) start [2024-12-27 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112207', 'tblTempVendorCDR_20' ) end [2024-12-27 05:58:18] Production.INFO: ProcessCDR(1,14112207,1,1,2) [2024-12-27 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112207', 'tblTempUsageDetail_20' ) start [2024-12-27 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112207', 'tblTempUsageDetail_20' ) end [2024-12-27 05:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:58:21] Production.INFO: ==15308== Releasing lock... [2024-12-27 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:58:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 02:59:05 [end_date_ymd] => 2024-12-27 05:59:05 [RateCDR] => 1 ) [2024-12-27 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 02:59:05' and `end` < '2024-12-27 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 05:59:18] Production.INFO: count ==13 [2024-12-27 05:59:18] Production.ERROR: pbx CDR StartTime 2024-12-27 02:59:05 - End Time 2024-12-27 05:59:05 [2024-12-27 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112212', 'tblTempUsageDetail_20' ) start [2024-12-27 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112212', 'tblTempUsageDetail_20' ) end [2024-12-27 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112212', 'tblTempVendorCDR_20' ) start [2024-12-27 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112212', 'tblTempVendorCDR_20' ) end [2024-12-27 05:59:18] Production.INFO: ProcessCDR(1,14112212,1,1,2) [2024-12-27 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112212', 'tblTempUsageDetail_20' ) start [2024-12-27 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112212', 'tblTempUsageDetail_20' ) end [2024-12-27 05:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 05:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 05:59:21] Production.INFO: ==15421== Releasing lock... [2024-12-27 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 05:59:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:00:05 [end_date_ymd] => 2024-12-27 06:00:05 [RateCDR] => 1 ) [2024-12-27 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-27 03:00:05' and `end` < '2024-12-27 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-27 06:00:17] Production.INFO: count ==13 [2024-12-27 06:00:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:00:05 - End Time 2024-12-27 06:00:05 [2024-12-27 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112218', 'tblTempUsageDetail_20' ) start [2024-12-27 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112218', 'tblTempUsageDetail_20' ) end [2024-12-27 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112218', 'tblTempVendorCDR_20' ) start [2024-12-27 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112218', 'tblTempVendorCDR_20' ) end [2024-12-27 06:00:17] Production.INFO: ProcessCDR(1,14112218,1,1,2) [2024-12-27 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112218', 'tblTempUsageDetail_20' ) start [2024-12-27 06:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112218', 'tblTempUsageDetail_20' ) end [2024-12-27 06:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:00:20] Production.INFO: ==15498== Releasing lock... [2024-12-27 06:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:00:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:01:05 [end_date_ymd] => 2024-12-27 06:01:05 [RateCDR] => 1 ) [2024-12-27 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:01:05' and `end` < '2024-12-27 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:01:17] Production.INFO: count ==13 [2024-12-27 06:01:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:01:05 - End Time 2024-12-27 06:01:05 [2024-12-27 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112223', 'tblTempUsageDetail_20' ) start [2024-12-27 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112223', 'tblTempUsageDetail_20' ) end [2024-12-27 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112223', 'tblTempVendorCDR_20' ) start [2024-12-27 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112223', 'tblTempVendorCDR_20' ) end [2024-12-27 06:01:17] Production.INFO: ProcessCDR(1,14112223,1,1,2) [2024-12-27 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112223', 'tblTempUsageDetail_20' ) start [2024-12-27 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112223', 'tblTempUsageDetail_20' ) end [2024-12-27 06:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:01:20] Production.INFO: ==15593== Releasing lock... [2024-12-27 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:01:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:02:05 [end_date_ymd] => 2024-12-27 06:02:05 [RateCDR] => 1 ) [2024-12-27 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:02:05' and `end` < '2024-12-27 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:02:18] Production.INFO: count ==13 [2024-12-27 06:02:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:02:05 - End Time 2024-12-27 06:02:05 [2024-12-27 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112228', 'tblTempUsageDetail_20' ) start [2024-12-27 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112228', 'tblTempUsageDetail_20' ) end [2024-12-27 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112228', 'tblTempVendorCDR_20' ) start [2024-12-27 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112228', 'tblTempVendorCDR_20' ) end [2024-12-27 06:02:18] Production.INFO: ProcessCDR(1,14112228,1,1,2) [2024-12-27 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112228', 'tblTempUsageDetail_20' ) start [2024-12-27 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112228', 'tblTempUsageDetail_20' ) end [2024-12-27 06:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:02:21] Production.INFO: ==15688== Releasing lock... [2024-12-27 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:02:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:03:05 [end_date_ymd] => 2024-12-27 06:03:05 [RateCDR] => 1 ) [2024-12-27 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:03:05' and `end` < '2024-12-27 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:03:18] Production.INFO: count ==13 [2024-12-27 06:03:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:03:05 - End Time 2024-12-27 06:03:05 [2024-12-27 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112233', 'tblTempUsageDetail_20' ) start [2024-12-27 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112233', 'tblTempUsageDetail_20' ) end [2024-12-27 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112233', 'tblTempVendorCDR_20' ) start [2024-12-27 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112233', 'tblTempVendorCDR_20' ) end [2024-12-27 06:03:18] Production.INFO: ProcessCDR(1,14112233,1,1,2) [2024-12-27 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112233', 'tblTempUsageDetail_20' ) start [2024-12-27 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112233', 'tblTempUsageDetail_20' ) end [2024-12-27 06:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:03:21] Production.INFO: ==15793== Releasing lock... [2024-12-27 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:03:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:04:05 [end_date_ymd] => 2024-12-27 06:04:05 [RateCDR] => 1 ) [2024-12-27 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:04:05' and `end` < '2024-12-27 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:04:18] Production.INFO: count ==13 [2024-12-27 06:04:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:04:05 - End Time 2024-12-27 06:04:05 [2024-12-27 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112238', 'tblTempUsageDetail_20' ) start [2024-12-27 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112238', 'tblTempUsageDetail_20' ) end [2024-12-27 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112238', 'tblTempVendorCDR_20' ) start [2024-12-27 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112238', 'tblTempVendorCDR_20' ) end [2024-12-27 06:04:18] Production.INFO: ProcessCDR(1,14112238,1,1,2) [2024-12-27 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112238', 'tblTempUsageDetail_20' ) start [2024-12-27 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112238', 'tblTempUsageDetail_20' ) end [2024-12-27 06:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:04:21] Production.INFO: ==15880== Releasing lock... [2024-12-27 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:04:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:05:04 [end_date_ymd] => 2024-12-27 06:05:04 [RateCDR] => 1 ) [2024-12-27 06: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-27 03:05:04' and `end` < '2024-12-27 06: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-27 06:05:17] Production.INFO: count ==13 [2024-12-27 06:05:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:05:04 - End Time 2024-12-27 06:05:04 [2024-12-27 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112243', 'tblTempUsageDetail_20' ) start [2024-12-27 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112243', 'tblTempUsageDetail_20' ) end [2024-12-27 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112243', 'tblTempVendorCDR_20' ) start [2024-12-27 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112243', 'tblTempVendorCDR_20' ) end [2024-12-27 06:05:17] Production.INFO: ProcessCDR(1,14112243,1,1,2) [2024-12-27 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112243', 'tblTempUsageDetail_20' ) start [2024-12-27 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112243', 'tblTempUsageDetail_20' ) end [2024-12-27 06:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:05:21] Production.INFO: ==15963== Releasing lock... [2024-12-27 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:05:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:06:05 [end_date_ymd] => 2024-12-27 06:06:05 [RateCDR] => 1 ) [2024-12-27 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:06:05' and `end` < '2024-12-27 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:06:18] Production.INFO: count ==13 [2024-12-27 06:06:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:06:05 - End Time 2024-12-27 06:06:05 [2024-12-27 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112248', 'tblTempUsageDetail_20' ) start [2024-12-27 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112248', 'tblTempUsageDetail_20' ) end [2024-12-27 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112248', 'tblTempVendorCDR_20' ) start [2024-12-27 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112248', 'tblTempVendorCDR_20' ) end [2024-12-27 06:06:18] Production.INFO: ProcessCDR(1,14112248,1,1,2) [2024-12-27 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112248', 'tblTempUsageDetail_20' ) start [2024-12-27 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112248', 'tblTempUsageDetail_20' ) end [2024-12-27 06:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:06:21] Production.INFO: ==16036== Releasing lock... [2024-12-27 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:06:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:07:04 [end_date_ymd] => 2024-12-27 06:07:04 [RateCDR] => 1 ) [2024-12-27 06:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:07:04' and `end` < '2024-12-27 06:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:07:17] Production.INFO: count ==13 [2024-12-27 06:07:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:07:04 - End Time 2024-12-27 06:07:04 [2024-12-27 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112253', 'tblTempUsageDetail_20' ) start [2024-12-27 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112253', 'tblTempUsageDetail_20' ) end [2024-12-27 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112253', 'tblTempVendorCDR_20' ) start [2024-12-27 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112253', 'tblTempVendorCDR_20' ) end [2024-12-27 06:07:18] Production.INFO: ProcessCDR(1,14112253,1,1,2) [2024-12-27 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112253', 'tblTempUsageDetail_20' ) start [2024-12-27 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112253', 'tblTempUsageDetail_20' ) end [2024-12-27 06:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:07:21] Production.INFO: ==16116== Releasing lock... [2024-12-27 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:07:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:08:05 [end_date_ymd] => 2024-12-27 06:08:05 [RateCDR] => 1 ) [2024-12-27 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:08:05' and `end` < '2024-12-27 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:08:18] Production.INFO: count ==13 [2024-12-27 06:08:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:08:05 - End Time 2024-12-27 06:08:05 [2024-12-27 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112258', 'tblTempUsageDetail_20' ) start [2024-12-27 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112258', 'tblTempUsageDetail_20' ) end [2024-12-27 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112258', 'tblTempVendorCDR_20' ) start [2024-12-27 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112258', 'tblTempVendorCDR_20' ) end [2024-12-27 06:08:18] Production.INFO: ProcessCDR(1,14112258,1,1,2) [2024-12-27 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112258', 'tblTempUsageDetail_20' ) start [2024-12-27 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112258', 'tblTempUsageDetail_20' ) end [2024-12-27 06:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:08:21] Production.INFO: ==16194== Releasing lock... [2024-12-27 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:08:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:09:05 [end_date_ymd] => 2024-12-27 06:09:05 [RateCDR] => 1 ) [2024-12-27 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:09:05' and `end` < '2024-12-27 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:09:18] Production.INFO: count ==13 [2024-12-27 06:09:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:09:05 - End Time 2024-12-27 06:09:05 [2024-12-27 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112263', 'tblTempUsageDetail_20' ) start [2024-12-27 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112263', 'tblTempUsageDetail_20' ) end [2024-12-27 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112263', 'tblTempVendorCDR_20' ) start [2024-12-27 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112263', 'tblTempVendorCDR_20' ) end [2024-12-27 06:09:18] Production.INFO: ProcessCDR(1,14112263,1,1,2) [2024-12-27 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112263', 'tblTempUsageDetail_20' ) start [2024-12-27 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112263', 'tblTempUsageDetail_20' ) end [2024-12-27 06:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:09:21] Production.INFO: ==16274== Releasing lock... [2024-12-27 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:09:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:10:05 [end_date_ymd] => 2024-12-27 06:10:05 [RateCDR] => 1 ) [2024-12-27 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-27 03:10:05' and `end` < '2024-12-27 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-27 06:10:18] Production.INFO: count ==13 [2024-12-27 06:10:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:10:05 - End Time 2024-12-27 06:10:05 [2024-12-27 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112268', 'tblTempUsageDetail_20' ) start [2024-12-27 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112268', 'tblTempUsageDetail_20' ) end [2024-12-27 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112268', 'tblTempVendorCDR_20' ) start [2024-12-27 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112268', 'tblTempVendorCDR_20' ) end [2024-12-27 06:10:18] Production.INFO: ProcessCDR(1,14112268,1,1,2) [2024-12-27 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112268', 'tblTempUsageDetail_20' ) start [2024-12-27 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112268', 'tblTempUsageDetail_20' ) end [2024-12-27 06:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:10:22] Production.INFO: ==16348== Releasing lock... [2024-12-27 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:10:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:11:05 [end_date_ymd] => 2024-12-27 06:11:05 [RateCDR] => 1 ) [2024-12-27 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:11:05' and `end` < '2024-12-27 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:11:18] Production.INFO: count ==13 [2024-12-27 06:11:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:11:05 - End Time 2024-12-27 06:11:05 [2024-12-27 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112274', 'tblTempUsageDetail_20' ) start [2024-12-27 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112274', 'tblTempUsageDetail_20' ) end [2024-12-27 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112274', 'tblTempVendorCDR_20' ) start [2024-12-27 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112274', 'tblTempVendorCDR_20' ) end [2024-12-27 06:11:18] Production.INFO: ProcessCDR(1,14112274,1,1,2) [2024-12-27 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112274', 'tblTempUsageDetail_20' ) start [2024-12-27 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112274', 'tblTempUsageDetail_20' ) end [2024-12-27 06:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:11:21] Production.INFO: ==16431== Releasing lock... [2024-12-27 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:11:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:12:05 [end_date_ymd] => 2024-12-27 06:12:05 [RateCDR] => 1 ) [2024-12-27 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:12:05' and `end` < '2024-12-27 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:12:17] Production.INFO: count ==13 [2024-12-27 06:12:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:12:05 - End Time 2024-12-27 06:12:05 [2024-12-27 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112279', 'tblTempUsageDetail_20' ) start [2024-12-27 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112279', 'tblTempUsageDetail_20' ) end [2024-12-27 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112279', 'tblTempVendorCDR_20' ) start [2024-12-27 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112279', 'tblTempVendorCDR_20' ) end [2024-12-27 06:12:17] Production.INFO: ProcessCDR(1,14112279,1,1,2) [2024-12-27 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112279', 'tblTempUsageDetail_20' ) start [2024-12-27 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112279', 'tblTempUsageDetail_20' ) end [2024-12-27 06:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:12:20] Production.INFO: ==16508== Releasing lock... [2024-12-27 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:12:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:13:05 [end_date_ymd] => 2024-12-27 06:13:05 [RateCDR] => 1 ) [2024-12-27 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:13:05' and `end` < '2024-12-27 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:13:18] Production.INFO: count ==13 [2024-12-27 06:13:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:13:05 - End Time 2024-12-27 06:13:05 [2024-12-27 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112284', 'tblTempUsageDetail_20' ) start [2024-12-27 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112284', 'tblTempUsageDetail_20' ) end [2024-12-27 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112284', 'tblTempVendorCDR_20' ) start [2024-12-27 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112284', 'tblTempVendorCDR_20' ) end [2024-12-27 06:13:18] Production.INFO: ProcessCDR(1,14112284,1,1,2) [2024-12-27 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112284', 'tblTempUsageDetail_20' ) start [2024-12-27 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112284', 'tblTempUsageDetail_20' ) end [2024-12-27 06:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:13:21] Production.INFO: ==16592== Releasing lock... [2024-12-27 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:13:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:14:04 [end_date_ymd] => 2024-12-27 06:14:04 [RateCDR] => 1 ) [2024-12-27 06:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:14:04' and `end` < '2024-12-27 06:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:14:18] Production.INFO: count ==13 [2024-12-27 06:14:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:14:04 - End Time 2024-12-27 06:14:04 [2024-12-27 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112289', 'tblTempUsageDetail_20' ) start [2024-12-27 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112289', 'tblTempUsageDetail_20' ) end [2024-12-27 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112289', 'tblTempVendorCDR_20' ) start [2024-12-27 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112289', 'tblTempVendorCDR_20' ) end [2024-12-27 06:14:18] Production.INFO: ProcessCDR(1,14112289,1,1,2) [2024-12-27 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112289', 'tblTempUsageDetail_20' ) start [2024-12-27 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112289', 'tblTempUsageDetail_20' ) end [2024-12-27 06:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:14:21] Production.INFO: ==16713== Releasing lock... [2024-12-27 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:14:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:15:04 [end_date_ymd] => 2024-12-27 06:15:04 [RateCDR] => 1 ) [2024-12-27 06: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-27 03:15:04' and `end` < '2024-12-27 06: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-27 06:15:17] Production.INFO: count ==13 [2024-12-27 06:15:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:15:04 - End Time 2024-12-27 06:15:04 [2024-12-27 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112294', 'tblTempUsageDetail_20' ) start [2024-12-27 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112294', 'tblTempUsageDetail_20' ) end [2024-12-27 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112294', 'tblTempVendorCDR_20' ) start [2024-12-27 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112294', 'tblTempVendorCDR_20' ) end [2024-12-27 06:15:17] Production.INFO: ProcessCDR(1,14112294,1,1,2) [2024-12-27 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112294', 'tblTempUsageDetail_20' ) start [2024-12-27 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112294', 'tblTempUsageDetail_20' ) end [2024-12-27 06:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:15:20] Production.INFO: ==16791== Releasing lock... [2024-12-27 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:15:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:16:05 [end_date_ymd] => 2024-12-27 06:16:05 [RateCDR] => 1 ) [2024-12-27 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:16:05' and `end` < '2024-12-27 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:16:19] Production.INFO: count ==13 [2024-12-27 06:16:19] Production.ERROR: pbx CDR StartTime 2024-12-27 03:16:05 - End Time 2024-12-27 06:16:05 [2024-12-27 06:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112299', 'tblTempUsageDetail_20' ) start [2024-12-27 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112299', 'tblTempUsageDetail_20' ) end [2024-12-27 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112299', 'tblTempVendorCDR_20' ) start [2024-12-27 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112299', 'tblTempVendorCDR_20' ) end [2024-12-27 06:16:19] Production.INFO: ProcessCDR(1,14112299,1,1,2) [2024-12-27 06:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112299', 'tblTempUsageDetail_20' ) start [2024-12-27 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112299', 'tblTempUsageDetail_20' ) end [2024-12-27 06:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:16:22] Production.INFO: ==16869== Releasing lock... [2024-12-27 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:16:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:17:04 [end_date_ymd] => 2024-12-27 06:17:04 [RateCDR] => 1 ) [2024-12-27 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-27 03:17:04' and `end` < '2024-12-27 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-27 06:17:17] Production.INFO: count ==13 [2024-12-27 06:17:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:17:04 - End Time 2024-12-27 06:17:04 [2024-12-27 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112304', 'tblTempUsageDetail_20' ) start [2024-12-27 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112304', 'tblTempUsageDetail_20' ) end [2024-12-27 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112304', 'tblTempVendorCDR_20' ) start [2024-12-27 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112304', 'tblTempVendorCDR_20' ) end [2024-12-27 06:17:17] Production.INFO: ProcessCDR(1,14112304,1,1,2) [2024-12-27 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112304', 'tblTempUsageDetail_20' ) start [2024-12-27 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112304', 'tblTempUsageDetail_20' ) end [2024-12-27 06:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:17:20] Production.INFO: ==16951== Releasing lock... [2024-12-27 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:17:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:18:05 [end_date_ymd] => 2024-12-27 06:18:05 [RateCDR] => 1 ) [2024-12-27 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:18:05' and `end` < '2024-12-27 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:18:17] Production.INFO: count ==13 [2024-12-27 06:18:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:18:05 - End Time 2024-12-27 06:18:05 [2024-12-27 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112309', 'tblTempUsageDetail_20' ) start [2024-12-27 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112309', 'tblTempUsageDetail_20' ) end [2024-12-27 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112309', 'tblTempVendorCDR_20' ) start [2024-12-27 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112309', 'tblTempVendorCDR_20' ) end [2024-12-27 06:18:17] Production.INFO: ProcessCDR(1,14112309,1,1,2) [2024-12-27 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112309', 'tblTempUsageDetail_20' ) start [2024-12-27 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112309', 'tblTempUsageDetail_20' ) end [2024-12-27 06:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:18:20] Production.INFO: ==17032== Releasing lock... [2024-12-27 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:18:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:19:05 [end_date_ymd] => 2024-12-27 06:19:05 [RateCDR] => 1 ) [2024-12-27 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:19:05' and `end` < '2024-12-27 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:19:18] Production.INFO: count ==13 [2024-12-27 06:19:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:19:05 - End Time 2024-12-27 06:19:05 [2024-12-27 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112314', 'tblTempUsageDetail_20' ) start [2024-12-27 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112314', 'tblTempUsageDetail_20' ) end [2024-12-27 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112314', 'tblTempVendorCDR_20' ) start [2024-12-27 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112314', 'tblTempVendorCDR_20' ) end [2024-12-27 06:19:18] Production.INFO: ProcessCDR(1,14112314,1,1,2) [2024-12-27 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112314', 'tblTempUsageDetail_20' ) start [2024-12-27 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112314', 'tblTempUsageDetail_20' ) end [2024-12-27 06:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:19:21] Production.INFO: ==17121== Releasing lock... [2024-12-27 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:19:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:20:05 [end_date_ymd] => 2024-12-27 06:20:05 [RateCDR] => 1 ) [2024-12-27 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:20:05' and `end` < '2024-12-27 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:20:17] Production.INFO: count ==7 [2024-12-27 06:20:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:20:05 - End Time 2024-12-27 06:20:05 [2024-12-27 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112319', 'tblTempUsageDetail_20' ) start [2024-12-27 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112319', 'tblTempUsageDetail_20' ) end [2024-12-27 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112319', 'tblTempVendorCDR_20' ) start [2024-12-27 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112319', 'tblTempVendorCDR_20' ) end [2024-12-27 06:20:17] Production.INFO: ProcessCDR(1,14112319,1,1,2) [2024-12-27 06:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112319', 'tblTempUsageDetail_20' ) start [2024-12-27 06:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112319', 'tblTempUsageDetail_20' ) end [2024-12-27 06:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:20:20] Production.INFO: ==17205== Releasing lock... [2024-12-27 06:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:20:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-27 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:21:05 [end_date_ymd] => 2024-12-27 06:21:05 [RateCDR] => 1 ) [2024-12-27 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:21:05' and `end` < '2024-12-27 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:21:18] Production.INFO: count ==5 [2024-12-27 06:21:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:21:05 - End Time 2024-12-27 06:21:05 [2024-12-27 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112325', 'tblTempUsageDetail_20' ) start [2024-12-27 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112325', 'tblTempUsageDetail_20' ) end [2024-12-27 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112325', 'tblTempVendorCDR_20' ) start [2024-12-27 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112325', 'tblTempVendorCDR_20' ) end [2024-12-27 06:21:18] Production.INFO: ProcessCDR(1,14112325,1,1,2) [2024-12-27 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112325', 'tblTempUsageDetail_20' ) start [2024-12-27 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112325', 'tblTempUsageDetail_20' ) end [2024-12-27 06:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:21:21] Production.INFO: ==17290== Releasing lock... [2024-12-27 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:21:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-27 06:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:22:04 [end_date_ymd] => 2024-12-27 06:22:04 [RateCDR] => 1 ) [2024-12-27 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-27 03:22:04' and `end` < '2024-12-27 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-27 06:22:18] Production.INFO: count ==5 [2024-12-27 06:22:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:22:04 - End Time 2024-12-27 06:22:04 [2024-12-27 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112330', 'tblTempUsageDetail_20' ) start [2024-12-27 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112330', 'tblTempUsageDetail_20' ) end [2024-12-27 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112330', 'tblTempVendorCDR_20' ) start [2024-12-27 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112330', 'tblTempVendorCDR_20' ) end [2024-12-27 06:22:18] Production.INFO: ProcessCDR(1,14112330,1,1,2) [2024-12-27 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112330', 'tblTempUsageDetail_20' ) start [2024-12-27 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112330', 'tblTempUsageDetail_20' ) end [2024-12-27 06:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:22:21] Production.INFO: ==17370== Releasing lock... [2024-12-27 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:22:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-27 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:23:05 [end_date_ymd] => 2024-12-27 06:23:05 [RateCDR] => 1 ) [2024-12-27 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-27 03:23:05' and `end` < '2024-12-27 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-27 06:23:18] Production.INFO: count ==5 [2024-12-27 06:23:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:23:05 - End Time 2024-12-27 06:23:05 [2024-12-27 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112335', 'tblTempUsageDetail_20' ) start [2024-12-27 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112335', 'tblTempUsageDetail_20' ) end [2024-12-27 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112335', 'tblTempVendorCDR_20' ) start [2024-12-27 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112335', 'tblTempVendorCDR_20' ) end [2024-12-27 06:23:18] Production.INFO: ProcessCDR(1,14112335,1,1,2) [2024-12-27 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112335', 'tblTempUsageDetail_20' ) start [2024-12-27 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112335', 'tblTempUsageDetail_20' ) end [2024-12-27 06:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:23:21] Production.INFO: ==17457== Releasing lock... [2024-12-27 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:23:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-27 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:24:05 [end_date_ymd] => 2024-12-27 06:24:05 [RateCDR] => 1 ) [2024-12-27 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:24:05' and `end` < '2024-12-27 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:24:17] Production.INFO: count ==5 [2024-12-27 06:24:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:24:05 - End Time 2024-12-27 06:24:05 [2024-12-27 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112340', 'tblTempUsageDetail_20' ) start [2024-12-27 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112340', 'tblTempUsageDetail_20' ) end [2024-12-27 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112340', 'tblTempVendorCDR_20' ) start [2024-12-27 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112340', 'tblTempVendorCDR_20' ) end [2024-12-27 06:24:17] Production.INFO: ProcessCDR(1,14112340,1,1,2) [2024-12-27 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112340', 'tblTempUsageDetail_20' ) start [2024-12-27 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112340', 'tblTempUsageDetail_20' ) end [2024-12-27 06:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:24:20] Production.INFO: ==17543== Releasing lock... [2024-12-27 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:24:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-27 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:25:05 [end_date_ymd] => 2024-12-27 06:25:05 [RateCDR] => 1 ) [2024-12-27 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:25:05' and `end` < '2024-12-27 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:25:17] Production.INFO: count ==5 [2024-12-27 06:25:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:25:05 - End Time 2024-12-27 06:25:05 [2024-12-27 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112345', 'tblTempUsageDetail_20' ) start [2024-12-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112345', 'tblTempUsageDetail_20' ) end [2024-12-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112345', 'tblTempVendorCDR_20' ) start [2024-12-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112345', 'tblTempVendorCDR_20' ) end [2024-12-27 06:25:17] Production.INFO: ProcessCDR(1,14112345,1,1,2) [2024-12-27 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112345', 'tblTempUsageDetail_20' ) start [2024-12-27 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112345', 'tblTempUsageDetail_20' ) end [2024-12-27 06:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:25:20] Production.INFO: ==17620== Releasing lock... [2024-12-27 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:25:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-27 06:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:26:04 [end_date_ymd] => 2024-12-27 06:26:04 [RateCDR] => 1 ) [2024-12-27 06:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:26:04' and `end` < '2024-12-27 06:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:26:17] Production.INFO: count ==5 [2024-12-27 06:26:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:26:04 - End Time 2024-12-27 06:26:04 [2024-12-27 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112350', 'tblTempUsageDetail_20' ) start [2024-12-27 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112350', 'tblTempUsageDetail_20' ) end [2024-12-27 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112350', 'tblTempVendorCDR_20' ) start [2024-12-27 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112350', 'tblTempVendorCDR_20' ) end [2024-12-27 06:26:17] Production.INFO: ProcessCDR(1,14112350,1,1,2) [2024-12-27 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112350', 'tblTempUsageDetail_20' ) start [2024-12-27 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112350', 'tblTempUsageDetail_20' ) end [2024-12-27 06:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:26:20] Production.INFO: ==17706== Releasing lock... [2024-12-27 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:26:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-27 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:27:05 [end_date_ymd] => 2024-12-27 06:27:05 [RateCDR] => 1 ) [2024-12-27 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:27:05' and `end` < '2024-12-27 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:27:17] Production.INFO: count ==5 [2024-12-27 06:27:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:27:05 - End Time 2024-12-27 06:27:05 [2024-12-27 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112355', 'tblTempUsageDetail_20' ) start [2024-12-27 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112355', 'tblTempUsageDetail_20' ) end [2024-12-27 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112355', 'tblTempVendorCDR_20' ) start [2024-12-27 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112355', 'tblTempVendorCDR_20' ) end [2024-12-27 06:27:17] Production.INFO: ProcessCDR(1,14112355,1,1,2) [2024-12-27 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112355', 'tblTempUsageDetail_20' ) start [2024-12-27 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112355', 'tblTempUsageDetail_20' ) end [2024-12-27 06:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:27:20] Production.INFO: ==17791== Releasing lock... [2024-12-27 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:27:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-27 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:28:05 [end_date_ymd] => 2024-12-27 06:28:05 [RateCDR] => 1 ) [2024-12-27 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:28:05' and `end` < '2024-12-27 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:28:19] Production.INFO: count ==5 [2024-12-27 06:28:19] Production.ERROR: pbx CDR StartTime 2024-12-27 03:28:05 - End Time 2024-12-27 06:28:05 [2024-12-27 06:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112360', 'tblTempUsageDetail_20' ) start [2024-12-27 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112360', 'tblTempUsageDetail_20' ) end [2024-12-27 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112360', 'tblTempVendorCDR_20' ) start [2024-12-27 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112360', 'tblTempVendorCDR_20' ) end [2024-12-27 06:28:19] Production.INFO: ProcessCDR(1,14112360,1,1,2) [2024-12-27 06:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112360', 'tblTempUsageDetail_20' ) start [2024-12-27 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112360', 'tblTempUsageDetail_20' ) end [2024-12-27 06:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:28:22] Production.INFO: ==17870== Releasing lock... [2024-12-27 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:28:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-27 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:29:05 [end_date_ymd] => 2024-12-27 06:29:05 [RateCDR] => 1 ) [2024-12-27 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:29:05' and `end` < '2024-12-27 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:29:17] Production.INFO: count ==5 [2024-12-27 06:29:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:29:05 - End Time 2024-12-27 06:29:05 [2024-12-27 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112365', 'tblTempUsageDetail_20' ) start [2024-12-27 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112365', 'tblTempUsageDetail_20' ) end [2024-12-27 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112365', 'tblTempVendorCDR_20' ) start [2024-12-27 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112365', 'tblTempVendorCDR_20' ) end [2024-12-27 06:29:17] Production.INFO: ProcessCDR(1,14112365,1,1,2) [2024-12-27 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112365', 'tblTempUsageDetail_20' ) start [2024-12-27 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112365', 'tblTempUsageDetail_20' ) end [2024-12-27 06:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:29:21] Production.INFO: ==17952== Releasing lock... [2024-12-27 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:29:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-27 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:30:06 [end_date_ymd] => 2024-12-27 06:30:06 [RateCDR] => 1 ) [2024-12-27 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:30:06' and `end` < '2024-12-27 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:30:18] Production.INFO: count ==7 [2024-12-27 06:30:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:30:06 - End Time 2024-12-27 06:30:06 [2024-12-27 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112370', 'tblTempUsageDetail_20' ) start [2024-12-27 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112370', 'tblTempUsageDetail_20' ) end [2024-12-27 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112370', 'tblTempVendorCDR_20' ) start [2024-12-27 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112370', 'tblTempVendorCDR_20' ) end [2024-12-27 06:30:18] Production.INFO: ProcessCDR(1,14112370,1,1,2) [2024-12-27 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112370', 'tblTempUsageDetail_20' ) start [2024-12-27 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112370', 'tblTempUsageDetail_20' ) end [2024-12-27 06:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:30:21] Production.INFO: ==18077== Releasing lock... [2024-12-27 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:30:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-27 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:31:05 [end_date_ymd] => 2024-12-27 06:31:05 [RateCDR] => 1 ) [2024-12-27 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:31:05' and `end` < '2024-12-27 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:31:18] Production.INFO: count ==8 [2024-12-27 06:31:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:31:05 - End Time 2024-12-27 06:31:05 [2024-12-27 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112376', 'tblTempUsageDetail_20' ) start [2024-12-27 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112376', 'tblTempUsageDetail_20' ) end [2024-12-27 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112376', 'tblTempVendorCDR_20' ) start [2024-12-27 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112376', 'tblTempVendorCDR_20' ) end [2024-12-27 06:31:18] Production.INFO: ProcessCDR(1,14112376,1,1,2) [2024-12-27 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112376', 'tblTempUsageDetail_20' ) start [2024-12-27 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112376', 'tblTempUsageDetail_20' ) end [2024-12-27 06:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:31:22] Production.INFO: ==18164== Releasing lock... [2024-12-27 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:31:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-27 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:32:05 [end_date_ymd] => 2024-12-27 06:32:05 [RateCDR] => 1 ) [2024-12-27 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:32:05' and `end` < '2024-12-27 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:32:18] Production.INFO: count ==9 [2024-12-27 06:32:19] Production.ERROR: pbx CDR StartTime 2024-12-27 03:32:05 - End Time 2024-12-27 06:32:05 [2024-12-27 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112381', 'tblTempUsageDetail_20' ) start [2024-12-27 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112381', 'tblTempUsageDetail_20' ) end [2024-12-27 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112381', 'tblTempVendorCDR_20' ) start [2024-12-27 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112381', 'tblTempVendorCDR_20' ) end [2024-12-27 06:32:19] Production.INFO: ProcessCDR(1,14112381,1,1,2) [2024-12-27 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112381', 'tblTempUsageDetail_20' ) start [2024-12-27 06:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112381', 'tblTempUsageDetail_20' ) end [2024-12-27 06:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:32:23] Production.INFO: ==18242== Releasing lock... [2024-12-27 06:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:32:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:33:05 [end_date_ymd] => 2024-12-27 06:33:05 [RateCDR] => 1 ) [2024-12-27 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:33:05' and `end` < '2024-12-27 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:33:18] Production.INFO: count ==9 [2024-12-27 06:33:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:33:05 - End Time 2024-12-27 06:33:05 [2024-12-27 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112386', 'tblTempUsageDetail_20' ) start [2024-12-27 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112386', 'tblTempUsageDetail_20' ) end [2024-12-27 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112386', 'tblTempVendorCDR_20' ) start [2024-12-27 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112386', 'tblTempVendorCDR_20' ) end [2024-12-27 06:33:18] Production.INFO: ProcessCDR(1,14112386,1,1,2) [2024-12-27 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112386', 'tblTempUsageDetail_20' ) start [2024-12-27 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112386', 'tblTempUsageDetail_20' ) end [2024-12-27 06:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:33:21] Production.INFO: ==18324== Releasing lock... [2024-12-27 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:33:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:34:05 [end_date_ymd] => 2024-12-27 06:34:05 [RateCDR] => 1 ) [2024-12-27 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:34:05' and `end` < '2024-12-27 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:34:19] Production.INFO: count ==9 [2024-12-27 06:34:19] Production.ERROR: pbx CDR StartTime 2024-12-27 03:34:05 - End Time 2024-12-27 06:34:05 [2024-12-27 06:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112391', 'tblTempUsageDetail_20' ) start [2024-12-27 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112391', 'tblTempUsageDetail_20' ) end [2024-12-27 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112391', 'tblTempVendorCDR_20' ) start [2024-12-27 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112391', 'tblTempVendorCDR_20' ) end [2024-12-27 06:34:19] Production.INFO: ProcessCDR(1,14112391,1,1,2) [2024-12-27 06:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112391', 'tblTempUsageDetail_20' ) start [2024-12-27 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112391', 'tblTempUsageDetail_20' ) end [2024-12-27 06:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:34:22] Production.INFO: ==18408== Releasing lock... [2024-12-27 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:34:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:35:05 [end_date_ymd] => 2024-12-27 06:35:05 [RateCDR] => 1 ) [2024-12-27 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:35:05' and `end` < '2024-12-27 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:35:18] Production.INFO: count ==9 [2024-12-27 06:35:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:35:05 - End Time 2024-12-27 06:35:05 [2024-12-27 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112396', 'tblTempUsageDetail_20' ) start [2024-12-27 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112396', 'tblTempUsageDetail_20' ) end [2024-12-27 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112396', 'tblTempVendorCDR_20' ) start [2024-12-27 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112396', 'tblTempVendorCDR_20' ) end [2024-12-27 06:35:18] Production.INFO: ProcessCDR(1,14112396,1,1,2) [2024-12-27 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112396', 'tblTempUsageDetail_20' ) start [2024-12-27 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112396', 'tblTempUsageDetail_20' ) end [2024-12-27 06:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:35:21] Production.INFO: ==18487== Releasing lock... [2024-12-27 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:35:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:36:05 [end_date_ymd] => 2024-12-27 06:36:05 [RateCDR] => 1 ) [2024-12-27 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:36:05' and `end` < '2024-12-27 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:36:18] Production.INFO: count ==9 [2024-12-27 06:36:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:36:05 - End Time 2024-12-27 06:36:05 [2024-12-27 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112401', 'tblTempUsageDetail_20' ) start [2024-12-27 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112401', 'tblTempUsageDetail_20' ) end [2024-12-27 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112401', 'tblTempVendorCDR_20' ) start [2024-12-27 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112401', 'tblTempVendorCDR_20' ) end [2024-12-27 06:36:18] Production.INFO: ProcessCDR(1,14112401,1,1,2) [2024-12-27 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112401', 'tblTempUsageDetail_20' ) start [2024-12-27 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112401', 'tblTempUsageDetail_20' ) end [2024-12-27 06:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:36:21] Production.INFO: ==18574== Releasing lock... [2024-12-27 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:36:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:37:05 [end_date_ymd] => 2024-12-27 06:37:05 [RateCDR] => 1 ) [2024-12-27 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:37:05' and `end` < '2024-12-27 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:37:18] Production.INFO: count ==9 [2024-12-27 06:37:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:37:05 - End Time 2024-12-27 06:37:05 [2024-12-27 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112406', 'tblTempUsageDetail_20' ) start [2024-12-27 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112406', 'tblTempUsageDetail_20' ) end [2024-12-27 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112406', 'tblTempVendorCDR_20' ) start [2024-12-27 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112406', 'tblTempVendorCDR_20' ) end [2024-12-27 06:37:18] Production.INFO: ProcessCDR(1,14112406,1,1,2) [2024-12-27 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112406', 'tblTempUsageDetail_20' ) start [2024-12-27 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112406', 'tblTempUsageDetail_20' ) end [2024-12-27 06:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:37:21] Production.INFO: ==18652== Releasing lock... [2024-12-27 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:37:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:38:05 [end_date_ymd] => 2024-12-27 06:38:05 [RateCDR] => 1 ) [2024-12-27 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:38:05' and `end` < '2024-12-27 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:38:18] Production.INFO: count ==9 [2024-12-27 06:38:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:38:05 - End Time 2024-12-27 06:38:05 [2024-12-27 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112411', 'tblTempUsageDetail_20' ) start [2024-12-27 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112411', 'tblTempUsageDetail_20' ) end [2024-12-27 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112411', 'tblTempVendorCDR_20' ) start [2024-12-27 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112411', 'tblTempVendorCDR_20' ) end [2024-12-27 06:38:18] Production.INFO: ProcessCDR(1,14112411,1,1,2) [2024-12-27 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112411', 'tblTempUsageDetail_20' ) start [2024-12-27 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112411', 'tblTempUsageDetail_20' ) end [2024-12-27 06:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:38:21] Production.INFO: ==18741== Releasing lock... [2024-12-27 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:38:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:39:06 [end_date_ymd] => 2024-12-27 06:39:06 [RateCDR] => 1 ) [2024-12-27 06:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:39:06' and `end` < '2024-12-27 06:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:39:18] Production.INFO: count ==9 [2024-12-27 06:39:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:39:06 - End Time 2024-12-27 06:39:06 [2024-12-27 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112416', 'tblTempUsageDetail_20' ) start [2024-12-27 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112416', 'tblTempUsageDetail_20' ) end [2024-12-27 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112416', 'tblTempVendorCDR_20' ) start [2024-12-27 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112416', 'tblTempVendorCDR_20' ) end [2024-12-27 06:39:18] Production.INFO: ProcessCDR(1,14112416,1,1,2) [2024-12-27 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112416', 'tblTempUsageDetail_20' ) start [2024-12-27 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112416', 'tblTempUsageDetail_20' ) end [2024-12-27 06:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:39:22] Production.INFO: ==18818== Releasing lock... [2024-12-27 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:39:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:40:06 [end_date_ymd] => 2024-12-27 06:40:06 [RateCDR] => 1 ) [2024-12-27 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:40:06' and `end` < '2024-12-27 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:40:20] Production.INFO: count ==9 [2024-12-27 06:40:20] Production.ERROR: pbx CDR StartTime 2024-12-27 03:40:06 - End Time 2024-12-27 06:40:06 [2024-12-27 06:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112422', 'tblTempUsageDetail_20' ) start [2024-12-27 06:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112422', 'tblTempUsageDetail_20' ) end [2024-12-27 06:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112422', 'tblTempVendorCDR_20' ) start [2024-12-27 06:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112422', 'tblTempVendorCDR_20' ) end [2024-12-27 06:40:20] Production.INFO: ProcessCDR(1,14112422,1,1,2) [2024-12-27 06:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112422', 'tblTempUsageDetail_20' ) start [2024-12-27 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112422', 'tblTempUsageDetail_20' ) end [2024-12-27 06:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:40:23] Production.INFO: ==18903== Releasing lock... [2024-12-27 06:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:40:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:41:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:41:06 [end_date_ymd] => 2024-12-27 06:41:06 [RateCDR] => 1 ) [2024-12-27 06:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:41:06' and `end` < '2024-12-27 06:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:41:19] Production.INFO: count ==9 [2024-12-27 06:41:19] Production.ERROR: pbx CDR StartTime 2024-12-27 03:41:06 - End Time 2024-12-27 06:41:06 [2024-12-27 06:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112427', 'tblTempUsageDetail_20' ) start [2024-12-27 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112427', 'tblTempUsageDetail_20' ) end [2024-12-27 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112427', 'tblTempVendorCDR_20' ) start [2024-12-27 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112427', 'tblTempVendorCDR_20' ) end [2024-12-27 06:41:19] Production.INFO: ProcessCDR(1,14112427,1,1,2) [2024-12-27 06:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112427', 'tblTempUsageDetail_20' ) start [2024-12-27 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112427', 'tblTempUsageDetail_20' ) end [2024-12-27 06:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:41:22] Production.INFO: ==18986== Releasing lock... [2024-12-27 06:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:41:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:42:04 [end_date_ymd] => 2024-12-27 06:42:04 [RateCDR] => 1 ) [2024-12-27 06:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:42:04' and `end` < '2024-12-27 06:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:42:17] Production.INFO: count ==9 [2024-12-27 06:42:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:42:04 - End Time 2024-12-27 06:42:04 [2024-12-27 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112432', 'tblTempUsageDetail_20' ) start [2024-12-27 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112432', 'tblTempUsageDetail_20' ) end [2024-12-27 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112432', 'tblTempVendorCDR_20' ) start [2024-12-27 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112432', 'tblTempVendorCDR_20' ) end [2024-12-27 06:42:17] Production.INFO: ProcessCDR(1,14112432,1,1,2) [2024-12-27 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112432', 'tblTempUsageDetail_20' ) start [2024-12-27 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112432', 'tblTempUsageDetail_20' ) end [2024-12-27 06:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:42:20] Production.INFO: ==19070== Releasing lock... [2024-12-27 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:42:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:43:05 [end_date_ymd] => 2024-12-27 06:43:05 [RateCDR] => 1 ) [2024-12-27 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:43:05' and `end` < '2024-12-27 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:43:18] Production.INFO: count ==9 [2024-12-27 06:43:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:43:05 - End Time 2024-12-27 06:43:05 [2024-12-27 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112437', 'tblTempUsageDetail_20' ) start [2024-12-27 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112437', 'tblTempUsageDetail_20' ) end [2024-12-27 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112437', 'tblTempVendorCDR_20' ) start [2024-12-27 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112437', 'tblTempVendorCDR_20' ) end [2024-12-27 06:43:18] Production.INFO: ProcessCDR(1,14112437,1,1,2) [2024-12-27 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112437', 'tblTempUsageDetail_20' ) start [2024-12-27 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112437', 'tblTempUsageDetail_20' ) end [2024-12-27 06:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:43:21] Production.INFO: ==19176== Releasing lock... [2024-12-27 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:43:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:44:05 [end_date_ymd] => 2024-12-27 06:44:05 [RateCDR] => 1 ) [2024-12-27 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:44:05' and `end` < '2024-12-27 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:44:17] Production.INFO: count ==9 [2024-12-27 06:44:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:44:05 - End Time 2024-12-27 06:44:05 [2024-12-27 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112442', 'tblTempUsageDetail_20' ) start [2024-12-27 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112442', 'tblTempUsageDetail_20' ) end [2024-12-27 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112442', 'tblTempVendorCDR_20' ) start [2024-12-27 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112442', 'tblTempVendorCDR_20' ) end [2024-12-27 06:44:17] Production.INFO: ProcessCDR(1,14112442,1,1,2) [2024-12-27 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112442', 'tblTempUsageDetail_20' ) start [2024-12-27 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112442', 'tblTempUsageDetail_20' ) end [2024-12-27 06:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:44:20] Production.INFO: ==19311== Releasing lock... [2024-12-27 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:44:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:45:05 [end_date_ymd] => 2024-12-27 06:45:05 [RateCDR] => 1 ) [2024-12-27 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:45:05' and `end` < '2024-12-27 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:45:18] Production.INFO: count ==9 [2024-12-27 06:45:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:45:05 - End Time 2024-12-27 06:45:05 [2024-12-27 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112447', 'tblTempUsageDetail_20' ) start [2024-12-27 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112447', 'tblTempUsageDetail_20' ) end [2024-12-27 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112447', 'tblTempVendorCDR_20' ) start [2024-12-27 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112447', 'tblTempVendorCDR_20' ) end [2024-12-27 06:45:18] Production.INFO: ProcessCDR(1,14112447,1,1,2) [2024-12-27 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112447', 'tblTempUsageDetail_20' ) start [2024-12-27 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112447', 'tblTempUsageDetail_20' ) end [2024-12-27 06:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:45:21] Production.INFO: ==19433== Releasing lock... [2024-12-27 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:45:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:46:05 [end_date_ymd] => 2024-12-27 06:46:05 [RateCDR] => 1 ) [2024-12-27 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:46:05' and `end` < '2024-12-27 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:46:17] Production.INFO: count ==9 [2024-12-27 06:46:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:46:05 - End Time 2024-12-27 06:46:05 [2024-12-27 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112452', 'tblTempUsageDetail_20' ) start [2024-12-27 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112452', 'tblTempUsageDetail_20' ) end [2024-12-27 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112452', 'tblTempVendorCDR_20' ) start [2024-12-27 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112452', 'tblTempVendorCDR_20' ) end [2024-12-27 06:46:17] Production.INFO: ProcessCDR(1,14112452,1,1,2) [2024-12-27 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112452', 'tblTempUsageDetail_20' ) start [2024-12-27 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112452', 'tblTempUsageDetail_20' ) end [2024-12-27 06:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:46:21] Production.INFO: ==19594== Releasing lock... [2024-12-27 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:46:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:47:05 [end_date_ymd] => 2024-12-27 06:47:05 [RateCDR] => 1 ) [2024-12-27 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:47:05' and `end` < '2024-12-27 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:47:18] Production.INFO: count ==9 [2024-12-27 06:47:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:47:05 - End Time 2024-12-27 06:47:05 [2024-12-27 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112457', 'tblTempUsageDetail_20' ) start [2024-12-27 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112457', 'tblTempUsageDetail_20' ) end [2024-12-27 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112457', 'tblTempVendorCDR_20' ) start [2024-12-27 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112457', 'tblTempVendorCDR_20' ) end [2024-12-27 06:47:18] Production.INFO: ProcessCDR(1,14112457,1,1,2) [2024-12-27 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112457', 'tblTempUsageDetail_20' ) start [2024-12-27 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112457', 'tblTempUsageDetail_20' ) end [2024-12-27 06:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:47:21] Production.INFO: ==19713== Releasing lock... [2024-12-27 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:47:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:48:04 [end_date_ymd] => 2024-12-27 06:48:04 [RateCDR] => 1 ) [2024-12-27 06:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:48:04' and `end` < '2024-12-27 06:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:48:17] Production.INFO: count ==9 [2024-12-27 06:48:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:48:04 - End Time 2024-12-27 06:48:04 [2024-12-27 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112462', 'tblTempUsageDetail_20' ) start [2024-12-27 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112462', 'tblTempUsageDetail_20' ) end [2024-12-27 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112462', 'tblTempVendorCDR_20' ) start [2024-12-27 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112462', 'tblTempVendorCDR_20' ) end [2024-12-27 06:48:17] Production.INFO: ProcessCDR(1,14112462,1,1,2) [2024-12-27 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112462', 'tblTempUsageDetail_20' ) start [2024-12-27 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112462', 'tblTempUsageDetail_20' ) end [2024-12-27 06:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:48:20] Production.INFO: ==19838== Releasing lock... [2024-12-27 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:48:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:49:05 [end_date_ymd] => 2024-12-27 06:49:05 [RateCDR] => 1 ) [2024-12-27 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:49:05' and `end` < '2024-12-27 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:49:18] Production.INFO: count ==9 [2024-12-27 06:49:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:49:05 - End Time 2024-12-27 06:49:05 [2024-12-27 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112467', 'tblTempUsageDetail_20' ) start [2024-12-27 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112467', 'tblTempUsageDetail_20' ) end [2024-12-27 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112467', 'tblTempVendorCDR_20' ) start [2024-12-27 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112467', 'tblTempVendorCDR_20' ) end [2024-12-27 06:49:18] Production.INFO: ProcessCDR(1,14112467,1,1,2) [2024-12-27 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112467', 'tblTempUsageDetail_20' ) start [2024-12-27 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112467', 'tblTempUsageDetail_20' ) end [2024-12-27 06:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:49:21] Production.INFO: ==19963== Releasing lock... [2024-12-27 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:49:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:50:05 [end_date_ymd] => 2024-12-27 06:50:05 [RateCDR] => 1 ) [2024-12-27 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-27 03:50:05' and `end` < '2024-12-27 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-27 06:50:18] Production.INFO: count ==9 [2024-12-27 06:50:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:50:05 - End Time 2024-12-27 06:50:05 [2024-12-27 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112472', 'tblTempUsageDetail_20' ) start [2024-12-27 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112472', 'tblTempUsageDetail_20' ) end [2024-12-27 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112472', 'tblTempVendorCDR_20' ) start [2024-12-27 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112472', 'tblTempVendorCDR_20' ) end [2024-12-27 06:50:18] Production.INFO: ProcessCDR(1,14112472,1,1,2) [2024-12-27 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112472', 'tblTempUsageDetail_20' ) start [2024-12-27 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112472', 'tblTempUsageDetail_20' ) end [2024-12-27 06:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:50:21] Production.INFO: ==20099== Releasing lock... [2024-12-27 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:50:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:51:04 [end_date_ymd] => 2024-12-27 06:51:04 [RateCDR] => 1 ) [2024-12-27 06: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-27 03:51:04' and `end` < '2024-12-27 06: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-27 06:51:16] Production.INFO: count ==9 [2024-12-27 06:51:16] Production.ERROR: pbx CDR StartTime 2024-12-27 03:51:04 - End Time 2024-12-27 06:51:04 [2024-12-27 06:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112478', 'tblTempUsageDetail_20' ) start [2024-12-27 06:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112478', 'tblTempUsageDetail_20' ) end [2024-12-27 06:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112478', 'tblTempVendorCDR_20' ) start [2024-12-27 06:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112478', 'tblTempVendorCDR_20' ) end [2024-12-27 06:51:16] Production.INFO: ProcessCDR(1,14112478,1,1,2) [2024-12-27 06:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:51:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112478', 'tblTempUsageDetail_20' ) start [2024-12-27 06:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112478', 'tblTempUsageDetail_20' ) end [2024-12-27 06:51:19] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:51:19] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:51:19] Production.INFO: ==20225== Releasing lock... [2024-12-27 06:51:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:51:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:52:05 [end_date_ymd] => 2024-12-27 06:52:05 [RateCDR] => 1 ) [2024-12-27 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:52:05' and `end` < '2024-12-27 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:52:18] Production.INFO: count ==9 [2024-12-27 06:52:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:52:05 - End Time 2024-12-27 06:52:05 [2024-12-27 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112483', 'tblTempUsageDetail_20' ) start [2024-12-27 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112483', 'tblTempUsageDetail_20' ) end [2024-12-27 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112483', 'tblTempVendorCDR_20' ) start [2024-12-27 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112483', 'tblTempVendorCDR_20' ) end [2024-12-27 06:52:18] Production.INFO: ProcessCDR(1,14112483,1,1,2) [2024-12-27 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112483', 'tblTempUsageDetail_20' ) start [2024-12-27 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112483', 'tblTempUsageDetail_20' ) end [2024-12-27 06:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:52:21] Production.INFO: ==20382== Releasing lock... [2024-12-27 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:52:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:53:04 [end_date_ymd] => 2024-12-27 06:53:04 [RateCDR] => 1 ) [2024-12-27 06: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-27 03:53:04' and `end` < '2024-12-27 06: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-27 06:53:17] Production.INFO: count ==9 [2024-12-27 06:53:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:53:04 - End Time 2024-12-27 06:53:04 [2024-12-27 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112488', 'tblTempUsageDetail_20' ) start [2024-12-27 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112488', 'tblTempUsageDetail_20' ) end [2024-12-27 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112488', 'tblTempVendorCDR_20' ) start [2024-12-27 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112488', 'tblTempVendorCDR_20' ) end [2024-12-27 06:53:17] Production.INFO: ProcessCDR(1,14112488,1,1,2) [2024-12-27 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112488', 'tblTempUsageDetail_20' ) start [2024-12-27 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112488', 'tblTempUsageDetail_20' ) end [2024-12-27 06:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:53:20] Production.INFO: ==20554== Releasing lock... [2024-12-27 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:53:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:54:05 [end_date_ymd] => 2024-12-27 06:54:05 [RateCDR] => 1 ) [2024-12-27 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:54:05' and `end` < '2024-12-27 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:54:17] Production.INFO: count ==9 [2024-12-27 06:54:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:54:05 - End Time 2024-12-27 06:54:05 [2024-12-27 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112493', 'tblTempUsageDetail_20' ) start [2024-12-27 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112493', 'tblTempUsageDetail_20' ) end [2024-12-27 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112493', 'tblTempVendorCDR_20' ) start [2024-12-27 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112493', 'tblTempVendorCDR_20' ) end [2024-12-27 06:54:17] Production.INFO: ProcessCDR(1,14112493,1,1,2) [2024-12-27 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112493', 'tblTempUsageDetail_20' ) start [2024-12-27 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112493', 'tblTempUsageDetail_20' ) end [2024-12-27 06:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:54:20] Production.INFO: ==20687== Releasing lock... [2024-12-27 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:54:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:55:04 [end_date_ymd] => 2024-12-27 06:55:04 [RateCDR] => 1 ) [2024-12-27 06: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-27 03:55:04' and `end` < '2024-12-27 06: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-27 06:55:17] Production.INFO: count ==9 [2024-12-27 06:55:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:55:04 - End Time 2024-12-27 06:55:04 [2024-12-27 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112498', 'tblTempUsageDetail_20' ) start [2024-12-27 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112498', 'tblTempUsageDetail_20' ) end [2024-12-27 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112498', 'tblTempVendorCDR_20' ) start [2024-12-27 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112498', 'tblTempVendorCDR_20' ) end [2024-12-27 06:55:17] Production.INFO: ProcessCDR(1,14112498,1,1,2) [2024-12-27 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112498', 'tblTempUsageDetail_20' ) start [2024-12-27 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112498', 'tblTempUsageDetail_20' ) end [2024-12-27 06:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:55:20] Production.INFO: ==20800== Releasing lock... [2024-12-27 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:55:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:56:05 [end_date_ymd] => 2024-12-27 06:56:05 [RateCDR] => 1 ) [2024-12-27 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:56:05' and `end` < '2024-12-27 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:56:17] Production.INFO: count ==9 [2024-12-27 06:56:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:56:05 - End Time 2024-12-27 06:56:05 [2024-12-27 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112503', 'tblTempUsageDetail_20' ) start [2024-12-27 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112503', 'tblTempUsageDetail_20' ) end [2024-12-27 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112503', 'tblTempVendorCDR_20' ) start [2024-12-27 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112503', 'tblTempVendorCDR_20' ) end [2024-12-27 06:56:17] Production.INFO: ProcessCDR(1,14112503,1,1,2) [2024-12-27 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112503', 'tblTempUsageDetail_20' ) start [2024-12-27 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112503', 'tblTempUsageDetail_20' ) end [2024-12-27 06:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:56:20] Production.INFO: ==20922== Releasing lock... [2024-12-27 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:56:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:57:05 [end_date_ymd] => 2024-12-27 06:57:05 [RateCDR] => 1 ) [2024-12-27 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:57:05' and `end` < '2024-12-27 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:57:17] Production.INFO: count ==9 [2024-12-27 06:57:17] Production.ERROR: pbx CDR StartTime 2024-12-27 03:57:05 - End Time 2024-12-27 06:57:05 [2024-12-27 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112508', 'tblTempUsageDetail_20' ) start [2024-12-27 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112508', 'tblTempUsageDetail_20' ) end [2024-12-27 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112508', 'tblTempVendorCDR_20' ) start [2024-12-27 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112508', 'tblTempVendorCDR_20' ) end [2024-12-27 06:57:17] Production.INFO: ProcessCDR(1,14112508,1,1,2) [2024-12-27 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112508', 'tblTempUsageDetail_20' ) start [2024-12-27 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112508', 'tblTempUsageDetail_20' ) end [2024-12-27 06:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:57:20] Production.INFO: ==21037== Releasing lock... [2024-12-27 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:57:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:58:05 [end_date_ymd] => 2024-12-27 06:58:05 [RateCDR] => 1 ) [2024-12-27 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:58:05' and `end` < '2024-12-27 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:58:18] Production.INFO: count ==9 [2024-12-27 06:58:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:58:05 - End Time 2024-12-27 06:58:05 [2024-12-27 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112513', 'tblTempUsageDetail_20' ) start [2024-12-27 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112513', 'tblTempUsageDetail_20' ) end [2024-12-27 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112513', 'tblTempVendorCDR_20' ) start [2024-12-27 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112513', 'tblTempVendorCDR_20' ) end [2024-12-27 06:58:18] Production.INFO: ProcessCDR(1,14112513,1,1,2) [2024-12-27 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112513', 'tblTempUsageDetail_20' ) start [2024-12-27 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112513', 'tblTempUsageDetail_20' ) end [2024-12-27 06:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:58:22] Production.INFO: ==21139== Releasing lock... [2024-12-27 06:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:58:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 03:59:05 [end_date_ymd] => 2024-12-27 06:59:05 [RateCDR] => 1 ) [2024-12-27 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 03:59:05' and `end` < '2024-12-27 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 06:59:18] Production.INFO: count ==9 [2024-12-27 06:59:18] Production.ERROR: pbx CDR StartTime 2024-12-27 03:59:05 - End Time 2024-12-27 06:59:05 [2024-12-27 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112518', 'tblTempUsageDetail_20' ) start [2024-12-27 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112518', 'tblTempUsageDetail_20' ) end [2024-12-27 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112518', 'tblTempVendorCDR_20' ) start [2024-12-27 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112518', 'tblTempVendorCDR_20' ) end [2024-12-27 06:59:18] Production.INFO: ProcessCDR(1,14112518,1,1,2) [2024-12-27 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112518', 'tblTempUsageDetail_20' ) start [2024-12-27 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112518', 'tblTempUsageDetail_20' ) end [2024-12-27 06:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 06:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 06:59:21] Production.INFO: ==21249== Releasing lock... [2024-12-27 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 06:59:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:00:06 [end_date_ymd] => 2024-12-27 07:00:06 [RateCDR] => 1 ) [2024-12-27 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:00:06' and `end` < '2024-12-27 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:00:18] Production.INFO: count ==7 [2024-12-27 07:00:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:00:06 - End Time 2024-12-27 07:00:06 [2024-12-27 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112524', 'tblTempUsageDetail_20' ) start [2024-12-27 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112524', 'tblTempUsageDetail_20' ) end [2024-12-27 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112524', 'tblTempVendorCDR_20' ) start [2024-12-27 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112524', 'tblTempVendorCDR_20' ) end [2024-12-27 07:00:18] Production.INFO: ProcessCDR(1,14112524,1,1,2) [2024-12-27 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112524', 'tblTempUsageDetail_20' ) start [2024-12-27 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112524', 'tblTempUsageDetail_20' ) end [2024-12-27 07:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:00:21] Production.INFO: ==21358== Releasing lock... [2024-12-27 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:00:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:01:05 [end_date_ymd] => 2024-12-27 07:01:05 [RateCDR] => 1 ) [2024-12-27 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-27 04:01:05' and `end` < '2024-12-27 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-27 07:01:20] Production.INFO: count ==7 [2024-12-27 07:01:20] Production.ERROR: pbx CDR StartTime 2024-12-27 04:01:05 - End Time 2024-12-27 07:01:05 [2024-12-27 07:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112529', 'tblTempUsageDetail_20' ) start [2024-12-27 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112529', 'tblTempUsageDetail_20' ) end [2024-12-27 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112529', 'tblTempVendorCDR_20' ) start [2024-12-27 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112529', 'tblTempVendorCDR_20' ) end [2024-12-27 07:01:20] Production.INFO: ProcessCDR(1,14112529,1,1,2) [2024-12-27 07:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112529', 'tblTempUsageDetail_20' ) start [2024-12-27 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112529', 'tblTempUsageDetail_20' ) end [2024-12-27 07:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:01:23] Production.INFO: ==21531== Releasing lock... [2024-12-27 07:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:01:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:02:04 [end_date_ymd] => 2024-12-27 07:02:04 [RateCDR] => 1 ) [2024-12-27 07: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-27 04:02:04' and `end` < '2024-12-27 07: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-27 07:02:19] Production.INFO: count ==9 [2024-12-27 07:02:19] Production.ERROR: pbx CDR StartTime 2024-12-27 04:02:04 - End Time 2024-12-27 07:02:04 [2024-12-27 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112534', 'tblTempUsageDetail_20' ) start [2024-12-27 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112534', 'tblTempUsageDetail_20' ) end [2024-12-27 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112534', 'tblTempVendorCDR_20' ) start [2024-12-27 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112534', 'tblTempVendorCDR_20' ) end [2024-12-27 07:02:19] Production.INFO: ProcessCDR(1,14112534,1,1,2) [2024-12-27 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112534', 'tblTempUsageDetail_20' ) start [2024-12-27 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112534', 'tblTempUsageDetail_20' ) end [2024-12-27 07:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:02:22] Production.INFO: ==21721== Releasing lock... [2024-12-27 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:02:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:03:05 [end_date_ymd] => 2024-12-27 07:03:05 [RateCDR] => 1 ) [2024-12-27 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:03:05' and `end` < '2024-12-27 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:03:17] Production.INFO: count ==10 [2024-12-27 07:03:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:03:05 - End Time 2024-12-27 07:03:05 [2024-12-27 07:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112539', 'tblTempUsageDetail_20' ) start [2024-12-27 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112539', 'tblTempUsageDetail_20' ) end [2024-12-27 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112539', 'tblTempVendorCDR_20' ) start [2024-12-27 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112539', 'tblTempVendorCDR_20' ) end [2024-12-27 07:03:17] Production.INFO: ProcessCDR(1,14112539,1,1,2) [2024-12-27 07:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112539', 'tblTempUsageDetail_20' ) start [2024-12-27 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112539', 'tblTempUsageDetail_20' ) end [2024-12-27 07:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:03:22] Production.INFO: ==21837== Releasing lock... [2024-12-27 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:03:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:04:05 [end_date_ymd] => 2024-12-27 07:04:05 [RateCDR] => 1 ) [2024-12-27 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:04:05' and `end` < '2024-12-27 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:04:18] Production.INFO: count ==12 [2024-12-27 07:04:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:04:05 - End Time 2024-12-27 07:04:05 [2024-12-27 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112544', 'tblTempUsageDetail_20' ) start [2024-12-27 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112544', 'tblTempUsageDetail_20' ) end [2024-12-27 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112544', 'tblTempVendorCDR_20' ) start [2024-12-27 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112544', 'tblTempVendorCDR_20' ) end [2024-12-27 07:04:18] Production.INFO: ProcessCDR(1,14112544,1,1,2) [2024-12-27 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112544', 'tblTempUsageDetail_20' ) start [2024-12-27 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112544', 'tblTempUsageDetail_20' ) end [2024-12-27 07:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:04:23] Production.INFO: ==21940== Releasing lock... [2024-12-27 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:04:23] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:05:04 [end_date_ymd] => 2024-12-27 07:05:04 [RateCDR] => 1 ) [2024-12-27 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-27 04:05:04' and `end` < '2024-12-27 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-27 07:05:18] Production.INFO: count ==12 [2024-12-27 07:05:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:05:04 - End Time 2024-12-27 07:05:04 [2024-12-27 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112549', 'tblTempUsageDetail_20' ) start [2024-12-27 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112549', 'tblTempUsageDetail_20' ) end [2024-12-27 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112549', 'tblTempVendorCDR_20' ) start [2024-12-27 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112549', 'tblTempVendorCDR_20' ) end [2024-12-27 07:05:18] Production.INFO: ProcessCDR(1,14112549,1,1,2) [2024-12-27 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112549', 'tblTempUsageDetail_20' ) start [2024-12-27 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112549', 'tblTempUsageDetail_20' ) end [2024-12-27 07:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:05:21] Production.INFO: ==22124== Releasing lock... [2024-12-27 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:05:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:06:05 [end_date_ymd] => 2024-12-27 07:06:05 [RateCDR] => 1 ) [2024-12-27 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:06:05' and `end` < '2024-12-27 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:06:18] Production.INFO: count ==13 [2024-12-27 07:06:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:06:05 - End Time 2024-12-27 07:06:05 [2024-12-27 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112554', 'tblTempUsageDetail_20' ) start [2024-12-27 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112554', 'tblTempUsageDetail_20' ) end [2024-12-27 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112554', 'tblTempVendorCDR_20' ) start [2024-12-27 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112554', 'tblTempVendorCDR_20' ) end [2024-12-27 07:06:18] Production.INFO: ProcessCDR(1,14112554,1,1,2) [2024-12-27 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112554', 'tblTempUsageDetail_20' ) start [2024-12-27 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112554', 'tblTempUsageDetail_20' ) end [2024-12-27 07:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:06:22] Production.INFO: ==22232== Releasing lock... [2024-12-27 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:06:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:07:04 [end_date_ymd] => 2024-12-27 07:07:04 [RateCDR] => 1 ) [2024-12-27 07: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-27 04:07:04' and `end` < '2024-12-27 07: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-27 07:07:18] Production.INFO: count ==14 [2024-12-27 07:07:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:07:04 - End Time 2024-12-27 07:07:04 [2024-12-27 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112559', 'tblTempUsageDetail_20' ) start [2024-12-27 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112559', 'tblTempUsageDetail_20' ) end [2024-12-27 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112559', 'tblTempVendorCDR_20' ) start [2024-12-27 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112559', 'tblTempVendorCDR_20' ) end [2024-12-27 07:07:18] Production.INFO: ProcessCDR(1,14112559,1,1,2) [2024-12-27 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112559', 'tblTempUsageDetail_20' ) start [2024-12-27 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112559', 'tblTempUsageDetail_20' ) end [2024-12-27 07:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:07:23] Production.INFO: ==22337== Releasing lock... [2024-12-27 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:07:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:08:05 [end_date_ymd] => 2024-12-27 07:08:05 [RateCDR] => 1 ) [2024-12-27 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:08:05' and `end` < '2024-12-27 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:08:18] Production.INFO: count ==14 [2024-12-27 07:08:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:08:05 - End Time 2024-12-27 07:08:05 [2024-12-27 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112564', 'tblTempUsageDetail_20' ) start [2024-12-27 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112564', 'tblTempUsageDetail_20' ) end [2024-12-27 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112564', 'tblTempVendorCDR_20' ) start [2024-12-27 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112564', 'tblTempVendorCDR_20' ) end [2024-12-27 07:08:18] Production.INFO: ProcessCDR(1,14112564,1,1,2) [2024-12-27 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112564', 'tblTempUsageDetail_20' ) start [2024-12-27 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112564', 'tblTempUsageDetail_20' ) end [2024-12-27 07:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:08:21] Production.INFO: ==22520== Releasing lock... [2024-12-27 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:08:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:09:05 [end_date_ymd] => 2024-12-27 07:09:05 [RateCDR] => 1 ) [2024-12-27 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:09:05' and `end` < '2024-12-27 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:09:17] Production.INFO: count ==14 [2024-12-27 07:09:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:09:05 - End Time 2024-12-27 07:09:05 [2024-12-27 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112569', 'tblTempUsageDetail_20' ) start [2024-12-27 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112569', 'tblTempUsageDetail_20' ) end [2024-12-27 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112569', 'tblTempVendorCDR_20' ) start [2024-12-27 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112569', 'tblTempVendorCDR_20' ) end [2024-12-27 07:09:17] Production.INFO: ProcessCDR(1,14112569,1,1,2) [2024-12-27 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112569', 'tblTempUsageDetail_20' ) start [2024-12-27 07:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112569', 'tblTempUsageDetail_20' ) end [2024-12-27 07:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:09:20] Production.INFO: ==22634== Releasing lock... [2024-12-27 07:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:09:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:10:05 [end_date_ymd] => 2024-12-27 07:10:05 [RateCDR] => 1 ) [2024-12-27 07: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-27 04:10:05' and `end` < '2024-12-27 07: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-27 07:10:19] Production.INFO: count ==15 [2024-12-27 07:10:19] Production.ERROR: pbx CDR StartTime 2024-12-27 04:10:05 - End Time 2024-12-27 07:10:05 [2024-12-27 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112575', 'tblTempUsageDetail_20' ) start [2024-12-27 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112575', 'tblTempUsageDetail_20' ) end [2024-12-27 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112575', 'tblTempVendorCDR_20' ) start [2024-12-27 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112575', 'tblTempVendorCDR_20' ) end [2024-12-27 07:10:19] Production.INFO: ProcessCDR(1,14112575,1,1,2) [2024-12-27 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112575', 'tblTempUsageDetail_20' ) start [2024-12-27 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112575', 'tblTempUsageDetail_20' ) end [2024-12-27 07:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:10:23] Production.INFO: ==22741== Releasing lock... [2024-12-27 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:10:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:11:05 [end_date_ymd] => 2024-12-27 07:11:05 [RateCDR] => 1 ) [2024-12-27 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:11:05' and `end` < '2024-12-27 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:11:19] Production.INFO: count ==15 [2024-12-27 07:11:19] Production.ERROR: pbx CDR StartTime 2024-12-27 04:11:05 - End Time 2024-12-27 07:11:05 [2024-12-27 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112580', 'tblTempUsageDetail_20' ) start [2024-12-27 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112580', 'tblTempUsageDetail_20' ) end [2024-12-27 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112580', 'tblTempVendorCDR_20' ) start [2024-12-27 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112580', 'tblTempVendorCDR_20' ) end [2024-12-27 07:11:19] Production.INFO: ProcessCDR(1,14112580,1,1,2) [2024-12-27 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112580', 'tblTempUsageDetail_20' ) start [2024-12-27 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112580', 'tblTempUsageDetail_20' ) end [2024-12-27 07:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:11:22] Production.INFO: ==22850== Releasing lock... [2024-12-27 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:11:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:12:05 [end_date_ymd] => 2024-12-27 07:12:05 [RateCDR] => 1 ) [2024-12-27 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:12:05' and `end` < '2024-12-27 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:12:18] Production.INFO: count ==15 [2024-12-27 07:12:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:12:05 - End Time 2024-12-27 07:12:05 [2024-12-27 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112585', 'tblTempUsageDetail_20' ) start [2024-12-27 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112585', 'tblTempUsageDetail_20' ) end [2024-12-27 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112585', 'tblTempVendorCDR_20' ) start [2024-12-27 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112585', 'tblTempVendorCDR_20' ) end [2024-12-27 07:12:18] Production.INFO: ProcessCDR(1,14112585,1,1,2) [2024-12-27 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112585', 'tblTempUsageDetail_20' ) start [2024-12-27 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112585', 'tblTempUsageDetail_20' ) end [2024-12-27 07:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:12:21] Production.INFO: ==23027== Releasing lock... [2024-12-27 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:12:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:13:05 [end_date_ymd] => 2024-12-27 07:13:05 [RateCDR] => 1 ) [2024-12-27 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:13:05' and `end` < '2024-12-27 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:13:18] Production.INFO: count ==15 [2024-12-27 07:13:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:13:05 - End Time 2024-12-27 07:13:05 [2024-12-27 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112590', 'tblTempUsageDetail_20' ) start [2024-12-27 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112590', 'tblTempUsageDetail_20' ) end [2024-12-27 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112590', 'tblTempVendorCDR_20' ) start [2024-12-27 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112590', 'tblTempVendorCDR_20' ) end [2024-12-27 07:13:18] Production.INFO: ProcessCDR(1,14112590,1,1,2) [2024-12-27 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112590', 'tblTempUsageDetail_20' ) start [2024-12-27 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112590', 'tblTempUsageDetail_20' ) end [2024-12-27 07:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:13:21] Production.INFO: ==23135== Releasing lock... [2024-12-27 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:13:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:14:04 [end_date_ymd] => 2024-12-27 07:14:04 [RateCDR] => 1 ) [2024-12-27 07:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:14:04' and `end` < '2024-12-27 07:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:14:17] Production.INFO: count ==15 [2024-12-27 07:14:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:14:04 - End Time 2024-12-27 07:14:04 [2024-12-27 07:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112595', 'tblTempUsageDetail_20' ) start [2024-12-27 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112595', 'tblTempUsageDetail_20' ) end [2024-12-27 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112595', 'tblTempVendorCDR_20' ) start [2024-12-27 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112595', 'tblTempVendorCDR_20' ) end [2024-12-27 07:14:17] Production.INFO: ProcessCDR(1,14112595,1,1,2) [2024-12-27 07:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112595', 'tblTempUsageDetail_20' ) start [2024-12-27 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112595', 'tblTempUsageDetail_20' ) end [2024-12-27 07:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:14:21] Production.INFO: ==23237== Releasing lock... [2024-12-27 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:14:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:15:04 [end_date_ymd] => 2024-12-27 07:15:04 [RateCDR] => 1 ) [2024-12-27 07: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-27 04:15:04' and `end` < '2024-12-27 07: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-27 07:15:17] Production.INFO: count ==15 [2024-12-27 07:15:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:15:04 - End Time 2024-12-27 07:15:04 [2024-12-27 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112597', 'tblTempUsageDetail_20' ) start [2024-12-27 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112597', 'tblTempUsageDetail_20' ) end [2024-12-27 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112597', 'tblTempVendorCDR_20' ) start [2024-12-27 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112597', 'tblTempVendorCDR_20' ) end [2024-12-27 07:15:17] Production.INFO: ProcessCDR(1,14112597,1,1,2) [2024-12-27 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112597', 'tblTempUsageDetail_20' ) start [2024-12-27 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112597', 'tblTempUsageDetail_20' ) end [2024-12-27 07:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:15:20] Production.INFO: ==23429== Releasing lock... [2024-12-27 07:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:15:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:16:05 [end_date_ymd] => 2024-12-27 07:16:05 [RateCDR] => 1 ) [2024-12-27 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:16:05' and `end` < '2024-12-27 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:16:18] Production.INFO: count ==15 [2024-12-27 07:16:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:16:05 - End Time 2024-12-27 07:16:05 [2024-12-27 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112605', 'tblTempUsageDetail_20' ) start [2024-12-27 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112605', 'tblTempUsageDetail_20' ) end [2024-12-27 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112605', 'tblTempVendorCDR_20' ) start [2024-12-27 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112605', 'tblTempVendorCDR_20' ) end [2024-12-27 07:16:18] Production.INFO: ProcessCDR(1,14112605,1,1,2) [2024-12-27 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112605', 'tblTempUsageDetail_20' ) start [2024-12-27 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112605', 'tblTempUsageDetail_20' ) end [2024-12-27 07:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:16:21] Production.INFO: ==23532== Releasing lock... [2024-12-27 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:16:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:17:04 [end_date_ymd] => 2024-12-27 07:17:04 [RateCDR] => 1 ) [2024-12-27 07:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:17:04' and `end` < '2024-12-27 07:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:17:18] Production.INFO: count ==15 [2024-12-27 07:17:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:17:04 - End Time 2024-12-27 07:17:04 [2024-12-27 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112610', 'tblTempUsageDetail_20' ) start [2024-12-27 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112610', 'tblTempUsageDetail_20' ) end [2024-12-27 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112610', 'tblTempVendorCDR_20' ) start [2024-12-27 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112610', 'tblTempVendorCDR_20' ) end [2024-12-27 07:17:18] Production.INFO: ProcessCDR(1,14112610,1,1,2) [2024-12-27 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112610', 'tblTempUsageDetail_20' ) start [2024-12-27 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112610', 'tblTempUsageDetail_20' ) end [2024-12-27 07:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:17:21] Production.INFO: ==23672== Releasing lock... [2024-12-27 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:17:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:18:05 [end_date_ymd] => 2024-12-27 07:18:05 [RateCDR] => 1 ) [2024-12-27 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:18:05' and `end` < '2024-12-27 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:18:19] Production.INFO: count ==15 [2024-12-27 07:18:19] Production.ERROR: pbx CDR StartTime 2024-12-27 04:18:05 - End Time 2024-12-27 07:18:05 [2024-12-27 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112615', 'tblTempUsageDetail_20' ) start [2024-12-27 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112615', 'tblTempUsageDetail_20' ) end [2024-12-27 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112615', 'tblTempVendorCDR_20' ) start [2024-12-27 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112615', 'tblTempVendorCDR_20' ) end [2024-12-27 07:18:19] Production.INFO: ProcessCDR(1,14112615,1,1,2) [2024-12-27 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112615', 'tblTempUsageDetail_20' ) start [2024-12-27 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112615', 'tblTempUsageDetail_20' ) end [2024-12-27 07:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:18:22] Production.INFO: ==23772== Releasing lock... [2024-12-27 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:18:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:19:05 [end_date_ymd] => 2024-12-27 07:19:05 [RateCDR] => 1 ) [2024-12-27 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:19:05' and `end` < '2024-12-27 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:19:17] Production.INFO: count ==15 [2024-12-27 07:19:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:19:05 - End Time 2024-12-27 07:19:05 [2024-12-27 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112620', 'tblTempUsageDetail_20' ) start [2024-12-27 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112620', 'tblTempUsageDetail_20' ) end [2024-12-27 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112620', 'tblTempVendorCDR_20' ) start [2024-12-27 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112620', 'tblTempVendorCDR_20' ) end [2024-12-27 07:19:17] Production.INFO: ProcessCDR(1,14112620,1,1,2) [2024-12-27 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112620', 'tblTempUsageDetail_20' ) start [2024-12-27 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112620', 'tblTempUsageDetail_20' ) end [2024-12-27 07:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:19:20] Production.INFO: ==23900== Releasing lock... [2024-12-27 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:19:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-27 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:20:05 [end_date_ymd] => 2024-12-27 07:20:05 [RateCDR] => 1 ) [2024-12-27 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-27 04:20:05' and `end` < '2024-12-27 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-27 07:20:18] Production.INFO: count ==23 [2024-12-27 07:20:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:20:05 - End Time 2024-12-27 07:20:05 [2024-12-27 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112625', 'tblTempUsageDetail_20' ) start [2024-12-27 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112625', 'tblTempUsageDetail_20' ) end [2024-12-27 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112625', 'tblTempVendorCDR_20' ) start [2024-12-27 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112625', 'tblTempVendorCDR_20' ) end [2024-12-27 07:20:18] Production.INFO: ProcessCDR(1,14112625,1,1,2) [2024-12-27 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112625', 'tblTempUsageDetail_20' ) start [2024-12-27 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112625', 'tblTempUsageDetail_20' ) end [2024-12-27 07:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:20:21] Production.INFO: ==24010== Releasing lock... [2024-12-27 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:20:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:21:04 [end_date_ymd] => 2024-12-27 07:21:04 [RateCDR] => 1 ) [2024-12-27 07: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-27 04:21:04' and `end` < '2024-12-27 07: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-27 07:21:18] Production.INFO: count ==25 [2024-12-27 07:21:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:21:04 - End Time 2024-12-27 07:21:04 [2024-12-27 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112631', 'tblTempUsageDetail_20' ) start [2024-12-27 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112631', 'tblTempUsageDetail_20' ) end [2024-12-27 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112631', 'tblTempVendorCDR_20' ) start [2024-12-27 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112631', 'tblTempVendorCDR_20' ) end [2024-12-27 07:21:18] Production.INFO: ProcessCDR(1,14112631,1,1,2) [2024-12-27 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112631', 'tblTempUsageDetail_20' ) start [2024-12-27 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112631', 'tblTempUsageDetail_20' ) end [2024-12-27 07:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:21:21] Production.INFO: ==24124== Releasing lock... [2024-12-27 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:21:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:22:05 [end_date_ymd] => 2024-12-27 07:22:05 [RateCDR] => 1 ) [2024-12-27 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:22:05' and `end` < '2024-12-27 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:22:17] Production.INFO: count ==25 [2024-12-27 07:22:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:22:05 - End Time 2024-12-27 07:22:05 [2024-12-27 07:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112636', 'tblTempUsageDetail_20' ) start [2024-12-27 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112636', 'tblTempUsageDetail_20' ) end [2024-12-27 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112636', 'tblTempVendorCDR_20' ) start [2024-12-27 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112636', 'tblTempVendorCDR_20' ) end [2024-12-27 07:22:17] Production.INFO: ProcessCDR(1,14112636,1,1,2) [2024-12-27 07:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112636', 'tblTempUsageDetail_20' ) start [2024-12-27 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112636', 'tblTempUsageDetail_20' ) end [2024-12-27 07:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:22:20] Production.INFO: ==24235== Releasing lock... [2024-12-27 07:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:22:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:23:05 [end_date_ymd] => 2024-12-27 07:23:05 [RateCDR] => 1 ) [2024-12-27 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:23:05' and `end` < '2024-12-27 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:23:18] Production.INFO: count ==26 [2024-12-27 07:23:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:23:05 - End Time 2024-12-27 07:23:05 [2024-12-27 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112641', 'tblTempUsageDetail_20' ) start [2024-12-27 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112641', 'tblTempUsageDetail_20' ) end [2024-12-27 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112641', 'tblTempVendorCDR_20' ) start [2024-12-27 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112641', 'tblTempVendorCDR_20' ) end [2024-12-27 07:23:18] Production.INFO: ProcessCDR(1,14112641,1,1,2) [2024-12-27 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112641', 'tblTempUsageDetail_20' ) start [2024-12-27 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112641', 'tblTempUsageDetail_20' ) end [2024-12-27 07:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:23:23] Production.INFO: ==24335== Releasing lock... [2024-12-27 07:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:23:23] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:24:05 [end_date_ymd] => 2024-12-27 07:24:05 [RateCDR] => 1 ) [2024-12-27 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:24:05' and `end` < '2024-12-27 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:24:18] Production.INFO: count ==26 [2024-12-27 07:24:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:24:05 - End Time 2024-12-27 07:24:05 [2024-12-27 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112646', 'tblTempUsageDetail_20' ) start [2024-12-27 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112646', 'tblTempUsageDetail_20' ) end [2024-12-27 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112646', 'tblTempVendorCDR_20' ) start [2024-12-27 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112646', 'tblTempVendorCDR_20' ) end [2024-12-27 07:24:18] Production.INFO: ProcessCDR(1,14112646,1,1,2) [2024-12-27 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112646', 'tblTempUsageDetail_20' ) start [2024-12-27 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112646', 'tblTempUsageDetail_20' ) end [2024-12-27 07:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:24:21] Production.INFO: ==24446== Releasing lock... [2024-12-27 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:24:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:25:05 [end_date_ymd] => 2024-12-27 07:25:05 [RateCDR] => 1 ) [2024-12-27 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:25:05' and `end` < '2024-12-27 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:25:18] Production.INFO: count ==26 [2024-12-27 07:25:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:25:05 - End Time 2024-12-27 07:25:05 [2024-12-27 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112651', 'tblTempUsageDetail_20' ) start [2024-12-27 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112651', 'tblTempUsageDetail_20' ) end [2024-12-27 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112651', 'tblTempVendorCDR_20' ) start [2024-12-27 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112651', 'tblTempVendorCDR_20' ) end [2024-12-27 07:25:18] Production.INFO: ProcessCDR(1,14112651,1,1,2) [2024-12-27 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112651', 'tblTempUsageDetail_20' ) start [2024-12-27 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112651', 'tblTempUsageDetail_20' ) end [2024-12-27 07:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:25:21] Production.INFO: ==24536== Releasing lock... [2024-12-27 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:25:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:26:05 [end_date_ymd] => 2024-12-27 07:26:05 [RateCDR] => 1 ) [2024-12-27 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:26:05' and `end` < '2024-12-27 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:26:17] Production.INFO: count ==26 [2024-12-27 07:26:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:26:05 - End Time 2024-12-27 07:26:05 [2024-12-27 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112656', 'tblTempUsageDetail_20' ) start [2024-12-27 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112656', 'tblTempUsageDetail_20' ) end [2024-12-27 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112656', 'tblTempVendorCDR_20' ) start [2024-12-27 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112656', 'tblTempVendorCDR_20' ) end [2024-12-27 07:26:17] Production.INFO: ProcessCDR(1,14112656,1,1,2) [2024-12-27 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112656', 'tblTempUsageDetail_20' ) start [2024-12-27 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112656', 'tblTempUsageDetail_20' ) end [2024-12-27 07:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:26:20] Production.INFO: ==24619== Releasing lock... [2024-12-27 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:26:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:27:04 [end_date_ymd] => 2024-12-27 07:27:04 [RateCDR] => 1 ) [2024-12-27 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-27 04:27:04' and `end` < '2024-12-27 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-27 07:27:17] Production.INFO: count ==26 [2024-12-27 07:27:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:27:04 - End Time 2024-12-27 07:27:04 [2024-12-27 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112661', 'tblTempUsageDetail_20' ) start [2024-12-27 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112661', 'tblTempUsageDetail_20' ) end [2024-12-27 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112661', 'tblTempVendorCDR_20' ) start [2024-12-27 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112661', 'tblTempVendorCDR_20' ) end [2024-12-27 07:27:17] Production.INFO: ProcessCDR(1,14112661,1,1,2) [2024-12-27 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112661', 'tblTempUsageDetail_20' ) start [2024-12-27 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112661', 'tblTempUsageDetail_20' ) end [2024-12-27 07:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:27:20] Production.INFO: ==24700== Releasing lock... [2024-12-27 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:27:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:28:05 [end_date_ymd] => 2024-12-27 07:28:05 [RateCDR] => 1 ) [2024-12-27 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:28:05' and `end` < '2024-12-27 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:28:17] Production.INFO: count ==26 [2024-12-27 07:28:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:28:05 - End Time 2024-12-27 07:28:05 [2024-12-27 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112666', 'tblTempUsageDetail_20' ) start [2024-12-27 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112666', 'tblTempUsageDetail_20' ) end [2024-12-27 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112666', 'tblTempVendorCDR_20' ) start [2024-12-27 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112666', 'tblTempVendorCDR_20' ) end [2024-12-27 07:28:17] Production.INFO: ProcessCDR(1,14112666,1,1,2) [2024-12-27 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112666', 'tblTempUsageDetail_20' ) start [2024-12-27 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112666', 'tblTempUsageDetail_20' ) end [2024-12-27 07:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:28:20] Production.INFO: ==24780== Releasing lock... [2024-12-27 07:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:28:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:29:05 [end_date_ymd] => 2024-12-27 07:29:05 [RateCDR] => 1 ) [2024-12-27 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:29:05' and `end` < '2024-12-27 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:29:17] Production.INFO: count ==26 [2024-12-27 07:29:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:29:05 - End Time 2024-12-27 07:29:05 [2024-12-27 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112671', 'tblTempUsageDetail_20' ) start [2024-12-27 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112671', 'tblTempUsageDetail_20' ) end [2024-12-27 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112671', 'tblTempVendorCDR_20' ) start [2024-12-27 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112671', 'tblTempVendorCDR_20' ) end [2024-12-27 07:29:17] Production.INFO: ProcessCDR(1,14112671,1,1,2) [2024-12-27 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112671', 'tblTempUsageDetail_20' ) start [2024-12-27 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112671', 'tblTempUsageDetail_20' ) end [2024-12-27 07:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:29:20] Production.INFO: ==24865== Releasing lock... [2024-12-27 07:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:29:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:30:05 [end_date_ymd] => 2024-12-27 07:30:05 [RateCDR] => 1 ) [2024-12-27 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-27 04:30:05' and `end` < '2024-12-27 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-27 07:30:17] Production.INFO: count ==23 [2024-12-27 07:30:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:30:05 - End Time 2024-12-27 07:30:05 [2024-12-27 07:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112676', 'tblTempUsageDetail_20' ) start [2024-12-27 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112676', 'tblTempUsageDetail_20' ) end [2024-12-27 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112676', 'tblTempVendorCDR_20' ) start [2024-12-27 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112676', 'tblTempVendorCDR_20' ) end [2024-12-27 07:30:17] Production.INFO: ProcessCDR(1,14112676,1,1,2) [2024-12-27 07:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112676', 'tblTempUsageDetail_20' ) start [2024-12-27 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112676', 'tblTempUsageDetail_20' ) end [2024-12-27 07:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:30:20] Production.INFO: ==24944== Releasing lock... [2024-12-27 07:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:30:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:31:05 [end_date_ymd] => 2024-12-27 07:31:05 [RateCDR] => 1 ) [2024-12-27 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:31:05' and `end` < '2024-12-27 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:31:19] Production.INFO: count ==23 [2024-12-27 07:31:19] Production.ERROR: pbx CDR StartTime 2024-12-27 04:31:05 - End Time 2024-12-27 07:31:05 [2024-12-27 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112682', 'tblTempUsageDetail_20' ) start [2024-12-27 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112682', 'tblTempUsageDetail_20' ) end [2024-12-27 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112682', 'tblTempVendorCDR_20' ) start [2024-12-27 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112682', 'tblTempVendorCDR_20' ) end [2024-12-27 07:31:19] Production.INFO: ProcessCDR(1,14112682,1,1,2) [2024-12-27 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112682', 'tblTempUsageDetail_20' ) start [2024-12-27 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112682', 'tblTempUsageDetail_20' ) end [2024-12-27 07:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:31:22] Production.INFO: ==25028== Releasing lock... [2024-12-27 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:31:22] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:32:04 [end_date_ymd] => 2024-12-27 07:32:04 [RateCDR] => 1 ) [2024-12-27 07: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-27 04:32:04' and `end` < '2024-12-27 07: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-27 07:32:17] Production.INFO: count ==23 [2024-12-27 07:32:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:32:04 - End Time 2024-12-27 07:32:04 [2024-12-27 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112687', 'tblTempUsageDetail_20' ) start [2024-12-27 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112687', 'tblTempUsageDetail_20' ) end [2024-12-27 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112687', 'tblTempVendorCDR_20' ) start [2024-12-27 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112687', 'tblTempVendorCDR_20' ) end [2024-12-27 07:32:17] Production.INFO: ProcessCDR(1,14112687,1,1,2) [2024-12-27 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112687', 'tblTempUsageDetail_20' ) start [2024-12-27 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112687', 'tblTempUsageDetail_20' ) end [2024-12-27 07:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:32:20] Production.INFO: ==25105== Releasing lock... [2024-12-27 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:32:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:33:04 [end_date_ymd] => 2024-12-27 07:33:04 [RateCDR] => 1 ) [2024-12-27 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:33:04' and `end` < '2024-12-27 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-27 07:33:18] Production.INFO: count ==23 [2024-12-27 07:33:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:33:04 - End Time 2024-12-27 07:33:04 [2024-12-27 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112692', 'tblTempUsageDetail_20' ) start [2024-12-27 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112692', 'tblTempUsageDetail_20' ) end [2024-12-27 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112692', 'tblTempVendorCDR_20' ) start [2024-12-27 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112692', 'tblTempVendorCDR_20' ) end [2024-12-27 07:33:18] Production.INFO: ProcessCDR(1,14112692,1,1,2) [2024-12-27 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112692', 'tblTempUsageDetail_20' ) start [2024-12-27 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112692', 'tblTempUsageDetail_20' ) end [2024-12-27 07:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:33:21] Production.INFO: ==25228== Releasing lock... [2024-12-27 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:33:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:34:05 [end_date_ymd] => 2024-12-27 07:34:05 [RateCDR] => 1 ) [2024-12-27 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:34:05' and `end` < '2024-12-27 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:34:18] Production.INFO: count ==23 [2024-12-27 07:34:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:34:05 - End Time 2024-12-27 07:34:05 [2024-12-27 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112697', 'tblTempUsageDetail_20' ) start [2024-12-27 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112697', 'tblTempUsageDetail_20' ) end [2024-12-27 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112697', 'tblTempVendorCDR_20' ) start [2024-12-27 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112697', 'tblTempVendorCDR_20' ) end [2024-12-27 07:34:18] Production.INFO: ProcessCDR(1,14112697,1,1,2) [2024-12-27 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112697', 'tblTempUsageDetail_20' ) start [2024-12-27 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112697', 'tblTempUsageDetail_20' ) end [2024-12-27 07:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:34:21] Production.INFO: ==25312== Releasing lock... [2024-12-27 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:34:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:35:05 [end_date_ymd] => 2024-12-27 07:35:05 [RateCDR] => 1 ) [2024-12-27 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:35:05' and `end` < '2024-12-27 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:35:17] Production.INFO: count ==23 [2024-12-27 07:35:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:35:05 - End Time 2024-12-27 07:35:05 [2024-12-27 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112702', 'tblTempUsageDetail_20' ) start [2024-12-27 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112702', 'tblTempUsageDetail_20' ) end [2024-12-27 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112702', 'tblTempVendorCDR_20' ) start [2024-12-27 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112702', 'tblTempVendorCDR_20' ) end [2024-12-27 07:35:17] Production.INFO: ProcessCDR(1,14112702,1,1,2) [2024-12-27 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112702', 'tblTempUsageDetail_20' ) start [2024-12-27 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112702', 'tblTempUsageDetail_20' ) end [2024-12-27 07:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:35:20] Production.INFO: ==25390== Releasing lock... [2024-12-27 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:35:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:36:05 [end_date_ymd] => 2024-12-27 07:36:05 [RateCDR] => 1 ) [2024-12-27 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-27 04:36:05' and `end` < '2024-12-27 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-27 07:36:17] Production.INFO: count ==23 [2024-12-27 07:36:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:36:05 - End Time 2024-12-27 07:36:05 [2024-12-27 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112707', 'tblTempUsageDetail_20' ) start [2024-12-27 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112707', 'tblTempUsageDetail_20' ) end [2024-12-27 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112707', 'tblTempVendorCDR_20' ) start [2024-12-27 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112707', 'tblTempVendorCDR_20' ) end [2024-12-27 07:36:17] Production.INFO: ProcessCDR(1,14112707,1,1,2) [2024-12-27 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112707', 'tblTempUsageDetail_20' ) start [2024-12-27 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112707', 'tblTempUsageDetail_20' ) end [2024-12-27 07:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:36:20] Production.INFO: ==25476== Releasing lock... [2024-12-27 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:36:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:37:04 [end_date_ymd] => 2024-12-27 07:37:04 [RateCDR] => 1 ) [2024-12-27 07: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-27 04:37:04' and `end` < '2024-12-27 07: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-27 07:37:17] Production.INFO: count ==23 [2024-12-27 07:37:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:37:04 - End Time 2024-12-27 07:37:04 [2024-12-27 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112712', 'tblTempUsageDetail_20' ) start [2024-12-27 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112712', 'tblTempUsageDetail_20' ) end [2024-12-27 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112712', 'tblTempVendorCDR_20' ) start [2024-12-27 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112712', 'tblTempVendorCDR_20' ) end [2024-12-27 07:37:17] Production.INFO: ProcessCDR(1,14112712,1,1,2) [2024-12-27 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112712', 'tblTempUsageDetail_20' ) start [2024-12-27 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112712', 'tblTempUsageDetail_20' ) end [2024-12-27 07:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:37:20] Production.INFO: ==25547== Releasing lock... [2024-12-27 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:37:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:38:05 [end_date_ymd] => 2024-12-27 07:38:05 [RateCDR] => 1 ) [2024-12-27 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:38:05' and `end` < '2024-12-27 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:38:18] Production.INFO: count ==23 [2024-12-27 07:38:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:38:05 - End Time 2024-12-27 07:38:05 [2024-12-27 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112717', 'tblTempUsageDetail_20' ) start [2024-12-27 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112717', 'tblTempUsageDetail_20' ) end [2024-12-27 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112717', 'tblTempVendorCDR_20' ) start [2024-12-27 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112717', 'tblTempVendorCDR_20' ) end [2024-12-27 07:38:18] Production.INFO: ProcessCDR(1,14112717,1,1,2) [2024-12-27 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112717', 'tblTempUsageDetail_20' ) start [2024-12-27 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112717', 'tblTempUsageDetail_20' ) end [2024-12-27 07:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:38:21] Production.INFO: ==25633== Releasing lock... [2024-12-27 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:38:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:39:04 [end_date_ymd] => 2024-12-27 07:39:04 [RateCDR] => 1 ) [2024-12-27 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-27 04:39:04' and `end` < '2024-12-27 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-27 07:39:17] Production.INFO: count ==23 [2024-12-27 07:39:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:39:04 - End Time 2024-12-27 07:39:04 [2024-12-27 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112722', 'tblTempUsageDetail_20' ) start [2024-12-27 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112722', 'tblTempUsageDetail_20' ) end [2024-12-27 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112722', 'tblTempVendorCDR_20' ) start [2024-12-27 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112722', 'tblTempVendorCDR_20' ) end [2024-12-27 07:39:17] Production.INFO: ProcessCDR(1,14112722,1,1,2) [2024-12-27 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112722', 'tblTempUsageDetail_20' ) start [2024-12-27 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112722', 'tblTempUsageDetail_20' ) end [2024-12-27 07:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:39:20] Production.INFO: ==25715== Releasing lock... [2024-12-27 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:39:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:40:06 [end_date_ymd] => 2024-12-27 07:40:06 [RateCDR] => 1 ) [2024-12-27 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:40:06' and `end` < '2024-12-27 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:40:19] Production.INFO: count ==23 [2024-12-27 07:40:19] Production.ERROR: pbx CDR StartTime 2024-12-27 04:40:06 - End Time 2024-12-27 07:40:06 [2024-12-27 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112727', 'tblTempUsageDetail_20' ) start [2024-12-27 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112727', 'tblTempUsageDetail_20' ) end [2024-12-27 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112727', 'tblTempVendorCDR_20' ) start [2024-12-27 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112727', 'tblTempVendorCDR_20' ) end [2024-12-27 07:40:19] Production.INFO: ProcessCDR(1,14112727,1,1,2) [2024-12-27 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112727', 'tblTempUsageDetail_20' ) start [2024-12-27 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112727', 'tblTempUsageDetail_20' ) end [2024-12-27 07:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:40:22] Production.INFO: ==25798== Releasing lock... [2024-12-27 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:40:22] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:41:05 [end_date_ymd] => 2024-12-27 07:41:05 [RateCDR] => 1 ) [2024-12-27 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:41:05' and `end` < '2024-12-27 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:41:18] Production.INFO: count ==23 [2024-12-27 07:41:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:41:05 - End Time 2024-12-27 07:41:05 [2024-12-27 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112733', 'tblTempUsageDetail_20' ) start [2024-12-27 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112733', 'tblTempUsageDetail_20' ) end [2024-12-27 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112733', 'tblTempVendorCDR_20' ) start [2024-12-27 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112733', 'tblTempVendorCDR_20' ) end [2024-12-27 07:41:18] Production.INFO: ProcessCDR(1,14112733,1,1,2) [2024-12-27 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112733', 'tblTempUsageDetail_20' ) start [2024-12-27 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112733', 'tblTempUsageDetail_20' ) end [2024-12-27 07:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:41:21] Production.INFO: ==25889== Releasing lock... [2024-12-27 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:41:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:42:05 [end_date_ymd] => 2024-12-27 07:42:05 [RateCDR] => 1 ) [2024-12-27 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:42:05' and `end` < '2024-12-27 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:42:17] Production.INFO: count ==23 [2024-12-27 07:42:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:42:05 - End Time 2024-12-27 07:42:05 [2024-12-27 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112738', 'tblTempUsageDetail_20' ) start [2024-12-27 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112738', 'tblTempUsageDetail_20' ) end [2024-12-27 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112738', 'tblTempVendorCDR_20' ) start [2024-12-27 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112738', 'tblTempVendorCDR_20' ) end [2024-12-27 07:42:17] Production.INFO: ProcessCDR(1,14112738,1,1,2) [2024-12-27 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112738', 'tblTempUsageDetail_20' ) start [2024-12-27 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112738', 'tblTempUsageDetail_20' ) end [2024-12-27 07:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:42:20] Production.INFO: ==25962== Releasing lock... [2024-12-27 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:42:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:43:05 [end_date_ymd] => 2024-12-27 07:43:05 [RateCDR] => 1 ) [2024-12-27 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:43:05' and `end` < '2024-12-27 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:43:18] Production.INFO: count ==23 [2024-12-27 07:43:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:43:05 - End Time 2024-12-27 07:43:05 [2024-12-27 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112743', 'tblTempUsageDetail_20' ) start [2024-12-27 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112743', 'tblTempUsageDetail_20' ) end [2024-12-27 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112743', 'tblTempVendorCDR_20' ) start [2024-12-27 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112743', 'tblTempVendorCDR_20' ) end [2024-12-27 07:43:18] Production.INFO: ProcessCDR(1,14112743,1,1,2) [2024-12-27 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112743', 'tblTempUsageDetail_20' ) start [2024-12-27 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112743', 'tblTempUsageDetail_20' ) end [2024-12-27 07:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:43:21] Production.INFO: ==26041== Releasing lock... [2024-12-27 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:43:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:44:04 [end_date_ymd] => 2024-12-27 07:44:04 [RateCDR] => 1 ) [2024-12-27 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-27 04:44:04' and `end` < '2024-12-27 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-27 07:44:17] Production.INFO: count ==23 [2024-12-27 07:44:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:44:04 - End Time 2024-12-27 07:44:04 [2024-12-27 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112748', 'tblTempUsageDetail_20' ) start [2024-12-27 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112748', 'tblTempUsageDetail_20' ) end [2024-12-27 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112748', 'tblTempVendorCDR_20' ) start [2024-12-27 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112748', 'tblTempVendorCDR_20' ) end [2024-12-27 07:44:17] Production.INFO: ProcessCDR(1,14112748,1,1,2) [2024-12-27 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112748', 'tblTempUsageDetail_20' ) start [2024-12-27 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112748', 'tblTempUsageDetail_20' ) end [2024-12-27 07:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:44:20] Production.INFO: ==26116== Releasing lock... [2024-12-27 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:44:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:45:05 [end_date_ymd] => 2024-12-27 07:45:05 [RateCDR] => 1 ) [2024-12-27 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-27 04:45:05' and `end` < '2024-12-27 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-27 07:45:17] Production.INFO: count ==23 [2024-12-27 07:45:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:45:05 - End Time 2024-12-27 07:45:05 [2024-12-27 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112753', 'tblTempUsageDetail_20' ) start [2024-12-27 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112753', 'tblTempUsageDetail_20' ) end [2024-12-27 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112753', 'tblTempVendorCDR_20' ) start [2024-12-27 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112753', 'tblTempVendorCDR_20' ) end [2024-12-27 07:45:17] Production.INFO: ProcessCDR(1,14112753,1,1,2) [2024-12-27 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112753', 'tblTempUsageDetail_20' ) start [2024-12-27 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112753', 'tblTempUsageDetail_20' ) end [2024-12-27 07:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:45:20] Production.INFO: ==26190== Releasing lock... [2024-12-27 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:45:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:46:05 [end_date_ymd] => 2024-12-27 07:46:05 [RateCDR] => 1 ) [2024-12-27 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:46:05' and `end` < '2024-12-27 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:46:18] Production.INFO: count ==23 [2024-12-27 07:46:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:46:05 - End Time 2024-12-27 07:46:05 [2024-12-27 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112758', 'tblTempUsageDetail_20' ) start [2024-12-27 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112758', 'tblTempUsageDetail_20' ) end [2024-12-27 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112758', 'tblTempVendorCDR_20' ) start [2024-12-27 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112758', 'tblTempVendorCDR_20' ) end [2024-12-27 07:46:18] Production.INFO: ProcessCDR(1,14112758,1,1,2) [2024-12-27 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112758', 'tblTempUsageDetail_20' ) start [2024-12-27 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112758', 'tblTempUsageDetail_20' ) end [2024-12-27 07:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:46:21] Production.INFO: ==26273== Releasing lock... [2024-12-27 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:46:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:47:05 [end_date_ymd] => 2024-12-27 07:47:05 [RateCDR] => 1 ) [2024-12-27 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-27 04:47:05' and `end` < '2024-12-27 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-27 07:47:18] Production.INFO: count ==23 [2024-12-27 07:47:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:47:05 - End Time 2024-12-27 07:47:05 [2024-12-27 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112763', 'tblTempUsageDetail_20' ) start [2024-12-27 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112763', 'tblTempUsageDetail_20' ) end [2024-12-27 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112763', 'tblTempVendorCDR_20' ) start [2024-12-27 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112763', 'tblTempVendorCDR_20' ) end [2024-12-27 07:47:18] Production.INFO: ProcessCDR(1,14112763,1,1,2) [2024-12-27 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112763', 'tblTempUsageDetail_20' ) start [2024-12-27 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112763', 'tblTempUsageDetail_20' ) end [2024-12-27 07:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:47:21] Production.INFO: ==26350== Releasing lock... [2024-12-27 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:47:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:48:05 [end_date_ymd] => 2024-12-27 07:48:05 [RateCDR] => 1 ) [2024-12-27 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:48:05' and `end` < '2024-12-27 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:48:18] Production.INFO: count ==23 [2024-12-27 07:48:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:48:05 - End Time 2024-12-27 07:48:05 [2024-12-27 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112768', 'tblTempUsageDetail_20' ) start [2024-12-27 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112768', 'tblTempUsageDetail_20' ) end [2024-12-27 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112768', 'tblTempVendorCDR_20' ) start [2024-12-27 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112768', 'tblTempVendorCDR_20' ) end [2024-12-27 07:48:18] Production.INFO: ProcessCDR(1,14112768,1,1,2) [2024-12-27 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112768', 'tblTempUsageDetail_20' ) start [2024-12-27 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112768', 'tblTempUsageDetail_20' ) end [2024-12-27 07:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:48:21] Production.INFO: ==26428== Releasing lock... [2024-12-27 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:48:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:49:05 [end_date_ymd] => 2024-12-27 07:49:05 [RateCDR] => 1 ) [2024-12-27 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:49:05' and `end` < '2024-12-27 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:49:17] Production.INFO: count ==24 [2024-12-27 07:49:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:49:05 - End Time 2024-12-27 07:49:05 [2024-12-27 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112773', 'tblTempUsageDetail_20' ) start [2024-12-27 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112773', 'tblTempUsageDetail_20' ) end [2024-12-27 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112773', 'tblTempVendorCDR_20' ) start [2024-12-27 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112773', 'tblTempVendorCDR_20' ) end [2024-12-27 07:49:18] Production.INFO: ProcessCDR(1,14112773,1,1,2) [2024-12-27 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112773', 'tblTempUsageDetail_20' ) start [2024-12-27 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112773', 'tblTempUsageDetail_20' ) end [2024-12-27 07:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:49:22] Production.INFO: ==26541== Releasing lock... [2024-12-27 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:49:22] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:50:05 [end_date_ymd] => 2024-12-27 07:50:05 [RateCDR] => 1 ) [2024-12-27 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:50:05' and `end` < '2024-12-27 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:50:18] Production.INFO: count ==24 [2024-12-27 07:50:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:50:05 - End Time 2024-12-27 07:50:05 [2024-12-27 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112779', 'tblTempUsageDetail_20' ) start [2024-12-27 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112779', 'tblTempUsageDetail_20' ) end [2024-12-27 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112779', 'tblTempVendorCDR_20' ) start [2024-12-27 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112779', 'tblTempVendorCDR_20' ) end [2024-12-27 07:50:18] Production.INFO: ProcessCDR(1,14112779,1,1,2) [2024-12-27 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112779', 'tblTempUsageDetail_20' ) start [2024-12-27 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112779', 'tblTempUsageDetail_20' ) end [2024-12-27 07:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:50:22] Production.INFO: ==26618== Releasing lock... [2024-12-27 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:50:22] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:51:04 [end_date_ymd] => 2024-12-27 07:51:04 [RateCDR] => 1 ) [2024-12-27 07: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-27 04:51:04' and `end` < '2024-12-27 07: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-27 07:51:17] Production.INFO: count ==24 [2024-12-27 07:51:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:51:04 - End Time 2024-12-27 07:51:04 [2024-12-27 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112784', 'tblTempUsageDetail_20' ) start [2024-12-27 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112784', 'tblTempUsageDetail_20' ) end [2024-12-27 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112784', 'tblTempVendorCDR_20' ) start [2024-12-27 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112784', 'tblTempVendorCDR_20' ) end [2024-12-27 07:51:17] Production.INFO: ProcessCDR(1,14112784,1,1,2) [2024-12-27 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112784', 'tblTempUsageDetail_20' ) start [2024-12-27 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112784', 'tblTempUsageDetail_20' ) end [2024-12-27 07:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:51:20] Production.INFO: ==26693== Releasing lock... [2024-12-27 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:51:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:52:05 [end_date_ymd] => 2024-12-27 07:52:05 [RateCDR] => 1 ) [2024-12-27 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:52:05' and `end` < '2024-12-27 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:52:18] Production.INFO: count ==24 [2024-12-27 07:52:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:52:05 - End Time 2024-12-27 07:52:05 [2024-12-27 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112789', 'tblTempUsageDetail_20' ) start [2024-12-27 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112789', 'tblTempUsageDetail_20' ) end [2024-12-27 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112789', 'tblTempVendorCDR_20' ) start [2024-12-27 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112789', 'tblTempVendorCDR_20' ) end [2024-12-27 07:52:18] Production.INFO: ProcessCDR(1,14112789,1,1,2) [2024-12-27 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112789', 'tblTempUsageDetail_20' ) start [2024-12-27 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112789', 'tblTempUsageDetail_20' ) end [2024-12-27 07:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:52:21] Production.INFO: ==26769== Releasing lock... [2024-12-27 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:52:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:53:05 [end_date_ymd] => 2024-12-27 07:53:05 [RateCDR] => 1 ) [2024-12-27 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:53:05' and `end` < '2024-12-27 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:53:17] Production.INFO: count ==24 [2024-12-27 07:53:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:53:05 - End Time 2024-12-27 07:53:05 [2024-12-27 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112794', 'tblTempUsageDetail_20' ) start [2024-12-27 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112794', 'tblTempUsageDetail_20' ) end [2024-12-27 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112794', 'tblTempVendorCDR_20' ) start [2024-12-27 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112794', 'tblTempVendorCDR_20' ) end [2024-12-27 07:53:17] Production.INFO: ProcessCDR(1,14112794,1,1,2) [2024-12-27 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112794', 'tblTempUsageDetail_20' ) start [2024-12-27 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112794', 'tblTempUsageDetail_20' ) end [2024-12-27 07:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:53:20] Production.INFO: ==26844== Releasing lock... [2024-12-27 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:53:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:54:04 [end_date_ymd] => 2024-12-27 07:54:04 [RateCDR] => 1 ) [2024-12-27 07: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-27 04:54:04' and `end` < '2024-12-27 07: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-27 07:54:17] Production.INFO: count ==24 [2024-12-27 07:54:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:54:04 - End Time 2024-12-27 07:54:04 [2024-12-27 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112799', 'tblTempUsageDetail_20' ) start [2024-12-27 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112799', 'tblTempUsageDetail_20' ) end [2024-12-27 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112799', 'tblTempVendorCDR_20' ) start [2024-12-27 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112799', 'tblTempVendorCDR_20' ) end [2024-12-27 07:54:17] Production.INFO: ProcessCDR(1,14112799,1,1,2) [2024-12-27 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112799', 'tblTempUsageDetail_20' ) start [2024-12-27 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112799', 'tblTempUsageDetail_20' ) end [2024-12-27 07:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:54:20] Production.INFO: ==26922== Releasing lock... [2024-12-27 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:54:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:55:05 [end_date_ymd] => 2024-12-27 07:55:05 [RateCDR] => 1 ) [2024-12-27 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:55:05' and `end` < '2024-12-27 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:55:17] Production.INFO: count ==25 [2024-12-27 07:55:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:55:05 - End Time 2024-12-27 07:55:05 [2024-12-27 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112804', 'tblTempUsageDetail_20' ) start [2024-12-27 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112804', 'tblTempUsageDetail_20' ) end [2024-12-27 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112804', 'tblTempVendorCDR_20' ) start [2024-12-27 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112804', 'tblTempVendorCDR_20' ) end [2024-12-27 07:55:17] Production.INFO: ProcessCDR(1,14112804,1,1,2) [2024-12-27 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112804', 'tblTempUsageDetail_20' ) start [2024-12-27 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112804', 'tblTempUsageDetail_20' ) end [2024-12-27 07:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:55:21] Production.INFO: ==27003== Releasing lock... [2024-12-27 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:55:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:56:04 [end_date_ymd] => 2024-12-27 07:56:04 [RateCDR] => 1 ) [2024-12-27 07: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-27 04:56:04' and `end` < '2024-12-27 07: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-27 07:56:18] Production.INFO: count ==26 [2024-12-27 07:56:18] Production.ERROR: pbx CDR StartTime 2024-12-27 04:56:04 - End Time 2024-12-27 07:56:04 [2024-12-27 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112809', 'tblTempUsageDetail_20' ) start [2024-12-27 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112809', 'tblTempUsageDetail_20' ) end [2024-12-27 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112809', 'tblTempVendorCDR_20' ) start [2024-12-27 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112809', 'tblTempVendorCDR_20' ) end [2024-12-27 07:56:18] Production.INFO: ProcessCDR(1,14112809,1,1,2) [2024-12-27 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112809', 'tblTempUsageDetail_20' ) start [2024-12-27 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112809', 'tblTempUsageDetail_20' ) end [2024-12-27 07:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:56:22] Production.INFO: ==27076== Releasing lock... [2024-12-27 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:56:22] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:57:05 [end_date_ymd] => 2024-12-27 07:57:05 [RateCDR] => 1 ) [2024-12-27 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:57:05' and `end` < '2024-12-27 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:57:17] Production.INFO: count ==27 [2024-12-27 07:57:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:57:05 - End Time 2024-12-27 07:57:05 [2024-12-27 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112814', 'tblTempUsageDetail_20' ) start [2024-12-27 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112814', 'tblTempUsageDetail_20' ) end [2024-12-27 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112814', 'tblTempVendorCDR_20' ) start [2024-12-27 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112814', 'tblTempVendorCDR_20' ) end [2024-12-27 07:57:17] Production.INFO: ProcessCDR(1,14112814,1,1,2) [2024-12-27 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112814', 'tblTempUsageDetail_20' ) start [2024-12-27 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112814', 'tblTempUsageDetail_20' ) end [2024-12-27 07:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:57:21] Production.INFO: ==27153== Releasing lock... [2024-12-27 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:57:21] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:58:05 [end_date_ymd] => 2024-12-27 07:58:05 [RateCDR] => 1 ) [2024-12-27 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:58:05' and `end` < '2024-12-27 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:58:19] Production.INFO: count ==27 [2024-12-27 07:58:19] Production.ERROR: pbx CDR StartTime 2024-12-27 04:58:05 - End Time 2024-12-27 07:58:05 [2024-12-27 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112819', 'tblTempUsageDetail_20' ) start [2024-12-27 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112819', 'tblTempUsageDetail_20' ) end [2024-12-27 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112819', 'tblTempVendorCDR_20' ) start [2024-12-27 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112819', 'tblTempVendorCDR_20' ) end [2024-12-27 07:58:19] Production.INFO: ProcessCDR(1,14112819,1,1,2) [2024-12-27 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112819', 'tblTempUsageDetail_20' ) start [2024-12-27 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112819', 'tblTempUsageDetail_20' ) end [2024-12-27 07:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:58:22] Production.INFO: ==27225== Releasing lock... [2024-12-27 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:58:22] Production.INFO: 28 MB #Memory Used# [2024-12-27 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 04:59:05 [end_date_ymd] => 2024-12-27 07:59:05 [RateCDR] => 1 ) [2024-12-27 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 04:59:05' and `end` < '2024-12-27 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 07:59:17] Production.INFO: count ==27 [2024-12-27 07:59:17] Production.ERROR: pbx CDR StartTime 2024-12-27 04:59:05 - End Time 2024-12-27 07:59:05 [2024-12-27 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112824', 'tblTempUsageDetail_20' ) start [2024-12-27 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112824', 'tblTempUsageDetail_20' ) end [2024-12-27 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112824', 'tblTempVendorCDR_20' ) start [2024-12-27 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112824', 'tblTempVendorCDR_20' ) end [2024-12-27 07:59:17] Production.INFO: ProcessCDR(1,14112824,1,1,2) [2024-12-27 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112824', 'tblTempUsageDetail_20' ) start [2024-12-27 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112824', 'tblTempUsageDetail_20' ) end [2024-12-27 07:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 07:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 07:59:20] Production.INFO: ==27302== Releasing lock... [2024-12-27 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 07:59:20] Production.INFO: 28 MB #Memory Used# [2024-12-27 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:00:06 [end_date_ymd] => 2024-12-27 08:00:06 [RateCDR] => 1 ) [2024-12-27 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:00:06' and `end` < '2024-12-27 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:00:18] Production.INFO: count ==36 [2024-12-27 08:00:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:00:06 - End Time 2024-12-27 08:00:06 [2024-12-27 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112830', 'tblTempUsageDetail_20' ) start [2024-12-27 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112830', 'tblTempUsageDetail_20' ) end [2024-12-27 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112830', 'tblTempVendorCDR_20' ) start [2024-12-27 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112830', 'tblTempVendorCDR_20' ) end [2024-12-27 08:00:18] Production.INFO: ProcessCDR(1,14112830,1,1,2) [2024-12-27 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112830', 'tblTempUsageDetail_20' ) start [2024-12-27 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112830', 'tblTempUsageDetail_20' ) end [2024-12-27 08:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:00:23] Production.INFO: ==27386== Releasing lock... [2024-12-27 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:00:23] Production.INFO: 28 MB #Memory Used# [2024-12-27 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:01:04 [end_date_ymd] => 2024-12-27 08:01:04 [RateCDR] => 1 ) [2024-12-27 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:01:04' and `end` < '2024-12-27 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-27 08:01:18] Production.INFO: count ==41 [2024-12-27 08:01:19] Production.ERROR: pbx CDR StartTime 2024-12-27 05:01:04 - End Time 2024-12-27 08:01:04 [2024-12-27 08:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112835', 'tblTempUsageDetail_20' ) start [2024-12-27 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112835', 'tblTempUsageDetail_20' ) end [2024-12-27 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112835', 'tblTempVendorCDR_20' ) start [2024-12-27 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112835', 'tblTempVendorCDR_20' ) end [2024-12-27 08:01:19] Production.INFO: ProcessCDR(1,14112835,1,1,2) [2024-12-27 08:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112835', 'tblTempUsageDetail_20' ) start [2024-12-27 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112835', 'tblTempUsageDetail_20' ) end [2024-12-27 08:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:01:23] Production.INFO: ==27474== Releasing lock... [2024-12-27 08:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:01:23] Production.INFO: 28 MB #Memory Used# [2024-12-27 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:02:05 [end_date_ymd] => 2024-12-27 08:02:05 [RateCDR] => 1 ) [2024-12-27 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:02:05' and `end` < '2024-12-27 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:02:18] Production.INFO: count ==44 [2024-12-27 08:02:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:02:05 - End Time 2024-12-27 08:02:05 [2024-12-27 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112840', 'tblTempUsageDetail_20' ) start [2024-12-27 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112840', 'tblTempUsageDetail_20' ) end [2024-12-27 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112840', 'tblTempVendorCDR_20' ) start [2024-12-27 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112840', 'tblTempVendorCDR_20' ) end [2024-12-27 08:02:18] Production.INFO: ProcessCDR(1,14112840,1,1,2) [2024-12-27 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112840', 'tblTempUsageDetail_20' ) start [2024-12-27 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112840', 'tblTempUsageDetail_20' ) end [2024-12-27 08:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:02:23] Production.INFO: ==27547== Releasing lock... [2024-12-27 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:02:23] Production.INFO: 28 MB #Memory Used# [2024-12-27 08:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:03:04 [end_date_ymd] => 2024-12-27 08:03:04 [RateCDR] => 1 ) [2024-12-27 08: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-27 05:03:04' and `end` < '2024-12-27 08: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-27 08:03:18] Production.INFO: count ==47 [2024-12-27 08:03:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:03:04 - End Time 2024-12-27 08:03:04 [2024-12-27 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112845', 'tblTempUsageDetail_20' ) start [2024-12-27 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112845', 'tblTempUsageDetail_20' ) end [2024-12-27 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112845', 'tblTempVendorCDR_20' ) start [2024-12-27 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112845', 'tblTempVendorCDR_20' ) end [2024-12-27 08:03:18] Production.INFO: ProcessCDR(1,14112845,1,1,2) [2024-12-27 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112845', 'tblTempUsageDetail_20' ) start [2024-12-27 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112845', 'tblTempUsageDetail_20' ) end [2024-12-27 08:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:03:22] Production.INFO: ==27621== Releasing lock... [2024-12-27 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:03:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-27 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:04:05 [end_date_ymd] => 2024-12-27 08:04:05 [RateCDR] => 1 ) [2024-12-27 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:04:05' and `end` < '2024-12-27 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:04:18] Production.INFO: count ==62 [2024-12-27 08:04:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:04:05 - End Time 2024-12-27 08:04:05 [2024-12-27 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112850', 'tblTempUsageDetail_20' ) start [2024-12-27 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112850', 'tblTempUsageDetail_20' ) end [2024-12-27 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112850', 'tblTempVendorCDR_20' ) start [2024-12-27 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112850', 'tblTempVendorCDR_20' ) end [2024-12-27 08:04:18] Production.INFO: ProcessCDR(1,14112850,1,1,2) [2024-12-27 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112850', 'tblTempUsageDetail_20' ) start [2024-12-27 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112850', 'tblTempUsageDetail_20' ) end [2024-12-27 08:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:04:23] Production.INFO: ==27732== Releasing lock... [2024-12-27 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:04:23] Production.INFO: 28.5 MB #Memory Used# [2024-12-27 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:05:05 [end_date_ymd] => 2024-12-27 08:05:05 [RateCDR] => 1 ) [2024-12-27 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:05:05' and `end` < '2024-12-27 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:05:18] Production.INFO: count ==64 [2024-12-27 08:05:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:05:05 - End Time 2024-12-27 08:05:05 [2024-12-27 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112855', 'tblTempUsageDetail_20' ) start [2024-12-27 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112855', 'tblTempUsageDetail_20' ) end [2024-12-27 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112855', 'tblTempVendorCDR_20' ) start [2024-12-27 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112855', 'tblTempVendorCDR_20' ) end [2024-12-27 08:05:18] Production.INFO: ProcessCDR(1,14112855,1,1,2) [2024-12-27 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112855', 'tblTempUsageDetail_20' ) start [2024-12-27 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112855', 'tblTempUsageDetail_20' ) end [2024-12-27 08:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:05:21] Production.INFO: ==27809== Releasing lock... [2024-12-27 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:05:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-27 08:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:06:04 [end_date_ymd] => 2024-12-27 08:06:04 [RateCDR] => 1 ) [2024-12-27 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-27 05:06:04' and `end` < '2024-12-27 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-27 08:06:17] Production.INFO: count ==76 [2024-12-27 08:06:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:06:04 - End Time 2024-12-27 08:06:04 [2024-12-27 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112860', 'tblTempUsageDetail_20' ) start [2024-12-27 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112860', 'tblTempUsageDetail_20' ) end [2024-12-27 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112860', 'tblTempVendorCDR_20' ) start [2024-12-27 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112860', 'tblTempVendorCDR_20' ) end [2024-12-27 08:06:17] Production.INFO: ProcessCDR(1,14112860,1,1,2) [2024-12-27 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112860', 'tblTempUsageDetail_20' ) start [2024-12-27 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112860', 'tblTempUsageDetail_20' ) end [2024-12-27 08:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:06:20] Production.INFO: ==27881== Releasing lock... [2024-12-27 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:06:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-27 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:07:05 [end_date_ymd] => 2024-12-27 08:07:05 [RateCDR] => 1 ) [2024-12-27 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:07:05' and `end` < '2024-12-27 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:07:20] Production.INFO: count ==95 [2024-12-27 08:07:20] Production.ERROR: pbx CDR StartTime 2024-12-27 05:07:05 - End Time 2024-12-27 08:07:05 [2024-12-27 08:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112865', 'tblTempUsageDetail_20' ) start [2024-12-27 08:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112865', 'tblTempUsageDetail_20' ) end [2024-12-27 08:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112865', 'tblTempVendorCDR_20' ) start [2024-12-27 08:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112865', 'tblTempVendorCDR_20' ) end [2024-12-27 08:07:20] Production.INFO: ProcessCDR(1,14112865,1,1,2) [2024-12-27 08:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112865', 'tblTempUsageDetail_20' ) start [2024-12-27 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112865', 'tblTempUsageDetail_20' ) end [2024-12-27 08:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:07:23] Production.INFO: ==27959== Releasing lock... [2024-12-27 08:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:07:23] Production.INFO: 28.75 MB #Memory Used# [2024-12-27 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:08:05 [end_date_ymd] => 2024-12-27 08:08:05 [RateCDR] => 1 ) [2024-12-27 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:08:05' and `end` < '2024-12-27 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:08:17] Production.INFO: count ==118 [2024-12-27 08:08:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:08:05 - End Time 2024-12-27 08:08:05 [2024-12-27 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112870', 'tblTempUsageDetail_20' ) start [2024-12-27 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112870', 'tblTempUsageDetail_20' ) end [2024-12-27 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112870', 'tblTempVendorCDR_20' ) start [2024-12-27 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112870', 'tblTempVendorCDR_20' ) end [2024-12-27 08:08:17] Production.INFO: ProcessCDR(1,14112870,1,1,2) [2024-12-27 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112870', 'tblTempUsageDetail_20' ) start [2024-12-27 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112870', 'tblTempUsageDetail_20' ) end [2024-12-27 08:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:08:22] Production.INFO: ==28038== Releasing lock... [2024-12-27 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:08:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-27 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:09:05 [end_date_ymd] => 2024-12-27 08:09:05 [RateCDR] => 1 ) [2024-12-27 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:09:05' and `end` < '2024-12-27 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:09:17] Production.INFO: count ==139 [2024-12-27 08:09:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:09:05 - End Time 2024-12-27 08:09:05 [2024-12-27 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112875', 'tblTempUsageDetail_20' ) start [2024-12-27 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112875', 'tblTempUsageDetail_20' ) end [2024-12-27 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112875', 'tblTempVendorCDR_20' ) start [2024-12-27 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112875', 'tblTempVendorCDR_20' ) end [2024-12-27 08:09:17] Production.INFO: ProcessCDR(1,14112875,1,1,2) [2024-12-27 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112875', 'tblTempUsageDetail_20' ) start [2024-12-27 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112875', 'tblTempUsageDetail_20' ) end [2024-12-27 08:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:09:20] Production.INFO: ==28115== Releasing lock... [2024-12-27 08:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:09:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:10:06 [end_date_ymd] => 2024-12-27 08:10:06 [RateCDR] => 1 ) [2024-12-27 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:10:06' and `end` < '2024-12-27 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:10:18] Production.INFO: count ==153 [2024-12-27 08:10:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:10:06 - End Time 2024-12-27 08:10:06 [2024-12-27 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112881', 'tblTempUsageDetail_20' ) start [2024-12-27 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112881', 'tblTempUsageDetail_20' ) end [2024-12-27 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112881', 'tblTempVendorCDR_20' ) start [2024-12-27 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112881', 'tblTempVendorCDR_20' ) end [2024-12-27 08:10:18] Production.INFO: ProcessCDR(1,14112881,1,1,2) [2024-12-27 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112881', 'tblTempUsageDetail_20' ) start [2024-12-27 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112881', 'tblTempUsageDetail_20' ) end [2024-12-27 08:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:10:23] Production.INFO: ==28194== Releasing lock... [2024-12-27 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:10:23] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:11:05 [end_date_ymd] => 2024-12-27 08:11:05 [RateCDR] => 1 ) [2024-12-27 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:11:05' and `end` < '2024-12-27 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:11:17] Production.INFO: count ==158 [2024-12-27 08:11:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:11:05 - End Time 2024-12-27 08:11:05 [2024-12-27 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112886', 'tblTempUsageDetail_20' ) start [2024-12-27 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112886', 'tblTempUsageDetail_20' ) end [2024-12-27 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112886', 'tblTempVendorCDR_20' ) start [2024-12-27 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112886', 'tblTempVendorCDR_20' ) end [2024-12-27 08:11:17] Production.INFO: ProcessCDR(1,14112886,1,1,2) [2024-12-27 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112886', 'tblTempUsageDetail_20' ) start [2024-12-27 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112886', 'tblTempUsageDetail_20' ) end [2024-12-27 08:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:11:21] Production.INFO: ==28272== Releasing lock... [2024-12-27 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:11:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-27 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:12:06 [end_date_ymd] => 2024-12-27 08:12:06 [RateCDR] => 1 ) [2024-12-27 08:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:12:06' and `end` < '2024-12-27 08:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:12:18] Production.INFO: count ==160 [2024-12-27 08:12:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:12:06 - End Time 2024-12-27 08:12:06 [2024-12-27 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112891', 'tblTempUsageDetail_20' ) start [2024-12-27 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112891', 'tblTempUsageDetail_20' ) end [2024-12-27 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112891', 'tblTempVendorCDR_20' ) start [2024-12-27 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112891', 'tblTempVendorCDR_20' ) end [2024-12-27 08:12:18] Production.INFO: ProcessCDR(1,14112891,1,1,2) [2024-12-27 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112891', 'tblTempUsageDetail_20' ) start [2024-12-27 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112891', 'tblTempUsageDetail_20' ) end [2024-12-27 08:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:12:22] Production.INFO: ==28345== Releasing lock... [2024-12-27 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:12:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-27 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:13:05 [end_date_ymd] => 2024-12-27 08:13:05 [RateCDR] => 1 ) [2024-12-27 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:13:05' and `end` < '2024-12-27 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:13:19] Production.INFO: count ==193 [2024-12-27 08:13:19] Production.ERROR: pbx CDR StartTime 2024-12-27 05:13:05 - End Time 2024-12-27 08:13:05 [2024-12-27 08:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112896', 'tblTempUsageDetail_20' ) start [2024-12-27 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112896', 'tblTempUsageDetail_20' ) end [2024-12-27 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112896', 'tblTempVendorCDR_20' ) start [2024-12-27 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112896', 'tblTempVendorCDR_20' ) end [2024-12-27 08:13:19] Production.INFO: ProcessCDR(1,14112896,1,1,2) [2024-12-27 08:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112896', 'tblTempUsageDetail_20' ) start [2024-12-27 08:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112896', 'tblTempUsageDetail_20' ) end [2024-12-27 08:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:13:24] Production.INFO: ==28424== Releasing lock... [2024-12-27 08:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:13:24] Production.INFO: 30 MB #Memory Used# [2024-12-27 08:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:14:04 [end_date_ymd] => 2024-12-27 08:14:04 [RateCDR] => 1 ) [2024-12-27 08: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-27 05:14:04' and `end` < '2024-12-27 08: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-27 08:14:19] Production.INFO: count ==207 [2024-12-27 08:14:19] Production.ERROR: pbx CDR StartTime 2024-12-27 05:14:04 - End Time 2024-12-27 08:14:04 [2024-12-27 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112901', 'tblTempUsageDetail_20' ) start [2024-12-27 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112901', 'tblTempUsageDetail_20' ) end [2024-12-27 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112901', 'tblTempVendorCDR_20' ) start [2024-12-27 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112901', 'tblTempVendorCDR_20' ) end [2024-12-27 08:14:19] Production.INFO: ProcessCDR(1,14112901,1,1,2) [2024-12-27 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112901', 'tblTempUsageDetail_20' ) start [2024-12-27 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112901', 'tblTempUsageDetail_20' ) end [2024-12-27 08:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:14:22] Production.INFO: ==28495== Releasing lock... [2024-12-27 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:14:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-27 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:15:05 [end_date_ymd] => 2024-12-27 08:15:05 [RateCDR] => 1 ) [2024-12-27 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:15:05' and `end` < '2024-12-27 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:15:17] Production.INFO: count ==226 [2024-12-27 08:15:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:15:05 - End Time 2024-12-27 08:15:05 [2024-12-27 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112906', 'tblTempUsageDetail_20' ) start [2024-12-27 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112906', 'tblTempUsageDetail_20' ) end [2024-12-27 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112906', 'tblTempVendorCDR_20' ) start [2024-12-27 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112906', 'tblTempVendorCDR_20' ) end [2024-12-27 08:15:17] Production.INFO: ProcessCDR(1,14112906,1,1,2) [2024-12-27 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112906', 'tblTempUsageDetail_20' ) start [2024-12-27 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112906', 'tblTempUsageDetail_20' ) end [2024-12-27 08:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:15:22] Production.INFO: ==28573== Releasing lock... [2024-12-27 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:15:22] Production.INFO: 30 MB #Memory Used# [2024-12-27 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:16:05 [end_date_ymd] => 2024-12-27 08:16:05 [RateCDR] => 1 ) [2024-12-27 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:16:05' and `end` < '2024-12-27 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:16:19] Production.INFO: count ==239 [2024-12-27 08:16:19] Production.ERROR: pbx CDR StartTime 2024-12-27 05:16:05 - End Time 2024-12-27 08:16:05 [2024-12-27 08:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112911', 'tblTempUsageDetail_20' ) start [2024-12-27 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112911', 'tblTempUsageDetail_20' ) end [2024-12-27 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112911', 'tblTempVendorCDR_20' ) start [2024-12-27 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112911', 'tblTempVendorCDR_20' ) end [2024-12-27 08:16:19] Production.INFO: ProcessCDR(1,14112911,1,1,2) [2024-12-27 08:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112911', 'tblTempUsageDetail_20' ) start [2024-12-27 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112911', 'tblTempUsageDetail_20' ) end [2024-12-27 08:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:16:23] Production.INFO: ==28648== Releasing lock... [2024-12-27 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:16:23] Production.INFO: 30.25 MB #Memory Used# [2024-12-27 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:17:05 [end_date_ymd] => 2024-12-27 08:17:05 [RateCDR] => 1 ) [2024-12-27 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:17:05' and `end` < '2024-12-27 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:17:17] Production.INFO: count ==254 [2024-12-27 08:17:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:17:05 - End Time 2024-12-27 08:17:05 [2024-12-27 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112916', 'tblTempUsageDetail_20' ) start [2024-12-27 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112916', 'tblTempUsageDetail_20' ) end [2024-12-27 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112916', 'tblTempVendorCDR_20' ) start [2024-12-27 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112916', 'tblTempVendorCDR_20' ) end [2024-12-27 08:17:17] Production.INFO: ProcessCDR(1,14112916,1,1,2) [2024-12-27 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112916', 'tblTempUsageDetail_20' ) start [2024-12-27 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112916', 'tblTempUsageDetail_20' ) end [2024-12-27 08:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:17:22] Production.INFO: ==28732== Releasing lock... [2024-12-27 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:17:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-27 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:18:05 [end_date_ymd] => 2024-12-27 08:18:05 [RateCDR] => 1 ) [2024-12-27 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:18:05' and `end` < '2024-12-27 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:18:17] Production.INFO: count ==272 [2024-12-27 08:18:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:18:05 - End Time 2024-12-27 08:18:05 [2024-12-27 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112921', 'tblTempUsageDetail_20' ) start [2024-12-27 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112921', 'tblTempUsageDetail_20' ) end [2024-12-27 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112921', 'tblTempVendorCDR_20' ) start [2024-12-27 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112921', 'tblTempVendorCDR_20' ) end [2024-12-27 08:18:17] Production.INFO: ProcessCDR(1,14112921,1,1,2) [2024-12-27 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112921', 'tblTempUsageDetail_20' ) start [2024-12-27 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112921', 'tblTempUsageDetail_20' ) end [2024-12-27 08:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:18:22] Production.INFO: ==28807== Releasing lock... [2024-12-27 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:18:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-27 08:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:19:04 [end_date_ymd] => 2024-12-27 08:19:04 [RateCDR] => 1 ) [2024-12-27 08: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-27 05:19:04' and `end` < '2024-12-27 08: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-27 08:19:17] Production.INFO: count ==273 [2024-12-27 08:19:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:19:04 - End Time 2024-12-27 08:19:04 [2024-12-27 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112926', 'tblTempUsageDetail_20' ) start [2024-12-27 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112926', 'tblTempUsageDetail_20' ) end [2024-12-27 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112926', 'tblTempVendorCDR_20' ) start [2024-12-27 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112926', 'tblTempVendorCDR_20' ) end [2024-12-27 08:19:17] Production.INFO: ProcessCDR(1,14112926,1,1,2) [2024-12-27 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112926', 'tblTempUsageDetail_20' ) start [2024-12-27 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112926', 'tblTempUsageDetail_20' ) end [2024-12-27 08:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:19:21] Production.INFO: ==28883== Releasing lock... [2024-12-27 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:19:21] Production.INFO: 31 MB #Memory Used# [2024-12-27 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:20:06 [end_date_ymd] => 2024-12-27 08:20:06 [RateCDR] => 1 ) [2024-12-27 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:20:06' and `end` < '2024-12-27 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:20:18] Production.INFO: count ==303 [2024-12-27 08:20:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:20:06 - End Time 2024-12-27 08:20:06 [2024-12-27 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112932', 'tblTempUsageDetail_20' ) start [2024-12-27 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112932', 'tblTempUsageDetail_20' ) end [2024-12-27 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112932', 'tblTempVendorCDR_20' ) start [2024-12-27 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112932', 'tblTempVendorCDR_20' ) end [2024-12-27 08:20:18] Production.INFO: ProcessCDR(1,14112932,1,1,2) [2024-12-27 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112932', 'tblTempUsageDetail_20' ) start [2024-12-27 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112932', 'tblTempUsageDetail_20' ) end [2024-12-27 08:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:20:23] Production.INFO: ==28999== Releasing lock... [2024-12-27 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:20:23] Production.INFO: 31 MB #Memory Used# [2024-12-27 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:21:05 [end_date_ymd] => 2024-12-27 08:21:05 [RateCDR] => 1 ) [2024-12-27 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:21:05' and `end` < '2024-12-27 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:21:19] Production.INFO: count ==318 [2024-12-27 08:21:19] Production.ERROR: pbx CDR StartTime 2024-12-27 05:21:05 - End Time 2024-12-27 08:21:05 [2024-12-27 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112937', 'tblTempUsageDetail_20' ) start [2024-12-27 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112937', 'tblTempUsageDetail_20' ) end [2024-12-27 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112937', 'tblTempVendorCDR_20' ) start [2024-12-27 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112937', 'tblTempVendorCDR_20' ) end [2024-12-27 08:21:19] Production.INFO: ProcessCDR(1,14112937,1,1,2) [2024-12-27 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112937', 'tblTempUsageDetail_20' ) start [2024-12-27 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112937', 'tblTempUsageDetail_20' ) end [2024-12-27 08:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:21:22] Production.INFO: ==29082== Releasing lock... [2024-12-27 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:21:22] Production.INFO: 31 MB #Memory Used# [2024-12-27 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:22:05 [end_date_ymd] => 2024-12-27 08:22:05 [RateCDR] => 1 ) [2024-12-27 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:22:05' and `end` < '2024-12-27 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:22:17] Production.INFO: count ==331 [2024-12-27 08:22:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:22:05 - End Time 2024-12-27 08:22:05 [2024-12-27 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112942', 'tblTempUsageDetail_20' ) start [2024-12-27 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112942', 'tblTempUsageDetail_20' ) end [2024-12-27 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112942', 'tblTempVendorCDR_20' ) start [2024-12-27 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112942', 'tblTempVendorCDR_20' ) end [2024-12-27 08:22:17] Production.INFO: ProcessCDR(1,14112942,1,1,2) [2024-12-27 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112942', 'tblTempUsageDetail_20' ) start [2024-12-27 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112942', 'tblTempUsageDetail_20' ) end [2024-12-27 08:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:22:22] Production.INFO: ==29160== Releasing lock... [2024-12-27 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:22:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-27 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:23:05 [end_date_ymd] => 2024-12-27 08:23:05 [RateCDR] => 1 ) [2024-12-27 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:23:05' and `end` < '2024-12-27 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:23:17] Production.INFO: count ==349 [2024-12-27 08:23:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:23:05 - End Time 2024-12-27 08:23:05 [2024-12-27 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112947', 'tblTempUsageDetail_20' ) start [2024-12-27 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112947', 'tblTempUsageDetail_20' ) end [2024-12-27 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112947', 'tblTempVendorCDR_20' ) start [2024-12-27 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112947', 'tblTempVendorCDR_20' ) end [2024-12-27 08:23:18] Production.INFO: ProcessCDR(1,14112947,1,1,2) [2024-12-27 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112947', 'tblTempUsageDetail_20' ) start [2024-12-27 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112947', 'tblTempUsageDetail_20' ) end [2024-12-27 08:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:23:22] Production.INFO: ==29237== Releasing lock... [2024-12-27 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:23:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-27 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:24:05 [end_date_ymd] => 2024-12-27 08:24:05 [RateCDR] => 1 ) [2024-12-27 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:24:05' and `end` < '2024-12-27 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:24:17] Production.INFO: count ==358 [2024-12-27 08:24:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:24:05 - End Time 2024-12-27 08:24:05 [2024-12-27 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112952', 'tblTempUsageDetail_20' ) start [2024-12-27 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112952', 'tblTempUsageDetail_20' ) end [2024-12-27 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112952', 'tblTempVendorCDR_20' ) start [2024-12-27 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112952', 'tblTempVendorCDR_20' ) end [2024-12-27 08:24:17] Production.INFO: ProcessCDR(1,14112952,1,1,2) [2024-12-27 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112952', 'tblTempUsageDetail_20' ) start [2024-12-27 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112952', 'tblTempUsageDetail_20' ) end [2024-12-27 08:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:24:22] Production.INFO: ==29313== Releasing lock... [2024-12-27 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:24:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-27 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:25:05 [end_date_ymd] => 2024-12-27 08:25:05 [RateCDR] => 1 ) [2024-12-27 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:25:05' and `end` < '2024-12-27 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:25:17] Production.INFO: count ==381 [2024-12-27 08:25:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:25:05 - End Time 2024-12-27 08:25:05 [2024-12-27 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112957', 'tblTempUsageDetail_20' ) start [2024-12-27 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112957', 'tblTempUsageDetail_20' ) end [2024-12-27 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112957', 'tblTempVendorCDR_20' ) start [2024-12-27 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112957', 'tblTempVendorCDR_20' ) end [2024-12-27 08:25:17] Production.INFO: ProcessCDR(1,14112957,1,1,2) [2024-12-27 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112957', 'tblTempUsageDetail_20' ) start [2024-12-27 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112957', 'tblTempUsageDetail_20' ) end [2024-12-27 08:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:25:22] Production.INFO: ==29395== Releasing lock... [2024-12-27 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:25:22] Production.INFO: 32 MB #Memory Used# [2024-12-27 08:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:26:04 [end_date_ymd] => 2024-12-27 08:26:04 [RateCDR] => 1 ) [2024-12-27 08: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-27 05:26:04' and `end` < '2024-12-27 08: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-27 08:26:18] Production.INFO: count ==393 [2024-12-27 08:26:19] Production.ERROR: pbx CDR StartTime 2024-12-27 05:26:04 - End Time 2024-12-27 08:26:04 [2024-12-27 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112962', 'tblTempUsageDetail_20' ) start [2024-12-27 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112962', 'tblTempUsageDetail_20' ) end [2024-12-27 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112962', 'tblTempVendorCDR_20' ) start [2024-12-27 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112962', 'tblTempVendorCDR_20' ) end [2024-12-27 08:26:19] Production.INFO: ProcessCDR(1,14112962,1,1,2) [2024-12-27 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112962', 'tblTempUsageDetail_20' ) start [2024-12-27 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112962', 'tblTempUsageDetail_20' ) end [2024-12-27 08:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:26:23] Production.INFO: ==29472== Releasing lock... [2024-12-27 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:26:23] Production.INFO: 31.5 MB #Memory Used# [2024-12-27 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:27:05 [end_date_ymd] => 2024-12-27 08:27:05 [RateCDR] => 1 ) [2024-12-27 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:27:05' and `end` < '2024-12-27 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:27:19] Production.INFO: count ==409 [2024-12-27 08:27:19] Production.ERROR: pbx CDR StartTime 2024-12-27 05:27:05 - End Time 2024-12-27 08:27:05 [2024-12-27 08:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112967', 'tblTempUsageDetail_20' ) start [2024-12-27 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112967', 'tblTempUsageDetail_20' ) end [2024-12-27 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112967', 'tblTempVendorCDR_20' ) start [2024-12-27 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112967', 'tblTempVendorCDR_20' ) end [2024-12-27 08:27:19] Production.INFO: ProcessCDR(1,14112967,1,1,2) [2024-12-27 08:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112967', 'tblTempUsageDetail_20' ) start [2024-12-27 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112967', 'tblTempUsageDetail_20' ) end [2024-12-27 08:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:27:22] Production.INFO: ==29553== Releasing lock... [2024-12-27 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:27:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-27 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:28:05 [end_date_ymd] => 2024-12-27 08:28:05 [RateCDR] => 1 ) [2024-12-27 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:28:05' and `end` < '2024-12-27 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:28:18] Production.INFO: count ==424 [2024-12-27 08:28:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:28:05 - End Time 2024-12-27 08:28:05 [2024-12-27 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112972', 'tblTempUsageDetail_20' ) start [2024-12-27 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112972', 'tblTempUsageDetail_20' ) end [2024-12-27 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112972', 'tblTempVendorCDR_20' ) start [2024-12-27 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112972', 'tblTempVendorCDR_20' ) end [2024-12-27 08:28:18] Production.INFO: ProcessCDR(1,14112972,1,1,2) [2024-12-27 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112972', 'tblTempUsageDetail_20' ) start [2024-12-27 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112972', 'tblTempUsageDetail_20' ) end [2024-12-27 08:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:28:21] Production.INFO: ==29644== Releasing lock... [2024-12-27 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:28:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-27 08:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:29:04 [end_date_ymd] => 2024-12-27 08:29:04 [RateCDR] => 1 ) [2024-12-27 08: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-27 05:29:04' and `end` < '2024-12-27 08: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-27 08:29:17] Production.INFO: count ==438 [2024-12-27 08:29:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:29:04 - End Time 2024-12-27 08:29:04 [2024-12-27 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112977', 'tblTempUsageDetail_20' ) start [2024-12-27 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112977', 'tblTempUsageDetail_20' ) end [2024-12-27 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112977', 'tblTempVendorCDR_20' ) start [2024-12-27 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112977', 'tblTempVendorCDR_20' ) end [2024-12-27 08:29:17] Production.INFO: ProcessCDR(1,14112977,1,1,2) [2024-12-27 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112977', 'tblTempUsageDetail_20' ) start [2024-12-27 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112977', 'tblTempUsageDetail_20' ) end [2024-12-27 08:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:29:20] Production.INFO: ==29770== Releasing lock... [2024-12-27 08:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:29:20] Production.INFO: 32 MB #Memory Used# [2024-12-27 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:30:06 [end_date_ymd] => 2024-12-27 08:30:06 [RateCDR] => 1 ) [2024-12-27 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:30:06' and `end` < '2024-12-27 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:30:18] Production.INFO: count ==481 [2024-12-27 08:30:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:30:06 - End Time 2024-12-27 08:30:06 [2024-12-27 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112983', 'tblTempUsageDetail_20' ) start [2024-12-27 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112983', 'tblTempUsageDetail_20' ) end [2024-12-27 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112983', 'tblTempVendorCDR_20' ) start [2024-12-27 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112983', 'tblTempVendorCDR_20' ) end [2024-12-27 08:30:18] Production.INFO: ProcessCDR(1,14112983,1,1,2) [2024-12-27 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112983', 'tblTempUsageDetail_20' ) start [2024-12-27 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112983', 'tblTempUsageDetail_20' ) end [2024-12-27 08:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:30:22] Production.INFO: ==29869== Releasing lock... [2024-12-27 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:30:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-27 08:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:31:04 [end_date_ymd] => 2024-12-27 08:31:04 [RateCDR] => 1 ) [2024-12-27 08:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:31:04' and `end` < '2024-12-27 08:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:31:18] Production.INFO: count ==508 [2024-12-27 08:31:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:31:04 - End Time 2024-12-27 08:31:04 [2024-12-27 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112988', 'tblTempUsageDetail_20' ) start [2024-12-27 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112988', 'tblTempUsageDetail_20' ) end [2024-12-27 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112988', 'tblTempVendorCDR_20' ) start [2024-12-27 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112988', 'tblTempVendorCDR_20' ) end [2024-12-27 08:31:18] Production.INFO: ProcessCDR(1,14112988,1,1,2) [2024-12-27 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112988', 'tblTempUsageDetail_20' ) start [2024-12-27 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112988', 'tblTempUsageDetail_20' ) end [2024-12-27 08:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:31:21] Production.INFO: ==29950== Releasing lock... [2024-12-27 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:31:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-27 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:32:05 [end_date_ymd] => 2024-12-27 08:32:05 [RateCDR] => 1 ) [2024-12-27 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:32:05' and `end` < '2024-12-27 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:32:17] Production.INFO: count ==520 [2024-12-27 08:32:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:32:05 - End Time 2024-12-27 08:32:05 [2024-12-27 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112993', 'tblTempUsageDetail_20' ) start [2024-12-27 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112993', 'tblTempUsageDetail_20' ) end [2024-12-27 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112993', 'tblTempVendorCDR_20' ) start [2024-12-27 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112993', 'tblTempVendorCDR_20' ) end [2024-12-27 08:32:18] Production.INFO: ProcessCDR(1,14112993,1,1,2) [2024-12-27 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112993', 'tblTempUsageDetail_20' ) start [2024-12-27 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112993', 'tblTempUsageDetail_20' ) end [2024-12-27 08:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:32:22] Production.INFO: ==30033== Releasing lock... [2024-12-27 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:32:22] Production.INFO: 32.5 MB #Memory Used# [2024-12-27 08:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:33:04 [end_date_ymd] => 2024-12-27 08:33:04 [RateCDR] => 1 ) [2024-12-27 08:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:33:04' and `end` < '2024-12-27 08:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:33:16] Production.INFO: count ==526 [2024-12-27 08:33:16] Production.ERROR: pbx CDR StartTime 2024-12-27 05:33:04 - End Time 2024-12-27 08:33:04 [2024-12-27 08:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112998', 'tblTempUsageDetail_20' ) start [2024-12-27 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14112998', 'tblTempUsageDetail_20' ) end [2024-12-27 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112998', 'tblTempVendorCDR_20' ) start [2024-12-27 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14112998', 'tblTempVendorCDR_20' ) end [2024-12-27 08:33:16] Production.INFO: ProcessCDR(1,14112998,1,1,2) [2024-12-27 08:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14112998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14112998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14112998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14112998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112998', 'tblTempUsageDetail_20' ) start [2024-12-27 08:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14112998', 'tblTempUsageDetail_20' ) end [2024-12-27 08:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:33:20] Production.INFO: ==30108== Releasing lock... [2024-12-27 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:33:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-27 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:34:05 [end_date_ymd] => 2024-12-27 08:34:05 [RateCDR] => 1 ) [2024-12-27 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:34:05' and `end` < '2024-12-27 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:34:17] Production.INFO: count ==533 [2024-12-27 08:34:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:34:05 - End Time 2024-12-27 08:34:05 [2024-12-27 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113003', 'tblTempUsageDetail_20' ) start [2024-12-27 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113003', 'tblTempUsageDetail_20' ) end [2024-12-27 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113003', 'tblTempVendorCDR_20' ) start [2024-12-27 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113003', 'tblTempVendorCDR_20' ) end [2024-12-27 08:34:17] Production.INFO: ProcessCDR(1,14113003,1,1,2) [2024-12-27 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113003', 'tblTempUsageDetail_20' ) start [2024-12-27 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113003', 'tblTempUsageDetail_20' ) end [2024-12-27 08:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:34:22] Production.INFO: ==30195== Releasing lock... [2024-12-27 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:34:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-27 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:35:05 [end_date_ymd] => 2024-12-27 08:35:05 [RateCDR] => 1 ) [2024-12-27 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:35:05' and `end` < '2024-12-27 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:35:18] Production.INFO: count ==550 [2024-12-27 08:35:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:35:05 - End Time 2024-12-27 08:35:05 [2024-12-27 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113008', 'tblTempUsageDetail_20' ) start [2024-12-27 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113008', 'tblTempUsageDetail_20' ) end [2024-12-27 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113008', 'tblTempVendorCDR_20' ) start [2024-12-27 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113008', 'tblTempVendorCDR_20' ) end [2024-12-27 08:35:18] Production.INFO: ProcessCDR(1,14113008,1,1,2) [2024-12-27 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113008', 'tblTempUsageDetail_20' ) start [2024-12-27 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113008', 'tblTempUsageDetail_20' ) end [2024-12-27 08:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:35:21] Production.INFO: ==30274== Releasing lock... [2024-12-27 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:35:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-27 08:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:36:04 [end_date_ymd] => 2024-12-27 08:36:04 [RateCDR] => 1 ) [2024-12-27 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-27 05:36:04' and `end` < '2024-12-27 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-27 08:36:17] Production.INFO: count ==579 [2024-12-27 08:36:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:36:04 - End Time 2024-12-27 08:36:04 [2024-12-27 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113013', 'tblTempUsageDetail_20' ) start [2024-12-27 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113013', 'tblTempUsageDetail_20' ) end [2024-12-27 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113013', 'tblTempVendorCDR_20' ) start [2024-12-27 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113013', 'tblTempVendorCDR_20' ) end [2024-12-27 08:36:17] Production.INFO: ProcessCDR(1,14113013,1,1,2) [2024-12-27 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113013', 'tblTempUsageDetail_20' ) start [2024-12-27 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113013', 'tblTempUsageDetail_20' ) end [2024-12-27 08:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:36:20] Production.INFO: ==30395== Releasing lock... [2024-12-27 08:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:36:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-27 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:37:05 [end_date_ymd] => 2024-12-27 08:37:05 [RateCDR] => 1 ) [2024-12-27 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:37:05' and `end` < '2024-12-27 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:37:17] Production.INFO: count ==592 [2024-12-27 08:37:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:37:05 - End Time 2024-12-27 08:37:05 [2024-12-27 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113018', 'tblTempUsageDetail_20' ) start [2024-12-27 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113018', 'tblTempUsageDetail_20' ) end [2024-12-27 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113018', 'tblTempVendorCDR_20' ) start [2024-12-27 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113018', 'tblTempVendorCDR_20' ) end [2024-12-27 08:37:18] Production.INFO: ProcessCDR(1,14113018,1,1,2) [2024-12-27 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113018', 'tblTempUsageDetail_20' ) start [2024-12-27 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113018', 'tblTempUsageDetail_20' ) end [2024-12-27 08:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:37:21] Production.INFO: ==30478== Releasing lock... [2024-12-27 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:37:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-27 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:38:05 [end_date_ymd] => 2024-12-27 08:38:05 [RateCDR] => 1 ) [2024-12-27 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:38:05' and `end` < '2024-12-27 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:38:18] Production.INFO: count ==605 [2024-12-27 08:38:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:38:05 - End Time 2024-12-27 08:38:05 [2024-12-27 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113023', 'tblTempUsageDetail_20' ) start [2024-12-27 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113023', 'tblTempUsageDetail_20' ) end [2024-12-27 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113023', 'tblTempVendorCDR_20' ) start [2024-12-27 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113023', 'tblTempVendorCDR_20' ) end [2024-12-27 08:38:18] Production.INFO: ProcessCDR(1,14113023,1,1,2) [2024-12-27 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113023', 'tblTempUsageDetail_20' ) start [2024-12-27 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113023', 'tblTempUsageDetail_20' ) end [2024-12-27 08:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:38:23] Production.INFO: ==30558== Releasing lock... [2024-12-27 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:38:23] Production.INFO: 33 MB #Memory Used# [2024-12-27 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:39:05 [end_date_ymd] => 2024-12-27 08:39:05 [RateCDR] => 1 ) [2024-12-27 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:39:05' and `end` < '2024-12-27 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:39:17] Production.INFO: count ==620 [2024-12-27 08:39:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:39:05 - End Time 2024-12-27 08:39:05 [2024-12-27 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113028', 'tblTempUsageDetail_20' ) start [2024-12-27 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113028', 'tblTempUsageDetail_20' ) end [2024-12-27 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113028', 'tblTempVendorCDR_20' ) start [2024-12-27 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113028', 'tblTempVendorCDR_20' ) end [2024-12-27 08:39:17] Production.INFO: ProcessCDR(1,14113028,1,1,2) [2024-12-27 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113028', 'tblTempUsageDetail_20' ) start [2024-12-27 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113028', 'tblTempUsageDetail_20' ) end [2024-12-27 08:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:39:20] Production.INFO: ==30641== Releasing lock... [2024-12-27 08:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:39:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-27 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:40:05 [end_date_ymd] => 2024-12-27 08:40:05 [RateCDR] => 1 ) [2024-12-27 08: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-27 05:40:05' and `end` < '2024-12-27 08: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-27 08:40:17] Production.INFO: count ==634 [2024-12-27 08:40:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:40:05 - End Time 2024-12-27 08:40:05 [2024-12-27 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113034', 'tblTempUsageDetail_20' ) start [2024-12-27 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113034', 'tblTempUsageDetail_20' ) end [2024-12-27 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113034', 'tblTempVendorCDR_20' ) start [2024-12-27 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113034', 'tblTempVendorCDR_20' ) end [2024-12-27 08:40:18] Production.INFO: ProcessCDR(1,14113034,1,1,2) [2024-12-27 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113034', 'tblTempUsageDetail_20' ) start [2024-12-27 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113034', 'tblTempUsageDetail_20' ) end [2024-12-27 08:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:40:21] Production.INFO: ==30723== Releasing lock... [2024-12-27 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:40:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-27 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:41:05 [end_date_ymd] => 2024-12-27 08:41:05 [RateCDR] => 1 ) [2024-12-27 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:41:05' and `end` < '2024-12-27 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:41:17] Production.INFO: count ==657 [2024-12-27 08:41:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:41:05 - End Time 2024-12-27 08:41:05 [2024-12-27 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113039', 'tblTempUsageDetail_20' ) start [2024-12-27 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113039', 'tblTempUsageDetail_20' ) end [2024-12-27 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113039', 'tblTempVendorCDR_20' ) start [2024-12-27 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113039', 'tblTempVendorCDR_20' ) end [2024-12-27 08:41:18] Production.INFO: ProcessCDR(1,14113039,1,1,2) [2024-12-27 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113039', 'tblTempUsageDetail_20' ) start [2024-12-27 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113039', 'tblTempUsageDetail_20' ) end [2024-12-27 08:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:41:21] Production.INFO: ==30813== Releasing lock... [2024-12-27 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:41:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-27 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:42:05 [end_date_ymd] => 2024-12-27 08:42:05 [RateCDR] => 1 ) [2024-12-27 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:42:05' and `end` < '2024-12-27 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:42:19] Production.INFO: count ==657 [2024-12-27 08:42:19] Production.ERROR: pbx CDR StartTime 2024-12-27 05:42:05 - End Time 2024-12-27 08:42:05 [2024-12-27 08:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113044', 'tblTempUsageDetail_20' ) start [2024-12-27 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113044', 'tblTempUsageDetail_20' ) end [2024-12-27 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113044', 'tblTempVendorCDR_20' ) start [2024-12-27 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113044', 'tblTempVendorCDR_20' ) end [2024-12-27 08:42:19] Production.INFO: ProcessCDR(1,14113044,1,1,2) [2024-12-27 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113044', 'tblTempUsageDetail_20' ) start [2024-12-27 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113044', 'tblTempUsageDetail_20' ) end [2024-12-27 08:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:42:22] Production.INFO: ==30894== Releasing lock... [2024-12-27 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:42:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-27 08:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:43:04 [end_date_ymd] => 2024-12-27 08:43:04 [RateCDR] => 1 ) [2024-12-27 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-27 05:43:04' and `end` < '2024-12-27 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-27 08:43:18] Production.INFO: count ==657 [2024-12-27 08:43:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:43:04 - End Time 2024-12-27 08:43:04 [2024-12-27 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113049', 'tblTempUsageDetail_20' ) start [2024-12-27 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113049', 'tblTempUsageDetail_20' ) end [2024-12-27 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113049', 'tblTempVendorCDR_20' ) start [2024-12-27 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113049', 'tblTempVendorCDR_20' ) end [2024-12-27 08:43:18] Production.INFO: ProcessCDR(1,14113049,1,1,2) [2024-12-27 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113049', 'tblTempUsageDetail_20' ) start [2024-12-27 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113049', 'tblTempUsageDetail_20' ) end [2024-12-27 08:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:43:21] Production.INFO: ==30977== Releasing lock... [2024-12-27 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:43:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-27 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:44:05 [end_date_ymd] => 2024-12-27 08:44:05 [RateCDR] => 1 ) [2024-12-27 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:44:05' and `end` < '2024-12-27 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:44:17] Production.INFO: count ==659 [2024-12-27 08:44:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:44:05 - End Time 2024-12-27 08:44:05 [2024-12-27 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113054', 'tblTempUsageDetail_20' ) start [2024-12-27 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113054', 'tblTempUsageDetail_20' ) end [2024-12-27 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113054', 'tblTempVendorCDR_20' ) start [2024-12-27 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113054', 'tblTempVendorCDR_20' ) end [2024-12-27 08:44:17] Production.INFO: ProcessCDR(1,14113054,1,1,2) [2024-12-27 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113054', 'tblTempUsageDetail_20' ) start [2024-12-27 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113054', 'tblTempUsageDetail_20' ) end [2024-12-27 08:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:44:22] Production.INFO: ==31055== Releasing lock... [2024-12-27 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:44:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-27 08:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:45:04 [end_date_ymd] => 2024-12-27 08:45:04 [RateCDR] => 1 ) [2024-12-27 08:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:45:04' and `end` < '2024-12-27 08:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:45:16] Production.INFO: count ==664 [2024-12-27 08:45:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:45:04 - End Time 2024-12-27 08:45:04 [2024-12-27 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113059', 'tblTempUsageDetail_20' ) start [2024-12-27 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113059', 'tblTempUsageDetail_20' ) end [2024-12-27 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113059', 'tblTempVendorCDR_20' ) start [2024-12-27 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113059', 'tblTempVendorCDR_20' ) end [2024-12-27 08:45:17] Production.INFO: ProcessCDR(1,14113059,1,1,2) [2024-12-27 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113059', 'tblTempUsageDetail_20' ) start [2024-12-27 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113059', 'tblTempUsageDetail_20' ) end [2024-12-27 08:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:45:20] Production.INFO: ==31135== Releasing lock... [2024-12-27 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:45:20] Production.INFO: 34 MB #Memory Used# [2024-12-27 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:46:05 [end_date_ymd] => 2024-12-27 08:46:05 [RateCDR] => 1 ) [2024-12-27 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:46:05' and `end` < '2024-12-27 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:46:17] Production.INFO: count ==664 [2024-12-27 08:46:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:46:05 - End Time 2024-12-27 08:46:05 [2024-12-27 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113064', 'tblTempUsageDetail_20' ) start [2024-12-27 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113064', 'tblTempUsageDetail_20' ) end [2024-12-27 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113064', 'tblTempVendorCDR_20' ) start [2024-12-27 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113064', 'tblTempVendorCDR_20' ) end [2024-12-27 08:46:18] Production.INFO: ProcessCDR(1,14113064,1,1,2) [2024-12-27 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113064', 'tblTempUsageDetail_20' ) start [2024-12-27 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113064', 'tblTempUsageDetail_20' ) end [2024-12-27 08:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:46:21] Production.INFO: ==31218== Releasing lock... [2024-12-27 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:46:21] Production.INFO: 34 MB #Memory Used# [2024-12-27 08:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:47:04 [end_date_ymd] => 2024-12-27 08:47:04 [RateCDR] => 1 ) [2024-12-27 08: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-27 05:47:04' and `end` < '2024-12-27 08: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-27 08:47:17] Production.INFO: count ==666 [2024-12-27 08:47:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:47:04 - End Time 2024-12-27 08:47:04 [2024-12-27 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113069', 'tblTempUsageDetail_20' ) start [2024-12-27 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113069', 'tblTempUsageDetail_20' ) end [2024-12-27 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113069', 'tblTempVendorCDR_20' ) start [2024-12-27 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113069', 'tblTempVendorCDR_20' ) end [2024-12-27 08:47:17] Production.INFO: ProcessCDR(1,14113069,1,1,2) [2024-12-27 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113069', 'tblTempUsageDetail_20' ) start [2024-12-27 08:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113069', 'tblTempUsageDetail_20' ) end [2024-12-27 08:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:47:20] Production.INFO: ==31294== Releasing lock... [2024-12-27 08:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:47:20] Production.INFO: 34 MB #Memory Used# [2024-12-27 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:48:05 [end_date_ymd] => 2024-12-27 08:48:05 [RateCDR] => 1 ) [2024-12-27 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:48:05' and `end` < '2024-12-27 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:48:17] Production.INFO: count ==667 [2024-12-27 08:48:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:48:05 - End Time 2024-12-27 08:48:05 [2024-12-27 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113074', 'tblTempUsageDetail_20' ) start [2024-12-27 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113074', 'tblTempUsageDetail_20' ) end [2024-12-27 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113074', 'tblTempVendorCDR_20' ) start [2024-12-27 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113074', 'tblTempVendorCDR_20' ) end [2024-12-27 08:48:18] Production.INFO: ProcessCDR(1,14113074,1,1,2) [2024-12-27 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113074', 'tblTempUsageDetail_20' ) start [2024-12-27 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113074', 'tblTempUsageDetail_20' ) end [2024-12-27 08:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:48:22] Production.INFO: ==31375== Releasing lock... [2024-12-27 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:48:22] Production.INFO: 34 MB #Memory Used# [2024-12-27 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:49:05 [end_date_ymd] => 2024-12-27 08:49:05 [RateCDR] => 1 ) [2024-12-27 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:49:05' and `end` < '2024-12-27 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:49:18] Production.INFO: count ==670 [2024-12-27 08:49:19] Production.ERROR: pbx CDR StartTime 2024-12-27 05:49:05 - End Time 2024-12-27 08:49:05 [2024-12-27 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113079', 'tblTempUsageDetail_20' ) start [2024-12-27 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113079', 'tblTempUsageDetail_20' ) end [2024-12-27 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113079', 'tblTempVendorCDR_20' ) start [2024-12-27 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113079', 'tblTempVendorCDR_20' ) end [2024-12-27 08:49:19] Production.INFO: ProcessCDR(1,14113079,1,1,2) [2024-12-27 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113079', 'tblTempUsageDetail_20' ) start [2024-12-27 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113079', 'tblTempUsageDetail_20' ) end [2024-12-27 08:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:49:23] Production.INFO: ==31451== Releasing lock... [2024-12-27 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:49:23] Production.INFO: 34 MB #Memory Used# [2024-12-27 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:50:05 [end_date_ymd] => 2024-12-27 08:50:05 [RateCDR] => 1 ) [2024-12-27 08: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-27 05:50:05' and `end` < '2024-12-27 08: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-27 08:50:17] Production.INFO: count ==698 [2024-12-27 08:50:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:50:05 - End Time 2024-12-27 08:50:05 [2024-12-27 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113084', 'tblTempUsageDetail_20' ) start [2024-12-27 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113084', 'tblTempUsageDetail_20' ) end [2024-12-27 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113084', 'tblTempVendorCDR_20' ) start [2024-12-27 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113084', 'tblTempVendorCDR_20' ) end [2024-12-27 08:50:18] Production.INFO: ProcessCDR(1,14113084,1,1,2) [2024-12-27 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113084', 'tblTempUsageDetail_20' ) start [2024-12-27 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113084', 'tblTempUsageDetail_20' ) end [2024-12-27 08:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:50:22] Production.INFO: ==31535== Releasing lock... [2024-12-27 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:50:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-27 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:51:05 [end_date_ymd] => 2024-12-27 08:51:05 [RateCDR] => 1 ) [2024-12-27 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:51:05' and `end` < '2024-12-27 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:51:17] Production.INFO: count ==724 [2024-12-27 08:51:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:51:05 - End Time 2024-12-27 08:51:05 [2024-12-27 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113090', 'tblTempUsageDetail_20' ) start [2024-12-27 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113090', 'tblTempUsageDetail_20' ) end [2024-12-27 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113090', 'tblTempVendorCDR_20' ) start [2024-12-27 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113090', 'tblTempVendorCDR_20' ) end [2024-12-27 08:51:17] Production.INFO: ProcessCDR(1,14113090,1,1,2) [2024-12-27 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113090', 'tblTempUsageDetail_20' ) start [2024-12-27 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113090', 'tblTempUsageDetail_20' ) end [2024-12-27 08:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:51:21] Production.INFO: ==31656== Releasing lock... [2024-12-27 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:51:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-27 08:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:52:04 [end_date_ymd] => 2024-12-27 08:52:04 [RateCDR] => 1 ) [2024-12-27 08: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-27 05:52:04' and `end` < '2024-12-27 08: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-27 08:52:17] Production.INFO: count ==732 [2024-12-27 08:52:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:52:04 - End Time 2024-12-27 08:52:04 [2024-12-27 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113095', 'tblTempUsageDetail_20' ) start [2024-12-27 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113095', 'tblTempUsageDetail_20' ) end [2024-12-27 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113095', 'tblTempVendorCDR_20' ) start [2024-12-27 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113095', 'tblTempVendorCDR_20' ) end [2024-12-27 08:52:17] Production.INFO: ProcessCDR(1,14113095,1,1,2) [2024-12-27 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113095', 'tblTempUsageDetail_20' ) start [2024-12-27 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113095', 'tblTempUsageDetail_20' ) end [2024-12-27 08:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:52:20] Production.INFO: ==31733== Releasing lock... [2024-12-27 08:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:52:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-27 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:53:05 [end_date_ymd] => 2024-12-27 08:53:05 [RateCDR] => 1 ) [2024-12-27 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:53:05' and `end` < '2024-12-27 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:53:19] Production.INFO: count ==759 [2024-12-27 08:53:19] Production.ERROR: pbx CDR StartTime 2024-12-27 05:53:05 - End Time 2024-12-27 08:53:05 [2024-12-27 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113100', 'tblTempUsageDetail_20' ) start [2024-12-27 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113100', 'tblTempUsageDetail_20' ) end [2024-12-27 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113100', 'tblTempVendorCDR_20' ) start [2024-12-27 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113100', 'tblTempVendorCDR_20' ) end [2024-12-27 08:53:19] Production.INFO: ProcessCDR(1,14113100,1,1,2) [2024-12-27 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113100', 'tblTempUsageDetail_20' ) start [2024-12-27 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113100', 'tblTempUsageDetail_20' ) end [2024-12-27 08:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:53:22] Production.INFO: ==31814== Releasing lock... [2024-12-27 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:53:22] Production.INFO: 35 MB #Memory Used# [2024-12-27 08:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:54:04 [end_date_ymd] => 2024-12-27 08:54:04 [RateCDR] => 1 ) [2024-12-27 08:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:54:04' and `end` < '2024-12-27 08:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:54:17] Production.INFO: count ==766 [2024-12-27 08:54:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:54:04 - End Time 2024-12-27 08:54:04 [2024-12-27 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113105', 'tblTempUsageDetail_20' ) start [2024-12-27 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113105', 'tblTempUsageDetail_20' ) end [2024-12-27 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113105', 'tblTempVendorCDR_20' ) start [2024-12-27 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113105', 'tblTempVendorCDR_20' ) end [2024-12-27 08:54:17] Production.INFO: ProcessCDR(1,14113105,1,1,2) [2024-12-27 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113105', 'tblTempUsageDetail_20' ) start [2024-12-27 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113105', 'tblTempUsageDetail_20' ) end [2024-12-27 08:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:54:22] Production.INFO: ==31887== Releasing lock... [2024-12-27 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:54:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-27 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:55:05 [end_date_ymd] => 2024-12-27 08:55:05 [RateCDR] => 1 ) [2024-12-27 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:55:05' and `end` < '2024-12-27 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:55:18] Production.INFO: count ==774 [2024-12-27 08:55:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:55:05 - End Time 2024-12-27 08:55:05 [2024-12-27 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113110', 'tblTempUsageDetail_20' ) start [2024-12-27 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113110', 'tblTempUsageDetail_20' ) end [2024-12-27 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113110', 'tblTempVendorCDR_20' ) start [2024-12-27 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113110', 'tblTempVendorCDR_20' ) end [2024-12-27 08:55:18] Production.INFO: ProcessCDR(1,14113110,1,1,2) [2024-12-27 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113110', 'tblTempUsageDetail_20' ) start [2024-12-27 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113110', 'tblTempUsageDetail_20' ) end [2024-12-27 08:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:55:23] Production.INFO: ==31969== Releasing lock... [2024-12-27 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:55:23] Production.INFO: 35 MB #Memory Used# [2024-12-27 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:56:05 [end_date_ymd] => 2024-12-27 08:56:05 [RateCDR] => 1 ) [2024-12-27 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:56:05' and `end` < '2024-12-27 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:56:18] Production.INFO: count ==790 [2024-12-27 08:56:18] Production.ERROR: pbx CDR StartTime 2024-12-27 05:56:05 - End Time 2024-12-27 08:56:05 [2024-12-27 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113115', 'tblTempUsageDetail_20' ) start [2024-12-27 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113115', 'tblTempUsageDetail_20' ) end [2024-12-27 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113115', 'tblTempVendorCDR_20' ) start [2024-12-27 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113115', 'tblTempVendorCDR_20' ) end [2024-12-27 08:56:18] Production.INFO: ProcessCDR(1,14113115,1,1,2) [2024-12-27 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113115', 'tblTempUsageDetail_20' ) start [2024-12-27 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113115', 'tblTempUsageDetail_20' ) end [2024-12-27 08:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:56:23] Production.INFO: ==32054== Releasing lock... [2024-12-27 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:56:23] Production.INFO: 35 MB #Memory Used# [2024-12-27 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:57:05 [end_date_ymd] => 2024-12-27 08:57:05 [RateCDR] => 1 ) [2024-12-27 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:57:05' and `end` < '2024-12-27 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:57:17] Production.INFO: count ==791 [2024-12-27 08:57:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:57:05 - End Time 2024-12-27 08:57:05 [2024-12-27 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113120', 'tblTempUsageDetail_20' ) start [2024-12-27 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113120', 'tblTempUsageDetail_20' ) end [2024-12-27 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113120', 'tblTempVendorCDR_20' ) start [2024-12-27 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113120', 'tblTempVendorCDR_20' ) end [2024-12-27 08:57:17] Production.INFO: ProcessCDR(1,14113120,1,1,2) [2024-12-27 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113120', 'tblTempUsageDetail_20' ) start [2024-12-27 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113120', 'tblTempUsageDetail_20' ) end [2024-12-27 08:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:57:21] Production.INFO: ==32141== Releasing lock... [2024-12-27 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:57:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-27 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:58:05 [end_date_ymd] => 2024-12-27 08:58:05 [RateCDR] => 1 ) [2024-12-27 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 05:58:05' and `end` < '2024-12-27 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 08:58:18] Production.INFO: count ==810 [2024-12-27 08:58:19] Production.ERROR: pbx CDR StartTime 2024-12-27 05:58:05 - End Time 2024-12-27 08:58:05 [2024-12-27 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113125', 'tblTempUsageDetail_20' ) start [2024-12-27 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113125', 'tblTempUsageDetail_20' ) end [2024-12-27 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113125', 'tblTempVendorCDR_20' ) start [2024-12-27 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113125', 'tblTempVendorCDR_20' ) end [2024-12-27 08:58:19] Production.INFO: ProcessCDR(1,14113125,1,1,2) [2024-12-27 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113125', 'tblTempUsageDetail_20' ) start [2024-12-27 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113125', 'tblTempUsageDetail_20' ) end [2024-12-27 08:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:58:23] Production.INFO: ==32260== Releasing lock... [2024-12-27 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:58:23] Production.INFO: 34.75 MB #Memory Used# [2024-12-27 08:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 05:59:04 [end_date_ymd] => 2024-12-27 08:59:04 [RateCDR] => 1 ) [2024-12-27 08: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-27 05:59:04' and `end` < '2024-12-27 08: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-27 08:59:17] Production.INFO: count ==816 [2024-12-27 08:59:17] Production.ERROR: pbx CDR StartTime 2024-12-27 05:59:04 - End Time 2024-12-27 08:59:04 [2024-12-27 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113130', 'tblTempUsageDetail_20' ) start [2024-12-27 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113130', 'tblTempUsageDetail_20' ) end [2024-12-27 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113130', 'tblTempVendorCDR_20' ) start [2024-12-27 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113130', 'tblTempVendorCDR_20' ) end [2024-12-27 08:59:17] Production.INFO: ProcessCDR(1,14113130,1,1,2) [2024-12-27 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113130', 'tblTempUsageDetail_20' ) start [2024-12-27 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113130', 'tblTempUsageDetail_20' ) end [2024-12-27 08:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 08:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 08:59:22] Production.INFO: ==32387== Releasing lock... [2024-12-27 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 08:59:22] Production.INFO: 35 MB #Memory Used# [2024-12-27 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:00:06 [end_date_ymd] => 2024-12-27 09:00:06 [RateCDR] => 1 ) [2024-12-27 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:00:06' and `end` < '2024-12-27 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:00:18] Production.INFO: count ==831 [2024-12-27 09:00:19] Production.ERROR: pbx CDR StartTime 2024-12-27 06:00:06 - End Time 2024-12-27 09:00:06 [2024-12-27 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113136', 'tblTempUsageDetail_20' ) start [2024-12-27 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113136', 'tblTempUsageDetail_20' ) end [2024-12-27 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113136', 'tblTempVendorCDR_20' ) start [2024-12-27 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113136', 'tblTempVendorCDR_20' ) end [2024-12-27 09:00:19] Production.INFO: ProcessCDR(1,14113136,1,1,2) [2024-12-27 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113136', 'tblTempUsageDetail_20' ) start [2024-12-27 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113136', 'tblTempUsageDetail_20' ) end [2024-12-27 09:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:00:24] Production.INFO: ==32516== Releasing lock... [2024-12-27 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:00:24] Production.INFO: 35 MB #Memory Used# [2024-12-27 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:01:05 [end_date_ymd] => 2024-12-27 09:01:05 [RateCDR] => 1 ) [2024-12-27 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:01:05' and `end` < '2024-12-27 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:01:17] Production.INFO: count ==853 [2024-12-27 09:01:17] Production.ERROR: pbx CDR StartTime 2024-12-27 06:01:05 - End Time 2024-12-27 09:01:05 [2024-12-27 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113141', 'tblTempUsageDetail_20' ) start [2024-12-27 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113141', 'tblTempUsageDetail_20' ) end [2024-12-27 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113141', 'tblTempVendorCDR_20' ) start [2024-12-27 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113141', 'tblTempVendorCDR_20' ) end [2024-12-27 09:01:18] Production.INFO: ProcessCDR(1,14113141,1,1,2) [2024-12-27 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113141', 'tblTempUsageDetail_20' ) start [2024-12-27 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113141', 'tblTempUsageDetail_20' ) end [2024-12-27 09:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:01:22] Production.INFO: ==32656== Releasing lock... [2024-12-27 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:01:22] Production.INFO: 35 MB #Memory Used# [2024-12-27 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:02:05 [end_date_ymd] => 2024-12-27 09:02:05 [RateCDR] => 1 ) [2024-12-27 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:02:05' and `end` < '2024-12-27 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:02:18] Production.INFO: count ==877 [2024-12-27 09:02:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:02:05 - End Time 2024-12-27 09:02:05 [2024-12-27 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113146', 'tblTempUsageDetail_20' ) start [2024-12-27 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113146', 'tblTempUsageDetail_20' ) end [2024-12-27 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113146', 'tblTempVendorCDR_20' ) start [2024-12-27 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113146', 'tblTempVendorCDR_20' ) end [2024-12-27 09:02:18] Production.INFO: ProcessCDR(1,14113146,1,1,2) [2024-12-27 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113146', 'tblTempUsageDetail_20' ) start [2024-12-27 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113146', 'tblTempUsageDetail_20' ) end [2024-12-27 09:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:02:23] Production.INFO: ==330== Releasing lock... [2024-12-27 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:02:23] Production.INFO: 35.5 MB #Memory Used# [2024-12-27 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:03:05 [end_date_ymd] => 2024-12-27 09:03:05 [RateCDR] => 1 ) [2024-12-27 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:03:05' and `end` < '2024-12-27 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:03:18] Production.INFO: count ==885 [2024-12-27 09:03:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:03:05 - End Time 2024-12-27 09:03:05 [2024-12-27 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113151', 'tblTempUsageDetail_20' ) start [2024-12-27 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113151', 'tblTempUsageDetail_20' ) end [2024-12-27 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113151', 'tblTempVendorCDR_20' ) start [2024-12-27 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113151', 'tblTempVendorCDR_20' ) end [2024-12-27 09:03:18] Production.INFO: ProcessCDR(1,14113151,1,1,2) [2024-12-27 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113151', 'tblTempUsageDetail_20' ) start [2024-12-27 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113151', 'tblTempUsageDetail_20' ) end [2024-12-27 09:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:03:23] Production.INFO: ==473== Releasing lock... [2024-12-27 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:03:23] Production.INFO: 35.5 MB #Memory Used# [2024-12-27 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:04:05 [end_date_ymd] => 2024-12-27 09:04:05 [RateCDR] => 1 ) [2024-12-27 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:04:05' and `end` < '2024-12-27 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:04:17] Production.INFO: count ==908 [2024-12-27 09:04:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:04:05 - End Time 2024-12-27 09:04:05 [2024-12-27 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113156', 'tblTempUsageDetail_20' ) start [2024-12-27 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113156', 'tblTempUsageDetail_20' ) end [2024-12-27 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113156', 'tblTempVendorCDR_20' ) start [2024-12-27 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113156', 'tblTempVendorCDR_20' ) end [2024-12-27 09:04:18] Production.INFO: ProcessCDR(1,14113156,1,1,2) [2024-12-27 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113156', 'tblTempUsageDetail_20' ) start [2024-12-27 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113156', 'tblTempUsageDetail_20' ) end [2024-12-27 09:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:04:22] Production.INFO: ==611== Releasing lock... [2024-12-27 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:04:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-27 09:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:05:04 [end_date_ymd] => 2024-12-27 09:05:04 [RateCDR] => 1 ) [2024-12-27 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-27 06:05:04' and `end` < '2024-12-27 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-27 09:05:16] Production.INFO: count ==928 [2024-12-27 09:05:17] Production.ERROR: pbx CDR StartTime 2024-12-27 06:05:04 - End Time 2024-12-27 09:05:04 [2024-12-27 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113161', 'tblTempUsageDetail_20' ) start [2024-12-27 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113161', 'tblTempUsageDetail_20' ) end [2024-12-27 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113161', 'tblTempVendorCDR_20' ) start [2024-12-27 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113161', 'tblTempVendorCDR_20' ) end [2024-12-27 09:05:17] Production.INFO: ProcessCDR(1,14113161,1,1,2) [2024-12-27 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113161', 'tblTempUsageDetail_20' ) start [2024-12-27 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113161', 'tblTempUsageDetail_20' ) end [2024-12-27 09:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:05:20] Production.INFO: ==768== Releasing lock... [2024-12-27 09:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:05:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-27 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:06:05 [end_date_ymd] => 2024-12-27 09:06:05 [RateCDR] => 1 ) [2024-12-27 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:06:05' and `end` < '2024-12-27 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:06:18] Production.INFO: count ==934 [2024-12-27 09:06:19] Production.ERROR: pbx CDR StartTime 2024-12-27 06:06:05 - End Time 2024-12-27 09:06:05 [2024-12-27 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113166', 'tblTempUsageDetail_20' ) start [2024-12-27 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113166', 'tblTempUsageDetail_20' ) end [2024-12-27 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113166', 'tblTempVendorCDR_20' ) start [2024-12-27 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113166', 'tblTempVendorCDR_20' ) end [2024-12-27 09:06:19] Production.INFO: ProcessCDR(1,14113166,1,1,2) [2024-12-27 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113166', 'tblTempUsageDetail_20' ) start [2024-12-27 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113166', 'tblTempUsageDetail_20' ) end [2024-12-27 09:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:06:23] Production.INFO: ==899== Releasing lock... [2024-12-27 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:06:23] Production.INFO: 36 MB #Memory Used# [2024-12-27 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:07:05 [end_date_ymd] => 2024-12-27 09:07:05 [RateCDR] => 1 ) [2024-12-27 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-27 06:07:05' and `end` < '2024-12-27 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-27 09:07:18] Production.INFO: count ==948 [2024-12-27 09:07:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:07:05 - End Time 2024-12-27 09:07:05 [2024-12-27 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113171', 'tblTempUsageDetail_20' ) start [2024-12-27 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113171', 'tblTempUsageDetail_20' ) end [2024-12-27 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113171', 'tblTempVendorCDR_20' ) start [2024-12-27 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113171', 'tblTempVendorCDR_20' ) end [2024-12-27 09:07:18] Production.INFO: ProcessCDR(1,14113171,1,1,2) [2024-12-27 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113171', 'tblTempUsageDetail_20' ) start [2024-12-27 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113171', 'tblTempUsageDetail_20' ) end [2024-12-27 09:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:07:23] Production.INFO: ==1069== Releasing lock... [2024-12-27 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:07:23] Production.INFO: 36.5 MB #Memory Used# [2024-12-27 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:08:05 [end_date_ymd] => 2024-12-27 09:08:05 [RateCDR] => 1 ) [2024-12-27 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:08:05' and `end` < '2024-12-27 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:08:17] Production.INFO: count ==958 [2024-12-27 09:08:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:08:05 - End Time 2024-12-27 09:08:05 [2024-12-27 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113176', 'tblTempUsageDetail_20' ) start [2024-12-27 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113176', 'tblTempUsageDetail_20' ) end [2024-12-27 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113176', 'tblTempVendorCDR_20' ) start [2024-12-27 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113176', 'tblTempVendorCDR_20' ) end [2024-12-27 09:08:18] Production.INFO: ProcessCDR(1,14113176,1,1,2) [2024-12-27 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113176', 'tblTempUsageDetail_20' ) start [2024-12-27 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113176', 'tblTempUsageDetail_20' ) end [2024-12-27 09:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:08:23] Production.INFO: ==1157== Releasing lock... [2024-12-27 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:08:23] Production.INFO: 36.5 MB #Memory Used# [2024-12-27 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:09:05 [end_date_ymd] => 2024-12-27 09:09:05 [RateCDR] => 1 ) [2024-12-27 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:09:05' and `end` < '2024-12-27 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:09:17] Production.INFO: count ==968 [2024-12-27 09:09:17] Production.ERROR: pbx CDR StartTime 2024-12-27 06:09:05 - End Time 2024-12-27 09:09:05 [2024-12-27 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113181', 'tblTempUsageDetail_20' ) start [2024-12-27 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113181', 'tblTempUsageDetail_20' ) end [2024-12-27 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113181', 'tblTempVendorCDR_20' ) start [2024-12-27 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113181', 'tblTempVendorCDR_20' ) end [2024-12-27 09:09:18] Production.INFO: ProcessCDR(1,14113181,1,1,2) [2024-12-27 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113181', 'tblTempUsageDetail_20' ) start [2024-12-27 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113181', 'tblTempUsageDetail_20' ) end [2024-12-27 09:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:09:22] Production.INFO: ==1233== Releasing lock... [2024-12-27 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:09:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-27 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:10:05 [end_date_ymd] => 2024-12-27 09:10:05 [RateCDR] => 1 ) [2024-12-27 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-27 06:10:05' and `end` < '2024-12-27 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-27 09:10:18] Production.INFO: count ==1006 [2024-12-27 09:10:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:10:05 - End Time 2024-12-27 09:10:05 [2024-12-27 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113187', 'tblTempUsageDetail_20' ) start [2024-12-27 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113187', 'tblTempUsageDetail_20' ) end [2024-12-27 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113187', 'tblTempVendorCDR_20' ) start [2024-12-27 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113187', 'tblTempVendorCDR_20' ) end [2024-12-27 09:10:18] Production.INFO: ProcessCDR(1,14113187,1,1,2) [2024-12-27 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113187', 'tblTempUsageDetail_20' ) start [2024-12-27 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113187', 'tblTempUsageDetail_20' ) end [2024-12-27 09:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:10:23] Production.INFO: ==1325== Releasing lock... [2024-12-27 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:10:23] Production.INFO: 37 MB #Memory Used# [2024-12-27 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:11:05 [end_date_ymd] => 2024-12-27 09:11:05 [RateCDR] => 1 ) [2024-12-27 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:11:05' and `end` < '2024-12-27 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:11:18] Production.INFO: count ==1118 [2024-12-27 09:11:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:11:05 - End Time 2024-12-27 09:11:05 [2024-12-27 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113192', 'tblTempUsageDetail_20' ) start [2024-12-27 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113192', 'tblTempUsageDetail_20' ) end [2024-12-27 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113192', 'tblTempVendorCDR_20' ) start [2024-12-27 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113192', 'tblTempVendorCDR_20' ) end [2024-12-27 09:11:18] Production.INFO: ProcessCDR(1,14113192,1,1,2) [2024-12-27 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113192', 'tblTempUsageDetail_20' ) start [2024-12-27 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113192', 'tblTempUsageDetail_20' ) end [2024-12-27 09:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:11:23] Production.INFO: ==1411== Releasing lock... [2024-12-27 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:11:23] Production.INFO: 37 MB #Memory Used# [2024-12-27 09:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:12:04 [end_date_ymd] => 2024-12-27 09:12:04 [RateCDR] => 1 ) [2024-12-27 09:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:12:04' and `end` < '2024-12-27 09:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:12:17] Production.INFO: count ==1131 [2024-12-27 09:12:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:12:04 - End Time 2024-12-27 09:12:04 [2024-12-27 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113197', 'tblTempUsageDetail_20' ) start [2024-12-27 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113197', 'tblTempUsageDetail_20' ) end [2024-12-27 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113197', 'tblTempVendorCDR_20' ) start [2024-12-27 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113197', 'tblTempVendorCDR_20' ) end [2024-12-27 09:12:18] Production.INFO: ProcessCDR(1,14113197,1,1,2) [2024-12-27 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113197', 'tblTempUsageDetail_20' ) start [2024-12-27 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113197', 'tblTempUsageDetail_20' ) end [2024-12-27 09:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:12:21] Production.INFO: ==1492== Releasing lock... [2024-12-27 09:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:12:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-27 09:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:13:04 [end_date_ymd] => 2024-12-27 09:13:04 [RateCDR] => 1 ) [2024-12-27 09: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-27 06:13:04' and `end` < '2024-12-27 09: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-27 09:13:18] Production.INFO: count ==1151 [2024-12-27 09:13:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:13:04 - End Time 2024-12-27 09:13:04 [2024-12-27 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113202', 'tblTempUsageDetail_20' ) start [2024-12-27 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113202', 'tblTempUsageDetail_20' ) end [2024-12-27 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113202', 'tblTempVendorCDR_20' ) start [2024-12-27 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113202', 'tblTempVendorCDR_20' ) end [2024-12-27 09:13:18] Production.INFO: ProcessCDR(1,14113202,1,1,2) [2024-12-27 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113202', 'tblTempUsageDetail_20' ) start [2024-12-27 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113202', 'tblTempUsageDetail_20' ) end [2024-12-27 09:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:13:23] Production.INFO: ==1605== Releasing lock... [2024-12-27 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:13:23] Production.INFO: 37.75 MB #Memory Used# [2024-12-27 09:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:14:04 [end_date_ymd] => 2024-12-27 09:14:04 [RateCDR] => 1 ) [2024-12-27 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-27 06:14:04' and `end` < '2024-12-27 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-27 09:14:17] Production.INFO: count ==1158 [2024-12-27 09:14:17] Production.ERROR: pbx CDR StartTime 2024-12-27 06:14:04 - End Time 2024-12-27 09:14:04 [2024-12-27 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113207', 'tblTempUsageDetail_20' ) start [2024-12-27 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113207', 'tblTempUsageDetail_20' ) end [2024-12-27 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113207', 'tblTempVendorCDR_20' ) start [2024-12-27 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113207', 'tblTempVendorCDR_20' ) end [2024-12-27 09:14:17] Production.INFO: ProcessCDR(1,14113207,1,1,2) [2024-12-27 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113207', 'tblTempUsageDetail_20' ) start [2024-12-27 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113207', 'tblTempUsageDetail_20' ) end [2024-12-27 09:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:14:21] Production.INFO: ==1678== Releasing lock... [2024-12-27 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:14:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-27 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:15:05 [end_date_ymd] => 2024-12-27 09:15:05 [RateCDR] => 1 ) [2024-12-27 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:15:05' and `end` < '2024-12-27 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:15:17] Production.INFO: count ==1165 [2024-12-27 09:15:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:15:05 - End Time 2024-12-27 09:15:05 [2024-12-27 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113212', 'tblTempUsageDetail_20' ) start [2024-12-27 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113212', 'tblTempUsageDetail_20' ) end [2024-12-27 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113212', 'tblTempVendorCDR_20' ) start [2024-12-27 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113212', 'tblTempVendorCDR_20' ) end [2024-12-27 09:15:18] Production.INFO: ProcessCDR(1,14113212,1,1,2) [2024-12-27 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113212', 'tblTempUsageDetail_20' ) start [2024-12-27 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113212', 'tblTempUsageDetail_20' ) end [2024-12-27 09:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:15:21] Production.INFO: ==1757== Releasing lock... [2024-12-27 09:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:15:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-27 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:16:05 [end_date_ymd] => 2024-12-27 09:16:05 [RateCDR] => 1 ) [2024-12-27 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-27 06:16:05' and `end` < '2024-12-27 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-27 09:16:19] Production.INFO: count ==1172 [2024-12-27 09:16:19] Production.ERROR: pbx CDR StartTime 2024-12-27 06:16:05 - End Time 2024-12-27 09:16:05 [2024-12-27 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113217', 'tblTempUsageDetail_20' ) start [2024-12-27 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113217', 'tblTempUsageDetail_20' ) end [2024-12-27 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113217', 'tblTempVendorCDR_20' ) start [2024-12-27 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113217', 'tblTempVendorCDR_20' ) end [2024-12-27 09:16:19] Production.INFO: ProcessCDR(1,14113217,1,1,2) [2024-12-27 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113217', 'tblTempUsageDetail_20' ) start [2024-12-27 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113217', 'tblTempUsageDetail_20' ) end [2024-12-27 09:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:16:23] Production.INFO: ==1835== Releasing lock... [2024-12-27 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:16:23] Production.INFO: 37.75 MB #Memory Used# [2024-12-27 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:17:05 [end_date_ymd] => 2024-12-27 09:17:05 [RateCDR] => 1 ) [2024-12-27 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:17:05' and `end` < '2024-12-27 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:17:17] Production.INFO: count ==1192 [2024-12-27 09:17:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:17:05 - End Time 2024-12-27 09:17:05 [2024-12-27 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113222', 'tblTempUsageDetail_20' ) start [2024-12-27 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113222', 'tblTempUsageDetail_20' ) end [2024-12-27 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113222', 'tblTempVendorCDR_20' ) start [2024-12-27 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113222', 'tblTempVendorCDR_20' ) end [2024-12-27 09:17:18] Production.INFO: ProcessCDR(1,14113222,1,1,2) [2024-12-27 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113222', 'tblTempUsageDetail_20' ) start [2024-12-27 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113222', 'tblTempUsageDetail_20' ) end [2024-12-27 09:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:17:23] Production.INFO: ==1921== Releasing lock... [2024-12-27 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:17:23] Production.INFO: 38 MB #Memory Used# [2024-12-27 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:18:06 [end_date_ymd] => 2024-12-27 09:18:06 [RateCDR] => 1 ) [2024-12-27 09:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:18:06' and `end` < '2024-12-27 09:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:18:18] Production.INFO: count ==1204 [2024-12-27 09:18:19] Production.ERROR: pbx CDR StartTime 2024-12-27 06:18:06 - End Time 2024-12-27 09:18:06 [2024-12-27 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113227', 'tblTempUsageDetail_20' ) start [2024-12-27 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113227', 'tblTempUsageDetail_20' ) end [2024-12-27 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113227', 'tblTempVendorCDR_20' ) start [2024-12-27 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113227', 'tblTempVendorCDR_20' ) end [2024-12-27 09:18:19] Production.INFO: ProcessCDR(1,14113227,1,1,2) [2024-12-27 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113227', 'tblTempUsageDetail_20' ) start [2024-12-27 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113227', 'tblTempUsageDetail_20' ) end [2024-12-27 09:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:18:22] Production.INFO: ==2002== Releasing lock... [2024-12-27 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:18:22] Production.INFO: 38 MB #Memory Used# [2024-12-27 09:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:19:04 [end_date_ymd] => 2024-12-27 09:19:04 [RateCDR] => 1 ) [2024-12-27 09: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-27 06:19:04' and `end` < '2024-12-27 09: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-27 09:19:17] Production.INFO: count ==1240 [2024-12-27 09:19:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:19:04 - End Time 2024-12-27 09:19:04 [2024-12-27 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113232', 'tblTempUsageDetail_20' ) start [2024-12-27 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113232', 'tblTempUsageDetail_20' ) end [2024-12-27 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113232', 'tblTempVendorCDR_20' ) start [2024-12-27 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113232', 'tblTempVendorCDR_20' ) end [2024-12-27 09:19:18] Production.INFO: ProcessCDR(1,14113232,1,1,2) [2024-12-27 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113232', 'tblTempUsageDetail_20' ) start [2024-12-27 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113232', 'tblTempUsageDetail_20' ) end [2024-12-27 09:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:19:22] Production.INFO: ==2076== Releasing lock... [2024-12-27 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:19:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-27 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:20:06 [end_date_ymd] => 2024-12-27 09:20:06 [RateCDR] => 1 ) [2024-12-27 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:20:06' and `end` < '2024-12-27 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:20:19] Production.INFO: count ==1269 [2024-12-27 09:20:19] Production.ERROR: pbx CDR StartTime 2024-12-27 06:20:06 - End Time 2024-12-27 09:20:06 [2024-12-27 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113238', 'tblTempUsageDetail_20' ) start [2024-12-27 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113238', 'tblTempUsageDetail_20' ) end [2024-12-27 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113238', 'tblTempVendorCDR_20' ) start [2024-12-27 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113238', 'tblTempVendorCDR_20' ) end [2024-12-27 09:20:19] Production.INFO: ProcessCDR(1,14113238,1,1,2) [2024-12-27 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113238', 'tblTempUsageDetail_20' ) start [2024-12-27 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113238', 'tblTempUsageDetail_20' ) end [2024-12-27 09:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:20:24] Production.INFO: ==2156== Releasing lock... [2024-12-27 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:20:24] Production.INFO: 38 MB #Memory Used# [2024-12-27 09:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:21:04 [end_date_ymd] => 2024-12-27 09:21:04 [RateCDR] => 1 ) [2024-12-27 09: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-27 06:21:04' and `end` < '2024-12-27 09: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-27 09:21:17] Production.INFO: count ==1330 [2024-12-27 09:21:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:21:04 - End Time 2024-12-27 09:21:04 [2024-12-27 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113243', 'tblTempUsageDetail_20' ) start [2024-12-27 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113243', 'tblTempUsageDetail_20' ) end [2024-12-27 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113243', 'tblTempVendorCDR_20' ) start [2024-12-27 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113243', 'tblTempVendorCDR_20' ) end [2024-12-27 09:21:18] Production.INFO: ProcessCDR(1,14113243,1,1,2) [2024-12-27 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113243', 'tblTempUsageDetail_20' ) start [2024-12-27 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113243', 'tblTempUsageDetail_20' ) end [2024-12-27 09:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:21:22] Production.INFO: ==2236== Releasing lock... [2024-12-27 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:21:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-27 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:22:05 [end_date_ymd] => 2024-12-27 09:22:05 [RateCDR] => 1 ) [2024-12-27 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:22:05' and `end` < '2024-12-27 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:22:17] Production.INFO: count ==1357 [2024-12-27 09:22:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:22:05 - End Time 2024-12-27 09:22:05 [2024-12-27 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113248', 'tblTempUsageDetail_20' ) start [2024-12-27 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113248', 'tblTempUsageDetail_20' ) end [2024-12-27 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113248', 'tblTempVendorCDR_20' ) start [2024-12-27 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113248', 'tblTempVendorCDR_20' ) end [2024-12-27 09:22:18] Production.INFO: ProcessCDR(1,14113248,1,1,2) [2024-12-27 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113248', 'tblTempUsageDetail_20' ) start [2024-12-27 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113248', 'tblTempUsageDetail_20' ) end [2024-12-27 09:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:22:22] Production.INFO: ==2318== Releasing lock... [2024-12-27 09:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:22:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-27 09:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:23:04 [end_date_ymd] => 2024-12-27 09:23:04 [RateCDR] => 1 ) [2024-12-27 09:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:23:04' and `end` < '2024-12-27 09:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:23:17] Production.INFO: count ==1382 [2024-12-27 09:23:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:23:04 - End Time 2024-12-27 09:23:04 [2024-12-27 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113253', 'tblTempUsageDetail_20' ) start [2024-12-27 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113253', 'tblTempUsageDetail_20' ) end [2024-12-27 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113253', 'tblTempVendorCDR_20' ) start [2024-12-27 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113253', 'tblTempVendorCDR_20' ) end [2024-12-27 09:23:18] Production.INFO: ProcessCDR(1,14113253,1,1,2) [2024-12-27 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113253', 'tblTempUsageDetail_20' ) start [2024-12-27 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113253', 'tblTempUsageDetail_20' ) end [2024-12-27 09:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:23:23] Production.INFO: ==2434== Releasing lock... [2024-12-27 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:23:23] Production.INFO: 38.75 MB #Memory Used# [2024-12-27 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:24:05 [end_date_ymd] => 2024-12-27 09:24:05 [RateCDR] => 1 ) [2024-12-27 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:24:05' and `end` < '2024-12-27 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:24:17] Production.INFO: count ==1396 [2024-12-27 09:24:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:24:05 - End Time 2024-12-27 09:24:05 [2024-12-27 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113258', 'tblTempUsageDetail_20' ) start [2024-12-27 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113258', 'tblTempUsageDetail_20' ) end [2024-12-27 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113258', 'tblTempVendorCDR_20' ) start [2024-12-27 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113258', 'tblTempVendorCDR_20' ) end [2024-12-27 09:24:18] Production.INFO: ProcessCDR(1,14113258,1,1,2) [2024-12-27 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113258', 'tblTempUsageDetail_20' ) start [2024-12-27 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113258', 'tblTempUsageDetail_20' ) end [2024-12-27 09:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:24:23] Production.INFO: ==2511== Releasing lock... [2024-12-27 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:24:23] Production.INFO: 38.75 MB #Memory Used# [2024-12-27 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:25:05 [end_date_ymd] => 2024-12-27 09:25:05 [RateCDR] => 1 ) [2024-12-27 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:25:05' and `end` < '2024-12-27 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:25:18] Production.INFO: count ==1404 [2024-12-27 09:25:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:25:05 - End Time 2024-12-27 09:25:05 [2024-12-27 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113263', 'tblTempUsageDetail_20' ) start [2024-12-27 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113263', 'tblTempUsageDetail_20' ) end [2024-12-27 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113263', 'tblTempVendorCDR_20' ) start [2024-12-27 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113263', 'tblTempVendorCDR_20' ) end [2024-12-27 09:25:18] Production.INFO: ProcessCDR(1,14113263,1,1,2) [2024-12-27 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113263', 'tblTempUsageDetail_20' ) start [2024-12-27 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113263', 'tblTempUsageDetail_20' ) end [2024-12-27 09:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:25:23] Production.INFO: ==2594== Releasing lock... [2024-12-27 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:25:23] Production.INFO: 38.75 MB #Memory Used# [2024-12-27 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:26:05 [end_date_ymd] => 2024-12-27 09:26:05 [RateCDR] => 1 ) [2024-12-27 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:26:05' and `end` < '2024-12-27 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:26:17] Production.INFO: count ==1408 [2024-12-27 09:26:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:26:05 - End Time 2024-12-27 09:26:05 [2024-12-27 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113268', 'tblTempUsageDetail_20' ) start [2024-12-27 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113268', 'tblTempUsageDetail_20' ) end [2024-12-27 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113268', 'tblTempVendorCDR_20' ) start [2024-12-27 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113268', 'tblTempVendorCDR_20' ) end [2024-12-27 09:26:18] Production.INFO: ProcessCDR(1,14113268,1,1,2) [2024-12-27 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113268', 'tblTempUsageDetail_20' ) start [2024-12-27 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113268', 'tblTempUsageDetail_20' ) end [2024-12-27 09:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:26:22] Production.INFO: ==2674== Releasing lock... [2024-12-27 09:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:26:22] Production.INFO: 39 MB #Memory Used# [2024-12-27 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:27:05 [end_date_ymd] => 2024-12-27 09:27:05 [RateCDR] => 1 ) [2024-12-27 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:27:05' and `end` < '2024-12-27 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:27:18] Production.INFO: count ==1427 [2024-12-27 09:27:19] Production.ERROR: pbx CDR StartTime 2024-12-27 06:27:05 - End Time 2024-12-27 09:27:05 [2024-12-27 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113273', 'tblTempUsageDetail_20' ) start [2024-12-27 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113273', 'tblTempUsageDetail_20' ) end [2024-12-27 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113273', 'tblTempVendorCDR_20' ) start [2024-12-27 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113273', 'tblTempVendorCDR_20' ) end [2024-12-27 09:27:19] Production.INFO: ProcessCDR(1,14113273,1,1,2) [2024-12-27 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113273', 'tblTempUsageDetail_20' ) start [2024-12-27 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113273', 'tblTempUsageDetail_20' ) end [2024-12-27 09:27:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:27:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:27:24] Production.INFO: ==2756== Releasing lock... [2024-12-27 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:27:24] Production.INFO: 39.25 MB #Memory Used# [2024-12-27 09:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:28:04 [end_date_ymd] => 2024-12-27 09:28:04 [RateCDR] => 1 ) [2024-12-27 09: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-27 06:28:04' and `end` < '2024-12-27 09: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-27 09:28:23] Production.INFO: count ==1431 [2024-12-27 09:28:24] Production.ERROR: pbx CDR StartTime 2024-12-27 06:28:04 - End Time 2024-12-27 09:28:04 [2024-12-27 09:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113278', 'tblTempUsageDetail_20' ) start [2024-12-27 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113278', 'tblTempUsageDetail_20' ) end [2024-12-27 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113278', 'tblTempVendorCDR_20' ) start [2024-12-27 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113278', 'tblTempVendorCDR_20' ) end [2024-12-27 09:28:24] Production.INFO: ProcessCDR(1,14113278,1,1,2) [2024-12-27 09:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113278', 'tblTempUsageDetail_20' ) start [2024-12-27 09:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113278', 'tblTempUsageDetail_20' ) end [2024-12-27 09:28:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:28:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:28:28] Production.INFO: ==2835== Releasing lock... [2024-12-27 09:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:28:28] Production.INFO: 39.5 MB #Memory Used# [2024-12-27 09:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:29:04 [end_date_ymd] => 2024-12-27 09:29:04 [RateCDR] => 1 ) [2024-12-27 09:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:29:04' and `end` < '2024-12-27 09:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:29:24] Production.INFO: count ==1481 [2024-12-27 09:29:24] Production.ERROR: pbx CDR StartTime 2024-12-27 06:29:04 - End Time 2024-12-27 09:29:04 [2024-12-27 09:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113283', 'tblTempUsageDetail_20' ) start [2024-12-27 09:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113283', 'tblTempUsageDetail_20' ) end [2024-12-27 09:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113283', 'tblTempVendorCDR_20' ) start [2024-12-27 09:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113283', 'tblTempVendorCDR_20' ) end [2024-12-27 09:29:25] Production.INFO: ProcessCDR(1,14113283,1,1,2) [2024-12-27 09:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113283', 'tblTempUsageDetail_20' ) start [2024-12-27 09:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113283', 'tblTempUsageDetail_20' ) end [2024-12-27 09:29:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:29:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:29:29] Production.INFO: ==2914== Releasing lock... [2024-12-27 09:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:29:29] Production.INFO: 39.75 MB #Memory Used# [2024-12-27 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:30:05 [end_date_ymd] => 2024-12-27 09:30:05 [RateCDR] => 1 ) [2024-12-27 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-27 06:30:05' and `end` < '2024-12-27 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-27 09:30:23] Production.INFO: count ==1510 [2024-12-27 09:30:23] Production.ERROR: pbx CDR StartTime 2024-12-27 06:30:05 - End Time 2024-12-27 09:30:05 [2024-12-27 09:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113288', 'tblTempUsageDetail_20' ) start [2024-12-27 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113288', 'tblTempUsageDetail_20' ) end [2024-12-27 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113288', 'tblTempVendorCDR_20' ) start [2024-12-27 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113288', 'tblTempVendorCDR_20' ) end [2024-12-27 09:30:23] Production.INFO: ProcessCDR(1,14113288,1,1,2) [2024-12-27 09:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113288', 'tblTempUsageDetail_20' ) start [2024-12-27 09:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113288', 'tblTempUsageDetail_20' ) end [2024-12-27 09:30:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:30:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:30:28] Production.INFO: ==2999== Releasing lock... [2024-12-27 09:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:30:28] Production.INFO: 40 MB #Memory Used# [2024-12-27 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:31:05 [end_date_ymd] => 2024-12-27 09:31:05 [RateCDR] => 1 ) [2024-12-27 09: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-27 06:31:05' and `end` < '2024-12-27 09: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-27 09:31:18] Production.INFO: count ==1602 [2024-12-27 09:31:19] Production.ERROR: pbx CDR StartTime 2024-12-27 06:31:05 - End Time 2024-12-27 09:31:05 [2024-12-27 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113294', 'tblTempUsageDetail_20' ) start [2024-12-27 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113294', 'tblTempUsageDetail_20' ) end [2024-12-27 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113294', 'tblTempVendorCDR_20' ) start [2024-12-27 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113294', 'tblTempVendorCDR_20' ) end [2024-12-27 09:31:19] Production.INFO: ProcessCDR(1,14113294,1,1,2) [2024-12-27 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113294', 'tblTempUsageDetail_20' ) start [2024-12-27 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113294', 'tblTempUsageDetail_20' ) end [2024-12-27 09:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:31:24] Production.INFO: ==3076== Releasing lock... [2024-12-27 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:31:24] Production.INFO: 40.5 MB #Memory Used# [2024-12-27 09:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:32:04 [end_date_ymd] => 2024-12-27 09:32:04 [RateCDR] => 1 ) [2024-12-27 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-27 06:32:04' and `end` < '2024-12-27 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-27 09:32:18] Production.INFO: count ==1610 [2024-12-27 09:32:19] Production.ERROR: pbx CDR StartTime 2024-12-27 06:32:04 - End Time 2024-12-27 09:32:04 [2024-12-27 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113299', 'tblTempUsageDetail_20' ) start [2024-12-27 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113299', 'tblTempUsageDetail_20' ) end [2024-12-27 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113299', 'tblTempVendorCDR_20' ) start [2024-12-27 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113299', 'tblTempVendorCDR_20' ) end [2024-12-27 09:32:19] Production.INFO: ProcessCDR(1,14113299,1,1,2) [2024-12-27 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113299', 'tblTempUsageDetail_20' ) start [2024-12-27 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113299', 'tblTempUsageDetail_20' ) end [2024-12-27 09:32:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:32:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:32:24] Production.INFO: ==3166== Releasing lock... [2024-12-27 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:32:24] Production.INFO: 40.25 MB #Memory Used# [2024-12-27 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:33:05 [end_date_ymd] => 2024-12-27 09:33:05 [RateCDR] => 1 ) [2024-12-27 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-27 06:33:05' and `end` < '2024-12-27 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-27 09:33:18] Production.INFO: count ==1631 [2024-12-27 09:33:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:33:05 - End Time 2024-12-27 09:33:05 [2024-12-27 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113304', 'tblTempUsageDetail_20' ) start [2024-12-27 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113304', 'tblTempUsageDetail_20' ) end [2024-12-27 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113304', 'tblTempVendorCDR_20' ) start [2024-12-27 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113304', 'tblTempVendorCDR_20' ) end [2024-12-27 09:33:18] Production.INFO: ProcessCDR(1,14113304,1,1,2) [2024-12-27 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113304', 'tblTempUsageDetail_20' ) start [2024-12-27 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113304', 'tblTempUsageDetail_20' ) end [2024-12-27 09:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:33:23] Production.INFO: ==3244== Releasing lock... [2024-12-27 09:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:33:23] Production.INFO: 41 MB #Memory Used# [2024-12-27 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:34:05 [end_date_ymd] => 2024-12-27 09:34:05 [RateCDR] => 1 ) [2024-12-27 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:34:05' and `end` < '2024-12-27 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:34:20] Production.INFO: count ==1647 [2024-12-27 09:34:21] Production.ERROR: pbx CDR StartTime 2024-12-27 06:34:05 - End Time 2024-12-27 09:34:05 [2024-12-27 09:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113309', 'tblTempUsageDetail_20' ) start [2024-12-27 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113309', 'tblTempUsageDetail_20' ) end [2024-12-27 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113309', 'tblTempVendorCDR_20' ) start [2024-12-27 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113309', 'tblTempVendorCDR_20' ) end [2024-12-27 09:34:21] Production.INFO: ProcessCDR(1,14113309,1,1,2) [2024-12-27 09:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113309', 'tblTempUsageDetail_20' ) start [2024-12-27 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113309', 'tblTempUsageDetail_20' ) end [2024-12-27 09:34:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:34:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:34:26] Production.INFO: ==3327== Releasing lock... [2024-12-27 09:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:34:26] Production.INFO: 40.75 MB #Memory Used# [2024-12-27 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:35:05 [end_date_ymd] => 2024-12-27 09:35:05 [RateCDR] => 1 ) [2024-12-27 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:35:05' and `end` < '2024-12-27 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:35:25] Production.INFO: count ==1668 [2024-12-27 09:35:26] Production.ERROR: pbx CDR StartTime 2024-12-27 06:35:05 - End Time 2024-12-27 09:35:05 [2024-12-27 09:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113314', 'tblTempUsageDetail_20' ) start [2024-12-27 09:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113314', 'tblTempUsageDetail_20' ) end [2024-12-27 09:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113314', 'tblTempVendorCDR_20' ) start [2024-12-27 09:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113314', 'tblTempVendorCDR_20' ) end [2024-12-27 09:35:26] Production.INFO: ProcessCDR(1,14113314,1,1,2) [2024-12-27 09:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113314', 'tblTempUsageDetail_20' ) start [2024-12-27 09:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113314', 'tblTempUsageDetail_20' ) end [2024-12-27 09:35:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:35:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:35:31] Production.INFO: ==3402== Releasing lock... [2024-12-27 09:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:35:31] Production.INFO: 41.25 MB #Memory Used# [2024-12-27 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:36:05 [end_date_ymd] => 2024-12-27 09:36:05 [RateCDR] => 1 ) [2024-12-27 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:36:05' and `end` < '2024-12-27 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:36:22] Production.INFO: count ==1681 [2024-12-27 09:36:23] Production.ERROR: pbx CDR StartTime 2024-12-27 06:36:05 - End Time 2024-12-27 09:36:05 [2024-12-27 09:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113319', 'tblTempUsageDetail_20' ) start [2024-12-27 09:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113319', 'tblTempUsageDetail_20' ) end [2024-12-27 09:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113319', 'tblTempVendorCDR_20' ) start [2024-12-27 09:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113319', 'tblTempVendorCDR_20' ) end [2024-12-27 09:36:23] Production.INFO: ProcessCDR(1,14113319,1,1,2) [2024-12-27 09:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113319', 'tblTempUsageDetail_20' ) start [2024-12-27 09:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113319', 'tblTempUsageDetail_20' ) end [2024-12-27 09:36:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:36:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:36:28] Production.INFO: ==3480== Releasing lock... [2024-12-27 09:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:36:28] Production.INFO: 41.5 MB #Memory Used# [2024-12-27 09:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:37:04 [end_date_ymd] => 2024-12-27 09:37:04 [RateCDR] => 1 ) [2024-12-27 09: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-27 06:37:04' and `end` < '2024-12-27 09: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-27 09:37:17] Production.INFO: count ==1702 [2024-12-27 09:37:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:37:04 - End Time 2024-12-27 09:37:04 [2024-12-27 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113324', 'tblTempUsageDetail_20' ) start [2024-12-27 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113324', 'tblTempUsageDetail_20' ) end [2024-12-27 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113324', 'tblTempVendorCDR_20' ) start [2024-12-27 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113324', 'tblTempVendorCDR_20' ) end [2024-12-27 09:37:18] Production.INFO: ProcessCDR(1,14113324,1,1,2) [2024-12-27 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113324', 'tblTempUsageDetail_20' ) start [2024-12-27 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113324', 'tblTempUsageDetail_20' ) end [2024-12-27 09:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:37:22] Production.INFO: ==3563== Releasing lock... [2024-12-27 09:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:37:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-27 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:38:05 [end_date_ymd] => 2024-12-27 09:38:05 [RateCDR] => 1 ) [2024-12-27 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:38:05' and `end` < '2024-12-27 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:38:19] Production.INFO: count ==1718 [2024-12-27 09:38:20] Production.ERROR: pbx CDR StartTime 2024-12-27 06:38:05 - End Time 2024-12-27 09:38:05 [2024-12-27 09:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113329', 'tblTempUsageDetail_20' ) start [2024-12-27 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113329', 'tblTempUsageDetail_20' ) end [2024-12-27 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113329', 'tblTempVendorCDR_20' ) start [2024-12-27 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113329', 'tblTempVendorCDR_20' ) end [2024-12-27 09:38:20] Production.INFO: ProcessCDR(1,14113329,1,1,2) [2024-12-27 09:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113329', 'tblTempUsageDetail_20' ) start [2024-12-27 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113329', 'tblTempUsageDetail_20' ) end [2024-12-27 09:38:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:38:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:38:25] Production.INFO: ==3680== Releasing lock... [2024-12-27 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:38:25] Production.INFO: 41.25 MB #Memory Used# [2024-12-27 09:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:39:04 [end_date_ymd] => 2024-12-27 09:39:04 [RateCDR] => 1 ) [2024-12-27 09: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-27 06:39:04' and `end` < '2024-12-27 09: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-27 09:39:18] Production.INFO: count ==1742 [2024-12-27 09:39:19] Production.ERROR: pbx CDR StartTime 2024-12-27 06:39:04 - End Time 2024-12-27 09:39:04 [2024-12-27 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113334', 'tblTempUsageDetail_20' ) start [2024-12-27 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113334', 'tblTempUsageDetail_20' ) end [2024-12-27 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113334', 'tblTempVendorCDR_20' ) start [2024-12-27 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113334', 'tblTempVendorCDR_20' ) end [2024-12-27 09:39:19] Production.INFO: ProcessCDR(1,14113334,1,1,2) [2024-12-27 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113334', 'tblTempUsageDetail_20' ) start [2024-12-27 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113334', 'tblTempUsageDetail_20' ) end [2024-12-27 09:39:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:39:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:39:24] Production.INFO: ==3762== Releasing lock... [2024-12-27 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:39:24] Production.INFO: 41.5 MB #Memory Used# [2024-12-27 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:40:06 [end_date_ymd] => 2024-12-27 09:40:06 [RateCDR] => 1 ) [2024-12-27 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:40:06' and `end` < '2024-12-27 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:40:21] Production.INFO: count ==1771 [2024-12-27 09:40:22] Production.ERROR: pbx CDR StartTime 2024-12-27 06:40:06 - End Time 2024-12-27 09:40:06 [2024-12-27 09:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113340', 'tblTempUsageDetail_20' ) start [2024-12-27 09:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113340', 'tblTempUsageDetail_20' ) end [2024-12-27 09:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113340', 'tblTempVendorCDR_20' ) start [2024-12-27 09:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113340', 'tblTempVendorCDR_20' ) end [2024-12-27 09:40:22] Production.INFO: ProcessCDR(1,14113340,1,1,2) [2024-12-27 09:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113340', 'tblTempUsageDetail_20' ) start [2024-12-27 09:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113340', 'tblTempUsageDetail_20' ) end [2024-12-27 09:40:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:40:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:40:27] Production.INFO: ==3842== Releasing lock... [2024-12-27 09:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:40:27] Production.INFO: 41.5 MB #Memory Used# [2024-12-27 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:41:05 [end_date_ymd] => 2024-12-27 09:41:05 [RateCDR] => 1 ) [2024-12-27 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:41:05' and `end` < '2024-12-27 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:41:20] Production.INFO: count ==1840 [2024-12-27 09:41:21] Production.ERROR: pbx CDR StartTime 2024-12-27 06:41:05 - End Time 2024-12-27 09:41:05 [2024-12-27 09:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113345', 'tblTempUsageDetail_20' ) start [2024-12-27 09:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113345', 'tblTempUsageDetail_20' ) end [2024-12-27 09:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113345', 'tblTempVendorCDR_20' ) start [2024-12-27 09:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113345', 'tblTempVendorCDR_20' ) end [2024-12-27 09:41:21] Production.INFO: ProcessCDR(1,14113345,1,1,2) [2024-12-27 09:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113345', 'tblTempUsageDetail_20' ) start [2024-12-27 09:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113345', 'tblTempUsageDetail_20' ) end [2024-12-27 09:41:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:41:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:41:26] Production.INFO: ==3926== Releasing lock... [2024-12-27 09:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:41:26] Production.INFO: 42.25 MB #Memory Used# [2024-12-27 09:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:42:04 [end_date_ymd] => 2024-12-27 09:42:04 [RateCDR] => 1 ) [2024-12-27 09: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-27 06:42:04' and `end` < '2024-12-27 09: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-27 09:42:23] Production.INFO: count ==1852 [2024-12-27 09:42:24] Production.ERROR: pbx CDR StartTime 2024-12-27 06:42:04 - End Time 2024-12-27 09:42:04 [2024-12-27 09:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113350', 'tblTempUsageDetail_20' ) start [2024-12-27 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113350', 'tblTempUsageDetail_20' ) end [2024-12-27 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113350', 'tblTempVendorCDR_20' ) start [2024-12-27 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113350', 'tblTempVendorCDR_20' ) end [2024-12-27 09:42:24] Production.INFO: ProcessCDR(1,14113350,1,1,2) [2024-12-27 09:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113350', 'tblTempUsageDetail_20' ) start [2024-12-27 09:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113350', 'tblTempUsageDetail_20' ) end [2024-12-27 09:42:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:42:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:42:28] Production.INFO: ==4004== Releasing lock... [2024-12-27 09:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:42:28] Production.INFO: 42 MB #Memory Used# [2024-12-27 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:43:05 [end_date_ymd] => 2024-12-27 09:43:05 [RateCDR] => 1 ) [2024-12-27 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:43:05' and `end` < '2024-12-27 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:43:18] Production.INFO: count ==1873 [2024-12-27 09:43:19] Production.ERROR: pbx CDR StartTime 2024-12-27 06:43:05 - End Time 2024-12-27 09:43:05 [2024-12-27 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113355', 'tblTempUsageDetail_20' ) start [2024-12-27 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113355', 'tblTempUsageDetail_20' ) end [2024-12-27 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113355', 'tblTempVendorCDR_20' ) start [2024-12-27 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113355', 'tblTempVendorCDR_20' ) end [2024-12-27 09:43:19] Production.INFO: ProcessCDR(1,14113355,1,1,2) [2024-12-27 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113355', 'tblTempUsageDetail_20' ) start [2024-12-27 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113355', 'tblTempUsageDetail_20' ) end [2024-12-27 09:43:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:43:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:43:24] Production.INFO: ==4087== Releasing lock... [2024-12-27 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:43:24] Production.INFO: 42.5 MB #Memory Used# [2024-12-27 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:44:05 [end_date_ymd] => 2024-12-27 09:44:05 [RateCDR] => 1 ) [2024-12-27 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:44:05' and `end` < '2024-12-27 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:44:18] Production.INFO: count ==1881 [2024-12-27 09:44:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:44:05 - End Time 2024-12-27 09:44:05 [2024-12-27 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113360', 'tblTempUsageDetail_20' ) start [2024-12-27 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113360', 'tblTempUsageDetail_20' ) end [2024-12-27 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113360', 'tblTempVendorCDR_20' ) start [2024-12-27 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113360', 'tblTempVendorCDR_20' ) end [2024-12-27 09:44:18] Production.INFO: ProcessCDR(1,14113360,1,1,2) [2024-12-27 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113360', 'tblTempUsageDetail_20' ) start [2024-12-27 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113360', 'tblTempUsageDetail_20' ) end [2024-12-27 09:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:44:23] Production.INFO: ==4167== Releasing lock... [2024-12-27 09:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:44:23] Production.INFO: 43 MB #Memory Used# [2024-12-27 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:45:05 [end_date_ymd] => 2024-12-27 09:45:05 [RateCDR] => 1 ) [2024-12-27 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:45:05' and `end` < '2024-12-27 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:45:19] Production.INFO: count ==1896 [2024-12-27 09:45:20] Production.ERROR: pbx CDR StartTime 2024-12-27 06:45:05 - End Time 2024-12-27 09:45:05 [2024-12-27 09:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113365', 'tblTempUsageDetail_20' ) start [2024-12-27 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113365', 'tblTempUsageDetail_20' ) end [2024-12-27 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113365', 'tblTempVendorCDR_20' ) start [2024-12-27 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113365', 'tblTempVendorCDR_20' ) end [2024-12-27 09:45:20] Production.INFO: ProcessCDR(1,14113365,1,1,2) [2024-12-27 09:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113365', 'tblTempUsageDetail_20' ) start [2024-12-27 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113365', 'tblTempUsageDetail_20' ) end [2024-12-27 09:45:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:45:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:45:25] Production.INFO: ==4245== Releasing lock... [2024-12-27 09:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:45:25] Production.INFO: 42.5 MB #Memory Used# [2024-12-27 09:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:46:04 [end_date_ymd] => 2024-12-27 09:46:04 [RateCDR] => 1 ) [2024-12-27 09: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-27 06:46:04' and `end` < '2024-12-27 09: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-27 09:46:19] Production.INFO: count ==1930 [2024-12-27 09:46:20] Production.ERROR: pbx CDR StartTime 2024-12-27 06:46:04 - End Time 2024-12-27 09:46:04 [2024-12-27 09:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113370', 'tblTempUsageDetail_20' ) start [2024-12-27 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113370', 'tblTempUsageDetail_20' ) end [2024-12-27 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113370', 'tblTempVendorCDR_20' ) start [2024-12-27 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113370', 'tblTempVendorCDR_20' ) end [2024-12-27 09:46:20] Production.INFO: ProcessCDR(1,14113370,1,1,2) [2024-12-27 09:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113370', 'tblTempUsageDetail_20' ) start [2024-12-27 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113370', 'tblTempUsageDetail_20' ) end [2024-12-27 09:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:46:24] Production.INFO: ==4327== Releasing lock... [2024-12-27 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:46:24] Production.INFO: 42.75 MB #Memory Used# [2024-12-27 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:47:05 [end_date_ymd] => 2024-12-27 09:47:05 [RateCDR] => 1 ) [2024-12-27 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:47:05' and `end` < '2024-12-27 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:47:19] Production.INFO: count ==1963 [2024-12-27 09:47:20] Production.ERROR: pbx CDR StartTime 2024-12-27 06:47:05 - End Time 2024-12-27 09:47:05 [2024-12-27 09:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113375', 'tblTempUsageDetail_20' ) start [2024-12-27 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113375', 'tblTempUsageDetail_20' ) end [2024-12-27 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113375', 'tblTempVendorCDR_20' ) start [2024-12-27 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113375', 'tblTempVendorCDR_20' ) end [2024-12-27 09:47:20] Production.INFO: ProcessCDR(1,14113375,1,1,2) [2024-12-27 09:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113375', 'tblTempUsageDetail_20' ) start [2024-12-27 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113375', 'tblTempUsageDetail_20' ) end [2024-12-27 09:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:47:23] Production.INFO: ==4405== Releasing lock... [2024-12-27 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:47:23] Production.INFO: 43.25 MB #Memory Used# [2024-12-27 09:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:48:04 [end_date_ymd] => 2024-12-27 09:48:04 [RateCDR] => 1 ) [2024-12-27 09: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-27 06:48:04' and `end` < '2024-12-27 09: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-27 09:48:18] Production.INFO: count ==1978 [2024-12-27 09:48:19] Production.ERROR: pbx CDR StartTime 2024-12-27 06:48:04 - End Time 2024-12-27 09:48:04 [2024-12-27 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113380', 'tblTempUsageDetail_20' ) start [2024-12-27 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113380', 'tblTempUsageDetail_20' ) end [2024-12-27 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113380', 'tblTempVendorCDR_20' ) start [2024-12-27 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113380', 'tblTempVendorCDR_20' ) end [2024-12-27 09:48:19] Production.INFO: ProcessCDR(1,14113380,1,1,2) [2024-12-27 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113380', 'tblTempUsageDetail_20' ) start [2024-12-27 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113380', 'tblTempUsageDetail_20' ) end [2024-12-27 09:48:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:48:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:48:24] Production.INFO: ==4480== Releasing lock... [2024-12-27 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:48:24] Production.INFO: 43.5 MB #Memory Used# [2024-12-27 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:49:05 [end_date_ymd] => 2024-12-27 09:49:05 [RateCDR] => 1 ) [2024-12-27 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:49:05' and `end` < '2024-12-27 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:49:18] Production.INFO: count ==2013 [2024-12-27 09:49:19] Production.ERROR: pbx CDR StartTime 2024-12-27 06:49:05 - End Time 2024-12-27 09:49:05 [2024-12-27 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113385', 'tblTempUsageDetail_20' ) start [2024-12-27 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113385', 'tblTempUsageDetail_20' ) end [2024-12-27 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113385', 'tblTempVendorCDR_20' ) start [2024-12-27 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113385', 'tblTempVendorCDR_20' ) end [2024-12-27 09:49:19] Production.INFO: ProcessCDR(1,14113385,1,1,2) [2024-12-27 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113385', 'tblTempUsageDetail_20' ) start [2024-12-27 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113385', 'tblTempUsageDetail_20' ) end [2024-12-27 09:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:49:23] Production.INFO: ==4560== Releasing lock... [2024-12-27 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:49:23] Production.INFO: 43.75 MB #Memory Used# [2024-12-27 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:50:06 [end_date_ymd] => 2024-12-27 09:50:06 [RateCDR] => 1 ) [2024-12-27 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:50:06' and `end` < '2024-12-27 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:50:19] Production.INFO: count ==2038 [2024-12-27 09:50:19] Production.ERROR: pbx CDR StartTime 2024-12-27 06:50:06 - End Time 2024-12-27 09:50:06 [2024-12-27 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113391', 'tblTempUsageDetail_20' ) start [2024-12-27 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113391', 'tblTempUsageDetail_20' ) end [2024-12-27 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113391', 'tblTempVendorCDR_20' ) start [2024-12-27 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113391', 'tblTempVendorCDR_20' ) end [2024-12-27 09:50:19] Production.INFO: ProcessCDR(1,14113391,1,1,2) [2024-12-27 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113391', 'tblTempUsageDetail_20' ) start [2024-12-27 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113391', 'tblTempUsageDetail_20' ) end [2024-12-27 09:50:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:50:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:50:24] Production.INFO: ==4647== Releasing lock... [2024-12-27 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:50:24] Production.INFO: 43.5 MB #Memory Used# [2024-12-27 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:51:05 [end_date_ymd] => 2024-12-27 09:51:05 [RateCDR] => 1 ) [2024-12-27 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:51:05' and `end` < '2024-12-27 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:51:20] Production.INFO: count ==2087 [2024-12-27 09:51:20] Production.ERROR: pbx CDR StartTime 2024-12-27 06:51:05 - End Time 2024-12-27 09:51:05 [2024-12-27 09:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113396', 'tblTempUsageDetail_20' ) start [2024-12-27 09:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113396', 'tblTempUsageDetail_20' ) end [2024-12-27 09:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113396', 'tblTempVendorCDR_20' ) start [2024-12-27 09:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113396', 'tblTempVendorCDR_20' ) end [2024-12-27 09:51:21] Production.INFO: ProcessCDR(1,14113396,1,1,2) [2024-12-27 09:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113396', 'tblTempUsageDetail_20' ) start [2024-12-27 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113396', 'tblTempUsageDetail_20' ) end [2024-12-27 09:51:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:51:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:51:25] Production.INFO: ==4728== Releasing lock... [2024-12-27 09:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:51:25] Production.INFO: 44.25 MB #Memory Used# [2024-12-27 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:52:05 [end_date_ymd] => 2024-12-27 09:52:05 [RateCDR] => 1 ) [2024-12-27 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:52:05' and `end` < '2024-12-27 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:52:18] Production.INFO: count ==2091 [2024-12-27 09:52:19] Production.ERROR: pbx CDR StartTime 2024-12-27 06:52:05 - End Time 2024-12-27 09:52:05 [2024-12-27 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113401', 'tblTempUsageDetail_20' ) start [2024-12-27 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113401', 'tblTempUsageDetail_20' ) end [2024-12-27 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113401', 'tblTempVendorCDR_20' ) start [2024-12-27 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113401', 'tblTempVendorCDR_20' ) end [2024-12-27 09:52:19] Production.INFO: ProcessCDR(1,14113401,1,1,2) [2024-12-27 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113401', 'tblTempUsageDetail_20' ) start [2024-12-27 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113401', 'tblTempUsageDetail_20' ) end [2024-12-27 09:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:52:23] Production.INFO: ==4808== Releasing lock... [2024-12-27 09:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:52:23] Production.INFO: 44.25 MB #Memory Used# [2024-12-27 09:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:53:04 [end_date_ymd] => 2024-12-27 09:53:04 [RateCDR] => 1 ) [2024-12-27 09: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-27 06:53:04' and `end` < '2024-12-27 09: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-27 09:53:17] Production.INFO: count ==2094 [2024-12-27 09:53:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:53:04 - End Time 2024-12-27 09:53:04 [2024-12-27 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113406', 'tblTempUsageDetail_20' ) start [2024-12-27 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113406', 'tblTempUsageDetail_20' ) end [2024-12-27 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113406', 'tblTempVendorCDR_20' ) start [2024-12-27 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113406', 'tblTempVendorCDR_20' ) end [2024-12-27 09:53:18] Production.INFO: ProcessCDR(1,14113406,1,1,2) [2024-12-27 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113406', 'tblTempUsageDetail_20' ) start [2024-12-27 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113406', 'tblTempUsageDetail_20' ) end [2024-12-27 09:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:53:23] Production.INFO: ==4885== Releasing lock... [2024-12-27 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:53:23] Production.INFO: 44 MB #Memory Used# [2024-12-27 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:54:05 [end_date_ymd] => 2024-12-27 09:54:05 [RateCDR] => 1 ) [2024-12-27 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:54:05' and `end` < '2024-12-27 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:54:18] Production.INFO: count ==2098 [2024-12-27 09:54:18] Production.ERROR: pbx CDR StartTime 2024-12-27 06:54:05 - End Time 2024-12-27 09:54:05 [2024-12-27 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113411', 'tblTempUsageDetail_20' ) start [2024-12-27 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113411', 'tblTempUsageDetail_20' ) end [2024-12-27 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113411', 'tblTempVendorCDR_20' ) start [2024-12-27 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113411', 'tblTempVendorCDR_20' ) end [2024-12-27 09:54:19] Production.INFO: ProcessCDR(1,14113411,1,1,2) [2024-12-27 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113411', 'tblTempUsageDetail_20' ) start [2024-12-27 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113411', 'tblTempUsageDetail_20' ) end [2024-12-27 09:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:54:23] Production.INFO: ==4999== Releasing lock... [2024-12-27 09:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:54:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-27 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:55:05 [end_date_ymd] => 2024-12-27 09:55:05 [RateCDR] => 1 ) [2024-12-27 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:55:05' and `end` < '2024-12-27 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:55:19] Production.INFO: count ==2109 [2024-12-27 09:55:20] Production.ERROR: pbx CDR StartTime 2024-12-27 06:55:05 - End Time 2024-12-27 09:55:05 [2024-12-27 09:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113416', 'tblTempUsageDetail_20' ) start [2024-12-27 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113416', 'tblTempUsageDetail_20' ) end [2024-12-27 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113416', 'tblTempVendorCDR_20' ) start [2024-12-27 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113416', 'tblTempVendorCDR_20' ) end [2024-12-27 09:55:20] Production.INFO: ProcessCDR(1,14113416,1,1,2) [2024-12-27 09:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113416', 'tblTempUsageDetail_20' ) start [2024-12-27 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113416', 'tblTempUsageDetail_20' ) end [2024-12-27 09:55:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:55:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:55:24] Production.INFO: ==5079== Releasing lock... [2024-12-27 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:55:24] Production.INFO: 44.5 MB #Memory Used# [2024-12-27 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:56:05 [end_date_ymd] => 2024-12-27 09:56:05 [RateCDR] => 1 ) [2024-12-27 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:56:05' and `end` < '2024-12-27 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:56:18] Production.INFO: count ==2144 [2024-12-27 09:56:19] Production.ERROR: pbx CDR StartTime 2024-12-27 06:56:05 - End Time 2024-12-27 09:56:05 [2024-12-27 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113421', 'tblTempUsageDetail_20' ) start [2024-12-27 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113421', 'tblTempUsageDetail_20' ) end [2024-12-27 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113421', 'tblTempVendorCDR_20' ) start [2024-12-27 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113421', 'tblTempVendorCDR_20' ) end [2024-12-27 09:56:19] Production.INFO: ProcessCDR(1,14113421,1,1,2) [2024-12-27 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113421', 'tblTempUsageDetail_20' ) start [2024-12-27 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113421', 'tblTempUsageDetail_20' ) end [2024-12-27 09:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:56:23] Production.INFO: ==5155== Releasing lock... [2024-12-27 09:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:56:23] Production.INFO: 44.75 MB #Memory Used# [2024-12-27 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:57:05 [end_date_ymd] => 2024-12-27 09:57:05 [RateCDR] => 1 ) [2024-12-27 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:57:05' and `end` < '2024-12-27 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:57:31] Production.INFO: count ==2185 [2024-12-27 09:57:32] Production.ERROR: pbx CDR StartTime 2024-12-27 06:57:05 - End Time 2024-12-27 09:57:05 [2024-12-27 09:57:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113426', 'tblTempUsageDetail_20' ) start [2024-12-27 09:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113426', 'tblTempUsageDetail_20' ) end [2024-12-27 09:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113426', 'tblTempVendorCDR_20' ) start [2024-12-27 09:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113426', 'tblTempVendorCDR_20' ) end [2024-12-27 09:57:32] Production.INFO: ProcessCDR(1,14113426,1,1,2) [2024-12-27 09:57:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:57:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:57:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:57:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113426', 'tblTempUsageDetail_20' ) start [2024-12-27 09:57:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113426', 'tblTempUsageDetail_20' ) end [2024-12-27 09:57:37] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:57:37] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:57:37] Production.INFO: ==5236== Releasing lock... [2024-12-27 09:57:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:57:37] Production.INFO: 45 MB #Memory Used# [2024-12-27 09:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:58:04 [end_date_ymd] => 2024-12-27 09:58:04 [RateCDR] => 1 ) [2024-12-27 09: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-27 06:58:04' and `end` < '2024-12-27 09: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-27 09:58:26] Production.INFO: count ==2206 [2024-12-27 09:58:27] Production.ERROR: pbx CDR StartTime 2024-12-27 06:58:04 - End Time 2024-12-27 09:58:04 [2024-12-27 09:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113431', 'tblTempUsageDetail_20' ) start [2024-12-27 09:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113431', 'tblTempUsageDetail_20' ) end [2024-12-27 09:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113431', 'tblTempVendorCDR_20' ) start [2024-12-27 09:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113431', 'tblTempVendorCDR_20' ) end [2024-12-27 09:58:27] Production.INFO: ProcessCDR(1,14113431,1,1,2) [2024-12-27 09:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113431', 'tblTempUsageDetail_20' ) start [2024-12-27 09:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113431', 'tblTempUsageDetail_20' ) end [2024-12-27 09:58:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:58:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:58:31] Production.INFO: ==5310== Releasing lock... [2024-12-27 09:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:58:31] Production.INFO: 45 MB #Memory Used# [2024-12-27 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 06:59:05 [end_date_ymd] => 2024-12-27 09:59:05 [RateCDR] => 1 ) [2024-12-27 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 06:59:05' and `end` < '2024-12-27 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 09:59:25] Production.INFO: count ==2222 [2024-12-27 09:59:26] Production.ERROR: pbx CDR StartTime 2024-12-27 06:59:05 - End Time 2024-12-27 09:59:05 [2024-12-27 09:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 09:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113436', 'tblTempUsageDetail_20' ) start [2024-12-27 09:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113436', 'tblTempUsageDetail_20' ) end [2024-12-27 09:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113436', 'tblTempVendorCDR_20' ) start [2024-12-27 09:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113436', 'tblTempVendorCDR_20' ) end [2024-12-27 09:59:26] Production.INFO: ProcessCDR(1,14113436,1,1,2) [2024-12-27 09:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 09:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 09:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113436', 'tblTempUsageDetail_20' ) start [2024-12-27 09:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113436', 'tblTempUsageDetail_20' ) end [2024-12-27 09:59:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 09:59:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 09:59:31] Production.INFO: ==5393== Releasing lock... [2024-12-27 09:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 09:59:31] Production.INFO: 45.25 MB #Memory Used# [2024-12-27 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:00:05 [end_date_ymd] => 2024-12-27 10:00:05 [RateCDR] => 1 ) [2024-12-27 10: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-27 07:00:05' and `end` < '2024-12-27 10: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-27 10:00:18] Production.INFO: count ==2267 [2024-12-27 10:00:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:00:05 - End Time 2024-12-27 10:00:05 [2024-12-27 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113441', 'tblTempUsageDetail_20' ) start [2024-12-27 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113441', 'tblTempUsageDetail_20' ) end [2024-12-27 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113441', 'tblTempVendorCDR_20' ) start [2024-12-27 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113441', 'tblTempVendorCDR_20' ) end [2024-12-27 10:00:19] Production.INFO: ProcessCDR(1,14113441,1,1,2) [2024-12-27 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113441', 'tblTempUsageDetail_20' ) start [2024-12-27 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113441', 'tblTempUsageDetail_20' ) end [2024-12-27 10:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:00:24] Production.INFO: ==5475== Releasing lock... [2024-12-27 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:00:24] Production.INFO: 45.25 MB #Memory Used# [2024-12-27 10:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:01:04 [end_date_ymd] => 2024-12-27 10:01:04 [RateCDR] => 1 ) [2024-12-27 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-27 07:01:04' and `end` < '2024-12-27 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-27 10:01:20] Production.INFO: count ==2345 [2024-12-27 10:01:21] Production.ERROR: pbx CDR StartTime 2024-12-27 07:01:04 - End Time 2024-12-27 10:01:04 [2024-12-27 10:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113447', 'tblTempUsageDetail_20' ) start [2024-12-27 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113447', 'tblTempUsageDetail_20' ) end [2024-12-27 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113447', 'tblTempVendorCDR_20' ) start [2024-12-27 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113447', 'tblTempVendorCDR_20' ) end [2024-12-27 10:01:21] Production.INFO: ProcessCDR(1,14113447,1,1,2) [2024-12-27 10:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113447', 'tblTempUsageDetail_20' ) start [2024-12-27 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113447', 'tblTempUsageDetail_20' ) end [2024-12-27 10:01:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:01:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:01:25] Production.INFO: ==5571== Releasing lock... [2024-12-27 10:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:01:25] Production.INFO: 46 MB #Memory Used# [2024-12-27 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:02:05 [end_date_ymd] => 2024-12-27 10:02:05 [RateCDR] => 1 ) [2024-12-27 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:02:05' and `end` < '2024-12-27 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:02:18] Production.INFO: count ==2346 [2024-12-27 10:02:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:02:05 - End Time 2024-12-27 10:02:05 [2024-12-27 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113452', 'tblTempUsageDetail_20' ) start [2024-12-27 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113452', 'tblTempUsageDetail_20' ) end [2024-12-27 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113452', 'tblTempVendorCDR_20' ) start [2024-12-27 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113452', 'tblTempVendorCDR_20' ) end [2024-12-27 10:02:19] Production.INFO: ProcessCDR(1,14113452,1,1,2) [2024-12-27 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113452', 'tblTempUsageDetail_20' ) start [2024-12-27 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113452', 'tblTempUsageDetail_20' ) end [2024-12-27 10:02:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:02:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:02:24] Production.INFO: ==5649== Releasing lock... [2024-12-27 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:02:24] Production.INFO: 46 MB #Memory Used# [2024-12-27 10:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:03:04 [end_date_ymd] => 2024-12-27 10:03:04 [RateCDR] => 1 ) [2024-12-27 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-27 07:03:04' and `end` < '2024-12-27 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-27 10:03:19] Production.INFO: count ==2351 [2024-12-27 10:03:20] Production.ERROR: pbx CDR StartTime 2024-12-27 07:03:04 - End Time 2024-12-27 10:03:04 [2024-12-27 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113457', 'tblTempUsageDetail_20' ) start [2024-12-27 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113457', 'tblTempUsageDetail_20' ) end [2024-12-27 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113457', 'tblTempVendorCDR_20' ) start [2024-12-27 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113457', 'tblTempVendorCDR_20' ) end [2024-12-27 10:03:20] Production.INFO: ProcessCDR(1,14113457,1,1,2) [2024-12-27 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113457', 'tblTempUsageDetail_20' ) start [2024-12-27 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113457', 'tblTempUsageDetail_20' ) end [2024-12-27 10:03:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:03:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:03:25] Production.INFO: ==5722== Releasing lock... [2024-12-27 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:03:25] Production.INFO: 46.25 MB #Memory Used# [2024-12-27 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:04:05 [end_date_ymd] => 2024-12-27 10:04:05 [RateCDR] => 1 ) [2024-12-27 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:04:05' and `end` < '2024-12-27 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:04:19] Production.INFO: count ==2359 [2024-12-27 10:04:20] Production.ERROR: pbx CDR StartTime 2024-12-27 07:04:05 - End Time 2024-12-27 10:04:05 [2024-12-27 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113462', 'tblTempUsageDetail_20' ) start [2024-12-27 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113462', 'tblTempUsageDetail_20' ) end [2024-12-27 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113462', 'tblTempVendorCDR_20' ) start [2024-12-27 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113462', 'tblTempVendorCDR_20' ) end [2024-12-27 10:04:20] Production.INFO: ProcessCDR(1,14113462,1,1,2) [2024-12-27 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113462', 'tblTempUsageDetail_20' ) start [2024-12-27 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113462', 'tblTempUsageDetail_20' ) end [2024-12-27 10:04:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:04:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:04:24] Production.INFO: ==5799== Releasing lock... [2024-12-27 10:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:04:24] Production.INFO: 46.5 MB #Memory Used# [2024-12-27 10:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:05:04 [end_date_ymd] => 2024-12-27 10:05:04 [RateCDR] => 1 ) [2024-12-27 10: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-27 07:05:04' and `end` < '2024-12-27 10: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-27 10:05:18] Production.INFO: count ==2386 [2024-12-27 10:05:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:05:04 - End Time 2024-12-27 10:05:04 [2024-12-27 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113467', 'tblTempUsageDetail_20' ) start [2024-12-27 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113467', 'tblTempUsageDetail_20' ) end [2024-12-27 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113467', 'tblTempVendorCDR_20' ) start [2024-12-27 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113467', 'tblTempVendorCDR_20' ) end [2024-12-27 10:05:20] Production.INFO: ProcessCDR(1,14113467,1,1,2) [2024-12-27 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113467', 'tblTempUsageDetail_20' ) start [2024-12-27 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113467', 'tblTempUsageDetail_20' ) end [2024-12-27 10:05:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:05:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:05:24] Production.INFO: ==5874== Releasing lock... [2024-12-27 10:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:05:24] Production.INFO: 46.25 MB #Memory Used# [2024-12-27 10:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:06:04 [end_date_ymd] => 2024-12-27 10:06:04 [RateCDR] => 1 ) [2024-12-27 10: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-27 07:06:04' and `end` < '2024-12-27 10: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-27 10:06:24] Production.INFO: count ==2413 [2024-12-27 10:06:25] Production.ERROR: pbx CDR StartTime 2024-12-27 07:06:04 - End Time 2024-12-27 10:06:04 [2024-12-27 10:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113472', 'tblTempUsageDetail_20' ) start [2024-12-27 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113472', 'tblTempUsageDetail_20' ) end [2024-12-27 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113472', 'tblTempVendorCDR_20' ) start [2024-12-27 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113472', 'tblTempVendorCDR_20' ) end [2024-12-27 10:06:25] Production.INFO: ProcessCDR(1,14113472,1,1,2) [2024-12-27 10:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113472', 'tblTempUsageDetail_20' ) start [2024-12-27 10:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113472', 'tblTempUsageDetail_20' ) end [2024-12-27 10:06:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:06:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:06:29] Production.INFO: ==5951== Releasing lock... [2024-12-27 10:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:06:29] Production.INFO: 46.5 MB #Memory Used# [2024-12-27 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:07:05 [end_date_ymd] => 2024-12-27 10:07:05 [RateCDR] => 1 ) [2024-12-27 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-27 07:07:05' and `end` < '2024-12-27 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-27 10:07:18] Production.INFO: count ==2438 [2024-12-27 10:07:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:07:05 - End Time 2024-12-27 10:07:05 [2024-12-27 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113477', 'tblTempUsageDetail_20' ) start [2024-12-27 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113477', 'tblTempUsageDetail_20' ) end [2024-12-27 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113477', 'tblTempVendorCDR_20' ) start [2024-12-27 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113477', 'tblTempVendorCDR_20' ) end [2024-12-27 10:07:19] Production.INFO: ProcessCDR(1,14113477,1,1,2) [2024-12-27 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113477', 'tblTempUsageDetail_20' ) start [2024-12-27 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113477', 'tblTempUsageDetail_20' ) end [2024-12-27 10:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:07:23] Production.INFO: ==6031== Releasing lock... [2024-12-27 10:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:07:23] Production.INFO: 46.75 MB #Memory Used# [2024-12-27 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:08:05 [end_date_ymd] => 2024-12-27 10:08:05 [RateCDR] => 1 ) [2024-12-27 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:08:05' and `end` < '2024-12-27 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:08:19] Production.INFO: count ==2452 [2024-12-27 10:08:20] Production.ERROR: pbx CDR StartTime 2024-12-27 07:08:05 - End Time 2024-12-27 10:08:05 [2024-12-27 10:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113482', 'tblTempUsageDetail_20' ) start [2024-12-27 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113482', 'tblTempUsageDetail_20' ) end [2024-12-27 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113482', 'tblTempVendorCDR_20' ) start [2024-12-27 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113482', 'tblTempVendorCDR_20' ) end [2024-12-27 10:08:20] Production.INFO: ProcessCDR(1,14113482,1,1,2) [2024-12-27 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113482', 'tblTempUsageDetail_20' ) start [2024-12-27 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113482', 'tblTempUsageDetail_20' ) end [2024-12-27 10:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:08:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:08:25] Production.INFO: ==6107== Releasing lock... [2024-12-27 10:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:08:25] Production.INFO: 47.25 MB #Memory Used# [2024-12-27 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:09:05 [end_date_ymd] => 2024-12-27 10:09:05 [RateCDR] => 1 ) [2024-12-27 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:09:05' and `end` < '2024-12-27 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:09:23] Production.INFO: count ==2456 [2024-12-27 10:09:24] Production.ERROR: pbx CDR StartTime 2024-12-27 07:09:05 - End Time 2024-12-27 10:09:05 [2024-12-27 10:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113487', 'tblTempUsageDetail_20' ) start [2024-12-27 10:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113487', 'tblTempUsageDetail_20' ) end [2024-12-27 10:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113487', 'tblTempVendorCDR_20' ) start [2024-12-27 10:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113487', 'tblTempVendorCDR_20' ) end [2024-12-27 10:09:24] Production.INFO: ProcessCDR(1,14113487,1,1,2) [2024-12-27 10:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113487', 'tblTempUsageDetail_20' ) start [2024-12-27 10:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113487', 'tblTempUsageDetail_20' ) end [2024-12-27 10:09:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:09:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:09:28] Production.INFO: ==6185== Releasing lock... [2024-12-27 10:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:09:28] Production.INFO: 47 MB #Memory Used# [2024-12-27 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:10:05 [end_date_ymd] => 2024-12-27 10:10:05 [RateCDR] => 1 ) [2024-12-27 10:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:10:05' and `end` < '2024-12-27 10:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:10:26] Production.INFO: count ==2474 [2024-12-27 10:10:27] Production.ERROR: pbx CDR StartTime 2024-12-27 07:10:05 - End Time 2024-12-27 10:10:05 [2024-12-27 10:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113493', 'tblTempUsageDetail_20' ) start [2024-12-27 10:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113493', 'tblTempUsageDetail_20' ) end [2024-12-27 10:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113493', 'tblTempVendorCDR_20' ) start [2024-12-27 10:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113493', 'tblTempVendorCDR_20' ) end [2024-12-27 10:10:27] Production.INFO: ProcessCDR(1,14113493,1,1,2) [2024-12-27 10:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113493', 'tblTempUsageDetail_20' ) start [2024-12-27 10:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113493', 'tblTempUsageDetail_20' ) end [2024-12-27 10:10:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:10:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:10:31] Production.INFO: ==6298== Releasing lock... [2024-12-27 10:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:10:31] Production.INFO: 47 MB #Memory Used# [2024-12-27 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:11:05 [end_date_ymd] => 2024-12-27 10:11:05 [RateCDR] => 1 ) [2024-12-27 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:11:05' and `end` < '2024-12-27 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:11:21] Production.INFO: count ==2534 [2024-12-27 10:11:22] Production.ERROR: pbx CDR StartTime 2024-12-27 07:11:05 - End Time 2024-12-27 10:11:05 [2024-12-27 10:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113498', 'tblTempUsageDetail_20' ) start [2024-12-27 10:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113498', 'tblTempUsageDetail_20' ) end [2024-12-27 10:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113498', 'tblTempVendorCDR_20' ) start [2024-12-27 10:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113498', 'tblTempVendorCDR_20' ) end [2024-12-27 10:11:22] Production.INFO: ProcessCDR(1,14113498,1,1,2) [2024-12-27 10:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113498', 'tblTempUsageDetail_20' ) start [2024-12-27 10:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113498', 'tblTempUsageDetail_20' ) end [2024-12-27 10:11:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:11:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:11:26] Production.INFO: ==6382== Releasing lock... [2024-12-27 10:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:11:26] Production.INFO: 47.5 MB #Memory Used# [2024-12-27 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:12:05 [end_date_ymd] => 2024-12-27 10:12:05 [RateCDR] => 1 ) [2024-12-27 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:12:05' and `end` < '2024-12-27 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:12:18] Production.INFO: count ==2555 [2024-12-27 10:12:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:12:05 - End Time 2024-12-27 10:12:05 [2024-12-27 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113503', 'tblTempUsageDetail_20' ) start [2024-12-27 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113503', 'tblTempUsageDetail_20' ) end [2024-12-27 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113503', 'tblTempVendorCDR_20' ) start [2024-12-27 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113503', 'tblTempVendorCDR_20' ) end [2024-12-27 10:12:20] Production.INFO: ProcessCDR(1,14113503,1,1,2) [2024-12-27 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113503', 'tblTempUsageDetail_20' ) start [2024-12-27 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113503', 'tblTempUsageDetail_20' ) end [2024-12-27 10:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:12:24] Production.INFO: ==6457== Releasing lock... [2024-12-27 10:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:12:24] Production.INFO: 47.75 MB #Memory Used# [2024-12-27 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:13:05 [end_date_ymd] => 2024-12-27 10:13:05 [RateCDR] => 1 ) [2024-12-27 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:13:05' and `end` < '2024-12-27 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:13:18] Production.INFO: count ==2572 [2024-12-27 10:13:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:13:05 - End Time 2024-12-27 10:13:05 [2024-12-27 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113508', 'tblTempUsageDetail_20' ) start [2024-12-27 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113508', 'tblTempUsageDetail_20' ) end [2024-12-27 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113508', 'tblTempVendorCDR_20' ) start [2024-12-27 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113508', 'tblTempVendorCDR_20' ) end [2024-12-27 10:13:19] Production.INFO: ProcessCDR(1,14113508,1,1,2) [2024-12-27 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113508', 'tblTempUsageDetail_20' ) start [2024-12-27 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113508', 'tblTempUsageDetail_20' ) end [2024-12-27 10:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:13:24] Production.INFO: ==6533== Releasing lock... [2024-12-27 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:13:24] Production.INFO: 48 MB #Memory Used# [2024-12-27 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:14:05 [end_date_ymd] => 2024-12-27 10:14:05 [RateCDR] => 1 ) [2024-12-27 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:14:05' and `end` < '2024-12-27 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:14:19] Production.INFO: count ==2592 [2024-12-27 10:14:20] Production.ERROR: pbx CDR StartTime 2024-12-27 07:14:05 - End Time 2024-12-27 10:14:05 [2024-12-27 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113513', 'tblTempUsageDetail_20' ) start [2024-12-27 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113513', 'tblTempUsageDetail_20' ) end [2024-12-27 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113513', 'tblTempVendorCDR_20' ) start [2024-12-27 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113513', 'tblTempVendorCDR_20' ) end [2024-12-27 10:14:21] Production.INFO: ProcessCDR(1,14113513,1,1,2) [2024-12-27 10:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113513', 'tblTempUsageDetail_20' ) start [2024-12-27 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113513', 'tblTempUsageDetail_20' ) end [2024-12-27 10:14:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:14:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:14:25] Production.INFO: ==6607== Releasing lock... [2024-12-27 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:14:25] Production.INFO: 48 MB #Memory Used# [2024-12-27 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:15:05 [end_date_ymd] => 2024-12-27 10:15:05 [RateCDR] => 1 ) [2024-12-27 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:15:05' and `end` < '2024-12-27 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:15:23] Production.INFO: count ==2609 [2024-12-27 10:15:24] Production.ERROR: pbx CDR StartTime 2024-12-27 07:15:05 - End Time 2024-12-27 10:15:05 [2024-12-27 10:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113518', 'tblTempUsageDetail_20' ) start [2024-12-27 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113518', 'tblTempUsageDetail_20' ) end [2024-12-27 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113518', 'tblTempVendorCDR_20' ) start [2024-12-27 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113518', 'tblTempVendorCDR_20' ) end [2024-12-27 10:15:24] Production.INFO: ProcessCDR(1,14113518,1,1,2) [2024-12-27 10:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113518', 'tblTempUsageDetail_20' ) start [2024-12-27 10:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113518', 'tblTempUsageDetail_20' ) end [2024-12-27 10:15:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:15:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:15:28] Production.INFO: ==6682== Releasing lock... [2024-12-27 10:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:15:28] Production.INFO: 49 MB #Memory Used# [2024-12-27 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:16:05 [end_date_ymd] => 2024-12-27 10:16:05 [RateCDR] => 1 ) [2024-12-27 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:16:05' and `end` < '2024-12-27 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:16:18] Production.INFO: count ==2617 [2024-12-27 10:16:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:16:05 - End Time 2024-12-27 10:16:05 [2024-12-27 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113523', 'tblTempUsageDetail_20' ) start [2024-12-27 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113523', 'tblTempUsageDetail_20' ) end [2024-12-27 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113523', 'tblTempVendorCDR_20' ) start [2024-12-27 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113523', 'tblTempVendorCDR_20' ) end [2024-12-27 10:16:19] Production.INFO: ProcessCDR(1,14113523,1,1,2) [2024-12-27 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113523', 'tblTempUsageDetail_20' ) start [2024-12-27 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113523', 'tblTempUsageDetail_20' ) end [2024-12-27 10:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:16:24] Production.INFO: ==6761== Releasing lock... [2024-12-27 10:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:16:24] Production.INFO: 48.5 MB #Memory Used# [2024-12-27 10:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:17:04 [end_date_ymd] => 2024-12-27 10:17:04 [RateCDR] => 1 ) [2024-12-27 10: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-27 07:17:04' and `end` < '2024-12-27 10: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-27 10:17:20] Production.INFO: count ==2631 [2024-12-27 10:17:21] Production.ERROR: pbx CDR StartTime 2024-12-27 07:17:04 - End Time 2024-12-27 10:17:04 [2024-12-27 10:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113528', 'tblTempUsageDetail_20' ) start [2024-12-27 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113528', 'tblTempUsageDetail_20' ) end [2024-12-27 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113528', 'tblTempVendorCDR_20' ) start [2024-12-27 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113528', 'tblTempVendorCDR_20' ) end [2024-12-27 10:17:21] Production.INFO: ProcessCDR(1,14113528,1,1,2) [2024-12-27 10:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113528', 'tblTempUsageDetail_20' ) start [2024-12-27 10:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113528', 'tblTempUsageDetail_20' ) end [2024-12-27 10:17:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:17:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:17:26] Production.INFO: ==6836== Releasing lock... [2024-12-27 10:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:17:26] Production.INFO: 48.25 MB #Memory Used# [2024-12-27 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:18:05 [end_date_ymd] => 2024-12-27 10:18:05 [RateCDR] => 1 ) [2024-12-27 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:18:05' and `end` < '2024-12-27 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:18:17] Production.INFO: count ==2649 [2024-12-27 10:18:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:18:05 - End Time 2024-12-27 10:18:05 [2024-12-27 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113533', 'tblTempUsageDetail_20' ) start [2024-12-27 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113533', 'tblTempUsageDetail_20' ) end [2024-12-27 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113533', 'tblTempVendorCDR_20' ) start [2024-12-27 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113533', 'tblTempVendorCDR_20' ) end [2024-12-27 10:18:19] Production.INFO: ProcessCDR(1,14113533,1,1,2) [2024-12-27 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113533', 'tblTempUsageDetail_20' ) start [2024-12-27 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113533', 'tblTempUsageDetail_20' ) end [2024-12-27 10:18:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:18:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:18:24] Production.INFO: ==6911== Releasing lock... [2024-12-27 10:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:18:24] Production.INFO: 48.25 MB #Memory Used# [2024-12-27 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:19:05 [end_date_ymd] => 2024-12-27 10:19:05 [RateCDR] => 1 ) [2024-12-27 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:19:05' and `end` < '2024-12-27 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:19:18] Production.INFO: count ==2669 [2024-12-27 10:19:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:19:05 - End Time 2024-12-27 10:19:05 [2024-12-27 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113538', 'tblTempUsageDetail_20' ) start [2024-12-27 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113538', 'tblTempUsageDetail_20' ) end [2024-12-27 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113538', 'tblTempVendorCDR_20' ) start [2024-12-27 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113538', 'tblTempVendorCDR_20' ) end [2024-12-27 10:19:19] Production.INFO: ProcessCDR(1,14113538,1,1,2) [2024-12-27 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113538', 'tblTempUsageDetail_20' ) start [2024-12-27 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113538', 'tblTempUsageDetail_20' ) end [2024-12-27 10:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:19:24] Production.INFO: ==6987== Releasing lock... [2024-12-27 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:19:24] Production.INFO: 48.25 MB #Memory Used# [2024-12-27 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:20:05 [end_date_ymd] => 2024-12-27 10:20:05 [RateCDR] => 1 ) [2024-12-27 10: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-27 07:20:05' and `end` < '2024-12-27 10: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-27 10:20:18] Production.INFO: count ==2671 [2024-12-27 10:20:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:20:05 - End Time 2024-12-27 10:20:05 [2024-12-27 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113544', 'tblTempUsageDetail_20' ) start [2024-12-27 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113544', 'tblTempUsageDetail_20' ) end [2024-12-27 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113544', 'tblTempVendorCDR_20' ) start [2024-12-27 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113544', 'tblTempVendorCDR_20' ) end [2024-12-27 10:20:19] Production.INFO: ProcessCDR(1,14113544,1,1,2) [2024-12-27 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113544', 'tblTempUsageDetail_20' ) start [2024-12-27 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113544', 'tblTempUsageDetail_20' ) end [2024-12-27 10:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:20:24] Production.INFO: ==7059== Releasing lock... [2024-12-27 10:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:20:24] Production.INFO: 48.75 MB #Memory Used# [2024-12-27 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:21:05 [end_date_ymd] => 2024-12-27 10:21:05 [RateCDR] => 1 ) [2024-12-27 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:21:05' and `end` < '2024-12-27 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:21:18] Production.INFO: count ==2709 [2024-12-27 10:21:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:21:05 - End Time 2024-12-27 10:21:05 [2024-12-27 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113549', 'tblTempUsageDetail_20' ) start [2024-12-27 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113549', 'tblTempUsageDetail_20' ) end [2024-12-27 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113549', 'tblTempVendorCDR_20' ) start [2024-12-27 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113549', 'tblTempVendorCDR_20' ) end [2024-12-27 10:21:19] Production.INFO: ProcessCDR(1,14113549,1,1,2) [2024-12-27 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113549', 'tblTempUsageDetail_20' ) start [2024-12-27 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113549', 'tblTempUsageDetail_20' ) end [2024-12-27 10:21:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:21:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:21:24] Production.INFO: ==7140== Releasing lock... [2024-12-27 10:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:21:24] Production.INFO: 48.5 MB #Memory Used# [2024-12-27 10:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:22:04 [end_date_ymd] => 2024-12-27 10:22:04 [RateCDR] => 1 ) [2024-12-27 10: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-27 07:22:04' and `end` < '2024-12-27 10: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-27 10:22:23] Production.INFO: count ==2715 [2024-12-27 10:22:24] Production.ERROR: pbx CDR StartTime 2024-12-27 07:22:04 - End Time 2024-12-27 10:22:04 [2024-12-27 10:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113554', 'tblTempUsageDetail_20' ) start [2024-12-27 10:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113554', 'tblTempUsageDetail_20' ) end [2024-12-27 10:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113554', 'tblTempVendorCDR_20' ) start [2024-12-27 10:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113554', 'tblTempVendorCDR_20' ) end [2024-12-27 10:22:24] Production.INFO: ProcessCDR(1,14113554,1,1,2) [2024-12-27 10:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113554', 'tblTempUsageDetail_20' ) start [2024-12-27 10:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113554', 'tblTempUsageDetail_20' ) end [2024-12-27 10:22:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:22:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:22:28] Production.INFO: ==7211== Releasing lock... [2024-12-27 10:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:22:28] Production.INFO: 49 MB #Memory Used# [2024-12-27 10:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:23:04 [end_date_ymd] => 2024-12-27 10:23:04 [RateCDR] => 1 ) [2024-12-27 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-27 07:23:04' and `end` < '2024-12-27 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-27 10:23:21] Production.INFO: count ==2722 [2024-12-27 10:23:22] Production.ERROR: pbx CDR StartTime 2024-12-27 07:23:04 - End Time 2024-12-27 10:23:04 [2024-12-27 10:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113559', 'tblTempUsageDetail_20' ) start [2024-12-27 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113559', 'tblTempUsageDetail_20' ) end [2024-12-27 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113559', 'tblTempVendorCDR_20' ) start [2024-12-27 10:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113559', 'tblTempVendorCDR_20' ) end [2024-12-27 10:23:22] Production.INFO: ProcessCDR(1,14113559,1,1,2) [2024-12-27 10:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113559', 'tblTempUsageDetail_20' ) start [2024-12-27 10:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113559', 'tblTempUsageDetail_20' ) end [2024-12-27 10:23:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:23:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:23:27] Production.INFO: ==7286== Releasing lock... [2024-12-27 10:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:23:27] Production.INFO: 50 MB #Memory Used# [2024-12-27 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:24:05 [end_date_ymd] => 2024-12-27 10:24:05 [RateCDR] => 1 ) [2024-12-27 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:24:05' and `end` < '2024-12-27 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:24:21] Production.INFO: count ==2736 [2024-12-27 10:24:22] Production.ERROR: pbx CDR StartTime 2024-12-27 07:24:05 - End Time 2024-12-27 10:24:05 [2024-12-27 10:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113564', 'tblTempUsageDetail_20' ) start [2024-12-27 10:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113564', 'tblTempUsageDetail_20' ) end [2024-12-27 10:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113564', 'tblTempVendorCDR_20' ) start [2024-12-27 10:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113564', 'tblTempVendorCDR_20' ) end [2024-12-27 10:24:22] Production.INFO: ProcessCDR(1,14113564,1,1,2) [2024-12-27 10:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113564', 'tblTempUsageDetail_20' ) start [2024-12-27 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113564', 'tblTempUsageDetail_20' ) end [2024-12-27 10:24:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:24:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:24:27] Production.INFO: ==7361== Releasing lock... [2024-12-27 10:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:24:27] Production.INFO: 49.25 MB #Memory Used# [2024-12-27 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:25:04 [end_date_ymd] => 2024-12-27 10:25:04 [RateCDR] => 1 ) [2024-12-27 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-27 07:25:04' and `end` < '2024-12-27 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-27 10:25:17] Production.INFO: count ==2746 [2024-12-27 10:25:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:25:04 - End Time 2024-12-27 10:25:04 [2024-12-27 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113569', 'tblTempUsageDetail_20' ) start [2024-12-27 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113569', 'tblTempUsageDetail_20' ) end [2024-12-27 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113569', 'tblTempVendorCDR_20' ) start [2024-12-27 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113569', 'tblTempVendorCDR_20' ) end [2024-12-27 10:25:19] Production.INFO: ProcessCDR(1,14113569,1,1,2) [2024-12-27 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113569', 'tblTempUsageDetail_20' ) start [2024-12-27 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113569', 'tblTempUsageDetail_20' ) end [2024-12-27 10:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:25:23] Production.INFO: ==7475== Releasing lock... [2024-12-27 10:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:25:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-27 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:26:05 [end_date_ymd] => 2024-12-27 10:26:05 [RateCDR] => 1 ) [2024-12-27 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:26:05' and `end` < '2024-12-27 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:26:17] Production.INFO: count ==2768 [2024-12-27 10:26:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:26:05 - End Time 2024-12-27 10:26:05 [2024-12-27 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113574', 'tblTempUsageDetail_20' ) start [2024-12-27 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113574', 'tblTempUsageDetail_20' ) end [2024-12-27 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113574', 'tblTempVendorCDR_20' ) start [2024-12-27 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113574', 'tblTempVendorCDR_20' ) end [2024-12-27 10:26:19] Production.INFO: ProcessCDR(1,14113574,1,1,2) [2024-12-27 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113574', 'tblTempUsageDetail_20' ) start [2024-12-27 10:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113574', 'tblTempUsageDetail_20' ) end [2024-12-27 10:26:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:26:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:26:23] Production.INFO: ==7553== Releasing lock... [2024-12-27 10:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:26:23] Production.INFO: 49 MB #Memory Used# [2024-12-27 10:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:27:04 [end_date_ymd] => 2024-12-27 10:27:04 [RateCDR] => 1 ) [2024-12-27 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-27 07:27:04' and `end` < '2024-12-27 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-27 10:27:32] Production.INFO: count ==2787 [2024-12-27 10:27:33] Production.ERROR: pbx CDR StartTime 2024-12-27 07:27:04 - End Time 2024-12-27 10:27:04 [2024-12-27 10:27:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113579', 'tblTempUsageDetail_20' ) start [2024-12-27 10:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113579', 'tblTempUsageDetail_20' ) end [2024-12-27 10:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113579', 'tblTempVendorCDR_20' ) start [2024-12-27 10:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113579', 'tblTempVendorCDR_20' ) end [2024-12-27 10:27:33] Production.INFO: ProcessCDR(1,14113579,1,1,2) [2024-12-27 10:27:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:27:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:27:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:27:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:27:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113579', 'tblTempUsageDetail_20' ) start [2024-12-27 10:27:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113579', 'tblTempUsageDetail_20' ) end [2024-12-27 10:27:38] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:27:38] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:27:38] Production.INFO: ==7627== Releasing lock... [2024-12-27 10:27:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:27:38] Production.INFO: 49.75 MB #Memory Used# [2024-12-27 10:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:28:04 [end_date_ymd] => 2024-12-27 10:28:04 [RateCDR] => 1 ) [2024-12-27 10: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-27 07:28:04' and `end` < '2024-12-27 10: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-27 10:28:21] Production.INFO: count ==2801 [2024-12-27 10:28:22] Production.ERROR: pbx CDR StartTime 2024-12-27 07:28:04 - End Time 2024-12-27 10:28:04 [2024-12-27 10:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113582', 'tblTempUsageDetail_20' ) start [2024-12-27 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113582', 'tblTempUsageDetail_20' ) end [2024-12-27 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113582', 'tblTempVendorCDR_20' ) start [2024-12-27 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113582', 'tblTempVendorCDR_20' ) end [2024-12-27 10:28:22] Production.INFO: ProcessCDR(1,14113582,1,1,2) [2024-12-27 10:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113582', 'tblTempUsageDetail_20' ) start [2024-12-27 10:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113582', 'tblTempUsageDetail_20' ) end [2024-12-27 10:28:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:28:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:28:27] Production.INFO: ==7711== Releasing lock... [2024-12-27 10:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:28:27] Production.INFO: 49.25 MB #Memory Used# [2024-12-27 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:29:05 [end_date_ymd] => 2024-12-27 10:29:05 [RateCDR] => 1 ) [2024-12-27 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-27 07:29:05' and `end` < '2024-12-27 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-27 10:29:22] Production.INFO: count ==2821 [2024-12-27 10:29:23] Production.ERROR: pbx CDR StartTime 2024-12-27 07:29:05 - End Time 2024-12-27 10:29:05 [2024-12-27 10:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113589', 'tblTempUsageDetail_20' ) start [2024-12-27 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113589', 'tblTempUsageDetail_20' ) end [2024-12-27 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113589', 'tblTempVendorCDR_20' ) start [2024-12-27 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113589', 'tblTempVendorCDR_20' ) end [2024-12-27 10:29:23] Production.INFO: ProcessCDR(1,14113589,1,1,2) [2024-12-27 10:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113589', 'tblTempUsageDetail_20' ) start [2024-12-27 10:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113589', 'tblTempUsageDetail_20' ) end [2024-12-27 10:29:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:29:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:29:28] Production.INFO: ==7792== Releasing lock... [2024-12-27 10:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:29:28] Production.INFO: 49.75 MB #Memory Used# [2024-12-27 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:30:05 [end_date_ymd] => 2024-12-27 10:30:05 [RateCDR] => 1 ) [2024-12-27 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-27 07:30:05' and `end` < '2024-12-27 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-27 10:30:21] Production.INFO: count ==2854 [2024-12-27 10:30:22] Production.ERROR: pbx CDR StartTime 2024-12-27 07:30:05 - End Time 2024-12-27 10:30:05 [2024-12-27 10:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113595', 'tblTempUsageDetail_20' ) start [2024-12-27 10:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113595', 'tblTempUsageDetail_20' ) end [2024-12-27 10:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113595', 'tblTempVendorCDR_20' ) start [2024-12-27 10:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113595', 'tblTempVendorCDR_20' ) end [2024-12-27 10:30:22] Production.INFO: ProcessCDR(1,14113595,1,1,2) [2024-12-27 10:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113595', 'tblTempUsageDetail_20' ) start [2024-12-27 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113595', 'tblTempUsageDetail_20' ) end [2024-12-27 10:30:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:30:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:30:27] Production.INFO: ==7869== Releasing lock... [2024-12-27 10:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:30:27] Production.INFO: 50 MB #Memory Used# [2024-12-27 10:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:31:04 [end_date_ymd] => 2024-12-27 10:31:04 [RateCDR] => 1 ) [2024-12-27 10: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-27 07:31:04' and `end` < '2024-12-27 10: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-27 10:31:18] Production.INFO: count ==2919 [2024-12-27 10:31:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:31:04 - End Time 2024-12-27 10:31:04 [2024-12-27 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113600', 'tblTempUsageDetail_20' ) start [2024-12-27 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113600', 'tblTempUsageDetail_20' ) end [2024-12-27 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113600', 'tblTempVendorCDR_20' ) start [2024-12-27 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113600', 'tblTempVendorCDR_20' ) end [2024-12-27 10:31:19] Production.INFO: ProcessCDR(1,14113600,1,1,2) [2024-12-27 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113600', 'tblTempUsageDetail_20' ) start [2024-12-27 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113600', 'tblTempUsageDetail_20' ) end [2024-12-27 10:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:31:24] Production.INFO: ==7947== Releasing lock... [2024-12-27 10:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:31:24] Production.INFO: 50.5 MB #Memory Used# [2024-12-27 10:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:32:04 [end_date_ymd] => 2024-12-27 10:32:04 [RateCDR] => 1 ) [2024-12-27 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-27 07:32:04' and `end` < '2024-12-27 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-27 10:32:17] Production.INFO: count ==2934 [2024-12-27 10:32:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:32:04 - End Time 2024-12-27 10:32:04 [2024-12-27 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113605', 'tblTempUsageDetail_20' ) start [2024-12-27 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113605', 'tblTempUsageDetail_20' ) end [2024-12-27 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113605', 'tblTempVendorCDR_20' ) start [2024-12-27 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113605', 'tblTempVendorCDR_20' ) end [2024-12-27 10:32:19] Production.INFO: ProcessCDR(1,14113605,1,1,2) [2024-12-27 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113605', 'tblTempUsageDetail_20' ) start [2024-12-27 10:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113605', 'tblTempUsageDetail_20' ) end [2024-12-27 10:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:32:23] Production.INFO: ==8027== Releasing lock... [2024-12-27 10:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:32:23] Production.INFO: 50.5 MB #Memory Used# [2024-12-27 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:33:05 [end_date_ymd] => 2024-12-27 10:33:05 [RateCDR] => 1 ) [2024-12-27 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:33:05' and `end` < '2024-12-27 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:33:18] Production.INFO: count ==2954 [2024-12-27 10:33:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:33:05 - End Time 2024-12-27 10:33:05 [2024-12-27 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113610', 'tblTempUsageDetail_20' ) start [2024-12-27 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113610', 'tblTempUsageDetail_20' ) end [2024-12-27 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113610', 'tblTempVendorCDR_20' ) start [2024-12-27 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113610', 'tblTempVendorCDR_20' ) end [2024-12-27 10:33:19] Production.INFO: ProcessCDR(1,14113610,1,1,2) [2024-12-27 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113610', 'tblTempUsageDetail_20' ) start [2024-12-27 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113610', 'tblTempUsageDetail_20' ) end [2024-12-27 10:33:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:33:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:33:24] Production.INFO: ==8102== Releasing lock... [2024-12-27 10:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:33:24] Production.INFO: 50.25 MB #Memory Used# [2024-12-27 10:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:34:04 [end_date_ymd] => 2024-12-27 10:34:04 [RateCDR] => 1 ) [2024-12-27 10: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-27 07:34:04' and `end` < '2024-12-27 10: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-27 10:34:17] Production.INFO: count ==2959 [2024-12-27 10:34:18] Production.ERROR: pbx CDR StartTime 2024-12-27 07:34:04 - End Time 2024-12-27 10:34:04 [2024-12-27 10:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113615', 'tblTempUsageDetail_20' ) start [2024-12-27 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113615', 'tblTempUsageDetail_20' ) end [2024-12-27 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113615', 'tblTempVendorCDR_20' ) start [2024-12-27 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113615', 'tblTempVendorCDR_20' ) end [2024-12-27 10:34:19] Production.INFO: ProcessCDR(1,14113615,1,1,2) [2024-12-27 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113615', 'tblTempUsageDetail_20' ) start [2024-12-27 10:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113615', 'tblTempUsageDetail_20' ) end [2024-12-27 10:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:34:23] Production.INFO: ==8182== Releasing lock... [2024-12-27 10:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:34:23] Production.INFO: 50.25 MB #Memory Used# [2024-12-27 10:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:35:04 [end_date_ymd] => 2024-12-27 10:35:04 [RateCDR] => 1 ) [2024-12-27 10: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-27 07:35:04' and `end` < '2024-12-27 10: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-27 10:35:21] Production.INFO: count ==2997 [2024-12-27 10:35:22] Production.ERROR: pbx CDR StartTime 2024-12-27 07:35:04 - End Time 2024-12-27 10:35:04 [2024-12-27 10:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113620', 'tblTempUsageDetail_20' ) start [2024-12-27 10:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113620', 'tblTempUsageDetail_20' ) end [2024-12-27 10:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113620', 'tblTempVendorCDR_20' ) start [2024-12-27 10:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113620', 'tblTempVendorCDR_20' ) end [2024-12-27 10:35:22] Production.INFO: ProcessCDR(1,14113620,1,1,2) [2024-12-27 10:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113620', 'tblTempUsageDetail_20' ) start [2024-12-27 10:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113620', 'tblTempUsageDetail_20' ) end [2024-12-27 10:35:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:35:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:35:27] Production.INFO: ==8255== Releasing lock... [2024-12-27 10:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:35:27] Production.INFO: 51.25 MB #Memory Used# [2024-12-27 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:36:05 [end_date_ymd] => 2024-12-27 10:36:05 [RateCDR] => 1 ) [2024-12-27 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:36:05' and `end` < '2024-12-27 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:36:18] Production.INFO: count ==3004 [2024-12-27 10:36:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:36:05 - End Time 2024-12-27 10:36:05 [2024-12-27 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113625', 'tblTempUsageDetail_20' ) start [2024-12-27 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113625', 'tblTempUsageDetail_20' ) end [2024-12-27 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113625', 'tblTempVendorCDR_20' ) start [2024-12-27 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113625', 'tblTempVendorCDR_20' ) end [2024-12-27 10:36:19] Production.INFO: ProcessCDR(1,14113625,1,1,2) [2024-12-27 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113625', 'tblTempUsageDetail_20' ) start [2024-12-27 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113625', 'tblTempUsageDetail_20' ) end [2024-12-27 10:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:36:24] Production.INFO: ==8336== Releasing lock... [2024-12-27 10:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:36:24] Production.INFO: 50.75 MB #Memory Used# [2024-12-27 10:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:37:04 [end_date_ymd] => 2024-12-27 10:37:04 [RateCDR] => 1 ) [2024-12-27 10: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-27 07:37:04' and `end` < '2024-12-27 10: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-27 10:37:17] Production.INFO: count ==3009 [2024-12-27 10:37:18] Production.ERROR: pbx CDR StartTime 2024-12-27 07:37:04 - End Time 2024-12-27 10:37:04 [2024-12-27 10:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113630', 'tblTempUsageDetail_20' ) start [2024-12-27 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113630', 'tblTempUsageDetail_20' ) end [2024-12-27 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113630', 'tblTempVendorCDR_20' ) start [2024-12-27 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113630', 'tblTempVendorCDR_20' ) end [2024-12-27 10:37:19] Production.INFO: ProcessCDR(1,14113630,1,1,2) [2024-12-27 10:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113630', 'tblTempUsageDetail_20' ) start [2024-12-27 10:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113630', 'tblTempUsageDetail_20' ) end [2024-12-27 10:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:37:23] Production.INFO: ==8407== Releasing lock... [2024-12-27 10:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:37:23] Production.INFO: 50.75 MB #Memory Used# [2024-12-27 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:38:05 [end_date_ymd] => 2024-12-27 10:38:05 [RateCDR] => 1 ) [2024-12-27 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:38:05' and `end` < '2024-12-27 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:38:17] Production.INFO: count ==3022 [2024-12-27 10:38:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:38:05 - End Time 2024-12-27 10:38:05 [2024-12-27 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113635', 'tblTempUsageDetail_20' ) start [2024-12-27 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113635', 'tblTempUsageDetail_20' ) end [2024-12-27 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113635', 'tblTempVendorCDR_20' ) start [2024-12-27 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113635', 'tblTempVendorCDR_20' ) end [2024-12-27 10:38:19] Production.INFO: ProcessCDR(1,14113635,1,1,2) [2024-12-27 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113635', 'tblTempUsageDetail_20' ) start [2024-12-27 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113635', 'tblTempUsageDetail_20' ) end [2024-12-27 10:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:38:23] Production.INFO: ==8488== Releasing lock... [2024-12-27 10:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:38:23] Production.INFO: 50.75 MB #Memory Used# [2024-12-27 10:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:39:04 [end_date_ymd] => 2024-12-27 10:39:04 [RateCDR] => 1 ) [2024-12-27 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-27 07:39:04' and `end` < '2024-12-27 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-27 10:39:19] Production.INFO: count ==3035 [2024-12-27 10:39:21] Production.ERROR: pbx CDR StartTime 2024-12-27 07:39:04 - End Time 2024-12-27 10:39:04 [2024-12-27 10:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113640', 'tblTempUsageDetail_20' ) start [2024-12-27 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113640', 'tblTempUsageDetail_20' ) end [2024-12-27 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113640', 'tblTempVendorCDR_20' ) start [2024-12-27 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113640', 'tblTempVendorCDR_20' ) end [2024-12-27 10:39:21] Production.INFO: ProcessCDR(1,14113640,1,1,2) [2024-12-27 10:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113640', 'tblTempUsageDetail_20' ) start [2024-12-27 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113640', 'tblTempUsageDetail_20' ) end [2024-12-27 10:39:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:39:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:39:25] Production.INFO: ==8562== Releasing lock... [2024-12-27 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:39:25] Production.INFO: 51.5 MB #Memory Used# [2024-12-27 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:40:05 [end_date_ymd] => 2024-12-27 10:40:05 [RateCDR] => 1 ) [2024-12-27 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:40:05' and `end` < '2024-12-27 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:40:26] Production.INFO: count ==3067 [2024-12-27 10:40:27] Production.ERROR: pbx CDR StartTime 2024-12-27 07:40:05 - End Time 2024-12-27 10:40:05 [2024-12-27 10:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113646', 'tblTempUsageDetail_20' ) start [2024-12-27 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113646', 'tblTempUsageDetail_20' ) end [2024-12-27 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113646', 'tblTempVendorCDR_20' ) start [2024-12-27 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113646', 'tblTempVendorCDR_20' ) end [2024-12-27 10:40:27] Production.INFO: ProcessCDR(1,14113646,1,1,2) [2024-12-27 10:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113646', 'tblTempUsageDetail_20' ) start [2024-12-27 10:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113646', 'tblTempUsageDetail_20' ) end [2024-12-27 10:40:32] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:40:32] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:40:32] Production.INFO: ==8641== Releasing lock... [2024-12-27 10:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:40:32] Production.INFO: 51.25 MB #Memory Used# [2024-12-27 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:41:05 [end_date_ymd] => 2024-12-27 10:41:05 [RateCDR] => 1 ) [2024-12-27 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:41:05' and `end` < '2024-12-27 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:41:18] Production.INFO: count ==3160 [2024-12-27 10:41:19] Production.ERROR: pbx CDR StartTime 2024-12-27 07:41:05 - End Time 2024-12-27 10:41:05 [2024-12-27 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113651', 'tblTempUsageDetail_20' ) start [2024-12-27 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113651', 'tblTempUsageDetail_20' ) end [2024-12-27 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113651', 'tblTempVendorCDR_20' ) start [2024-12-27 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113651', 'tblTempVendorCDR_20' ) end [2024-12-27 10:41:19] Production.INFO: ProcessCDR(1,14113651,1,1,2) [2024-12-27 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113651', 'tblTempUsageDetail_20' ) start [2024-12-27 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113651', 'tblTempUsageDetail_20' ) end [2024-12-27 10:41:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:41:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:41:24] Production.INFO: ==8759== Releasing lock... [2024-12-27 10:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:41:24] Production.INFO: 52.5 MB #Memory Used# [2024-12-27 10:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:42:04 [end_date_ymd] => 2024-12-27 10:42:04 [RateCDR] => 1 ) [2024-12-27 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-27 07:42:04' and `end` < '2024-12-27 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-27 10:42:22] Production.INFO: count ==3184 [2024-12-27 10:42:23] Production.ERROR: pbx CDR StartTime 2024-12-27 07:42:04 - End Time 2024-12-27 10:42:04 [2024-12-27 10:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113656', 'tblTempUsageDetail_20' ) start [2024-12-27 10:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113656', 'tblTempUsageDetail_20' ) end [2024-12-27 10:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113656', 'tblTempVendorCDR_20' ) start [2024-12-27 10:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113656', 'tblTempVendorCDR_20' ) end [2024-12-27 10:42:23] Production.INFO: ProcessCDR(1,14113656,1,1,2) [2024-12-27 10:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113656', 'tblTempUsageDetail_20' ) start [2024-12-27 10:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113656', 'tblTempUsageDetail_20' ) end [2024-12-27 10:42:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:42:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:42:28] Production.INFO: ==8836== Releasing lock... [2024-12-27 10:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:42:28] Production.INFO: 52.75 MB #Memory Used# [2024-12-27 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:43:05 [end_date_ymd] => 2024-12-27 10:43:05 [RateCDR] => 1 ) [2024-12-27 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:43:05' and `end` < '2024-12-27 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:43:24] Production.INFO: count ==3210 [2024-12-27 10:43:25] Production.ERROR: pbx CDR StartTime 2024-12-27 07:43:05 - End Time 2024-12-27 10:43:05 [2024-12-27 10:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113661', 'tblTempUsageDetail_20' ) start [2024-12-27 10:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113661', 'tblTempUsageDetail_20' ) end [2024-12-27 10:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113661', 'tblTempVendorCDR_20' ) start [2024-12-27 10:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113661', 'tblTempVendorCDR_20' ) end [2024-12-27 10:43:25] Production.INFO: ProcessCDR(1,14113661,1,1,2) [2024-12-27 10:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113661', 'tblTempUsageDetail_20' ) start [2024-12-27 10:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113661', 'tblTempUsageDetail_20' ) end [2024-12-27 10:43:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:43:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:43:30] Production.INFO: ==8927== Releasing lock... [2024-12-27 10:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:43:30] Production.INFO: 53 MB #Memory Used# [2024-12-27 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:44:05 [end_date_ymd] => 2024-12-27 10:44:05 [RateCDR] => 1 ) [2024-12-27 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:44:05' and `end` < '2024-12-27 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:44:20] Production.INFO: count ==3221 [2024-12-27 10:44:21] Production.ERROR: pbx CDR StartTime 2024-12-27 07:44:05 - End Time 2024-12-27 10:44:05 [2024-12-27 10:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113666', 'tblTempUsageDetail_20' ) start [2024-12-27 10:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113666', 'tblTempUsageDetail_20' ) end [2024-12-27 10:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113666', 'tblTempVendorCDR_20' ) start [2024-12-27 10:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113666', 'tblTempVendorCDR_20' ) end [2024-12-27 10:44:22] Production.INFO: ProcessCDR(1,14113666,1,1,2) [2024-12-27 10:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113666', 'tblTempUsageDetail_20' ) start [2024-12-27 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113666', 'tblTempUsageDetail_20' ) end [2024-12-27 10:44:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:44:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:44:26] Production.INFO: ==9003== Releasing lock... [2024-12-27 10:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:44:26] Production.INFO: 53 MB #Memory Used# [2024-12-27 10:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:45:04 [end_date_ymd] => 2024-12-27 10:45:04 [RateCDR] => 1 ) [2024-12-27 10:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:45:04' and `end` < '2024-12-27 10:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:45:17] Production.INFO: count ==3232 [2024-12-27 10:45:18] Production.ERROR: pbx CDR StartTime 2024-12-27 07:45:04 - End Time 2024-12-27 10:45:04 [2024-12-27 10:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113671', 'tblTempUsageDetail_20' ) start [2024-12-27 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113671', 'tblTempUsageDetail_20' ) end [2024-12-27 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113671', 'tblTempVendorCDR_20' ) start [2024-12-27 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113671', 'tblTempVendorCDR_20' ) end [2024-12-27 10:45:19] Production.INFO: ProcessCDR(1,14113671,1,1,2) [2024-12-27 10:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113671', 'tblTempUsageDetail_20' ) start [2024-12-27 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113671', 'tblTempUsageDetail_20' ) end [2024-12-27 10:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:45:23] Production.INFO: ==9081== Releasing lock... [2024-12-27 10:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:45:23] Production.INFO: 53 MB #Memory Used# [2024-12-27 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:46:05 [end_date_ymd] => 2024-12-27 10:46:05 [RateCDR] => 1 ) [2024-12-27 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:46:05' and `end` < '2024-12-27 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:46:21] Production.INFO: count ==3242 [2024-12-27 10:46:22] Production.ERROR: pbx CDR StartTime 2024-12-27 07:46:05 - End Time 2024-12-27 10:46:05 [2024-12-27 10:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113676', 'tblTempUsageDetail_20' ) start [2024-12-27 10:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113676', 'tblTempUsageDetail_20' ) end [2024-12-27 10:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113676', 'tblTempVendorCDR_20' ) start [2024-12-27 10:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113676', 'tblTempVendorCDR_20' ) end [2024-12-27 10:46:22] Production.INFO: ProcessCDR(1,14113676,1,1,2) [2024-12-27 10:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113676', 'tblTempUsageDetail_20' ) start [2024-12-27 10:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113676', 'tblTempUsageDetail_20' ) end [2024-12-27 10:46:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:46:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:46:27] Production.INFO: ==9161== Releasing lock... [2024-12-27 10:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:46:27] Production.INFO: 52.25 MB #Memory Used# [2024-12-27 10:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:47:04 [end_date_ymd] => 2024-12-27 10:47:04 [RateCDR] => 1 ) [2024-12-27 10:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:47:04' and `end` < '2024-12-27 10:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:47:27] Production.INFO: count ==3247 [2024-12-27 10:47:28] Production.ERROR: pbx CDR StartTime 2024-12-27 07:47:04 - End Time 2024-12-27 10:47:04 [2024-12-27 10:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113681', 'tblTempUsageDetail_20' ) start [2024-12-27 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113681', 'tblTempUsageDetail_20' ) end [2024-12-27 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113681', 'tblTempVendorCDR_20' ) start [2024-12-27 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113681', 'tblTempVendorCDR_20' ) end [2024-12-27 10:47:28] Production.INFO: ProcessCDR(1,14113681,1,1,2) [2024-12-27 10:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:47:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:47:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113681', 'tblTempUsageDetail_20' ) start [2024-12-27 10:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113681', 'tblTempUsageDetail_20' ) end [2024-12-27 10:47:33] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:47:33] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:47:33] Production.INFO: ==9234== Releasing lock... [2024-12-27 10:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:47:33] Production.INFO: 53.25 MB #Memory Used# [2024-12-27 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:48:05 [end_date_ymd] => 2024-12-27 10:48:05 [RateCDR] => 1 ) [2024-12-27 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:48:05' and `end` < '2024-12-27 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:48:29] Production.INFO: count ==3291 [2024-12-27 10:48:31] Production.ERROR: pbx CDR StartTime 2024-12-27 07:48:05 - End Time 2024-12-27 10:48:05 [2024-12-27 10:48:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113686', 'tblTempUsageDetail_20' ) start [2024-12-27 10:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113686', 'tblTempUsageDetail_20' ) end [2024-12-27 10:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113686', 'tblTempVendorCDR_20' ) start [2024-12-27 10:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113686', 'tblTempVendorCDR_20' ) end [2024-12-27 10:48:31] Production.INFO: ProcessCDR(1,14113686,1,1,2) [2024-12-27 10:48:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:48:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:48:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:48:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113686', 'tblTempUsageDetail_20' ) start [2024-12-27 10:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113686', 'tblTempUsageDetail_20' ) end [2024-12-27 10:48:35] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:48:35] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:48:35] Production.INFO: ==9315== Releasing lock... [2024-12-27 10:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:48:35] Production.INFO: 53.25 MB #Memory Used# [2024-12-27 10:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:49:04 [end_date_ymd] => 2024-12-27 10:49:04 [RateCDR] => 1 ) [2024-12-27 10:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:49:04' and `end` < '2024-12-27 10:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:49:22] Production.INFO: count ==3314 [2024-12-27 10:49:24] Production.ERROR: pbx CDR StartTime 2024-12-27 07:49:04 - End Time 2024-12-27 10:49:04 [2024-12-27 10:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113691', 'tblTempUsageDetail_20' ) start [2024-12-27 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113691', 'tblTempUsageDetail_20' ) end [2024-12-27 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113691', 'tblTempVendorCDR_20' ) start [2024-12-27 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113691', 'tblTempVendorCDR_20' ) end [2024-12-27 10:49:24] Production.INFO: ProcessCDR(1,14113691,1,1,2) [2024-12-27 10:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113691', 'tblTempUsageDetail_20' ) start [2024-12-27 10:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113691', 'tblTempUsageDetail_20' ) end [2024-12-27 10:49:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:49:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:49:29] Production.INFO: ==9391== Releasing lock... [2024-12-27 10:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:49:29] Production.INFO: 53.5 MB #Memory Used# [2024-12-27 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:50:05 [end_date_ymd] => 2024-12-27 10:50:05 [RateCDR] => 1 ) [2024-12-27 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-27 07:50:05' and `end` < '2024-12-27 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-27 10:50:18] Production.INFO: count ==3354 [2024-12-27 10:50:20] Production.ERROR: pbx CDR StartTime 2024-12-27 07:50:05 - End Time 2024-12-27 10:50:05 [2024-12-27 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113697', 'tblTempUsageDetail_20' ) start [2024-12-27 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113697', 'tblTempUsageDetail_20' ) end [2024-12-27 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113697', 'tblTempVendorCDR_20' ) start [2024-12-27 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113697', 'tblTempVendorCDR_20' ) end [2024-12-27 10:50:20] Production.INFO: ProcessCDR(1,14113697,1,1,2) [2024-12-27 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113697', 'tblTempUsageDetail_20' ) start [2024-12-27 10:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113697', 'tblTempUsageDetail_20' ) end [2024-12-27 10:50:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:50:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:50:24] Production.INFO: ==9465== Releasing lock... [2024-12-27 10:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:50:24] Production.INFO: 53 MB #Memory Used# [2024-12-27 10:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:51:04 [end_date_ymd] => 2024-12-27 10:51:04 [RateCDR] => 1 ) [2024-12-27 10:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:51:04' and `end` < '2024-12-27 10:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:51:19] Production.INFO: count ==3415 [2024-12-27 10:51:21] Production.ERROR: pbx CDR StartTime 2024-12-27 07:51:04 - End Time 2024-12-27 10:51:04 [2024-12-27 10:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113702', 'tblTempUsageDetail_20' ) start [2024-12-27 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113702', 'tblTempUsageDetail_20' ) end [2024-12-27 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113702', 'tblTempVendorCDR_20' ) start [2024-12-27 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113702', 'tblTempVendorCDR_20' ) end [2024-12-27 10:51:21] Production.INFO: ProcessCDR(1,14113702,1,1,2) [2024-12-27 10:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113702', 'tblTempUsageDetail_20' ) start [2024-12-27 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113702', 'tblTempUsageDetail_20' ) end [2024-12-27 10:51:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:51:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:51:25] Production.INFO: ==9540== Releasing lock... [2024-12-27 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:51:25] Production.INFO: 53.75 MB #Memory Used# [2024-12-27 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:52:05 [end_date_ymd] => 2024-12-27 10:52:05 [RateCDR] => 1 ) [2024-12-27 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:52:05' and `end` < '2024-12-27 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:52:24] Production.INFO: count ==3424 [2024-12-27 10:52:26] Production.ERROR: pbx CDR StartTime 2024-12-27 07:52:05 - End Time 2024-12-27 10:52:05 [2024-12-27 10:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113707', 'tblTempUsageDetail_20' ) start [2024-12-27 10:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113707', 'tblTempUsageDetail_20' ) end [2024-12-27 10:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113707', 'tblTempVendorCDR_20' ) start [2024-12-27 10:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113707', 'tblTempVendorCDR_20' ) end [2024-12-27 10:52:26] Production.INFO: ProcessCDR(1,14113707,1,1,2) [2024-12-27 10:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113707', 'tblTempUsageDetail_20' ) start [2024-12-27 10:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113707', 'tblTempUsageDetail_20' ) end [2024-12-27 10:52:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:52:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:52:30] Production.INFO: ==9612== Releasing lock... [2024-12-27 10:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:52:30] Production.INFO: 54 MB #Memory Used# [2024-12-27 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:53:05 [end_date_ymd] => 2024-12-27 10:53:05 [RateCDR] => 1 ) [2024-12-27 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:53:05' and `end` < '2024-12-27 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:53:21] Production.INFO: count ==3446 [2024-12-27 10:53:22] Production.ERROR: pbx CDR StartTime 2024-12-27 07:53:05 - End Time 2024-12-27 10:53:05 [2024-12-27 10:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113712', 'tblTempUsageDetail_20' ) start [2024-12-27 10:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113712', 'tblTempUsageDetail_20' ) end [2024-12-27 10:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113712', 'tblTempVendorCDR_20' ) start [2024-12-27 10:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113712', 'tblTempVendorCDR_20' ) end [2024-12-27 10:53:22] Production.INFO: ProcessCDR(1,14113712,1,1,2) [2024-12-27 10:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113712', 'tblTempUsageDetail_20' ) start [2024-12-27 10:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113712', 'tblTempUsageDetail_20' ) end [2024-12-27 10:53:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:53:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:53:27] Production.INFO: ==9687== Releasing lock... [2024-12-27 10:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:53:27] Production.INFO: 53.75 MB #Memory Used# [2024-12-27 10:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:54:04 [end_date_ymd] => 2024-12-27 10:54:04 [RateCDR] => 1 ) [2024-12-27 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-27 07:54:04' and `end` < '2024-12-27 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-27 10:54:20] Production.INFO: count ==3463 [2024-12-27 10:54:22] Production.ERROR: pbx CDR StartTime 2024-12-27 07:54:04 - End Time 2024-12-27 10:54:04 [2024-12-27 10:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113717', 'tblTempUsageDetail_20' ) start [2024-12-27 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113717', 'tblTempUsageDetail_20' ) end [2024-12-27 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113717', 'tblTempVendorCDR_20' ) start [2024-12-27 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113717', 'tblTempVendorCDR_20' ) end [2024-12-27 10:54:22] Production.INFO: ProcessCDR(1,14113717,1,1,2) [2024-12-27 10:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113717', 'tblTempUsageDetail_20' ) start [2024-12-27 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113717', 'tblTempUsageDetail_20' ) end [2024-12-27 10:54:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:54:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:54:26] Production.INFO: ==9764== Releasing lock... [2024-12-27 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:54:26] Production.INFO: 53.75 MB #Memory Used# [2024-12-27 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:55:05 [end_date_ymd] => 2024-12-27 10:55:05 [RateCDR] => 1 ) [2024-12-27 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:55:05' and `end` < '2024-12-27 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:55:24] Production.INFO: count ==3483 [2024-12-27 10:55:25] Production.ERROR: pbx CDR StartTime 2024-12-27 07:55:05 - End Time 2024-12-27 10:55:05 [2024-12-27 10:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113722', 'tblTempUsageDetail_20' ) start [2024-12-27 10:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113722', 'tblTempUsageDetail_20' ) end [2024-12-27 10:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113722', 'tblTempVendorCDR_20' ) start [2024-12-27 10:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113722', 'tblTempVendorCDR_20' ) end [2024-12-27 10:55:26] Production.INFO: ProcessCDR(1,14113722,1,1,2) [2024-12-27 10:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113722', 'tblTempUsageDetail_20' ) start [2024-12-27 10:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113722', 'tblTempUsageDetail_20' ) end [2024-12-27 10:55:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:55:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:55:30] Production.INFO: ==9834== Releasing lock... [2024-12-27 10:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:55:30] Production.INFO: 54.5 MB #Memory Used# [2024-12-27 10:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:56:04 [end_date_ymd] => 2024-12-27 10:56:04 [RateCDR] => 1 ) [2024-12-27 10: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-27 07:56:04' and `end` < '2024-12-27 10: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-27 10:56:20] Production.INFO: count ==3497 [2024-12-27 10:56:22] Production.ERROR: pbx CDR StartTime 2024-12-27 07:56:04 - End Time 2024-12-27 10:56:04 [2024-12-27 10:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113727', 'tblTempUsageDetail_20' ) start [2024-12-27 10:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113727', 'tblTempUsageDetail_20' ) end [2024-12-27 10:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113727', 'tblTempVendorCDR_20' ) start [2024-12-27 10:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113727', 'tblTempVendorCDR_20' ) end [2024-12-27 10:56:22] Production.INFO: ProcessCDR(1,14113727,1,1,2) [2024-12-27 10:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113727', 'tblTempUsageDetail_20' ) start [2024-12-27 10:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113727', 'tblTempUsageDetail_20' ) end [2024-12-27 10:56:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:56:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:56:27] Production.INFO: ==9906== Releasing lock... [2024-12-27 10:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:56:27] Production.INFO: 54 MB #Memory Used# [2024-12-27 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:57:05 [end_date_ymd] => 2024-12-27 10:57:05 [RateCDR] => 1 ) [2024-12-27 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:57:05' and `end` < '2024-12-27 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:57:20] Production.INFO: count ==3500 [2024-12-27 10:57:21] Production.ERROR: pbx CDR StartTime 2024-12-27 07:57:05 - End Time 2024-12-27 10:57:05 [2024-12-27 10:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113732', 'tblTempUsageDetail_20' ) start [2024-12-27 10:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113732', 'tblTempUsageDetail_20' ) end [2024-12-27 10:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113732', 'tblTempVendorCDR_20' ) start [2024-12-27 10:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113732', 'tblTempVendorCDR_20' ) end [2024-12-27 10:57:22] Production.INFO: ProcessCDR(1,14113732,1,1,2) [2024-12-27 10:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113732', 'tblTempUsageDetail_20' ) start [2024-12-27 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113732', 'tblTempUsageDetail_20' ) end [2024-12-27 10:57:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:57:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:57:26] Production.INFO: ==10016== Releasing lock... [2024-12-27 10:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:57:26] Production.INFO: 54.25 MB #Memory Used# [2024-12-27 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:58:05 [end_date_ymd] => 2024-12-27 10:58:05 [RateCDR] => 1 ) [2024-12-27 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:58:05' and `end` < '2024-12-27 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:58:18] Production.INFO: count ==3519 [2024-12-27 10:58:20] Production.ERROR: pbx CDR StartTime 2024-12-27 07:58:05 - End Time 2024-12-27 10:58:05 [2024-12-27 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113737', 'tblTempUsageDetail_20' ) start [2024-12-27 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113737', 'tblTempUsageDetail_20' ) end [2024-12-27 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113737', 'tblTempVendorCDR_20' ) start [2024-12-27 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113737', 'tblTempVendorCDR_20' ) end [2024-12-27 10:58:20] Production.INFO: ProcessCDR(1,14113737,1,1,2) [2024-12-27 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113737', 'tblTempUsageDetail_20' ) start [2024-12-27 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113737', 'tblTempUsageDetail_20' ) end [2024-12-27 10:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:58:24] Production.INFO: ==10089== Releasing lock... [2024-12-27 10:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:58:24] Production.INFO: 55 MB #Memory Used# [2024-12-27 10:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 07:59:04 [end_date_ymd] => 2024-12-27 10:59:04 [RateCDR] => 1 ) [2024-12-27 10:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 07:59:04' and `end` < '2024-12-27 10:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 10:59:21] Production.INFO: count ==3546 [2024-12-27 10:59:22] Production.ERROR: pbx CDR StartTime 2024-12-27 07:59:04 - End Time 2024-12-27 10:59:04 [2024-12-27 10:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113742', 'tblTempUsageDetail_20' ) start [2024-12-27 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113742', 'tblTempUsageDetail_20' ) end [2024-12-27 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113742', 'tblTempVendorCDR_20' ) start [2024-12-27 10:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113742', 'tblTempVendorCDR_20' ) end [2024-12-27 10:59:22] Production.INFO: ProcessCDR(1,14113742,1,1,2) [2024-12-27 10:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 10:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 10:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113742', 'tblTempUsageDetail_20' ) start [2024-12-27 10:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113742', 'tblTempUsageDetail_20' ) end [2024-12-27 10:59:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 10:59:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 10:59:27] Production.INFO: ==10160== Releasing lock... [2024-12-27 10:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 10:59:27] Production.INFO: 55 MB #Memory Used# [2024-12-27 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:00:06 [end_date_ymd] => 2024-12-27 11:00:06 [RateCDR] => 1 ) [2024-12-27 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:00:06' and `end` < '2024-12-27 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:00:30] Production.INFO: count ==3576 [2024-12-27 11:00:31] Production.ERROR: pbx CDR StartTime 2024-12-27 08:00:06 - End Time 2024-12-27 11:00:06 [2024-12-27 11:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113748', 'tblTempUsageDetail_20' ) start [2024-12-27 11:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113748', 'tblTempUsageDetail_20' ) end [2024-12-27 11:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113748', 'tblTempVendorCDR_20' ) start [2024-12-27 11:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113748', 'tblTempVendorCDR_20' ) end [2024-12-27 11:00:31] Production.INFO: ProcessCDR(1,14113748,1,1,2) [2024-12-27 11:00:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113748', 'tblTempUsageDetail_20' ) start [2024-12-27 11:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113748', 'tblTempUsageDetail_20' ) end [2024-12-27 11:00:36] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:00:36] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:00:36] Production.INFO: ==10234== Releasing lock... [2024-12-27 11:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:00:36] Production.INFO: 54.75 MB #Memory Used# [2024-12-27 11:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:01:04 [end_date_ymd] => 2024-12-27 11:01:04 [RateCDR] => 1 ) [2024-12-27 11:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:01:04' and `end` < '2024-12-27 11:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:01:24] Production.INFO: count ==3648 [2024-12-27 11:01:25] Production.ERROR: pbx CDR StartTime 2024-12-27 08:01:04 - End Time 2024-12-27 11:01:04 [2024-12-27 11:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113753', 'tblTempUsageDetail_20' ) start [2024-12-27 11:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113753', 'tblTempUsageDetail_20' ) end [2024-12-27 11:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113753', 'tblTempVendorCDR_20' ) start [2024-12-27 11:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113753', 'tblTempVendorCDR_20' ) end [2024-12-27 11:01:25] Production.INFO: ProcessCDR(1,14113753,1,1,2) [2024-12-27 11:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113753', 'tblTempUsageDetail_20' ) start [2024-12-27 11:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113753', 'tblTempUsageDetail_20' ) end [2024-12-27 11:01:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:01:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:01:30] Production.INFO: ==10396== Releasing lock... [2024-12-27 11:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:01:30] Production.INFO: 55.25 MB #Memory Used# [2024-12-27 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:02:05 [end_date_ymd] => 2024-12-27 11:02:05 [RateCDR] => 1 ) [2024-12-27 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:02:05' and `end` < '2024-12-27 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:02:23] Production.INFO: count ==3655 [2024-12-27 11:02:24] Production.ERROR: pbx CDR StartTime 2024-12-27 08:02:05 - End Time 2024-12-27 11:02:05 [2024-12-27 11:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113758', 'tblTempUsageDetail_20' ) start [2024-12-27 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113758', 'tblTempUsageDetail_20' ) end [2024-12-27 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113758', 'tblTempVendorCDR_20' ) start [2024-12-27 11:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113758', 'tblTempVendorCDR_20' ) end [2024-12-27 11:02:24] Production.INFO: ProcessCDR(1,14113758,1,1,2) [2024-12-27 11:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113758', 'tblTempUsageDetail_20' ) start [2024-12-27 11:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113758', 'tblTempUsageDetail_20' ) end [2024-12-27 11:02:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:02:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:02:29] Production.INFO: ==10470== Releasing lock... [2024-12-27 11:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:02:29] Production.INFO: 56 MB #Memory Used# [2024-12-27 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:03:05 [end_date_ymd] => 2024-12-27 11:03:05 [RateCDR] => 1 ) [2024-12-27 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:03:05' and `end` < '2024-12-27 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:03:18] Production.INFO: count ==3692 [2024-12-27 11:03:20] Production.ERROR: pbx CDR StartTime 2024-12-27 08:03:05 - End Time 2024-12-27 11:03:05 [2024-12-27 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113763', 'tblTempUsageDetail_20' ) start [2024-12-27 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113763', 'tblTempUsageDetail_20' ) end [2024-12-27 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113763', 'tblTempVendorCDR_20' ) start [2024-12-27 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113763', 'tblTempVendorCDR_20' ) end [2024-12-27 11:03:20] Production.INFO: ProcessCDR(1,14113763,1,1,2) [2024-12-27 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113763', 'tblTempUsageDetail_20' ) start [2024-12-27 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113763', 'tblTempUsageDetail_20' ) end [2024-12-27 11:03:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:03:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:03:24] Production.INFO: ==10541== Releasing lock... [2024-12-27 11:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:03:24] Production.INFO: 55.5 MB #Memory Used# [2024-12-27 11:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:04:04 [end_date_ymd] => 2024-12-27 11:04:04 [RateCDR] => 1 ) [2024-12-27 11:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:04:04' and `end` < '2024-12-27 11:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:04:17] Production.INFO: count ==3683 [2024-12-27 11:04:19] Production.ERROR: pbx CDR StartTime 2024-12-27 08:04:04 - End Time 2024-12-27 11:04:04 [2024-12-27 11:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113768', 'tblTempUsageDetail_20' ) start [2024-12-27 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113768', 'tblTempUsageDetail_20' ) end [2024-12-27 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113768', 'tblTempVendorCDR_20' ) start [2024-12-27 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113768', 'tblTempVendorCDR_20' ) end [2024-12-27 11:04:19] Production.INFO: ProcessCDR(1,14113768,1,1,2) [2024-12-27 11:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113768', 'tblTempUsageDetail_20' ) start [2024-12-27 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113768', 'tblTempUsageDetail_20' ) end [2024-12-27 11:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:04:23] Production.INFO: ==10613== Releasing lock... [2024-12-27 11:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:04:23] Production.INFO: 55.75 MB #Memory Used# [2024-12-27 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:05:05 [end_date_ymd] => 2024-12-27 11:05:05 [RateCDR] => 1 ) [2024-12-27 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:05:05' and `end` < '2024-12-27 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:05:19] Production.INFO: count ==3686 [2024-12-27 11:05:21] Production.ERROR: pbx CDR StartTime 2024-12-27 08:05:05 - End Time 2024-12-27 11:05:05 [2024-12-27 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113773', 'tblTempUsageDetail_20' ) start [2024-12-27 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113773', 'tblTempUsageDetail_20' ) end [2024-12-27 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113773', 'tblTempVendorCDR_20' ) start [2024-12-27 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113773', 'tblTempVendorCDR_20' ) end [2024-12-27 11:05:21] Production.INFO: ProcessCDR(1,14113773,1,1,2) [2024-12-27 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113773', 'tblTempUsageDetail_20' ) start [2024-12-27 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113773', 'tblTempUsageDetail_20' ) end [2024-12-27 11:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:05:25] Production.INFO: ==10764== Releasing lock... [2024-12-27 11:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:05:25] Production.INFO: 55.5 MB #Memory Used# [2024-12-27 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:06:05 [end_date_ymd] => 2024-12-27 11:06:05 [RateCDR] => 1 ) [2024-12-27 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:06:05' and `end` < '2024-12-27 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:06:21] Production.INFO: count ==3680 [2024-12-27 11:06:22] Production.ERROR: pbx CDR StartTime 2024-12-27 08:06:05 - End Time 2024-12-27 11:06:05 [2024-12-27 11:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113778', 'tblTempUsageDetail_20' ) start [2024-12-27 11:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113778', 'tblTempUsageDetail_20' ) end [2024-12-27 11:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113778', 'tblTempVendorCDR_20' ) start [2024-12-27 11:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113778', 'tblTempVendorCDR_20' ) end [2024-12-27 11:06:23] Production.INFO: ProcessCDR(1,14113778,1,1,2) [2024-12-27 11:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113778', 'tblTempUsageDetail_20' ) start [2024-12-27 11:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113778', 'tblTempUsageDetail_20' ) end [2024-12-27 11:06:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:06:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:06:27] Production.INFO: ==10835== Releasing lock... [2024-12-27 11:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:06:27] Production.INFO: 55.5 MB #Memory Used# [2024-12-27 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:07:05 [end_date_ymd] => 2024-12-27 11:07:05 [RateCDR] => 1 ) [2024-12-27 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:07:05' and `end` < '2024-12-27 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:07:23] Production.INFO: count ==3684 [2024-12-27 11:07:25] Production.ERROR: pbx CDR StartTime 2024-12-27 08:07:05 - End Time 2024-12-27 11:07:05 [2024-12-27 11:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113783', 'tblTempUsageDetail_20' ) start [2024-12-27 11:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113783', 'tblTempUsageDetail_20' ) end [2024-12-27 11:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113783', 'tblTempVendorCDR_20' ) start [2024-12-27 11:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113783', 'tblTempVendorCDR_20' ) end [2024-12-27 11:07:25] Production.INFO: ProcessCDR(1,14113783,1,1,2) [2024-12-27 11:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113783', 'tblTempUsageDetail_20' ) start [2024-12-27 11:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113783', 'tblTempUsageDetail_20' ) end [2024-12-27 11:07:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:07:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:07:29] Production.INFO: ==10905== Releasing lock... [2024-12-27 11:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:07:29] Production.INFO: 56 MB #Memory Used# [2024-12-27 11:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:08:04 [end_date_ymd] => 2024-12-27 11:08:04 [RateCDR] => 1 ) [2024-12-27 11:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:08:04' and `end` < '2024-12-27 11:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:08:21] Production.INFO: count ==3675 [2024-12-27 11:08:22] Production.ERROR: pbx CDR StartTime 2024-12-27 08:08:04 - End Time 2024-12-27 11:08:04 [2024-12-27 11:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113788', 'tblTempUsageDetail_20' ) start [2024-12-27 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113788', 'tblTempUsageDetail_20' ) end [2024-12-27 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113788', 'tblTempVendorCDR_20' ) start [2024-12-27 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113788', 'tblTempVendorCDR_20' ) end [2024-12-27 11:08:22] Production.INFO: ProcessCDR(1,14113788,1,1,2) [2024-12-27 11:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113788', 'tblTempUsageDetail_20' ) start [2024-12-27 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113788', 'tblTempUsageDetail_20' ) end [2024-12-27 11:08:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:08:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:08:27] Production.INFO: ==11052== Releasing lock... [2024-12-27 11:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:08:27] Production.INFO: 55.5 MB #Memory Used# [2024-12-27 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:09:05 [end_date_ymd] => 2024-12-27 11:09:05 [RateCDR] => 1 ) [2024-12-27 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-27 08:09:05' and `end` < '2024-12-27 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-27 11:09:19] Production.INFO: count ==3671 [2024-12-27 11:09:21] Production.ERROR: pbx CDR StartTime 2024-12-27 08:09:05 - End Time 2024-12-27 11:09:05 [2024-12-27 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113793', 'tblTempUsageDetail_20' ) start [2024-12-27 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113793', 'tblTempUsageDetail_20' ) end [2024-12-27 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113793', 'tblTempVendorCDR_20' ) start [2024-12-27 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113793', 'tblTempVendorCDR_20' ) end [2024-12-27 11:09:21] Production.INFO: ProcessCDR(1,14113793,1,1,2) [2024-12-27 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113793', 'tblTempUsageDetail_20' ) start [2024-12-27 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113793', 'tblTempUsageDetail_20' ) end [2024-12-27 11:09:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:09:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:09:26] Production.INFO: ==11125== Releasing lock... [2024-12-27 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:09:26] Production.INFO: 55.5 MB #Memory Used# [2024-12-27 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:10:05 [end_date_ymd] => 2024-12-27 11:10:05 [RateCDR] => 1 ) [2024-12-27 11:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:10:05' and `end` < '2024-12-27 11:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:10:20] Production.INFO: count ==3679 [2024-12-27 11:10:21] Production.ERROR: pbx CDR StartTime 2024-12-27 08:10:05 - End Time 2024-12-27 11:10:05 [2024-12-27 11:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113799', 'tblTempUsageDetail_20' ) start [2024-12-27 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113799', 'tblTempUsageDetail_20' ) end [2024-12-27 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113799', 'tblTempVendorCDR_20' ) start [2024-12-27 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113799', 'tblTempVendorCDR_20' ) end [2024-12-27 11:10:21] Production.INFO: ProcessCDR(1,14113799,1,1,2) [2024-12-27 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113799', 'tblTempUsageDetail_20' ) start [2024-12-27 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113799', 'tblTempUsageDetail_20' ) end [2024-12-27 11:10:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:10:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:10:26] Production.INFO: ==11198== Releasing lock... [2024-12-27 11:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:10:26] Production.INFO: 55.75 MB #Memory Used# [2024-12-27 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:11:05 [end_date_ymd] => 2024-12-27 11:11:05 [RateCDR] => 1 ) [2024-12-27 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-27 08:11:05' and `end` < '2024-12-27 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-27 11:11:23] Production.INFO: count ==3735 [2024-12-27 11:11:24] Production.ERROR: pbx CDR StartTime 2024-12-27 08:11:05 - End Time 2024-12-27 11:11:05 [2024-12-27 11:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113804', 'tblTempUsageDetail_20' ) start [2024-12-27 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113804', 'tblTempUsageDetail_20' ) end [2024-12-27 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113804', 'tblTempVendorCDR_20' ) start [2024-12-27 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113804', 'tblTempVendorCDR_20' ) end [2024-12-27 11:11:25] Production.INFO: ProcessCDR(1,14113804,1,1,2) [2024-12-27 11:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113804', 'tblTempUsageDetail_20' ) start [2024-12-27 11:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113804', 'tblTempUsageDetail_20' ) end [2024-12-27 11:11:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:11:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:11:29] Production.INFO: ==11272== Releasing lock... [2024-12-27 11:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:11:29] Production.INFO: 56 MB #Memory Used# [2024-12-27 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:12:05 [end_date_ymd] => 2024-12-27 11:12:05 [RateCDR] => 1 ) [2024-12-27 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:12:05' and `end` < '2024-12-27 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:12:18] Production.INFO: count ==3734 [2024-12-27 11:12:20] Production.ERROR: pbx CDR StartTime 2024-12-27 08:12:05 - End Time 2024-12-27 11:12:05 [2024-12-27 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113809', 'tblTempUsageDetail_20' ) start [2024-12-27 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113809', 'tblTempUsageDetail_20' ) end [2024-12-27 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113809', 'tblTempVendorCDR_20' ) start [2024-12-27 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113809', 'tblTempVendorCDR_20' ) end [2024-12-27 11:12:20] Production.INFO: ProcessCDR(1,14113809,1,1,2) [2024-12-27 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113809', 'tblTempUsageDetail_20' ) start [2024-12-27 11:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113809', 'tblTempUsageDetail_20' ) end [2024-12-27 11:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:12:24] Production.INFO: ==11459== Releasing lock... [2024-12-27 11:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:12:24] Production.INFO: 56 MB #Memory Used# [2024-12-27 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:13:05 [end_date_ymd] => 2024-12-27 11:13:05 [RateCDR] => 1 ) [2024-12-27 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:13:05' and `end` < '2024-12-27 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:13:18] Production.INFO: count ==3704 [2024-12-27 11:13:20] Production.ERROR: pbx CDR StartTime 2024-12-27 08:13:05 - End Time 2024-12-27 11:13:05 [2024-12-27 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113814', 'tblTempUsageDetail_20' ) start [2024-12-27 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113814', 'tblTempUsageDetail_20' ) end [2024-12-27 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113814', 'tblTempVendorCDR_20' ) start [2024-12-27 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113814', 'tblTempVendorCDR_20' ) end [2024-12-27 11:13:20] Production.INFO: ProcessCDR(1,14113814,1,1,2) [2024-12-27 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113814', 'tblTempUsageDetail_20' ) start [2024-12-27 11:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113814', 'tblTempUsageDetail_20' ) end [2024-12-27 11:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:13:24] Production.INFO: ==11533== Releasing lock... [2024-12-27 11:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:13:24] Production.INFO: 56 MB #Memory Used# [2024-12-27 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:14:05 [end_date_ymd] => 2024-12-27 11:14:05 [RateCDR] => 1 ) [2024-12-27 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:14:05' and `end` < '2024-12-27 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:14:19] Production.INFO: count ==3701 [2024-12-27 11:14:20] Production.ERROR: pbx CDR StartTime 2024-12-27 08:14:05 - End Time 2024-12-27 11:14:05 [2024-12-27 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113819', 'tblTempUsageDetail_20' ) start [2024-12-27 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113819', 'tblTempUsageDetail_20' ) end [2024-12-27 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113819', 'tblTempVendorCDR_20' ) start [2024-12-27 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113819', 'tblTempVendorCDR_20' ) end [2024-12-27 11:14:21] Production.INFO: ProcessCDR(1,14113819,1,1,2) [2024-12-27 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113819', 'tblTempUsageDetail_20' ) start [2024-12-27 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113819', 'tblTempUsageDetail_20' ) end [2024-12-27 11:14:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:14:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:14:25] Production.INFO: ==11609== Releasing lock... [2024-12-27 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:14:25] Production.INFO: 55.75 MB #Memory Used# [2024-12-27 11:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:15:04 [end_date_ymd] => 2024-12-27 11:15:04 [RateCDR] => 1 ) [2024-12-27 11:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:15:04' and `end` < '2024-12-27 11:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:15:20] Production.INFO: count ==3694 [2024-12-27 11:15:21] Production.ERROR: pbx CDR StartTime 2024-12-27 08:15:04 - End Time 2024-12-27 11:15:04 [2024-12-27 11:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113824', 'tblTempUsageDetail_20' ) start [2024-12-27 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113824', 'tblTempUsageDetail_20' ) end [2024-12-27 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113824', 'tblTempVendorCDR_20' ) start [2024-12-27 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113824', 'tblTempVendorCDR_20' ) end [2024-12-27 11:15:21] Production.INFO: ProcessCDR(1,14113824,1,1,2) [2024-12-27 11:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113824', 'tblTempUsageDetail_20' ) start [2024-12-27 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113824', 'tblTempUsageDetail_20' ) end [2024-12-27 11:15:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:15:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:15:26] Production.INFO: ==11758== Releasing lock... [2024-12-27 11:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:15:26] Production.INFO: 55.75 MB #Memory Used# [2024-12-27 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:16:05 [end_date_ymd] => 2024-12-27 11:16:05 [RateCDR] => 1 ) [2024-12-27 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:16:05' and `end` < '2024-12-27 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:16:18] Production.INFO: count ==3688 [2024-12-27 11:16:20] Production.ERROR: pbx CDR StartTime 2024-12-27 08:16:05 - End Time 2024-12-27 11:16:05 [2024-12-27 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113829', 'tblTempUsageDetail_20' ) start [2024-12-27 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113829', 'tblTempUsageDetail_20' ) end [2024-12-27 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113829', 'tblTempVendorCDR_20' ) start [2024-12-27 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113829', 'tblTempVendorCDR_20' ) end [2024-12-27 11:16:20] Production.INFO: ProcessCDR(1,14113829,1,1,2) [2024-12-27 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113829', 'tblTempUsageDetail_20' ) start [2024-12-27 11:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113829', 'tblTempUsageDetail_20' ) end [2024-12-27 11:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:16:23] Production.INFO: ==11830== Releasing lock... [2024-12-27 11:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:16:23] Production.INFO: 55.5 MB #Memory Used# [2024-12-27 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:17:05 [end_date_ymd] => 2024-12-27 11:17:05 [RateCDR] => 1 ) [2024-12-27 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:17:05' and `end` < '2024-12-27 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:17:21] Production.INFO: count ==3697 [2024-12-27 11:17:22] Production.ERROR: pbx CDR StartTime 2024-12-27 08:17:05 - End Time 2024-12-27 11:17:05 [2024-12-27 11:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113834', 'tblTempUsageDetail_20' ) start [2024-12-27 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113834', 'tblTempUsageDetail_20' ) end [2024-12-27 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113834', 'tblTempVendorCDR_20' ) start [2024-12-27 11:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113834', 'tblTempVendorCDR_20' ) end [2024-12-27 11:17:22] Production.INFO: ProcessCDR(1,14113834,1,1,2) [2024-12-27 11:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113834', 'tblTempUsageDetail_20' ) start [2024-12-27 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113834', 'tblTempUsageDetail_20' ) end [2024-12-27 11:17:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:17:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:17:28] Production.INFO: ==11902== Releasing lock... [2024-12-27 11:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:17:28] Production.INFO: 55.5 MB #Memory Used# [2024-12-27 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:18:05 [end_date_ymd] => 2024-12-27 11:18:05 [RateCDR] => 1 ) [2024-12-27 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:18:05' and `end` < '2024-12-27 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:18:21] Production.INFO: count ==3694 [2024-12-27 11:18:23] Production.ERROR: pbx CDR StartTime 2024-12-27 08:18:05 - End Time 2024-12-27 11:18:05 [2024-12-27 11:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113839', 'tblTempUsageDetail_20' ) start [2024-12-27 11:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113839', 'tblTempUsageDetail_20' ) end [2024-12-27 11:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113839', 'tblTempVendorCDR_20' ) start [2024-12-27 11:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113839', 'tblTempVendorCDR_20' ) end [2024-12-27 11:18:23] Production.INFO: ProcessCDR(1,14113839,1,1,2) [2024-12-27 11:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113839', 'tblTempUsageDetail_20' ) start [2024-12-27 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113839', 'tblTempUsageDetail_20' ) end [2024-12-27 11:18:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:18:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:18:28] Production.INFO: ==11972== Releasing lock... [2024-12-27 11:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:18:28] Production.INFO: 55.75 MB #Memory Used# [2024-12-27 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:19:05 [end_date_ymd] => 2024-12-27 11:19:05 [RateCDR] => 1 ) [2024-12-27 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:19:05' and `end` < '2024-12-27 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:19:18] Production.INFO: count ==3700 [2024-12-27 11:19:20] Production.ERROR: pbx CDR StartTime 2024-12-27 08:19:05 - End Time 2024-12-27 11:19:05 [2024-12-27 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113844', 'tblTempUsageDetail_20' ) start [2024-12-27 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113844', 'tblTempUsageDetail_20' ) end [2024-12-27 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113844', 'tblTempVendorCDR_20' ) start [2024-12-27 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113844', 'tblTempVendorCDR_20' ) end [2024-12-27 11:19:20] Production.INFO: ProcessCDR(1,14113844,1,1,2) [2024-12-27 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113844', 'tblTempUsageDetail_20' ) start [2024-12-27 11:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113844', 'tblTempUsageDetail_20' ) end [2024-12-27 11:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:19:24] Production.INFO: ==12043== Releasing lock... [2024-12-27 11:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:19:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-27 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:20:05 [end_date_ymd] => 2024-12-27 11:20:05 [RateCDR] => 1 ) [2024-12-27 11:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:20:05' and `end` < '2024-12-27 11:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:20:19] Production.INFO: count ==3703 [2024-12-27 11:20:20] Production.ERROR: pbx CDR StartTime 2024-12-27 08:20:05 - End Time 2024-12-27 11:20:05 [2024-12-27 11:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113849', 'tblTempUsageDetail_20' ) start [2024-12-27 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113849', 'tblTempUsageDetail_20' ) end [2024-12-27 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113849', 'tblTempVendorCDR_20' ) start [2024-12-27 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113849', 'tblTempVendorCDR_20' ) end [2024-12-27 11:20:21] Production.INFO: ProcessCDR(1,14113849,1,1,2) [2024-12-27 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113849', 'tblTempUsageDetail_20' ) start [2024-12-27 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113849', 'tblTempUsageDetail_20' ) end [2024-12-27 11:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:20:25] Production.INFO: ==12118== Releasing lock... [2024-12-27 11:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:20:25] Production.INFO: 55.75 MB #Memory Used# [2024-12-27 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:21:05 [end_date_ymd] => 2024-12-27 11:21:05 [RateCDR] => 1 ) [2024-12-27 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:21:05' and `end` < '2024-12-27 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:21:23] Production.INFO: count ==3729 [2024-12-27 11:21:24] Production.ERROR: pbx CDR StartTime 2024-12-27 08:21:05 - End Time 2024-12-27 11:21:05 [2024-12-27 11:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113855', 'tblTempUsageDetail_20' ) start [2024-12-27 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113855', 'tblTempUsageDetail_20' ) end [2024-12-27 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113855', 'tblTempVendorCDR_20' ) start [2024-12-27 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113855', 'tblTempVendorCDR_20' ) end [2024-12-27 11:21:25] Production.INFO: ProcessCDR(1,14113855,1,1,2) [2024-12-27 11:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113855', 'tblTempUsageDetail_20' ) start [2024-12-27 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113855', 'tblTempUsageDetail_20' ) end [2024-12-27 11:21:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:21:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:21:29] Production.INFO: ==12191== Releasing lock... [2024-12-27 11:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:21:29] Production.INFO: 56 MB #Memory Used# [2024-12-27 11:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:22:04 [end_date_ymd] => 2024-12-27 11:22:04 [RateCDR] => 1 ) [2024-12-27 11: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-27 08:22:04' and `end` < '2024-12-27 11: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-27 11:22:17] Production.INFO: count ==3727 [2024-12-27 11:22:19] Production.ERROR: pbx CDR StartTime 2024-12-27 08:22:04 - End Time 2024-12-27 11:22:04 [2024-12-27 11:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113860', 'tblTempUsageDetail_20' ) start [2024-12-27 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113860', 'tblTempUsageDetail_20' ) end [2024-12-27 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113860', 'tblTempVendorCDR_20' ) start [2024-12-27 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113860', 'tblTempVendorCDR_20' ) end [2024-12-27 11:22:19] Production.INFO: ProcessCDR(1,14113860,1,1,2) [2024-12-27 11:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113860', 'tblTempUsageDetail_20' ) start [2024-12-27 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113860', 'tblTempUsageDetail_20' ) end [2024-12-27 11:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:22:23] Production.INFO: ==12261== Releasing lock... [2024-12-27 11:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:22:23] Production.INFO: 55.75 MB #Memory Used# [2024-12-27 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:23:05 [end_date_ymd] => 2024-12-27 11:23:05 [RateCDR] => 1 ) [2024-12-27 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:23:05' and `end` < '2024-12-27 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:23:18] Production.INFO: count ==3724 [2024-12-27 11:23:20] Production.ERROR: pbx CDR StartTime 2024-12-27 08:23:05 - End Time 2024-12-27 11:23:05 [2024-12-27 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113865', 'tblTempUsageDetail_20' ) start [2024-12-27 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113865', 'tblTempUsageDetail_20' ) end [2024-12-27 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113865', 'tblTempVendorCDR_20' ) start [2024-12-27 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113865', 'tblTempVendorCDR_20' ) end [2024-12-27 11:23:20] Production.INFO: ProcessCDR(1,14113865,1,1,2) [2024-12-27 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113865', 'tblTempUsageDetail_20' ) start [2024-12-27 11:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113865', 'tblTempUsageDetail_20' ) end [2024-12-27 11:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:23:24] Production.INFO: ==12333== Releasing lock... [2024-12-27 11:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:23:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-27 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:24:05 [end_date_ymd] => 2024-12-27 11:24:05 [RateCDR] => 1 ) [2024-12-27 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-27 08:24:05' and `end` < '2024-12-27 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-27 11:24:20] Production.INFO: count ==3712 [2024-12-27 11:24:21] Production.ERROR: pbx CDR StartTime 2024-12-27 08:24:05 - End Time 2024-12-27 11:24:05 [2024-12-27 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113870', 'tblTempUsageDetail_20' ) start [2024-12-27 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113870', 'tblTempUsageDetail_20' ) end [2024-12-27 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113870', 'tblTempVendorCDR_20' ) start [2024-12-27 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113870', 'tblTempVendorCDR_20' ) end [2024-12-27 11:24:22] Production.INFO: ProcessCDR(1,14113870,1,1,2) [2024-12-27 11:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113870', 'tblTempUsageDetail_20' ) start [2024-12-27 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113870', 'tblTempUsageDetail_20' ) end [2024-12-27 11:24:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:24:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:24:26] Production.INFO: ==12403== Releasing lock... [2024-12-27 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:24:26] Production.INFO: 56 MB #Memory Used# [2024-12-27 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:25:05 [end_date_ymd] => 2024-12-27 11:25:05 [RateCDR] => 1 ) [2024-12-27 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:25:05' and `end` < '2024-12-27 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:25:20] Production.INFO: count ==3707 [2024-12-27 11:25:22] Production.ERROR: pbx CDR StartTime 2024-12-27 08:25:05 - End Time 2024-12-27 11:25:05 [2024-12-27 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113875', 'tblTempUsageDetail_20' ) start [2024-12-27 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113875', 'tblTempUsageDetail_20' ) end [2024-12-27 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113875', 'tblTempVendorCDR_20' ) start [2024-12-27 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113875', 'tblTempVendorCDR_20' ) end [2024-12-27 11:25:22] Production.INFO: ProcessCDR(1,14113875,1,1,2) [2024-12-27 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113875', 'tblTempUsageDetail_20' ) start [2024-12-27 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113875', 'tblTempUsageDetail_20' ) end [2024-12-27 11:25:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:25:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:25:27] Production.INFO: ==12473== Releasing lock... [2024-12-27 11:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:25:27] Production.INFO: 55.75 MB #Memory Used# [2024-12-27 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:26:05 [end_date_ymd] => 2024-12-27 11:26:05 [RateCDR] => 1 ) [2024-12-27 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:26:05' and `end` < '2024-12-27 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:26:19] Production.INFO: count ==3705 [2024-12-27 11:26:21] Production.ERROR: pbx CDR StartTime 2024-12-27 08:26:05 - End Time 2024-12-27 11:26:05 [2024-12-27 11:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113880', 'tblTempUsageDetail_20' ) start [2024-12-27 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113880', 'tblTempUsageDetail_20' ) end [2024-12-27 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113880', 'tblTempVendorCDR_20' ) start [2024-12-27 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113880', 'tblTempVendorCDR_20' ) end [2024-12-27 11:26:21] Production.INFO: ProcessCDR(1,14113880,1,1,2) [2024-12-27 11:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113880', 'tblTempUsageDetail_20' ) start [2024-12-27 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113880', 'tblTempUsageDetail_20' ) end [2024-12-27 11:26:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:26:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:26:26] Production.INFO: ==12547== Releasing lock... [2024-12-27 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:26:26] Production.INFO: 55.75 MB #Memory Used# [2024-12-27 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:27:05 [end_date_ymd] => 2024-12-27 11:27:05 [RateCDR] => 1 ) [2024-12-27 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:27:05' and `end` < '2024-12-27 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:27:19] Production.INFO: count ==3701 [2024-12-27 11:27:21] Production.ERROR: pbx CDR StartTime 2024-12-27 08:27:05 - End Time 2024-12-27 11:27:05 [2024-12-27 11:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113885', 'tblTempUsageDetail_20' ) start [2024-12-27 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113885', 'tblTempUsageDetail_20' ) end [2024-12-27 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113885', 'tblTempVendorCDR_20' ) start [2024-12-27 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113885', 'tblTempVendorCDR_20' ) end [2024-12-27 11:27:21] Production.INFO: ProcessCDR(1,14113885,1,1,2) [2024-12-27 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113885', 'tblTempUsageDetail_20' ) start [2024-12-27 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113885', 'tblTempUsageDetail_20' ) end [2024-12-27 11:27:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:27:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:27:26] Production.INFO: ==12618== Releasing lock... [2024-12-27 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:27:26] Production.INFO: 55.75 MB #Memory Used# [2024-12-27 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:28:05 [end_date_ymd] => 2024-12-27 11:28:05 [RateCDR] => 1 ) [2024-12-27 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-27 08:28:05' and `end` < '2024-12-27 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-27 11:28:18] Production.INFO: count ==3690 [2024-12-27 11:28:19] Production.ERROR: pbx CDR StartTime 2024-12-27 08:28:05 - End Time 2024-12-27 11:28:05 [2024-12-27 11:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113890', 'tblTempUsageDetail_20' ) start [2024-12-27 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113890', 'tblTempUsageDetail_20' ) end [2024-12-27 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113890', 'tblTempVendorCDR_20' ) start [2024-12-27 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113890', 'tblTempVendorCDR_20' ) end [2024-12-27 11:28:20] Production.INFO: ProcessCDR(1,14113890,1,1,2) [2024-12-27 11:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113890', 'tblTempUsageDetail_20' ) start [2024-12-27 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113890', 'tblTempUsageDetail_20' ) end [2024-12-27 11:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:28:24] Production.INFO: ==12729== Releasing lock... [2024-12-27 11:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:28:24] Production.INFO: 55.75 MB #Memory Used# [2024-12-27 11:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:29:04 [end_date_ymd] => 2024-12-27 11:29:04 [RateCDR] => 1 ) [2024-12-27 11:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:29:04' and `end` < '2024-12-27 11:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:29:18] Production.INFO: count ==3674 [2024-12-27 11:29:20] Production.ERROR: pbx CDR StartTime 2024-12-27 08:29:04 - End Time 2024-12-27 11:29:04 [2024-12-27 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113895', 'tblTempUsageDetail_20' ) start [2024-12-27 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113895', 'tblTempUsageDetail_20' ) end [2024-12-27 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113895', 'tblTempVendorCDR_20' ) start [2024-12-27 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113895', 'tblTempVendorCDR_20' ) end [2024-12-27 11:29:20] Production.INFO: ProcessCDR(1,14113895,1,1,2) [2024-12-27 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113895', 'tblTempUsageDetail_20' ) start [2024-12-27 11:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113895', 'tblTempUsageDetail_20' ) end [2024-12-27 11:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:29:24] Production.INFO: ==12810== Releasing lock... [2024-12-27 11:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:29:24] Production.INFO: 55.5 MB #Memory Used# [2024-12-27 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:30:05 [end_date_ymd] => 2024-12-27 11:30:05 [RateCDR] => 1 ) [2024-12-27 11:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:30:05' and `end` < '2024-12-27 11:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:30:22] Production.INFO: count ==3669 [2024-12-27 11:30:24] Production.ERROR: pbx CDR StartTime 2024-12-27 08:30:05 - End Time 2024-12-27 11:30:05 [2024-12-27 11:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113901', 'tblTempUsageDetail_20' ) start [2024-12-27 11:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113901', 'tblTempUsageDetail_20' ) end [2024-12-27 11:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113901', 'tblTempVendorCDR_20' ) start [2024-12-27 11:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113901', 'tblTempVendorCDR_20' ) end [2024-12-27 11:30:24] Production.INFO: ProcessCDR(1,14113901,1,1,2) [2024-12-27 11:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113901', 'tblTempUsageDetail_20' ) start [2024-12-27 11:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113901', 'tblTempUsageDetail_20' ) end [2024-12-27 11:30:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:30:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:30:29] Production.INFO: ==12920== Releasing lock... [2024-12-27 11:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:30:29] Production.INFO: 55.75 MB #Memory Used# [2024-12-27 11:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:31:04 [end_date_ymd] => 2024-12-27 11:31:04 [RateCDR] => 1 ) [2024-12-27 11:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:31:04' and `end` < '2024-12-27 11:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:31:24] Production.INFO: count ==3758 [2024-12-27 11:31:25] Production.ERROR: pbx CDR StartTime 2024-12-27 08:31:04 - End Time 2024-12-27 11:31:04 [2024-12-27 11:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113906', 'tblTempUsageDetail_20' ) start [2024-12-27 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113906', 'tblTempUsageDetail_20' ) end [2024-12-27 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113906', 'tblTempVendorCDR_20' ) start [2024-12-27 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113906', 'tblTempVendorCDR_20' ) end [2024-12-27 11:31:26] Production.INFO: ProcessCDR(1,14113906,1,1,2) [2024-12-27 11:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113906', 'tblTempUsageDetail_20' ) start [2024-12-27 11:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113906', 'tblTempUsageDetail_20' ) end [2024-12-27 11:31:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:31:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:31:30] Production.INFO: ==13027== Releasing lock... [2024-12-27 11:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:31:30] Production.INFO: 56 MB #Memory Used# [2024-12-27 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:32:05 [end_date_ymd] => 2024-12-27 11:32:05 [RateCDR] => 1 ) [2024-12-27 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-27 08:32:05' and `end` < '2024-12-27 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-27 11:32:19] Production.INFO: count ==3785 [2024-12-27 11:32:21] Production.ERROR: pbx CDR StartTime 2024-12-27 08:32:05 - End Time 2024-12-27 11:32:05 [2024-12-27 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113911', 'tblTempUsageDetail_20' ) start [2024-12-27 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113911', 'tblTempUsageDetail_20' ) end [2024-12-27 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113911', 'tblTempVendorCDR_20' ) start [2024-12-27 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113911', 'tblTempVendorCDR_20' ) end [2024-12-27 11:32:21] Production.INFO: ProcessCDR(1,14113911,1,1,2) [2024-12-27 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113911', 'tblTempUsageDetail_20' ) start [2024-12-27 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113911', 'tblTempUsageDetail_20' ) end [2024-12-27 11:32:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:32:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:32:26] Production.INFO: ==13135== Releasing lock... [2024-12-27 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:32:26] Production.INFO: 56.25 MB #Memory Used# [2024-12-27 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:33:05 [end_date_ymd] => 2024-12-27 11:33:05 [RateCDR] => 1 ) [2024-12-27 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:33:05' and `end` < '2024-12-27 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:33:29] Production.INFO: count ==3805 [2024-12-27 11:33:31] Production.ERROR: pbx CDR StartTime 2024-12-27 08:33:05 - End Time 2024-12-27 11:33:05 [2024-12-27 11:33:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113916', 'tblTempUsageDetail_20' ) start [2024-12-27 11:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113916', 'tblTempUsageDetail_20' ) end [2024-12-27 11:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113916', 'tblTempVendorCDR_20' ) start [2024-12-27 11:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113916', 'tblTempVendorCDR_20' ) end [2024-12-27 11:33:31] Production.INFO: ProcessCDR(1,14113916,1,1,2) [2024-12-27 11:33:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:33:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:33:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:33:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113916', 'tblTempUsageDetail_20' ) start [2024-12-27 11:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113916', 'tblTempUsageDetail_20' ) end [2024-12-27 11:33:36] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:33:36] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:33:36] Production.INFO: ==13241== Releasing lock... [2024-12-27 11:33:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:33:36] Production.INFO: 56.5 MB #Memory Used# [2024-12-27 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:34:05 [end_date_ymd] => 2024-12-27 11:34:05 [RateCDR] => 1 ) [2024-12-27 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:34:05' and `end` < '2024-12-27 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:34:27] Production.INFO: count ==3812 [2024-12-27 11:34:28] Production.ERROR: pbx CDR StartTime 2024-12-27 08:34:05 - End Time 2024-12-27 11:34:05 [2024-12-27 11:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113921', 'tblTempUsageDetail_20' ) start [2024-12-27 11:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113921', 'tblTempUsageDetail_20' ) end [2024-12-27 11:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113921', 'tblTempVendorCDR_20' ) start [2024-12-27 11:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113921', 'tblTempVendorCDR_20' ) end [2024-12-27 11:34:29] Production.INFO: ProcessCDR(1,14113921,1,1,2) [2024-12-27 11:34:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:34:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:34:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:34:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113921', 'tblTempUsageDetail_20' ) start [2024-12-27 11:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113921', 'tblTempUsageDetail_20' ) end [2024-12-27 11:34:33] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:34:33] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:34:34] Production.INFO: ==13346== Releasing lock... [2024-12-27 11:34:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:34:34] Production.INFO: 56.75 MB #Memory Used# [2024-12-27 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:35:05 [end_date_ymd] => 2024-12-27 11:35:05 [RateCDR] => 1 ) [2024-12-27 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:35:05' and `end` < '2024-12-27 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:35:19] Production.INFO: count ==3797 [2024-12-27 11:35:20] Production.ERROR: pbx CDR StartTime 2024-12-27 08:35:05 - End Time 2024-12-27 11:35:05 [2024-12-27 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113926', 'tblTempUsageDetail_20' ) start [2024-12-27 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113926', 'tblTempUsageDetail_20' ) end [2024-12-27 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113926', 'tblTempVendorCDR_20' ) start [2024-12-27 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113926', 'tblTempVendorCDR_20' ) end [2024-12-27 11:35:20] Production.INFO: ProcessCDR(1,14113926,1,1,2) [2024-12-27 11:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113926', 'tblTempUsageDetail_20' ) start [2024-12-27 11:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113926', 'tblTempUsageDetail_20' ) end [2024-12-27 11:35:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:35:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:35:24] Production.INFO: ==13453== Releasing lock... [2024-12-27 11:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:35:24] Production.INFO: 56.25 MB #Memory Used# [2024-12-27 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:36:05 [end_date_ymd] => 2024-12-27 11:36:05 [RateCDR] => 1 ) [2024-12-27 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:36:05' and `end` < '2024-12-27 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:36:28] Production.INFO: count ==3805 [2024-12-27 11:36:30] Production.ERROR: pbx CDR StartTime 2024-12-27 08:36:05 - End Time 2024-12-27 11:36:05 [2024-12-27 11:36:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113931', 'tblTempUsageDetail_20' ) start [2024-12-27 11:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113931', 'tblTempUsageDetail_20' ) end [2024-12-27 11:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113931', 'tblTempVendorCDR_20' ) start [2024-12-27 11:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113931', 'tblTempVendorCDR_20' ) end [2024-12-27 11:36:30] Production.INFO: ProcessCDR(1,14113931,1,1,2) [2024-12-27 11:36:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:36:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:36:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:36:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113931', 'tblTempUsageDetail_20' ) start [2024-12-27 11:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113931', 'tblTempUsageDetail_20' ) end [2024-12-27 11:36:34] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:36:34] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:36:34] Production.INFO: ==13561== Releasing lock... [2024-12-27 11:36:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:36:34] Production.INFO: 56.5 MB #Memory Used# [2024-12-27 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:37:05 [end_date_ymd] => 2024-12-27 11:37:05 [RateCDR] => 1 ) [2024-12-27 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:37:05' and `end` < '2024-12-27 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:37:23] Production.INFO: count ==3802 [2024-12-27 11:37:25] Production.ERROR: pbx CDR StartTime 2024-12-27 08:37:05 - End Time 2024-12-27 11:37:05 [2024-12-27 11:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113936', 'tblTempUsageDetail_20' ) start [2024-12-27 11:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113936', 'tblTempUsageDetail_20' ) end [2024-12-27 11:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113936', 'tblTempVendorCDR_20' ) start [2024-12-27 11:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113936', 'tblTempVendorCDR_20' ) end [2024-12-27 11:37:25] Production.INFO: ProcessCDR(1,14113936,1,1,2) [2024-12-27 11:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113936', 'tblTempUsageDetail_20' ) start [2024-12-27 11:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113936', 'tblTempUsageDetail_20' ) end [2024-12-27 11:37:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:37:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:37:29] Production.INFO: ==13671== Releasing lock... [2024-12-27 11:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:37:29] Production.INFO: 56.5 MB #Memory Used# [2024-12-27 11:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:38:04 [end_date_ymd] => 2024-12-27 11:38:04 [RateCDR] => 1 ) [2024-12-27 11:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:38:04' and `end` < '2024-12-27 11:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:38:23] Production.INFO: count ==3815 [2024-12-27 11:38:24] Production.ERROR: pbx CDR StartTime 2024-12-27 08:38:04 - End Time 2024-12-27 11:38:04 [2024-12-27 11:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113941', 'tblTempUsageDetail_20' ) start [2024-12-27 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113941', 'tblTempUsageDetail_20' ) end [2024-12-27 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113941', 'tblTempVendorCDR_20' ) start [2024-12-27 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113941', 'tblTempVendorCDR_20' ) end [2024-12-27 11:38:24] Production.INFO: ProcessCDR(1,14113941,1,1,2) [2024-12-27 11:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113941', 'tblTempUsageDetail_20' ) start [2024-12-27 11:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113941', 'tblTempUsageDetail_20' ) end [2024-12-27 11:38:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:38:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:38:29] Production.INFO: ==13783== Releasing lock... [2024-12-27 11:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:38:29] Production.INFO: 56.5 MB #Memory Used# [2024-12-27 11:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:39:04 [end_date_ymd] => 2024-12-27 11:39:04 [RateCDR] => 1 ) [2024-12-27 11:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:39:04' and `end` < '2024-12-27 11:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:39:22] Production.INFO: count ==3834 [2024-12-27 11:39:24] Production.ERROR: pbx CDR StartTime 2024-12-27 08:39:04 - End Time 2024-12-27 11:39:04 [2024-12-27 11:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113946', 'tblTempUsageDetail_20' ) start [2024-12-27 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113946', 'tblTempUsageDetail_20' ) end [2024-12-27 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113946', 'tblTempVendorCDR_20' ) start [2024-12-27 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113946', 'tblTempVendorCDR_20' ) end [2024-12-27 11:39:24] Production.INFO: ProcessCDR(1,14113946,1,1,2) [2024-12-27 11:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113946', 'tblTempUsageDetail_20' ) start [2024-12-27 11:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113946', 'tblTempUsageDetail_20' ) end [2024-12-27 11:39:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:39:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:39:29] Production.INFO: ==13908== Releasing lock... [2024-12-27 11:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:39:29] Production.INFO: 56.75 MB #Memory Used# [2024-12-27 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:40:06 [end_date_ymd] => 2024-12-27 11:40:06 [RateCDR] => 1 ) [2024-12-27 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:40:06' and `end` < '2024-12-27 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:40:25] Production.INFO: count ==3842 [2024-12-27 11:40:27] Production.ERROR: pbx CDR StartTime 2024-12-27 08:40:06 - End Time 2024-12-27 11:40:06 [2024-12-27 11:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113952', 'tblTempUsageDetail_20' ) start [2024-12-27 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113952', 'tblTempUsageDetail_20' ) end [2024-12-27 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113952', 'tblTempVendorCDR_20' ) start [2024-12-27 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113952', 'tblTempVendorCDR_20' ) end [2024-12-27 11:40:27] Production.INFO: ProcessCDR(1,14113952,1,1,2) [2024-12-27 11:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113952', 'tblTempUsageDetail_20' ) start [2024-12-27 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113952', 'tblTempUsageDetail_20' ) end [2024-12-27 11:40:32] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:40:32] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:40:32] Production.INFO: ==14037== Releasing lock... [2024-12-27 11:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:40:32] Production.INFO: 57 MB #Memory Used# [2024-12-27 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:41:04 [end_date_ymd] => 2024-12-27 11:41:04 [RateCDR] => 1 ) [2024-12-27 11: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-27 08:41:04' and `end` < '2024-12-27 11: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-27 11:41:26] Production.INFO: count ==3923 [2024-12-27 11:41:28] Production.ERROR: pbx CDR StartTime 2024-12-27 08:41:04 - End Time 2024-12-27 11:41:04 [2024-12-27 11:41:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113957', 'tblTempUsageDetail_20' ) start [2024-12-27 11:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113957', 'tblTempUsageDetail_20' ) end [2024-12-27 11:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113957', 'tblTempVendorCDR_20' ) start [2024-12-27 11:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113957', 'tblTempVendorCDR_20' ) end [2024-12-27 11:41:28] Production.INFO: ProcessCDR(1,14113957,1,1,2) [2024-12-27 11:41:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:41:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:41:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:41:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113957', 'tblTempUsageDetail_20' ) start [2024-12-27 11:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113957', 'tblTempUsageDetail_20' ) end [2024-12-27 11:41:32] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:41:32] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:41:32] Production.INFO: ==14160== Releasing lock... [2024-12-27 11:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:41:32] Production.INFO: 57.5 MB #Memory Used# [2024-12-27 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:42:05 [end_date_ymd] => 2024-12-27 11:42:05 [RateCDR] => 1 ) [2024-12-27 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:42:05' and `end` < '2024-12-27 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:42:20] Production.INFO: count ==3929 [2024-12-27 11:42:22] Production.ERROR: pbx CDR StartTime 2024-12-27 08:42:05 - End Time 2024-12-27 11:42:05 [2024-12-27 11:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113962', 'tblTempUsageDetail_20' ) start [2024-12-27 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113962', 'tblTempUsageDetail_20' ) end [2024-12-27 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113962', 'tblTempVendorCDR_20' ) start [2024-12-27 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113962', 'tblTempVendorCDR_20' ) end [2024-12-27 11:42:22] Production.INFO: ProcessCDR(1,14113962,1,1,2) [2024-12-27 11:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113962', 'tblTempUsageDetail_20' ) start [2024-12-27 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113962', 'tblTempUsageDetail_20' ) end [2024-12-27 11:42:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:42:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:42:26] Production.INFO: ==14270== Releasing lock... [2024-12-27 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:42:26] Production.INFO: 57.25 MB #Memory Used# [2024-12-27 11:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:43:04 [end_date_ymd] => 2024-12-27 11:43:04 [RateCDR] => 1 ) [2024-12-27 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-27 08:43:04' and `end` < '2024-12-27 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-27 11:43:20] Production.INFO: count ==4104 [2024-12-27 11:43:22] Production.ERROR: pbx CDR StartTime 2024-12-27 08:43:04 - End Time 2024-12-27 11:43:04 [2024-12-27 11:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113967', 'tblTempUsageDetail_20' ) start [2024-12-27 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113967', 'tblTempUsageDetail_20' ) end [2024-12-27 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113967', 'tblTempVendorCDR_20' ) start [2024-12-27 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113967', 'tblTempVendorCDR_20' ) end [2024-12-27 11:43:22] Production.INFO: ProcessCDR(1,14113967,1,1,2) [2024-12-27 11:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113967', 'tblTempUsageDetail_20' ) start [2024-12-27 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113967', 'tblTempUsageDetail_20' ) end [2024-12-27 11:43:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:43:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:43:27] Production.INFO: ==14378== Releasing lock... [2024-12-27 11:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:43:27] Production.INFO: 58.75 MB #Memory Used# [2024-12-27 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:44:05 [end_date_ymd] => 2024-12-27 11:44:05 [RateCDR] => 1 ) [2024-12-27 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:44:05' and `end` < '2024-12-27 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:44:18] Production.INFO: count ==4121 [2024-12-27 11:44:20] Production.ERROR: pbx CDR StartTime 2024-12-27 08:44:05 - End Time 2024-12-27 11:44:05 [2024-12-27 11:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113972', 'tblTempUsageDetail_20' ) start [2024-12-27 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113972', 'tblTempUsageDetail_20' ) end [2024-12-27 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113972', 'tblTempVendorCDR_20' ) start [2024-12-27 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113972', 'tblTempVendorCDR_20' ) end [2024-12-27 11:44:20] Production.INFO: ProcessCDR(1,14113972,1,1,2) [2024-12-27 11:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113972', 'tblTempUsageDetail_20' ) start [2024-12-27 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113972', 'tblTempUsageDetail_20' ) end [2024-12-27 11:44:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:44:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:44:25] Production.INFO: ==14512== Releasing lock... [2024-12-27 11:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:44:25] Production.INFO: 58.75 MB #Memory Used# [2024-12-27 11:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:45:04 [end_date_ymd] => 2024-12-27 11:45:04 [RateCDR] => 1 ) [2024-12-27 11:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:45:04' and `end` < '2024-12-27 11:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:45:26] Production.INFO: count ==4149 [2024-12-27 11:45:28] Production.ERROR: pbx CDR StartTime 2024-12-27 08:45:04 - End Time 2024-12-27 11:45:04 [2024-12-27 11:45:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113977', 'tblTempUsageDetail_20' ) start [2024-12-27 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113977', 'tblTempUsageDetail_20' ) end [2024-12-27 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113977', 'tblTempVendorCDR_20' ) start [2024-12-27 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113977', 'tblTempVendorCDR_20' ) end [2024-12-27 11:45:28] Production.INFO: ProcessCDR(1,14113977,1,1,2) [2024-12-27 11:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:45:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113977', 'tblTempUsageDetail_20' ) start [2024-12-27 11:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113977', 'tblTempUsageDetail_20' ) end [2024-12-27 11:45:33] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:45:33] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:45:33] Production.INFO: ==14586== Releasing lock... [2024-12-27 11:45:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:45:33] Production.INFO: 59 MB #Memory Used# [2024-12-27 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:46:05 [end_date_ymd] => 2024-12-27 11:46:05 [RateCDR] => 1 ) [2024-12-27 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:46:05' and `end` < '2024-12-27 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:46:25] Production.INFO: count ==4230 [2024-12-27 11:46:27] Production.ERROR: pbx CDR StartTime 2024-12-27 08:46:05 - End Time 2024-12-27 11:46:05 [2024-12-27 11:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113978', 'tblTempUsageDetail_20' ) start [2024-12-27 11:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113978', 'tblTempUsageDetail_20' ) end [2024-12-27 11:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113978', 'tblTempVendorCDR_20' ) start [2024-12-27 11:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113978', 'tblTempVendorCDR_20' ) end [2024-12-27 11:46:27] Production.INFO: ProcessCDR(1,14113978,1,1,2) [2024-12-27 11:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113978', 'tblTempUsageDetail_20' ) start [2024-12-27 11:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113978', 'tblTempUsageDetail_20' ) end [2024-12-27 11:46:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:46:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:46:31] Production.INFO: ==14660== Releasing lock... [2024-12-27 11:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:46:31] Production.INFO: 59.75 MB #Memory Used# [2024-12-27 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:47:05 [end_date_ymd] => 2024-12-27 11:47:05 [RateCDR] => 1 ) [2024-12-27 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:47:05' and `end` < '2024-12-27 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:47:19] Production.INFO: count ==4241 [2024-12-27 11:47:20] Production.ERROR: pbx CDR StartTime 2024-12-27 08:47:05 - End Time 2024-12-27 11:47:05 [2024-12-27 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113987', 'tblTempUsageDetail_20' ) start [2024-12-27 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113987', 'tblTempUsageDetail_20' ) end [2024-12-27 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113987', 'tblTempVendorCDR_20' ) start [2024-12-27 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113987', 'tblTempVendorCDR_20' ) end [2024-12-27 11:47:21] Production.INFO: ProcessCDR(1,14113987,1,1,2) [2024-12-27 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113987', 'tblTempUsageDetail_20' ) start [2024-12-27 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113987', 'tblTempUsageDetail_20' ) end [2024-12-27 11:47:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:47:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:47:25] Production.INFO: ==14735== Releasing lock... [2024-12-27 11:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:47:25] Production.INFO: 59.75 MB #Memory Used# [2024-12-27 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:48:05 [end_date_ymd] => 2024-12-27 11:48:05 [RateCDR] => 1 ) [2024-12-27 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:48:05' and `end` < '2024-12-27 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:48:23] Production.INFO: count ==4251 [2024-12-27 11:48:25] Production.ERROR: pbx CDR StartTime 2024-12-27 08:48:05 - End Time 2024-12-27 11:48:05 [2024-12-27 11:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113992', 'tblTempUsageDetail_20' ) start [2024-12-27 11:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113992', 'tblTempUsageDetail_20' ) end [2024-12-27 11:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113992', 'tblTempVendorCDR_20' ) start [2024-12-27 11:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113992', 'tblTempVendorCDR_20' ) end [2024-12-27 11:48:25] Production.INFO: ProcessCDR(1,14113992,1,1,2) [2024-12-27 11:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113992', 'tblTempUsageDetail_20' ) start [2024-12-27 11:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113992', 'tblTempUsageDetail_20' ) end [2024-12-27 11:48:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:48:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:48:30] Production.INFO: ==14810== Releasing lock... [2024-12-27 11:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:48:30] Production.INFO: 59.75 MB #Memory Used# [2024-12-27 11:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:49:04 [end_date_ymd] => 2024-12-27 11:49:04 [RateCDR] => 1 ) [2024-12-27 11:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:49:04' and `end` < '2024-12-27 11:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:49:18] Production.INFO: count ==4250 [2024-12-27 11:49:19] Production.ERROR: pbx CDR StartTime 2024-12-27 08:49:04 - End Time 2024-12-27 11:49:04 [2024-12-27 11:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113997', 'tblTempUsageDetail_20' ) start [2024-12-27 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14113997', 'tblTempUsageDetail_20' ) end [2024-12-27 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113997', 'tblTempVendorCDR_20' ) start [2024-12-27 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14113997', 'tblTempVendorCDR_20' ) end [2024-12-27 11:49:20] Production.INFO: ProcessCDR(1,14113997,1,1,2) [2024-12-27 11:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14113997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14113997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14113997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14113997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113997', 'tblTempUsageDetail_20' ) start [2024-12-27 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14113997', 'tblTempUsageDetail_20' ) end [2024-12-27 11:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:49:23] Production.INFO: ==14885== Releasing lock... [2024-12-27 11:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:49:23] Production.INFO: 59.75 MB #Memory Used# [2024-12-27 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:50:06 [end_date_ymd] => 2024-12-27 11:50:06 [RateCDR] => 1 ) [2024-12-27 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-27 08:50:06' and `end` < '2024-12-27 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-27 11:50:25] Production.INFO: count ==4252 [2024-12-27 11:50:27] Production.ERROR: pbx CDR StartTime 2024-12-27 08:50:06 - End Time 2024-12-27 11:50:06 [2024-12-27 11:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114003', 'tblTempUsageDetail_20' ) start [2024-12-27 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114003', 'tblTempUsageDetail_20' ) end [2024-12-27 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114003', 'tblTempVendorCDR_20' ) start [2024-12-27 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114003', 'tblTempVendorCDR_20' ) end [2024-12-27 11:50:27] Production.INFO: ProcessCDR(1,14114003,1,1,2) [2024-12-27 11:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114003', 'tblTempUsageDetail_20' ) start [2024-12-27 11:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114003', 'tblTempUsageDetail_20' ) end [2024-12-27 11:50:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:50:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:50:31] Production.INFO: ==14959== Releasing lock... [2024-12-27 11:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:50:31] Production.INFO: 59.75 MB #Memory Used# [2024-12-27 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:51:05 [end_date_ymd] => 2024-12-27 11:51:05 [RateCDR] => 1 ) [2024-12-27 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:51:05' and `end` < '2024-12-27 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:51:25] Production.INFO: count ==4329 [2024-12-27 11:51:27] Production.ERROR: pbx CDR StartTime 2024-12-27 08:51:05 - End Time 2024-12-27 11:51:05 [2024-12-27 11:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114008', 'tblTempUsageDetail_20' ) start [2024-12-27 11:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114008', 'tblTempUsageDetail_20' ) end [2024-12-27 11:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114008', 'tblTempVendorCDR_20' ) start [2024-12-27 11:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114008', 'tblTempVendorCDR_20' ) end [2024-12-27 11:51:27] Production.INFO: ProcessCDR(1,14114008,1,1,2) [2024-12-27 11:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114008', 'tblTempUsageDetail_20' ) start [2024-12-27 11:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114008', 'tblTempUsageDetail_20' ) end [2024-12-27 11:51:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:51:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:51:31] Production.INFO: ==15032== Releasing lock... [2024-12-27 11:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:51:31] Production.INFO: 60.5 MB #Memory Used# [2024-12-27 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:52:05 [end_date_ymd] => 2024-12-27 11:52:05 [RateCDR] => 1 ) [2024-12-27 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:52:05' and `end` < '2024-12-27 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:52:22] Production.INFO: count ==4343 [2024-12-27 11:52:23] Production.ERROR: pbx CDR StartTime 2024-12-27 08:52:05 - End Time 2024-12-27 11:52:05 [2024-12-27 11:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114013', 'tblTempUsageDetail_20' ) start [2024-12-27 11:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114013', 'tblTempUsageDetail_20' ) end [2024-12-27 11:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114013', 'tblTempVendorCDR_20' ) start [2024-12-27 11:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114013', 'tblTempVendorCDR_20' ) end [2024-12-27 11:52:24] Production.INFO: ProcessCDR(1,14114013,1,1,2) [2024-12-27 11:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114013', 'tblTempUsageDetail_20' ) start [2024-12-27 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114013', 'tblTempUsageDetail_20' ) end [2024-12-27 11:52:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:52:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:52:28] Production.INFO: ==15108== Releasing lock... [2024-12-27 11:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:52:28] Production.INFO: 60.5 MB #Memory Used# [2024-12-27 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:53:05 [end_date_ymd] => 2024-12-27 11:53:05 [RateCDR] => 1 ) [2024-12-27 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:53:05' and `end` < '2024-12-27 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:53:24] Production.INFO: count ==4359 [2024-12-27 11:53:26] Production.ERROR: pbx CDR StartTime 2024-12-27 08:53:05 - End Time 2024-12-27 11:53:05 [2024-12-27 11:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114018', 'tblTempUsageDetail_20' ) start [2024-12-27 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114018', 'tblTempUsageDetail_20' ) end [2024-12-27 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114018', 'tblTempVendorCDR_20' ) start [2024-12-27 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114018', 'tblTempVendorCDR_20' ) end [2024-12-27 11:53:26] Production.INFO: ProcessCDR(1,14114018,1,1,2) [2024-12-27 11:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114018', 'tblTempUsageDetail_20' ) start [2024-12-27 11:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114018', 'tblTempUsageDetail_20' ) end [2024-12-27 11:53:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:53:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:53:30] Production.INFO: ==15182== Releasing lock... [2024-12-27 11:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:53:30] Production.INFO: 60.5 MB #Memory Used# [2024-12-27 11:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:54:04 [end_date_ymd] => 2024-12-27 11:54:04 [RateCDR] => 1 ) [2024-12-27 11:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:54:04' and `end` < '2024-12-27 11:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:54:24] Production.INFO: count ==4387 [2024-12-27 11:54:26] Production.ERROR: pbx CDR StartTime 2024-12-27 08:54:04 - End Time 2024-12-27 11:54:04 [2024-12-27 11:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114023', 'tblTempUsageDetail_20' ) start [2024-12-27 11:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114023', 'tblTempUsageDetail_20' ) end [2024-12-27 11:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114023', 'tblTempVendorCDR_20' ) start [2024-12-27 11:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114023', 'tblTempVendorCDR_20' ) end [2024-12-27 11:54:26] Production.INFO: ProcessCDR(1,14114023,1,1,2) [2024-12-27 11:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114023', 'tblTempUsageDetail_20' ) start [2024-12-27 11:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114023', 'tblTempUsageDetail_20' ) end [2024-12-27 11:54:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:54:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:54:31] Production.INFO: ==15256== Releasing lock... [2024-12-27 11:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:54:31] Production.INFO: 60.75 MB #Memory Used# [2024-12-27 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:55:05 [end_date_ymd] => 2024-12-27 11:55:05 [RateCDR] => 1 ) [2024-12-27 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:55:05' and `end` < '2024-12-27 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:55:18] Production.INFO: count ==4399 [2024-12-27 11:55:20] Production.ERROR: pbx CDR StartTime 2024-12-27 08:55:05 - End Time 2024-12-27 11:55:05 [2024-12-27 11:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114028', 'tblTempUsageDetail_20' ) start [2024-12-27 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114028', 'tblTempUsageDetail_20' ) end [2024-12-27 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114028', 'tblTempVendorCDR_20' ) start [2024-12-27 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114028', 'tblTempVendorCDR_20' ) end [2024-12-27 11:55:20] Production.INFO: ProcessCDR(1,14114028,1,1,2) [2024-12-27 11:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114028', 'tblTempUsageDetail_20' ) start [2024-12-27 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114028', 'tblTempUsageDetail_20' ) end [2024-12-27 11:55:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:55:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:55:25] Production.INFO: ==15327== Releasing lock... [2024-12-27 11:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:55:25] Production.INFO: 61 MB #Memory Used# [2024-12-27 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:56:05 [end_date_ymd] => 2024-12-27 11:56:05 [RateCDR] => 1 ) [2024-12-27 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:56:05' and `end` < '2024-12-27 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:56:23] Production.INFO: count ==4404 [2024-12-27 11:56:25] Production.ERROR: pbx CDR StartTime 2024-12-27 08:56:05 - End Time 2024-12-27 11:56:05 [2024-12-27 11:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114033', 'tblTempUsageDetail_20' ) start [2024-12-27 11:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114033', 'tblTempUsageDetail_20' ) end [2024-12-27 11:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114033', 'tblTempVendorCDR_20' ) start [2024-12-27 11:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114033', 'tblTempVendorCDR_20' ) end [2024-12-27 11:56:25] Production.INFO: ProcessCDR(1,14114033,1,1,2) [2024-12-27 11:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114033', 'tblTempUsageDetail_20' ) start [2024-12-27 11:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114033', 'tblTempUsageDetail_20' ) end [2024-12-27 11:56:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:56:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:56:29] Production.INFO: ==15402== Releasing lock... [2024-12-27 11:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:56:29] Production.INFO: 61 MB #Memory Used# [2024-12-27 11:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:57:04 [end_date_ymd] => 2024-12-27 11:57:04 [RateCDR] => 1 ) [2024-12-27 11: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-27 08:57:04' and `end` < '2024-12-27 11: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-27 11:57:17] Production.INFO: count ==4409 [2024-12-27 11:57:19] Production.ERROR: pbx CDR StartTime 2024-12-27 08:57:04 - End Time 2024-12-27 11:57:04 [2024-12-27 11:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114038', 'tblTempUsageDetail_20' ) start [2024-12-27 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114038', 'tblTempUsageDetail_20' ) end [2024-12-27 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114038', 'tblTempVendorCDR_20' ) start [2024-12-27 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114038', 'tblTempVendorCDR_20' ) end [2024-12-27 11:57:19] Production.INFO: ProcessCDR(1,14114038,1,1,2) [2024-12-27 11:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114038', 'tblTempUsageDetail_20' ) start [2024-12-27 11:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114038', 'tblTempUsageDetail_20' ) end [2024-12-27 11:57:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:57:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:57:24] Production.INFO: ==15474== Releasing lock... [2024-12-27 11:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:57:24] Production.INFO: 61 MB #Memory Used# [2024-12-27 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:58:05 [end_date_ymd] => 2024-12-27 11:58:05 [RateCDR] => 1 ) [2024-12-27 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 08:58:05' and `end` < '2024-12-27 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:58:18] Production.INFO: count ==4534 [2024-12-27 11:58:20] Production.ERROR: pbx CDR StartTime 2024-12-27 08:58:05 - End Time 2024-12-27 11:58:05 [2024-12-27 11:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114043', 'tblTempUsageDetail_20' ) start [2024-12-27 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114043', 'tblTempUsageDetail_20' ) end [2024-12-27 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114043', 'tblTempVendorCDR_20' ) start [2024-12-27 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114043', 'tblTempVendorCDR_20' ) end [2024-12-27 11:58:20] Production.INFO: ProcessCDR(1,14114043,1,1,2) [2024-12-27 11:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114043', 'tblTempUsageDetail_20' ) start [2024-12-27 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114043', 'tblTempUsageDetail_20' ) end [2024-12-27 11:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:58:24] Production.INFO: ==15554== Releasing lock... [2024-12-27 11:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:58:24] Production.INFO: 62 MB #Memory Used# [2024-12-27 11:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 08:59:04 [end_date_ymd] => 2024-12-27 11:59:04 [RateCDR] => 1 ) [2024-12-27 11: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-27 08:59:04' and `end` < '2024-12-27 11:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 11:59:23] Production.INFO: count ==4545 [2024-12-27 11:59:25] Production.ERROR: pbx CDR StartTime 2024-12-27 08:59:04 - End Time 2024-12-27 11:59:04 [2024-12-27 11:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114048', 'tblTempUsageDetail_20' ) start [2024-12-27 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114048', 'tblTempUsageDetail_20' ) end [2024-12-27 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114048', 'tblTempVendorCDR_20' ) start [2024-12-27 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114048', 'tblTempVendorCDR_20' ) end [2024-12-27 11:59:25] Production.INFO: ProcessCDR(1,14114048,1,1,2) [2024-12-27 11:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 11:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 11:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114048', 'tblTempUsageDetail_20' ) start [2024-12-27 11:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114048', 'tblTempUsageDetail_20' ) end [2024-12-27 11:59:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 11:59:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 11:59:30] Production.INFO: ==15628== Releasing lock... [2024-12-27 11:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 11:59:30] Production.INFO: 62 MB #Memory Used# [2024-12-27 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:00:05 [end_date_ymd] => 2024-12-27 12:00:05 [RateCDR] => 1 ) [2024-12-27 12:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:00:05' and `end` < '2024-12-27 12:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:00:23] Production.INFO: count ==4540 [2024-12-27 12:00:25] Production.ERROR: pbx CDR StartTime 2024-12-27 09:00:05 - End Time 2024-12-27 12:00:05 [2024-12-27 12:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114054', 'tblTempUsageDetail_20' ) start [2024-12-27 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114054', 'tblTempUsageDetail_20' ) end [2024-12-27 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114054', 'tblTempVendorCDR_20' ) start [2024-12-27 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114054', 'tblTempVendorCDR_20' ) end [2024-12-27 12:00:25] Production.INFO: ProcessCDR(1,14114054,1,1,2) [2024-12-27 12:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114054', 'tblTempUsageDetail_20' ) start [2024-12-27 12:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114054', 'tblTempUsageDetail_20' ) end [2024-12-27 12:00:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:00:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:00:29] Production.INFO: ==15740== Releasing lock... [2024-12-27 12:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:00:29] Production.INFO: 62 MB #Memory Used# [2024-12-27 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:01:05 [end_date_ymd] => 2024-12-27 12:01:05 [RateCDR] => 1 ) [2024-12-27 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:01:05' and `end` < '2024-12-27 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:01:20] Production.INFO: count ==4658 [2024-12-27 12:01:21] Production.ERROR: pbx CDR StartTime 2024-12-27 09:01:05 - End Time 2024-12-27 12:01:05 [2024-12-27 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114059', 'tblTempUsageDetail_20' ) start [2024-12-27 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114059', 'tblTempUsageDetail_20' ) end [2024-12-27 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114059', 'tblTempVendorCDR_20' ) start [2024-12-27 12:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114059', 'tblTempVendorCDR_20' ) end [2024-12-27 12:01:22] Production.INFO: ProcessCDR(1,14114059,1,1,2) [2024-12-27 12:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114059', 'tblTempUsageDetail_20' ) start [2024-12-27 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114059', 'tblTempUsageDetail_20' ) end [2024-12-27 12:01:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:01:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:01:26] Production.INFO: ==15831== Releasing lock... [2024-12-27 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:01:26] Production.INFO: 62.75 MB #Memory Used# [2024-12-27 12:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:02:04 [end_date_ymd] => 2024-12-27 12:02:04 [RateCDR] => 1 ) [2024-12-27 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-27 09:02:04' and `end` < '2024-12-27 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-27 12:02:22] Production.INFO: count ==4660 [2024-12-27 12:02:24] Production.ERROR: pbx CDR StartTime 2024-12-27 09:02:04 - End Time 2024-12-27 12:02:04 [2024-12-27 12:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114064', 'tblTempUsageDetail_20' ) start [2024-12-27 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114064', 'tblTempUsageDetail_20' ) end [2024-12-27 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114064', 'tblTempVendorCDR_20' ) start [2024-12-27 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114064', 'tblTempVendorCDR_20' ) end [2024-12-27 12:02:24] Production.INFO: ProcessCDR(1,14114064,1,1,2) [2024-12-27 12:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114064', 'tblTempUsageDetail_20' ) start [2024-12-27 12:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114064', 'tblTempUsageDetail_20' ) end [2024-12-27 12:02:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:02:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:02:29] Production.INFO: ==15902== Releasing lock... [2024-12-27 12:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:02:29] Production.INFO: 62.75 MB #Memory Used# [2024-12-27 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:03:05 [end_date_ymd] => 2024-12-27 12:03:05 [RateCDR] => 1 ) [2024-12-27 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:03:05' and `end` < '2024-12-27 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:03:22] Production.INFO: count ==4667 [2024-12-27 12:03:24] Production.ERROR: pbx CDR StartTime 2024-12-27 09:03:05 - End Time 2024-12-27 12:03:05 [2024-12-27 12:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114069', 'tblTempUsageDetail_20' ) start [2024-12-27 12:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114069', 'tblTempUsageDetail_20' ) end [2024-12-27 12:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114069', 'tblTempVendorCDR_20' ) start [2024-12-27 12:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114069', 'tblTempVendorCDR_20' ) end [2024-12-27 12:03:24] Production.INFO: ProcessCDR(1,14114069,1,1,2) [2024-12-27 12:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114069', 'tblTempUsageDetail_20' ) start [2024-12-27 12:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114069', 'tblTempUsageDetail_20' ) end [2024-12-27 12:03:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:03:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:03:29] Production.INFO: ==15976== Releasing lock... [2024-12-27 12:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:03:29] Production.INFO: 63 MB #Memory Used# [2024-12-27 12:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:04:04 [end_date_ymd] => 2024-12-27 12:04:04 [RateCDR] => 1 ) [2024-12-27 12: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-27 09:04:04' and `end` < '2024-12-27 12: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-27 12:04:21] Production.INFO: count ==4648 [2024-12-27 12:04:23] Production.ERROR: pbx CDR StartTime 2024-12-27 09:04:04 - End Time 2024-12-27 12:04:04 [2024-12-27 12:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114074', 'tblTempUsageDetail_20' ) start [2024-12-27 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114074', 'tblTempUsageDetail_20' ) end [2024-12-27 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114074', 'tblTempVendorCDR_20' ) start [2024-12-27 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114074', 'tblTempVendorCDR_20' ) end [2024-12-27 12:04:23] Production.INFO: ProcessCDR(1,14114074,1,1,2) [2024-12-27 12:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114074', 'tblTempUsageDetail_20' ) start [2024-12-27 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114074', 'tblTempUsageDetail_20' ) end [2024-12-27 12:04:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:04:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:04:28] Production.INFO: ==16047== Releasing lock... [2024-12-27 12:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:04:28] Production.INFO: 62.75 MB #Memory Used# [2024-12-27 12:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:05:04 [end_date_ymd] => 2024-12-27 12:05:04 [RateCDR] => 1 ) [2024-12-27 12: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-27 09:05:04' and `end` < '2024-12-27 12: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-27 12:05:18] Production.INFO: count ==4662 [2024-12-27 12:05:20] Production.ERROR: pbx CDR StartTime 2024-12-27 09:05:04 - End Time 2024-12-27 12:05:04 [2024-12-27 12:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114079', 'tblTempUsageDetail_20' ) start [2024-12-27 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114079', 'tblTempUsageDetail_20' ) end [2024-12-27 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114079', 'tblTempVendorCDR_20' ) start [2024-12-27 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114079', 'tblTempVendorCDR_20' ) end [2024-12-27 12:05:20] Production.INFO: ProcessCDR(1,14114079,1,1,2) [2024-12-27 12:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114079', 'tblTempUsageDetail_20' ) start [2024-12-27 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114079', 'tblTempUsageDetail_20' ) end [2024-12-27 12:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:05:25] Production.INFO: ==16120== Releasing lock... [2024-12-27 12:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:05:25] Production.INFO: 63 MB #Memory Used# [2024-12-27 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:06:04 [end_date_ymd] => 2024-12-27 12:06:04 [RateCDR] => 1 ) [2024-12-27 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:06:04' and `end` < '2024-12-27 12: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-27 12:06:24] Production.INFO: count ==4669 [2024-12-27 12:06:26] Production.ERROR: pbx CDR StartTime 2024-12-27 09:06:04 - End Time 2024-12-27 12:06:04 [2024-12-27 12:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114084', 'tblTempUsageDetail_20' ) start [2024-12-27 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114084', 'tblTempUsageDetail_20' ) end [2024-12-27 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114084', 'tblTempVendorCDR_20' ) start [2024-12-27 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114084', 'tblTempVendorCDR_20' ) end [2024-12-27 12:06:26] Production.INFO: ProcessCDR(1,14114084,1,1,2) [2024-12-27 12:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114084', 'tblTempUsageDetail_20' ) start [2024-12-27 12:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114084', 'tblTempUsageDetail_20' ) end [2024-12-27 12:06:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:06:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:06:30] Production.INFO: ==16193== Releasing lock... [2024-12-27 12:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:06:30] Production.INFO: 63 MB #Memory Used# [2024-12-27 12:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:07:04 [end_date_ymd] => 2024-12-27 12:07:04 [RateCDR] => 1 ) [2024-12-27 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-27 09:07:04' and `end` < '2024-12-27 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-27 12:07:26] Production.INFO: count ==4671 [2024-12-27 12:07:28] Production.ERROR: pbx CDR StartTime 2024-12-27 09:07:04 - End Time 2024-12-27 12:07:04 [2024-12-27 12:07:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114089', 'tblTempUsageDetail_20' ) start [2024-12-27 12:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114089', 'tblTempUsageDetail_20' ) end [2024-12-27 12:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114089', 'tblTempVendorCDR_20' ) start [2024-12-27 12:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114089', 'tblTempVendorCDR_20' ) end [2024-12-27 12:07:28] Production.INFO: ProcessCDR(1,14114089,1,1,2) [2024-12-27 12:07:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:07:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:07:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114089', 'tblTempUsageDetail_20' ) start [2024-12-27 12:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114089', 'tblTempUsageDetail_20' ) end [2024-12-27 12:07:32] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:07:33] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:07:33] Production.INFO: ==16265== Releasing lock... [2024-12-27 12:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:07:33] Production.INFO: 63 MB #Memory Used# [2024-12-27 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:08:05 [end_date_ymd] => 2024-12-27 12:08:05 [RateCDR] => 1 ) [2024-12-27 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:08:05' and `end` < '2024-12-27 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:08:19] Production.INFO: count ==4662 [2024-12-27 12:08:20] Production.ERROR: pbx CDR StartTime 2024-12-27 09:08:05 - End Time 2024-12-27 12:08:05 [2024-12-27 12:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114094', 'tblTempUsageDetail_20' ) start [2024-12-27 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114094', 'tblTempUsageDetail_20' ) end [2024-12-27 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114094', 'tblTempVendorCDR_20' ) start [2024-12-27 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114094', 'tblTempVendorCDR_20' ) end [2024-12-27 12:08:21] Production.INFO: ProcessCDR(1,14114094,1,1,2) [2024-12-27 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114094', 'tblTempUsageDetail_20' ) start [2024-12-27 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114094', 'tblTempUsageDetail_20' ) end [2024-12-27 12:08:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:08:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:08:25] Production.INFO: ==16342== Releasing lock... [2024-12-27 12:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:08:25] Production.INFO: 63 MB #Memory Used# [2024-12-27 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:09:05 [end_date_ymd] => 2024-12-27 12:09:05 [RateCDR] => 1 ) [2024-12-27 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:09:05' and `end` < '2024-12-27 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:09:18] Production.INFO: count ==4659 [2024-12-27 12:09:20] Production.ERROR: pbx CDR StartTime 2024-12-27 09:09:05 - End Time 2024-12-27 12:09:05 [2024-12-27 12:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114099', 'tblTempUsageDetail_20' ) start [2024-12-27 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114099', 'tblTempUsageDetail_20' ) end [2024-12-27 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114099', 'tblTempVendorCDR_20' ) start [2024-12-27 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114099', 'tblTempVendorCDR_20' ) end [2024-12-27 12:09:20] Production.INFO: ProcessCDR(1,14114099,1,1,2) [2024-12-27 12:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114099', 'tblTempUsageDetail_20' ) start [2024-12-27 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114099', 'tblTempUsageDetail_20' ) end [2024-12-27 12:09:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:09:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:09:25] Production.INFO: ==16413== Releasing lock... [2024-12-27 12:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:09:25] Production.INFO: 62.75 MB #Memory Used# [2024-12-27 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:10:06 [end_date_ymd] => 2024-12-27 12:10:06 [RateCDR] => 1 ) [2024-12-27 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:10:06' and `end` < '2024-12-27 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:10:20] Production.INFO: count ==4638 [2024-12-27 12:10:22] Production.ERROR: pbx CDR StartTime 2024-12-27 09:10:06 - End Time 2024-12-27 12:10:06 [2024-12-27 12:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114105', 'tblTempUsageDetail_20' ) start [2024-12-27 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114105', 'tblTempUsageDetail_20' ) end [2024-12-27 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114105', 'tblTempVendorCDR_20' ) start [2024-12-27 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114105', 'tblTempVendorCDR_20' ) end [2024-12-27 12:10:22] Production.INFO: ProcessCDR(1,14114105,1,1,2) [2024-12-27 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114105', 'tblTempUsageDetail_20' ) start [2024-12-27 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114105', 'tblTempUsageDetail_20' ) end [2024-12-27 12:10:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:10:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:10:27] Production.INFO: ==16489== Releasing lock... [2024-12-27 12:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:10:27] Production.INFO: 62.75 MB #Memory Used# [2024-12-27 12:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:11:04 [end_date_ymd] => 2024-12-27 12:11:04 [RateCDR] => 1 ) [2024-12-27 12: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-27 09:11:04' and `end` < '2024-12-27 12: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-27 12:11:18] Production.INFO: count ==4595 [2024-12-27 12:11:20] Production.ERROR: pbx CDR StartTime 2024-12-27 09:11:04 - End Time 2024-12-27 12:11:04 [2024-12-27 12:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114110', 'tblTempUsageDetail_20' ) start [2024-12-27 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114110', 'tblTempUsageDetail_20' ) end [2024-12-27 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114110', 'tblTempVendorCDR_20' ) start [2024-12-27 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114110', 'tblTempVendorCDR_20' ) end [2024-12-27 12:11:20] Production.INFO: ProcessCDR(1,14114110,1,1,2) [2024-12-27 12:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114110', 'tblTempUsageDetail_20' ) start [2024-12-27 12:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114110', 'tblTempUsageDetail_20' ) end [2024-12-27 12:11:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:11:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:11:25] Production.INFO: ==16560== Releasing lock... [2024-12-27 12:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:11:25] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:12:05 [end_date_ymd] => 2024-12-27 12:12:05 [RateCDR] => 1 ) [2024-12-27 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-27 09:12:05' and `end` < '2024-12-27 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-27 12:12:18] Production.INFO: count ==4596 [2024-12-27 12:12:20] Production.ERROR: pbx CDR StartTime 2024-12-27 09:12:05 - End Time 2024-12-27 12:12:05 [2024-12-27 12:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114115', 'tblTempUsageDetail_20' ) start [2024-12-27 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114115', 'tblTempUsageDetail_20' ) end [2024-12-27 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114115', 'tblTempVendorCDR_20' ) start [2024-12-27 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114115', 'tblTempVendorCDR_20' ) end [2024-12-27 12:12:20] Production.INFO: ProcessCDR(1,14114115,1,1,2) [2024-12-27 12:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114115', 'tblTempUsageDetail_20' ) start [2024-12-27 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114115', 'tblTempUsageDetail_20' ) end [2024-12-27 12:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:12:24] Production.INFO: ==16631== Releasing lock... [2024-12-27 12:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:12:24] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:13:05 [end_date_ymd] => 2024-12-27 12:13:05 [RateCDR] => 1 ) [2024-12-27 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:13:05' and `end` < '2024-12-27 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:13:19] Production.INFO: count ==4592 [2024-12-27 12:13:21] Production.ERROR: pbx CDR StartTime 2024-12-27 09:13:05 - End Time 2024-12-27 12:13:05 [2024-12-27 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114120', 'tblTempUsageDetail_20' ) start [2024-12-27 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114120', 'tblTempUsageDetail_20' ) end [2024-12-27 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114120', 'tblTempVendorCDR_20' ) start [2024-12-27 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114120', 'tblTempVendorCDR_20' ) end [2024-12-27 12:13:21] Production.INFO: ProcessCDR(1,14114120,1,1,2) [2024-12-27 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114120', 'tblTempUsageDetail_20' ) start [2024-12-27 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114120', 'tblTempUsageDetail_20' ) end [2024-12-27 12:13:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:13:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:13:26] Production.INFO: ==16705== Releasing lock... [2024-12-27 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:13:26] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:14:05 [end_date_ymd] => 2024-12-27 12:14:05 [RateCDR] => 1 ) [2024-12-27 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:14:05' and `end` < '2024-12-27 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:14:23] Production.INFO: count ==4609 [2024-12-27 12:14:25] Production.ERROR: pbx CDR StartTime 2024-12-27 09:14:05 - End Time 2024-12-27 12:14:05 [2024-12-27 12:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114125', 'tblTempUsageDetail_20' ) start [2024-12-27 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114125', 'tblTempUsageDetail_20' ) end [2024-12-27 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114125', 'tblTempVendorCDR_20' ) start [2024-12-27 12:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114125', 'tblTempVendorCDR_20' ) end [2024-12-27 12:14:25] Production.INFO: ProcessCDR(1,14114125,1,1,2) [2024-12-27 12:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114125', 'tblTempUsageDetail_20' ) start [2024-12-27 12:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114125', 'tblTempUsageDetail_20' ) end [2024-12-27 12:14:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:14:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:14:30] Production.INFO: ==16781== Releasing lock... [2024-12-27 12:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:14:30] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:15:05 [end_date_ymd] => 2024-12-27 12:15:05 [RateCDR] => 1 ) [2024-12-27 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:15:05' and `end` < '2024-12-27 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:15:23] Production.INFO: count ==4620 [2024-12-27 12:15:25] Production.ERROR: pbx CDR StartTime 2024-12-27 09:15:05 - End Time 2024-12-27 12:15:05 [2024-12-27 12:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114130', 'tblTempUsageDetail_20' ) start [2024-12-27 12:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114130', 'tblTempUsageDetail_20' ) end [2024-12-27 12:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114130', 'tblTempVendorCDR_20' ) start [2024-12-27 12:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114130', 'tblTempVendorCDR_20' ) end [2024-12-27 12:15:26] Production.INFO: ProcessCDR(1,14114130,1,1,2) [2024-12-27 12:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114130', 'tblTempUsageDetail_20' ) start [2024-12-27 12:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114130', 'tblTempUsageDetail_20' ) end [2024-12-27 12:15:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:15:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:15:30] Production.INFO: ==16893== Releasing lock... [2024-12-27 12:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:15:30] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:16:05 [end_date_ymd] => 2024-12-27 12:16:05 [RateCDR] => 1 ) [2024-12-27 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:16:05' and `end` < '2024-12-27 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:16:19] Production.INFO: count ==4624 [2024-12-27 12:16:21] Production.ERROR: pbx CDR StartTime 2024-12-27 09:16:05 - End Time 2024-12-27 12:16:05 [2024-12-27 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114135', 'tblTempUsageDetail_20' ) start [2024-12-27 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114135', 'tblTempUsageDetail_20' ) end [2024-12-27 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114135', 'tblTempVendorCDR_20' ) start [2024-12-27 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114135', 'tblTempVendorCDR_20' ) end [2024-12-27 12:16:21] Production.INFO: ProcessCDR(1,14114135,1,1,2) [2024-12-27 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114135', 'tblTempUsageDetail_20' ) start [2024-12-27 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114135', 'tblTempUsageDetail_20' ) end [2024-12-27 12:16:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:16:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:16:26] Production.INFO: ==16962== Releasing lock... [2024-12-27 12:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:16:26] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:17:05 [end_date_ymd] => 2024-12-27 12:17:05 [RateCDR] => 1 ) [2024-12-27 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:17:05' and `end` < '2024-12-27 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:17:19] Production.INFO: count ==4612 [2024-12-27 12:17:21] Production.ERROR: pbx CDR StartTime 2024-12-27 09:17:05 - End Time 2024-12-27 12:17:05 [2024-12-27 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114140', 'tblTempUsageDetail_20' ) start [2024-12-27 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114140', 'tblTempUsageDetail_20' ) end [2024-12-27 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114140', 'tblTempVendorCDR_20' ) start [2024-12-27 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114140', 'tblTempVendorCDR_20' ) end [2024-12-27 12:17:21] Production.INFO: ProcessCDR(1,14114140,1,1,2) [2024-12-27 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114140', 'tblTempUsageDetail_20' ) start [2024-12-27 12:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114140', 'tblTempUsageDetail_20' ) end [2024-12-27 12:17:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:17:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:17:25] Production.INFO: ==17044== Releasing lock... [2024-12-27 12:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:17:25] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:18:05 [end_date_ymd] => 2024-12-27 12:18:05 [RateCDR] => 1 ) [2024-12-27 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-27 09:18:05' and `end` < '2024-12-27 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-27 12:18:21] Production.INFO: count ==4604 [2024-12-27 12:18:22] Production.ERROR: pbx CDR StartTime 2024-12-27 09:18:05 - End Time 2024-12-27 12:18:05 [2024-12-27 12:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114145', 'tblTempUsageDetail_20' ) start [2024-12-27 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114145', 'tblTempUsageDetail_20' ) end [2024-12-27 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114145', 'tblTempVendorCDR_20' ) start [2024-12-27 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114145', 'tblTempVendorCDR_20' ) end [2024-12-27 12:18:23] Production.INFO: ProcessCDR(1,14114145,1,1,2) [2024-12-27 12:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114145', 'tblTempUsageDetail_20' ) start [2024-12-27 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114145', 'tblTempUsageDetail_20' ) end [2024-12-27 12:18:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:18:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:18:26] Production.INFO: ==17114== Releasing lock... [2024-12-27 12:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:18:26] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 12:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:19:04 [end_date_ymd] => 2024-12-27 12:19:04 [RateCDR] => 1 ) [2024-12-27 12: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-27 09:19:04' and `end` < '2024-12-27 12: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-27 12:19:18] Production.INFO: count ==4595 [2024-12-27 12:19:20] Production.ERROR: pbx CDR StartTime 2024-12-27 09:19:04 - End Time 2024-12-27 12:19:04 [2024-12-27 12:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114150', 'tblTempUsageDetail_20' ) start [2024-12-27 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114150', 'tblTempUsageDetail_20' ) end [2024-12-27 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114150', 'tblTempVendorCDR_20' ) start [2024-12-27 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114150', 'tblTempVendorCDR_20' ) end [2024-12-27 12:19:20] Production.INFO: ProcessCDR(1,14114150,1,1,2) [2024-12-27 12:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114150', 'tblTempUsageDetail_20' ) start [2024-12-27 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114150', 'tblTempUsageDetail_20' ) end [2024-12-27 12:19:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:19:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:19:25] Production.INFO: ==17187== Releasing lock... [2024-12-27 12:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:19:25] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:20:06 [end_date_ymd] => 2024-12-27 12:20:06 [RateCDR] => 1 ) [2024-12-27 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:20:06' and `end` < '2024-12-27 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:20:21] Production.INFO: count ==4589 [2024-12-27 12:20:23] Production.ERROR: pbx CDR StartTime 2024-12-27 09:20:06 - End Time 2024-12-27 12:20:06 [2024-12-27 12:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114156', 'tblTempUsageDetail_20' ) start [2024-12-27 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114156', 'tblTempUsageDetail_20' ) end [2024-12-27 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114156', 'tblTempVendorCDR_20' ) start [2024-12-27 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114156', 'tblTempVendorCDR_20' ) end [2024-12-27 12:20:23] Production.INFO: ProcessCDR(1,14114156,1,1,2) [2024-12-27 12:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114156', 'tblTempUsageDetail_20' ) start [2024-12-27 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114156', 'tblTempUsageDetail_20' ) end [2024-12-27 12:20:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:20:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:20:28] Production.INFO: ==17260== Releasing lock... [2024-12-27 12:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:20:28] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:21:05 [end_date_ymd] => 2024-12-27 12:21:05 [RateCDR] => 1 ) [2024-12-27 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:21:05' and `end` < '2024-12-27 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:21:22] Production.INFO: count ==4618 [2024-12-27 12:21:24] Production.ERROR: pbx CDR StartTime 2024-12-27 09:21:05 - End Time 2024-12-27 12:21:05 [2024-12-27 12:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114161', 'tblTempUsageDetail_20' ) start [2024-12-27 12:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114161', 'tblTempUsageDetail_20' ) end [2024-12-27 12:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114161', 'tblTempVendorCDR_20' ) start [2024-12-27 12:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114161', 'tblTempVendorCDR_20' ) end [2024-12-27 12:21:24] Production.INFO: ProcessCDR(1,14114161,1,1,2) [2024-12-27 12:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114161', 'tblTempUsageDetail_20' ) start [2024-12-27 12:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114161', 'tblTempUsageDetail_20' ) end [2024-12-27 12:21:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:21:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:21:28] Production.INFO: ==17335== Releasing lock... [2024-12-27 12:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:21:28] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:22:05 [end_date_ymd] => 2024-12-27 12:22:05 [RateCDR] => 1 ) [2024-12-27 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:22:05' and `end` < '2024-12-27 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:22:20] Production.INFO: count ==4618 [2024-12-27 12:22:21] Production.ERROR: pbx CDR StartTime 2024-12-27 09:22:05 - End Time 2024-12-27 12:22:05 [2024-12-27 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114166', 'tblTempUsageDetail_20' ) start [2024-12-27 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114166', 'tblTempUsageDetail_20' ) end [2024-12-27 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114166', 'tblTempVendorCDR_20' ) start [2024-12-27 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114166', 'tblTempVendorCDR_20' ) end [2024-12-27 12:22:22] Production.INFO: ProcessCDR(1,14114166,1,1,2) [2024-12-27 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114166', 'tblTempUsageDetail_20' ) start [2024-12-27 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114166', 'tblTempUsageDetail_20' ) end [2024-12-27 12:22:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:22:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:22:26] Production.INFO: ==17405== Releasing lock... [2024-12-27 12:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:22:26] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 12:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:23:04 [end_date_ymd] => 2024-12-27 12:23:04 [RateCDR] => 1 ) [2024-12-27 12: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-27 09:23:04' and `end` < '2024-12-27 12: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-27 12:23:25] Production.INFO: count ==4605 [2024-12-27 12:23:26] Production.ERROR: pbx CDR StartTime 2024-12-27 09:23:04 - End Time 2024-12-27 12:23:04 [2024-12-27 12:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114171', 'tblTempUsageDetail_20' ) start [2024-12-27 12:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114171', 'tblTempUsageDetail_20' ) end [2024-12-27 12:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114171', 'tblTempVendorCDR_20' ) start [2024-12-27 12:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114171', 'tblTempVendorCDR_20' ) end [2024-12-27 12:23:27] Production.INFO: ProcessCDR(1,14114171,1,1,2) [2024-12-27 12:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114171', 'tblTempUsageDetail_20' ) start [2024-12-27 12:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114171', 'tblTempUsageDetail_20' ) end [2024-12-27 12:23:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:23:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:23:31] Production.INFO: ==17477== Releasing lock... [2024-12-27 12:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:23:31] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 12:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:24:04 [end_date_ymd] => 2024-12-27 12:24:04 [RateCDR] => 1 ) [2024-12-27 12:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:24:04' and `end` < '2024-12-27 12:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:24:22] Production.INFO: count ==4606 [2024-12-27 12:24:23] Production.ERROR: pbx CDR StartTime 2024-12-27 09:24:04 - End Time 2024-12-27 12:24:04 [2024-12-27 12:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114176', 'tblTempUsageDetail_20' ) start [2024-12-27 12:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114176', 'tblTempUsageDetail_20' ) end [2024-12-27 12:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114176', 'tblTempVendorCDR_20' ) start [2024-12-27 12:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114176', 'tblTempVendorCDR_20' ) end [2024-12-27 12:24:24] Production.INFO: ProcessCDR(1,14114176,1,1,2) [2024-12-27 12:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114176', 'tblTempUsageDetail_20' ) start [2024-12-27 12:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114176', 'tblTempUsageDetail_20' ) end [2024-12-27 12:24:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:24:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:24:28] Production.INFO: ==17550== Releasing lock... [2024-12-27 12:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:24:28] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:25:05 [end_date_ymd] => 2024-12-27 12:25:05 [RateCDR] => 1 ) [2024-12-27 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:25:05' and `end` < '2024-12-27 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:25:19] Production.INFO: count ==4604 [2024-12-27 12:25:20] Production.ERROR: pbx CDR StartTime 2024-12-27 09:25:05 - End Time 2024-12-27 12:25:05 [2024-12-27 12:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114181', 'tblTempUsageDetail_20' ) start [2024-12-27 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114181', 'tblTempUsageDetail_20' ) end [2024-12-27 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114181', 'tblTempVendorCDR_20' ) start [2024-12-27 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114181', 'tblTempVendorCDR_20' ) end [2024-12-27 12:25:21] Production.INFO: ProcessCDR(1,14114181,1,1,2) [2024-12-27 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114181', 'tblTempUsageDetail_20' ) start [2024-12-27 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114181', 'tblTempUsageDetail_20' ) end [2024-12-27 12:25:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:25:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:25:25] Production.INFO: ==17624== Releasing lock... [2024-12-27 12:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:25:25] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:26:05 [end_date_ymd] => 2024-12-27 12:26:05 [RateCDR] => 1 ) [2024-12-27 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-27 09:26:05' and `end` < '2024-12-27 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-27 12:26:18] Production.INFO: count ==4609 [2024-12-27 12:26:20] Production.ERROR: pbx CDR StartTime 2024-12-27 09:26:05 - End Time 2024-12-27 12:26:05 [2024-12-27 12:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114186', 'tblTempUsageDetail_20' ) start [2024-12-27 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114186', 'tblTempUsageDetail_20' ) end [2024-12-27 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114186', 'tblTempVendorCDR_20' ) start [2024-12-27 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114186', 'tblTempVendorCDR_20' ) end [2024-12-27 12:26:20] Production.INFO: ProcessCDR(1,14114186,1,1,2) [2024-12-27 12:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114186', 'tblTempUsageDetail_20' ) start [2024-12-27 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114186', 'tblTempUsageDetail_20' ) end [2024-12-27 12:26:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:26:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:26:25] Production.INFO: ==17697== Releasing lock... [2024-12-27 12:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:26:25] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:27:05 [end_date_ymd] => 2024-12-27 12:27:05 [RateCDR] => 1 ) [2024-12-27 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:27:05' and `end` < '2024-12-27 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:27:18] Production.INFO: count ==4590 [2024-12-27 12:27:20] Production.ERROR: pbx CDR StartTime 2024-12-27 09:27:05 - End Time 2024-12-27 12:27:05 [2024-12-27 12:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114191', 'tblTempUsageDetail_20' ) start [2024-12-27 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114191', 'tblTempUsageDetail_20' ) end [2024-12-27 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114191', 'tblTempVendorCDR_20' ) start [2024-12-27 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114191', 'tblTempVendorCDR_20' ) end [2024-12-27 12:27:20] Production.INFO: ProcessCDR(1,14114191,1,1,2) [2024-12-27 12:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114191', 'tblTempUsageDetail_20' ) start [2024-12-27 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114191', 'tblTempUsageDetail_20' ) end [2024-12-27 12:27:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:27:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:27:25] Production.INFO: ==17775== Releasing lock... [2024-12-27 12:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:27:25] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 12:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:28:04 [end_date_ymd] => 2024-12-27 12:28:04 [RateCDR] => 1 ) [2024-12-27 12: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-27 09:28:04' and `end` < '2024-12-27 12: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-27 12:28:18] Production.INFO: count ==4580 [2024-12-27 12:28:20] Production.ERROR: pbx CDR StartTime 2024-12-27 09:28:04 - End Time 2024-12-27 12:28:04 [2024-12-27 12:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114196', 'tblTempUsageDetail_20' ) start [2024-12-27 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114196', 'tblTempUsageDetail_20' ) end [2024-12-27 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114196', 'tblTempVendorCDR_20' ) start [2024-12-27 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114196', 'tblTempVendorCDR_20' ) end [2024-12-27 12:28:20] Production.INFO: ProcessCDR(1,14114196,1,1,2) [2024-12-27 12:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114196', 'tblTempUsageDetail_20' ) start [2024-12-27 12:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114196', 'tblTempUsageDetail_20' ) end [2024-12-27 12:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:28:24] Production.INFO: ==17856== Releasing lock... [2024-12-27 12:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:28:24] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:29:05 [end_date_ymd] => 2024-12-27 12:29:05 [RateCDR] => 1 ) [2024-12-27 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:29:05' and `end` < '2024-12-27 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:29:19] Production.INFO: count ==4527 [2024-12-27 12:29:21] Production.ERROR: pbx CDR StartTime 2024-12-27 09:29:05 - End Time 2024-12-27 12:29:05 [2024-12-27 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114201', 'tblTempUsageDetail_20' ) start [2024-12-27 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114201', 'tblTempUsageDetail_20' ) end [2024-12-27 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114201', 'tblTempVendorCDR_20' ) start [2024-12-27 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114201', 'tblTempVendorCDR_20' ) end [2024-12-27 12:29:21] Production.INFO: ProcessCDR(1,14114201,1,1,2) [2024-12-27 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114201', 'tblTempUsageDetail_20' ) start [2024-12-27 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114201', 'tblTempUsageDetail_20' ) end [2024-12-27 12:29:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:29:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:29:25] Production.INFO: ==17935== Releasing lock... [2024-12-27 12:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:29:25] Production.INFO: 61.75 MB #Memory Used# [2024-12-27 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:30:06 [end_date_ymd] => 2024-12-27 12:30:06 [RateCDR] => 1 ) [2024-12-27 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:30:06' and `end` < '2024-12-27 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:30:23] Production.INFO: count ==4523 [2024-12-27 12:30:25] Production.ERROR: pbx CDR StartTime 2024-12-27 09:30:06 - End Time 2024-12-27 12:30:06 [2024-12-27 12:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114207', 'tblTempUsageDetail_20' ) start [2024-12-27 12:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114207', 'tblTempUsageDetail_20' ) end [2024-12-27 12:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114207', 'tblTempVendorCDR_20' ) start [2024-12-27 12:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114207', 'tblTempVendorCDR_20' ) end [2024-12-27 12:30:25] Production.INFO: ProcessCDR(1,14114207,1,1,2) [2024-12-27 12:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:30:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:30:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114207', 'tblTempUsageDetail_20' ) start [2024-12-27 12:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114207', 'tblTempUsageDetail_20' ) end [2024-12-27 12:30:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:30:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:30:30] Production.INFO: ==18025== Releasing lock... [2024-12-27 12:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:30:30] Production.INFO: 61.75 MB #Memory Used# [2024-12-27 12:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:31:04 [end_date_ymd] => 2024-12-27 12:31:04 [RateCDR] => 1 ) [2024-12-27 12: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-27 09:31:04' and `end` < '2024-12-27 12: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-27 12:31:22] Production.INFO: count ==4538 [2024-12-27 12:31:23] Production.ERROR: pbx CDR StartTime 2024-12-27 09:31:04 - End Time 2024-12-27 12:31:04 [2024-12-27 12:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114212', 'tblTempUsageDetail_20' ) start [2024-12-27 12:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114212', 'tblTempUsageDetail_20' ) end [2024-12-27 12:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114212', 'tblTempVendorCDR_20' ) start [2024-12-27 12:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114212', 'tblTempVendorCDR_20' ) end [2024-12-27 12:31:24] Production.INFO: ProcessCDR(1,14114212,1,1,2) [2024-12-27 12:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114212', 'tblTempUsageDetail_20' ) start [2024-12-27 12:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114212', 'tblTempUsageDetail_20' ) end [2024-12-27 12:31:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:31:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:31:28] Production.INFO: ==18146== Releasing lock... [2024-12-27 12:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:31:28] Production.INFO: 62 MB #Memory Used# [2024-12-27 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:32:05 [end_date_ymd] => 2024-12-27 12:32:05 [RateCDR] => 1 ) [2024-12-27 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:32:05' and `end` < '2024-12-27 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:32:22] Production.INFO: count ==4524 [2024-12-27 12:32:24] Production.ERROR: pbx CDR StartTime 2024-12-27 09:32:05 - End Time 2024-12-27 12:32:05 [2024-12-27 12:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114217', 'tblTempUsageDetail_20' ) start [2024-12-27 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114217', 'tblTempUsageDetail_20' ) end [2024-12-27 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114217', 'tblTempVendorCDR_20' ) start [2024-12-27 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114217', 'tblTempVendorCDR_20' ) end [2024-12-27 12:32:24] Production.INFO: ProcessCDR(1,14114217,1,1,2) [2024-12-27 12:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114217', 'tblTempUsageDetail_20' ) start [2024-12-27 12:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114217', 'tblTempUsageDetail_20' ) end [2024-12-27 12:32:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:32:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:32:29] Production.INFO: ==18230== Releasing lock... [2024-12-27 12:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:32:29] Production.INFO: 61.75 MB #Memory Used# [2024-12-27 12:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:33:04 [end_date_ymd] => 2024-12-27 12:33:04 [RateCDR] => 1 ) [2024-12-27 12: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-27 09:33:04' and `end` < '2024-12-27 12: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-27 12:33:20] Production.INFO: count ==4524 [2024-12-27 12:33:22] Production.ERROR: pbx CDR StartTime 2024-12-27 09:33:04 - End Time 2024-12-27 12:33:04 [2024-12-27 12:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114222', 'tblTempUsageDetail_20' ) start [2024-12-27 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114222', 'tblTempUsageDetail_20' ) end [2024-12-27 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114222', 'tblTempVendorCDR_20' ) start [2024-12-27 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114222', 'tblTempVendorCDR_20' ) end [2024-12-27 12:33:22] Production.INFO: ProcessCDR(1,14114222,1,1,2) [2024-12-27 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114222', 'tblTempUsageDetail_20' ) start [2024-12-27 12:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114222', 'tblTempUsageDetail_20' ) end [2024-12-27 12:33:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:33:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:33:25] Production.INFO: ==18314== Releasing lock... [2024-12-27 12:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:33:25] Production.INFO: 61.75 MB #Memory Used# [2024-12-27 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:34:05 [end_date_ymd] => 2024-12-27 12:34:05 [RateCDR] => 1 ) [2024-12-27 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:34:05' and `end` < '2024-12-27 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:34:23] Production.INFO: count ==4514 [2024-12-27 12:34:25] Production.ERROR: pbx CDR StartTime 2024-12-27 09:34:05 - End Time 2024-12-27 12:34:05 [2024-12-27 12:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114227', 'tblTempUsageDetail_20' ) start [2024-12-27 12:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114227', 'tblTempUsageDetail_20' ) end [2024-12-27 12:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114227', 'tblTempVendorCDR_20' ) start [2024-12-27 12:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114227', 'tblTempVendorCDR_20' ) end [2024-12-27 12:34:25] Production.INFO: ProcessCDR(1,14114227,1,1,2) [2024-12-27 12:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114227', 'tblTempUsageDetail_20' ) start [2024-12-27 12:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114227', 'tblTempUsageDetail_20' ) end [2024-12-27 12:34:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:34:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:34:30] Production.INFO: ==18390== Releasing lock... [2024-12-27 12:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:34:30] Production.INFO: 61.75 MB #Memory Used# [2024-12-27 12:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:35:04 [end_date_ymd] => 2024-12-27 12:35:04 [RateCDR] => 1 ) [2024-12-27 12:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:35:04' and `end` < '2024-12-27 12:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:35:22] Production.INFO: count ==4529 [2024-12-27 12:35:24] Production.ERROR: pbx CDR StartTime 2024-12-27 09:35:04 - End Time 2024-12-27 12:35:04 [2024-12-27 12:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114232', 'tblTempUsageDetail_20' ) start [2024-12-27 12:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114232', 'tblTempUsageDetail_20' ) end [2024-12-27 12:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114232', 'tblTempVendorCDR_20' ) start [2024-12-27 12:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114232', 'tblTempVendorCDR_20' ) end [2024-12-27 12:35:24] Production.INFO: ProcessCDR(1,14114232,1,1,2) [2024-12-27 12:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114232', 'tblTempUsageDetail_20' ) start [2024-12-27 12:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114232', 'tblTempUsageDetail_20' ) end [2024-12-27 12:35:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:35:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:35:29] Production.INFO: ==18475== Releasing lock... [2024-12-27 12:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:35:29] Production.INFO: 62 MB #Memory Used# [2024-12-27 12:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:36:04 [end_date_ymd] => 2024-12-27 12:36:04 [RateCDR] => 1 ) [2024-12-27 12:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:36:04' and `end` < '2024-12-27 12:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:36:18] Production.INFO: count ==4548 [2024-12-27 12:36:20] Production.ERROR: pbx CDR StartTime 2024-12-27 09:36:04 - End Time 2024-12-27 12:36:04 [2024-12-27 12:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114237', 'tblTempUsageDetail_20' ) start [2024-12-27 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114237', 'tblTempUsageDetail_20' ) end [2024-12-27 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114237', 'tblTempVendorCDR_20' ) start [2024-12-27 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114237', 'tblTempVendorCDR_20' ) end [2024-12-27 12:36:20] Production.INFO: ProcessCDR(1,14114237,1,1,2) [2024-12-27 12:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114237', 'tblTempUsageDetail_20' ) start [2024-12-27 12:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114237', 'tblTempUsageDetail_20' ) end [2024-12-27 12:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:36:24] Production.INFO: ==18555== Releasing lock... [2024-12-27 12:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:36:24] Production.INFO: 62 MB #Memory Used# [2024-12-27 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:37:05 [end_date_ymd] => 2024-12-27 12:37:05 [RateCDR] => 1 ) [2024-12-27 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-27 09:37:05' and `end` < '2024-12-27 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-27 12:37:23] Production.INFO: count ==4540 [2024-12-27 12:37:24] Production.ERROR: pbx CDR StartTime 2024-12-27 09:37:05 - End Time 2024-12-27 12:37:05 [2024-12-27 12:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114242', 'tblTempUsageDetail_20' ) start [2024-12-27 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114242', 'tblTempUsageDetail_20' ) end [2024-12-27 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114242', 'tblTempVendorCDR_20' ) start [2024-12-27 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114242', 'tblTempVendorCDR_20' ) end [2024-12-27 12:37:25] Production.INFO: ProcessCDR(1,14114242,1,1,2) [2024-12-27 12:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114242', 'tblTempUsageDetail_20' ) start [2024-12-27 12:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114242', 'tblTempUsageDetail_20' ) end [2024-12-27 12:37:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:37:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:37:29] Production.INFO: ==18638== Releasing lock... [2024-12-27 12:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:37:29] Production.INFO: 62 MB #Memory Used# [2024-12-27 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:38:05 [end_date_ymd] => 2024-12-27 12:38:05 [RateCDR] => 1 ) [2024-12-27 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:38:05' and `end` < '2024-12-27 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:38:28] Production.INFO: count ==4560 [2024-12-27 12:38:30] Production.ERROR: pbx CDR StartTime 2024-12-27 09:38:05 - End Time 2024-12-27 12:38:05 [2024-12-27 12:38:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114247', 'tblTempUsageDetail_20' ) start [2024-12-27 12:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114247', 'tblTempUsageDetail_20' ) end [2024-12-27 12:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114247', 'tblTempVendorCDR_20' ) start [2024-12-27 12:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114247', 'tblTempVendorCDR_20' ) end [2024-12-27 12:38:30] Production.INFO: ProcessCDR(1,14114247,1,1,2) [2024-12-27 12:38:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:38:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:38:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:38:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114247', 'tblTempUsageDetail_20' ) start [2024-12-27 12:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114247', 'tblTempUsageDetail_20' ) end [2024-12-27 12:38:35] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:38:35] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:38:35] Production.INFO: ==18724== Releasing lock... [2024-12-27 12:38:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:38:35] Production.INFO: 62 MB #Memory Used# [2024-12-27 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:39:05 [end_date_ymd] => 2024-12-27 12:39:05 [RateCDR] => 1 ) [2024-12-27 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:39:05' and `end` < '2024-12-27 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:39:22] Production.INFO: count ==4545 [2024-12-27 12:39:24] Production.ERROR: pbx CDR StartTime 2024-12-27 09:39:05 - End Time 2024-12-27 12:39:05 [2024-12-27 12:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114252', 'tblTempUsageDetail_20' ) start [2024-12-27 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114252', 'tblTempUsageDetail_20' ) end [2024-12-27 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114252', 'tblTempVendorCDR_20' ) start [2024-12-27 12:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114252', 'tblTempVendorCDR_20' ) end [2024-12-27 12:39:24] Production.INFO: ProcessCDR(1,14114252,1,1,2) [2024-12-27 12:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114252', 'tblTempUsageDetail_20' ) start [2024-12-27 12:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114252', 'tblTempUsageDetail_20' ) end [2024-12-27 12:39:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:39:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:39:29] Production.INFO: ==18805== Releasing lock... [2024-12-27 12:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:39:29] Production.INFO: 62 MB #Memory Used# [2024-12-27 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:40:05 [end_date_ymd] => 2024-12-27 12:40:05 [RateCDR] => 1 ) [2024-12-27 12: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-27 09:40:05' and `end` < '2024-12-27 12: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-27 12:40:20] Production.INFO: count ==4551 [2024-12-27 12:40:22] Production.ERROR: pbx CDR StartTime 2024-12-27 09:40:05 - End Time 2024-12-27 12:40:05 [2024-12-27 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114258', 'tblTempUsageDetail_20' ) start [2024-12-27 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114258', 'tblTempUsageDetail_20' ) end [2024-12-27 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114258', 'tblTempVendorCDR_20' ) start [2024-12-27 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114258', 'tblTempVendorCDR_20' ) end [2024-12-27 12:40:22] Production.INFO: ProcessCDR(1,14114258,1,1,2) [2024-12-27 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114258', 'tblTempUsageDetail_20' ) start [2024-12-27 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114258', 'tblTempUsageDetail_20' ) end [2024-12-27 12:40:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:40:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:40:27] Production.INFO: ==18898== Releasing lock... [2024-12-27 12:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:40:27] Production.INFO: 62 MB #Memory Used# [2024-12-27 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:41:05 [end_date_ymd] => 2024-12-27 12:41:05 [RateCDR] => 1 ) [2024-12-27 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:41:05' and `end` < '2024-12-27 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:41:21] Production.INFO: count ==4561 [2024-12-27 12:41:23] Production.ERROR: pbx CDR StartTime 2024-12-27 09:41:05 - End Time 2024-12-27 12:41:05 [2024-12-27 12:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114263', 'tblTempUsageDetail_20' ) start [2024-12-27 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114263', 'tblTempUsageDetail_20' ) end [2024-12-27 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114263', 'tblTempVendorCDR_20' ) start [2024-12-27 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114263', 'tblTempVendorCDR_20' ) end [2024-12-27 12:41:23] Production.INFO: ProcessCDR(1,14114263,1,1,2) [2024-12-27 12:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114263', 'tblTempUsageDetail_20' ) start [2024-12-27 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114263', 'tblTempUsageDetail_20' ) end [2024-12-27 12:41:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:41:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:41:28] Production.INFO: ==19010== Releasing lock... [2024-12-27 12:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:41:28] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:42:05 [end_date_ymd] => 2024-12-27 12:42:05 [RateCDR] => 1 ) [2024-12-27 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:42:05' and `end` < '2024-12-27 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:42:19] Production.INFO: count ==4560 [2024-12-27 12:42:21] Production.ERROR: pbx CDR StartTime 2024-12-27 09:42:05 - End Time 2024-12-27 12:42:05 [2024-12-27 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114268', 'tblTempUsageDetail_20' ) start [2024-12-27 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114268', 'tblTempUsageDetail_20' ) end [2024-12-27 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114268', 'tblTempVendorCDR_20' ) start [2024-12-27 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114268', 'tblTempVendorCDR_20' ) end [2024-12-27 12:42:21] Production.INFO: ProcessCDR(1,14114268,1,1,2) [2024-12-27 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114268', 'tblTempUsageDetail_20' ) start [2024-12-27 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114268', 'tblTempUsageDetail_20' ) end [2024-12-27 12:42:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:42:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:42:26] Production.INFO: ==19131== Releasing lock... [2024-12-27 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:42:26] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 12:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:43:04 [end_date_ymd] => 2024-12-27 12:43:04 [RateCDR] => 1 ) [2024-12-27 12:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:43:04' and `end` < '2024-12-27 12:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:43:25] Production.INFO: count ==4552 [2024-12-27 12:43:27] Production.ERROR: pbx CDR StartTime 2024-12-27 09:43:04 - End Time 2024-12-27 12:43:04 [2024-12-27 12:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114273', 'tblTempUsageDetail_20' ) start [2024-12-27 12:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114273', 'tblTempUsageDetail_20' ) end [2024-12-27 12:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114273', 'tblTempVendorCDR_20' ) start [2024-12-27 12:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114273', 'tblTempVendorCDR_20' ) end [2024-12-27 12:43:28] Production.INFO: ProcessCDR(1,14114273,1,1,2) [2024-12-27 12:43:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:43:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114273', 'tblTempUsageDetail_20' ) start [2024-12-27 12:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114273', 'tblTempUsageDetail_20' ) end [2024-12-27 12:43:32] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:43:32] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:43:32] Production.INFO: ==19239== Releasing lock... [2024-12-27 12:43:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:43:32] Production.INFO: 62 MB #Memory Used# [2024-12-27 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:44:05 [end_date_ymd] => 2024-12-27 12:44:05 [RateCDR] => 1 ) [2024-12-27 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:44:05' and `end` < '2024-12-27 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:44:20] Production.INFO: count ==4535 [2024-12-27 12:44:22] Production.ERROR: pbx CDR StartTime 2024-12-27 09:44:05 - End Time 2024-12-27 12:44:05 [2024-12-27 12:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114278', 'tblTempUsageDetail_20' ) start [2024-12-27 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114278', 'tblTempUsageDetail_20' ) end [2024-12-27 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114278', 'tblTempVendorCDR_20' ) start [2024-12-27 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114278', 'tblTempVendorCDR_20' ) end [2024-12-27 12:44:22] Production.INFO: ProcessCDR(1,14114278,1,1,2) [2024-12-27 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114278', 'tblTempUsageDetail_20' ) start [2024-12-27 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114278', 'tblTempUsageDetail_20' ) end [2024-12-27 12:44:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:44:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:44:27] Production.INFO: ==19360== Releasing lock... [2024-12-27 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:44:27] Production.INFO: 62 MB #Memory Used# [2024-12-27 12:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:45:04 [end_date_ymd] => 2024-12-27 12:45:04 [RateCDR] => 1 ) [2024-12-27 12: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-27 09:45:04' and `end` < '2024-12-27 12: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-27 12:45:19] Production.INFO: count ==4528 [2024-12-27 12:45:21] Production.ERROR: pbx CDR StartTime 2024-12-27 09:45:04 - End Time 2024-12-27 12:45:04 [2024-12-27 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114283', 'tblTempUsageDetail_20' ) start [2024-12-27 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114283', 'tblTempUsageDetail_20' ) end [2024-12-27 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114283', 'tblTempVendorCDR_20' ) start [2024-12-27 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114283', 'tblTempVendorCDR_20' ) end [2024-12-27 12:45:22] Production.INFO: ProcessCDR(1,14114283,1,1,2) [2024-12-27 12:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114283', 'tblTempUsageDetail_20' ) start [2024-12-27 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114283', 'tblTempUsageDetail_20' ) end [2024-12-27 12:45:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:45:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:45:25] Production.INFO: ==19470== Releasing lock... [2024-12-27 12:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:45:25] Production.INFO: 62 MB #Memory Used# [2024-12-27 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:46:05 [end_date_ymd] => 2024-12-27 12:46:05 [RateCDR] => 1 ) [2024-12-27 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:46:05' and `end` < '2024-12-27 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:46:19] Production.INFO: count ==4499 [2024-12-27 12:46:21] Production.ERROR: pbx CDR StartTime 2024-12-27 09:46:05 - End Time 2024-12-27 12:46:05 [2024-12-27 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114288', 'tblTempUsageDetail_20' ) start [2024-12-27 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114288', 'tblTempUsageDetail_20' ) end [2024-12-27 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114288', 'tblTempVendorCDR_20' ) start [2024-12-27 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114288', 'tblTempVendorCDR_20' ) end [2024-12-27 12:46:21] Production.INFO: ProcessCDR(1,14114288,1,1,2) [2024-12-27 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114288', 'tblTempUsageDetail_20' ) start [2024-12-27 12:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114288', 'tblTempUsageDetail_20' ) end [2024-12-27 12:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:46:24] Production.INFO: ==19592== Releasing lock... [2024-12-27 12:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:46:24] Production.INFO: 61.75 MB #Memory Used# [2024-12-27 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:47:05 [end_date_ymd] => 2024-12-27 12:47:05 [RateCDR] => 1 ) [2024-12-27 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:47:05' and `end` < '2024-12-27 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:47:36] Production.INFO: count ==4497 [2024-12-27 12:47:38] Production.ERROR: pbx CDR StartTime 2024-12-27 09:47:05 - End Time 2024-12-27 12:47:05 [2024-12-27 12:47:38] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:47:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114293', 'tblTempUsageDetail_20' ) start [2024-12-27 12:47:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114293', 'tblTempUsageDetail_20' ) end [2024-12-27 12:47:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114293', 'tblTempVendorCDR_20' ) start [2024-12-27 12:47:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114293', 'tblTempVendorCDR_20' ) end [2024-12-27 12:47:38] Production.INFO: ProcessCDR(1,14114293,1,1,2) [2024-12-27 12:47:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:47:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:47:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:47:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:47:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114293', 'tblTempUsageDetail_20' ) start [2024-12-27 12:47:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114293', 'tblTempUsageDetail_20' ) end [2024-12-27 12:47:43] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:47:43] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:47:43] Production.INFO: ==19742== Releasing lock... [2024-12-27 12:47:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:47:43] Production.INFO: 61.75 MB #Memory Used# [2024-12-27 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:48:05 [end_date_ymd] => 2024-12-27 12:48:05 [RateCDR] => 1 ) [2024-12-27 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:48:05' and `end` < '2024-12-27 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:48:28] Production.INFO: count ==4492 [2024-12-27 12:48:30] Production.ERROR: pbx CDR StartTime 2024-12-27 09:48:05 - End Time 2024-12-27 12:48:05 [2024-12-27 12:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114298', 'tblTempUsageDetail_20' ) start [2024-12-27 12:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114298', 'tblTempUsageDetail_20' ) end [2024-12-27 12:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114298', 'tblTempVendorCDR_20' ) start [2024-12-27 12:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114298', 'tblTempVendorCDR_20' ) end [2024-12-27 12:48:30] Production.INFO: ProcessCDR(1,14114298,1,1,2) [2024-12-27 12:48:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:48:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:48:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:48:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114298', 'tblTempUsageDetail_20' ) start [2024-12-27 12:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114298', 'tblTempUsageDetail_20' ) end [2024-12-27 12:48:35] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:48:35] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:48:35] Production.INFO: ==19858== Releasing lock... [2024-12-27 12:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:48:35] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 12:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:49:04 [end_date_ymd] => 2024-12-27 12:49:04 [RateCDR] => 1 ) [2024-12-27 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-27 09:49:04' and `end` < '2024-12-27 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-27 12:49:24] Production.INFO: count ==4484 [2024-12-27 12:49:26] Production.ERROR: pbx CDR StartTime 2024-12-27 09:49:04 - End Time 2024-12-27 12:49:04 [2024-12-27 12:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114303', 'tblTempUsageDetail_20' ) start [2024-12-27 12:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114303', 'tblTempUsageDetail_20' ) end [2024-12-27 12:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114303', 'tblTempVendorCDR_20' ) start [2024-12-27 12:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114303', 'tblTempVendorCDR_20' ) end [2024-12-27 12:49:26] Production.INFO: ProcessCDR(1,14114303,1,1,2) [2024-12-27 12:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114303', 'tblTempUsageDetail_20' ) start [2024-12-27 12:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114303', 'tblTempUsageDetail_20' ) end [2024-12-27 12:49:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:49:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:49:31] Production.INFO: ==19977== Releasing lock... [2024-12-27 12:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:49:31] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:50:06 [end_date_ymd] => 2024-12-27 12:50:06 [RateCDR] => 1 ) [2024-12-27 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:50:06' and `end` < '2024-12-27 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:50:24] Production.INFO: count ==4490 [2024-12-27 12:50:26] Production.ERROR: pbx CDR StartTime 2024-12-27 09:50:06 - End Time 2024-12-27 12:50:06 [2024-12-27 12:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114309', 'tblTempUsageDetail_20' ) start [2024-12-27 12:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114309', 'tblTempUsageDetail_20' ) end [2024-12-27 12:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114309', 'tblTempVendorCDR_20' ) start [2024-12-27 12:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114309', 'tblTempVendorCDR_20' ) end [2024-12-27 12:50:26] Production.INFO: ProcessCDR(1,14114309,1,1,2) [2024-12-27 12:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114309', 'tblTempUsageDetail_20' ) start [2024-12-27 12:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114309', 'tblTempUsageDetail_20' ) end [2024-12-27 12:50:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:50:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:50:31] Production.INFO: ==20092== Releasing lock... [2024-12-27 12:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:50:31] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 12:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:51:04 [end_date_ymd] => 2024-12-27 12:51:04 [RateCDR] => 1 ) [2024-12-27 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-27 09:51:04' and `end` < '2024-12-27 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-27 12:51:17] Production.INFO: count ==4525 [2024-12-27 12:51:19] Production.ERROR: pbx CDR StartTime 2024-12-27 09:51:04 - End Time 2024-12-27 12:51:04 [2024-12-27 12:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114314', 'tblTempUsageDetail_20' ) start [2024-12-27 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114314', 'tblTempUsageDetail_20' ) end [2024-12-27 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114314', 'tblTempVendorCDR_20' ) start [2024-12-27 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114314', 'tblTempVendorCDR_20' ) end [2024-12-27 12:51:19] Production.INFO: ProcessCDR(1,14114314,1,1,2) [2024-12-27 12:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114314', 'tblTempUsageDetail_20' ) start [2024-12-27 12:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114314', 'tblTempUsageDetail_20' ) end [2024-12-27 12:51:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:51:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:51:24] Production.INFO: ==20218== Releasing lock... [2024-12-27 12:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:51:24] Production.INFO: 61.75 MB #Memory Used# [2024-12-27 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:52:05 [end_date_ymd] => 2024-12-27 12:52:05 [RateCDR] => 1 ) [2024-12-27 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:52:05' and `end` < '2024-12-27 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:52:26] Production.INFO: count ==4528 [2024-12-27 12:52:28] Production.ERROR: pbx CDR StartTime 2024-12-27 09:52:05 - End Time 2024-12-27 12:52:05 [2024-12-27 12:52:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114319', 'tblTempUsageDetail_20' ) start [2024-12-27 12:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114319', 'tblTempUsageDetail_20' ) end [2024-12-27 12:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114319', 'tblTempVendorCDR_20' ) start [2024-12-27 12:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114319', 'tblTempVendorCDR_20' ) end [2024-12-27 12:52:29] Production.INFO: ProcessCDR(1,14114319,1,1,2) [2024-12-27 12:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:52:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:52:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114319', 'tblTempUsageDetail_20' ) start [2024-12-27 12:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114319', 'tblTempUsageDetail_20' ) end [2024-12-27 12:52:33] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:52:33] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:52:33] Production.INFO: ==20336== Releasing lock... [2024-12-27 12:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:52:33] Production.INFO: 62 MB #Memory Used# [2024-12-27 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:53:05 [end_date_ymd] => 2024-12-27 12:53:05 [RateCDR] => 1 ) [2024-12-27 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:53:05' and `end` < '2024-12-27 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:53:24] Production.INFO: count ==4531 [2024-12-27 12:53:25] Production.ERROR: pbx CDR StartTime 2024-12-27 09:53:05 - End Time 2024-12-27 12:53:05 [2024-12-27 12:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114324', 'tblTempUsageDetail_20' ) start [2024-12-27 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114324', 'tblTempUsageDetail_20' ) end [2024-12-27 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114324', 'tblTempVendorCDR_20' ) start [2024-12-27 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114324', 'tblTempVendorCDR_20' ) end [2024-12-27 12:53:26] Production.INFO: ProcessCDR(1,14114324,1,1,2) [2024-12-27 12:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114324', 'tblTempUsageDetail_20' ) start [2024-12-27 12:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114324', 'tblTempUsageDetail_20' ) end [2024-12-27 12:53:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:53:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:53:29] Production.INFO: ==20450== Releasing lock... [2024-12-27 12:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:53:29] Production.INFO: 62 MB #Memory Used# [2024-12-27 12:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:54:04 [end_date_ymd] => 2024-12-27 12:54:04 [RateCDR] => 1 ) [2024-12-27 12: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-27 09:54:04' and `end` < '2024-12-27 12: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-27 12:54:18] Production.INFO: count ==4537 [2024-12-27 12:54:20] Production.ERROR: pbx CDR StartTime 2024-12-27 09:54:04 - End Time 2024-12-27 12:54:04 [2024-12-27 12:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114329', 'tblTempUsageDetail_20' ) start [2024-12-27 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114329', 'tblTempUsageDetail_20' ) end [2024-12-27 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114329', 'tblTempVendorCDR_20' ) start [2024-12-27 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114329', 'tblTempVendorCDR_20' ) end [2024-12-27 12:54:20] Production.INFO: ProcessCDR(1,14114329,1,1,2) [2024-12-27 12:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114329', 'tblTempUsageDetail_20' ) start [2024-12-27 12:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114329', 'tblTempUsageDetail_20' ) end [2024-12-27 12:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:54:24] Production.INFO: ==20559== Releasing lock... [2024-12-27 12:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:54:24] Production.INFO: 62 MB #Memory Used# [2024-12-27 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:55:05 [end_date_ymd] => 2024-12-27 12:55:05 [RateCDR] => 1 ) [2024-12-27 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:55:05' and `end` < '2024-12-27 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:55:25] Production.INFO: count ==4535 [2024-12-27 12:55:27] Production.ERROR: pbx CDR StartTime 2024-12-27 09:55:05 - End Time 2024-12-27 12:55:05 [2024-12-27 12:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114334', 'tblTempUsageDetail_20' ) start [2024-12-27 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114334', 'tblTempUsageDetail_20' ) end [2024-12-27 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114334', 'tblTempVendorCDR_20' ) start [2024-12-27 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114334', 'tblTempVendorCDR_20' ) end [2024-12-27 12:55:27] Production.INFO: ProcessCDR(1,14114334,1,1,2) [2024-12-27 12:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114334', 'tblTempUsageDetail_20' ) start [2024-12-27 12:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114334', 'tblTempUsageDetail_20' ) end [2024-12-27 12:55:32] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:55:32] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:55:32] Production.INFO: ==20665== Releasing lock... [2024-12-27 12:55:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:55:32] Production.INFO: 62 MB #Memory Used# [2024-12-27 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:56:04 [end_date_ymd] => 2024-12-27 12:56:04 [RateCDR] => 1 ) [2024-12-27 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-27 09:56:04' and `end` < '2024-12-27 12: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-27 12:56:20] Production.INFO: count ==4520 [2024-12-27 12:56:22] Production.ERROR: pbx CDR StartTime 2024-12-27 09:56:04 - End Time 2024-12-27 12:56:04 [2024-12-27 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114339', 'tblTempUsageDetail_20' ) start [2024-12-27 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114339', 'tblTempUsageDetail_20' ) end [2024-12-27 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114339', 'tblTempVendorCDR_20' ) start [2024-12-27 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114339', 'tblTempVendorCDR_20' ) end [2024-12-27 12:56:22] Production.INFO: ProcessCDR(1,14114339,1,1,2) [2024-12-27 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114339', 'tblTempUsageDetail_20' ) start [2024-12-27 12:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114339', 'tblTempUsageDetail_20' ) end [2024-12-27 12:56:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:56:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:56:25] Production.INFO: ==20780== Releasing lock... [2024-12-27 12:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:56:25] Production.INFO: 61.75 MB #Memory Used# [2024-12-27 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:57:05 [end_date_ymd] => 2024-12-27 12:57:05 [RateCDR] => 1 ) [2024-12-27 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:57:05' and `end` < '2024-12-27 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:57:18] Production.INFO: count ==4503 [2024-12-27 12:57:20] Production.ERROR: pbx CDR StartTime 2024-12-27 09:57:05 - End Time 2024-12-27 12:57:05 [2024-12-27 12:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114344', 'tblTempUsageDetail_20' ) start [2024-12-27 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114344', 'tblTempUsageDetail_20' ) end [2024-12-27 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114344', 'tblTempVendorCDR_20' ) start [2024-12-27 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114344', 'tblTempVendorCDR_20' ) end [2024-12-27 12:57:20] Production.INFO: ProcessCDR(1,14114344,1,1,2) [2024-12-27 12:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114344', 'tblTempUsageDetail_20' ) start [2024-12-27 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114344', 'tblTempUsageDetail_20' ) end [2024-12-27 12:57:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:57:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:57:25] Production.INFO: ==20859== Releasing lock... [2024-12-27 12:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:57:25] Production.INFO: 61.75 MB #Memory Used# [2024-12-27 12:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:58:04 [end_date_ymd] => 2024-12-27 12:58:04 [RateCDR] => 1 ) [2024-12-27 12:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:58:04' and `end` < '2024-12-27 12:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:58:18] Production.INFO: count ==4480 [2024-12-27 12:58:20] Production.ERROR: pbx CDR StartTime 2024-12-27 09:58:04 - End Time 2024-12-27 12:58:04 [2024-12-27 12:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114349', 'tblTempUsageDetail_20' ) start [2024-12-27 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114349', 'tblTempUsageDetail_20' ) end [2024-12-27 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114349', 'tblTempVendorCDR_20' ) start [2024-12-27 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114349', 'tblTempVendorCDR_20' ) end [2024-12-27 12:58:20] Production.INFO: ProcessCDR(1,14114349,1,1,2) [2024-12-27 12:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114349', 'tblTempUsageDetail_20' ) start [2024-12-27 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114349', 'tblTempUsageDetail_20' ) end [2024-12-27 12:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:58:24] Production.INFO: ==20940== Releasing lock... [2024-12-27 12:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:58:24] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 09:59:05 [end_date_ymd] => 2024-12-27 12:59:05 [RateCDR] => 1 ) [2024-12-27 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 09:59:05' and `end` < '2024-12-27 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 12:59:18] Production.INFO: count ==4472 [2024-12-27 12:59:20] Production.ERROR: pbx CDR StartTime 2024-12-27 09:59:05 - End Time 2024-12-27 12:59:05 [2024-12-27 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114354', 'tblTempUsageDetail_20' ) start [2024-12-27 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114354', 'tblTempUsageDetail_20' ) end [2024-12-27 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114354', 'tblTempVendorCDR_20' ) start [2024-12-27 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114354', 'tblTempVendorCDR_20' ) end [2024-12-27 12:59:20] Production.INFO: ProcessCDR(1,14114354,1,1,2) [2024-12-27 12:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114354', 'tblTempUsageDetail_20' ) start [2024-12-27 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114354', 'tblTempUsageDetail_20' ) end [2024-12-27 12:59:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 12:59:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 12:59:25] Production.INFO: ==21012== Releasing lock... [2024-12-27 12:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 12:59:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:00:05 [end_date_ymd] => 2024-12-27 13:00:05 [RateCDR] => 1 ) [2024-12-27 13:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:00:05' and `end` < '2024-12-27 13:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:00:19] Production.INFO: count ==4466 [2024-12-27 13:00:20] Production.ERROR: pbx CDR StartTime 2024-12-27 10:00:05 - End Time 2024-12-27 13:00:05 [2024-12-27 13:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114359', 'tblTempUsageDetail_20' ) start [2024-12-27 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114359', 'tblTempUsageDetail_20' ) end [2024-12-27 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114359', 'tblTempVendorCDR_20' ) start [2024-12-27 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114359', 'tblTempVendorCDR_20' ) end [2024-12-27 13:00:20] Production.INFO: ProcessCDR(1,14114359,1,1,2) [2024-12-27 13:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114359', 'tblTempUsageDetail_20' ) start [2024-12-27 13:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114359', 'tblTempUsageDetail_20' ) end [2024-12-27 13:00:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:00:25] Production.INFO: ==21092== Releasing lock... [2024-12-27 13:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:00:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:01:05 [end_date_ymd] => 2024-12-27 13:01:05 [RateCDR] => 1 ) [2024-12-27 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:01:05' and `end` < '2024-12-27 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:01:20] Production.INFO: count ==4475 [2024-12-27 13:01:22] Production.ERROR: pbx CDR StartTime 2024-12-27 10:01:05 - End Time 2024-12-27 13:01:05 [2024-12-27 13:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114365', 'tblTempUsageDetail_20' ) start [2024-12-27 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114365', 'tblTempUsageDetail_20' ) end [2024-12-27 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114365', 'tblTempVendorCDR_20' ) start [2024-12-27 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114365', 'tblTempVendorCDR_20' ) end [2024-12-27 13:01:22] Production.INFO: ProcessCDR(1,14114365,1,1,2) [2024-12-27 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114365', 'tblTempUsageDetail_20' ) start [2024-12-27 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114365', 'tblTempUsageDetail_20' ) end [2024-12-27 13:01:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:01:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:01:27] Production.INFO: ==21187== Releasing lock... [2024-12-27 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:01:27] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:02:05 [end_date_ymd] => 2024-12-27 13:02:05 [RateCDR] => 1 ) [2024-12-27 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:02:05' and `end` < '2024-12-27 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:02:22] Production.INFO: count ==4483 [2024-12-27 13:02:24] Production.ERROR: pbx CDR StartTime 2024-12-27 10:02:05 - End Time 2024-12-27 13:02:05 [2024-12-27 13:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114370', 'tblTempUsageDetail_20' ) start [2024-12-27 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114370', 'tblTempUsageDetail_20' ) end [2024-12-27 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114370', 'tblTempVendorCDR_20' ) start [2024-12-27 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114370', 'tblTempVendorCDR_20' ) end [2024-12-27 13:02:24] Production.INFO: ProcessCDR(1,14114370,1,1,2) [2024-12-27 13:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114370', 'tblTempUsageDetail_20' ) start [2024-12-27 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114370', 'tblTempUsageDetail_20' ) end [2024-12-27 13:02:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:02:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:02:29] Production.INFO: ==21307== Releasing lock... [2024-12-27 13:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:02:29] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:03:04 [end_date_ymd] => 2024-12-27 13:03:04 [RateCDR] => 1 ) [2024-12-27 13: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-27 10:03:04' and `end` < '2024-12-27 13: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-27 13:03:22] Production.INFO: count ==4505 [2024-12-27 13:03:24] Production.ERROR: pbx CDR StartTime 2024-12-27 10:03:04 - End Time 2024-12-27 13:03:04 [2024-12-27 13:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114375', 'tblTempUsageDetail_20' ) start [2024-12-27 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114375', 'tblTempUsageDetail_20' ) end [2024-12-27 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114375', 'tblTempVendorCDR_20' ) start [2024-12-27 13:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114375', 'tblTempVendorCDR_20' ) end [2024-12-27 13:03:24] Production.INFO: ProcessCDR(1,14114375,1,1,2) [2024-12-27 13:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114375', 'tblTempUsageDetail_20' ) start [2024-12-27 13:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114375', 'tblTempUsageDetail_20' ) end [2024-12-27 13:03:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:03:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:03:29] Production.INFO: ==21382== Releasing lock... [2024-12-27 13:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:03:29] Production.INFO: 61.75 MB #Memory Used# [2024-12-27 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:04:05 [end_date_ymd] => 2024-12-27 13:04:05 [RateCDR] => 1 ) [2024-12-27 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:04:05' and `end` < '2024-12-27 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:04:20] Production.INFO: count ==4496 [2024-12-27 13:04:22] Production.ERROR: pbx CDR StartTime 2024-12-27 10:04:05 - End Time 2024-12-27 13:04:05 [2024-12-27 13:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114380', 'tblTempUsageDetail_20' ) start [2024-12-27 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114380', 'tblTempUsageDetail_20' ) end [2024-12-27 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114380', 'tblTempVendorCDR_20' ) start [2024-12-27 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114380', 'tblTempVendorCDR_20' ) end [2024-12-27 13:04:22] Production.INFO: ProcessCDR(1,14114380,1,1,2) [2024-12-27 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114380', 'tblTempUsageDetail_20' ) start [2024-12-27 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114380', 'tblTempUsageDetail_20' ) end [2024-12-27 13:04:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:04:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:04:26] Production.INFO: ==21459== Releasing lock... [2024-12-27 13:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:04:26] Production.INFO: 61.75 MB #Memory Used# [2024-12-27 13:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:05:04 [end_date_ymd] => 2024-12-27 13:05:04 [RateCDR] => 1 ) [2024-12-27 13:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:05:04' and `end` < '2024-12-27 13:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:05:18] Production.INFO: count ==4476 [2024-12-27 13:05:20] Production.ERROR: pbx CDR StartTime 2024-12-27 10:05:04 - End Time 2024-12-27 13:05:04 [2024-12-27 13:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114385', 'tblTempUsageDetail_20' ) start [2024-12-27 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114385', 'tblTempUsageDetail_20' ) end [2024-12-27 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114385', 'tblTempVendorCDR_20' ) start [2024-12-27 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114385', 'tblTempVendorCDR_20' ) end [2024-12-27 13:05:20] Production.INFO: ProcessCDR(1,14114385,1,1,2) [2024-12-27 13:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114385', 'tblTempUsageDetail_20' ) start [2024-12-27 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114385', 'tblTempUsageDetail_20' ) end [2024-12-27 13:05:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:05:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:05:24] Production.INFO: ==21538== Releasing lock... [2024-12-27 13:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:05:24] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:06:05 [end_date_ymd] => 2024-12-27 13:06:05 [RateCDR] => 1 ) [2024-12-27 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:06:05' and `end` < '2024-12-27 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:06:18] Production.INFO: count ==4493 [2024-12-27 13:06:20] Production.ERROR: pbx CDR StartTime 2024-12-27 10:06:05 - End Time 2024-12-27 13:06:05 [2024-12-27 13:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114390', 'tblTempUsageDetail_20' ) start [2024-12-27 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114390', 'tblTempUsageDetail_20' ) end [2024-12-27 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114390', 'tblTempVendorCDR_20' ) start [2024-12-27 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114390', 'tblTempVendorCDR_20' ) end [2024-12-27 13:06:20] Production.INFO: ProcessCDR(1,14114390,1,1,2) [2024-12-27 13:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114390', 'tblTempUsageDetail_20' ) start [2024-12-27 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114390', 'tblTempUsageDetail_20' ) end [2024-12-27 13:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:06:23] Production.INFO: ==21610== Releasing lock... [2024-12-27 13:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:06:23] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:07:04 [end_date_ymd] => 2024-12-27 13:07:04 [RateCDR] => 1 ) [2024-12-27 13: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-27 10:07:04' and `end` < '2024-12-27 13: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-27 13:07:20] Production.INFO: count ==4482 [2024-12-27 13:07:22] Production.ERROR: pbx CDR StartTime 2024-12-27 10:07:04 - End Time 2024-12-27 13:07:04 [2024-12-27 13:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114395', 'tblTempUsageDetail_20' ) start [2024-12-27 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114395', 'tblTempUsageDetail_20' ) end [2024-12-27 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114395', 'tblTempVendorCDR_20' ) start [2024-12-27 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114395', 'tblTempVendorCDR_20' ) end [2024-12-27 13:07:22] Production.INFO: ProcessCDR(1,14114395,1,1,2) [2024-12-27 13:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114395', 'tblTempUsageDetail_20' ) start [2024-12-27 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114395', 'tblTempUsageDetail_20' ) end [2024-12-27 13:07:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:07:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:07:26] Production.INFO: ==21686== Releasing lock... [2024-12-27 13:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:07:26] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:08:05 [end_date_ymd] => 2024-12-27 13:08:05 [RateCDR] => 1 ) [2024-12-27 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:08:05' and `end` < '2024-12-27 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:08:20] Production.INFO: count ==4472 [2024-12-27 13:08:22] Production.ERROR: pbx CDR StartTime 2024-12-27 10:08:05 - End Time 2024-12-27 13:08:05 [2024-12-27 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114400', 'tblTempUsageDetail_20' ) start [2024-12-27 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114400', 'tblTempUsageDetail_20' ) end [2024-12-27 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114400', 'tblTempVendorCDR_20' ) start [2024-12-27 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114400', 'tblTempVendorCDR_20' ) end [2024-12-27 13:08:22] Production.INFO: ProcessCDR(1,14114400,1,1,2) [2024-12-27 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114400', 'tblTempUsageDetail_20' ) start [2024-12-27 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114400', 'tblTempUsageDetail_20' ) end [2024-12-27 13:08:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:08:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:08:27] Production.INFO: ==21759== Releasing lock... [2024-12-27 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:08:27] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:09:05 [end_date_ymd] => 2024-12-27 13:09:05 [RateCDR] => 1 ) [2024-12-27 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:09:05' and `end` < '2024-12-27 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:09:19] Production.INFO: count ==4465 [2024-12-27 13:09:20] Production.ERROR: pbx CDR StartTime 2024-12-27 10:09:05 - End Time 2024-12-27 13:09:05 [2024-12-27 13:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114405', 'tblTempUsageDetail_20' ) start [2024-12-27 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114405', 'tblTempUsageDetail_20' ) end [2024-12-27 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114405', 'tblTempVendorCDR_20' ) start [2024-12-27 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114405', 'tblTempVendorCDR_20' ) end [2024-12-27 13:09:21] Production.INFO: ProcessCDR(1,14114405,1,1,2) [2024-12-27 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114405', 'tblTempUsageDetail_20' ) start [2024-12-27 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114405', 'tblTempUsageDetail_20' ) end [2024-12-27 13:09:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:09:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:09:25] Production.INFO: ==21838== Releasing lock... [2024-12-27 13:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:09:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:10:05 [end_date_ymd] => 2024-12-27 13:10:05 [RateCDR] => 1 ) [2024-12-27 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-27 10:10:05' and `end` < '2024-12-27 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-27 13:10:20] Production.INFO: count ==4482 [2024-12-27 13:10:22] Production.ERROR: pbx CDR StartTime 2024-12-27 10:10:05 - End Time 2024-12-27 13:10:05 [2024-12-27 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114411', 'tblTempUsageDetail_20' ) start [2024-12-27 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114411', 'tblTempUsageDetail_20' ) end [2024-12-27 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114411', 'tblTempVendorCDR_20' ) start [2024-12-27 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114411', 'tblTempVendorCDR_20' ) end [2024-12-27 13:10:22] Production.INFO: ProcessCDR(1,14114411,1,1,2) [2024-12-27 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114411', 'tblTempUsageDetail_20' ) start [2024-12-27 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114411', 'tblTempUsageDetail_20' ) end [2024-12-27 13:10:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:10:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:10:27] Production.INFO: ==21916== Releasing lock... [2024-12-27 13:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:10:27] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:11:05 [end_date_ymd] => 2024-12-27 13:11:05 [RateCDR] => 1 ) [2024-12-27 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:11:05' and `end` < '2024-12-27 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:11:20] Production.INFO: count ==4496 [2024-12-27 13:11:21] Production.ERROR: pbx CDR StartTime 2024-12-27 10:11:05 - End Time 2024-12-27 13:11:05 [2024-12-27 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114416', 'tblTempUsageDetail_20' ) start [2024-12-27 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114416', 'tblTempUsageDetail_20' ) end [2024-12-27 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114416', 'tblTempVendorCDR_20' ) start [2024-12-27 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114416', 'tblTempVendorCDR_20' ) end [2024-12-27 13:11:22] Production.INFO: ProcessCDR(1,14114416,1,1,2) [2024-12-27 13:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114416', 'tblTempUsageDetail_20' ) start [2024-12-27 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114416', 'tblTempUsageDetail_20' ) end [2024-12-27 13:11:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:11:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:11:26] Production.INFO: ==21994== Releasing lock... [2024-12-27 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:11:26] Production.INFO: 61.75 MB #Memory Used# [2024-12-27 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:12:05 [end_date_ymd] => 2024-12-27 13:12:05 [RateCDR] => 1 ) [2024-12-27 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:12:05' and `end` < '2024-12-27 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:12:18] Production.INFO: count ==4491 [2024-12-27 13:12:20] Production.ERROR: pbx CDR StartTime 2024-12-27 10:12:05 - End Time 2024-12-27 13:12:05 [2024-12-27 13:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114421', 'tblTempUsageDetail_20' ) start [2024-12-27 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114421', 'tblTempUsageDetail_20' ) end [2024-12-27 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114421', 'tblTempVendorCDR_20' ) start [2024-12-27 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114421', 'tblTempVendorCDR_20' ) end [2024-12-27 13:12:20] Production.INFO: ProcessCDR(1,14114421,1,1,2) [2024-12-27 13:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114421', 'tblTempUsageDetail_20' ) start [2024-12-27 13:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114421', 'tblTempUsageDetail_20' ) end [2024-12-27 13:12:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:12:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:12:24] Production.INFO: ==22067== Releasing lock... [2024-12-27 13:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:12:24] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:13:05 [end_date_ymd] => 2024-12-27 13:13:05 [RateCDR] => 1 ) [2024-12-27 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-27 10:13:05' and `end` < '2024-12-27 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-27 13:13:20] Production.INFO: count ==4482 [2024-12-27 13:13:22] Production.ERROR: pbx CDR StartTime 2024-12-27 10:13:05 - End Time 2024-12-27 13:13:05 [2024-12-27 13:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114426', 'tblTempUsageDetail_20' ) start [2024-12-27 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114426', 'tblTempUsageDetail_20' ) end [2024-12-27 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114426', 'tblTempVendorCDR_20' ) start [2024-12-27 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114426', 'tblTempVendorCDR_20' ) end [2024-12-27 13:13:22] Production.INFO: ProcessCDR(1,14114426,1,1,2) [2024-12-27 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114426', 'tblTempUsageDetail_20' ) start [2024-12-27 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114426', 'tblTempUsageDetail_20' ) end [2024-12-27 13:13:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:13:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:13:26] Production.INFO: ==22145== Releasing lock... [2024-12-27 13:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:13:26] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:14:04 [end_date_ymd] => 2024-12-27 13:14:04 [RateCDR] => 1 ) [2024-12-27 13:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:14:04' and `end` < '2024-12-27 13:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:14:18] Production.INFO: count ==4483 [2024-12-27 13:14:20] Production.ERROR: pbx CDR StartTime 2024-12-27 10:14:04 - End Time 2024-12-27 13:14:04 [2024-12-27 13:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114431', 'tblTempUsageDetail_20' ) start [2024-12-27 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114431', 'tblTempUsageDetail_20' ) end [2024-12-27 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114431', 'tblTempVendorCDR_20' ) start [2024-12-27 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114431', 'tblTempVendorCDR_20' ) end [2024-12-27 13:14:20] Production.INFO: ProcessCDR(1,14114431,1,1,2) [2024-12-27 13:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114431', 'tblTempUsageDetail_20' ) start [2024-12-27 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114431', 'tblTempUsageDetail_20' ) end [2024-12-27 13:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:14:23] Production.INFO: ==22219== Releasing lock... [2024-12-27 13:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:14:23] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:15:05 [end_date_ymd] => 2024-12-27 13:15:05 [RateCDR] => 1 ) [2024-12-27 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:15:05' and `end` < '2024-12-27 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:15:25] Production.INFO: count ==4463 [2024-12-27 13:15:27] Production.ERROR: pbx CDR StartTime 2024-12-27 10:15:05 - End Time 2024-12-27 13:15:05 [2024-12-27 13:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114436', 'tblTempUsageDetail_20' ) start [2024-12-27 13:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114436', 'tblTempUsageDetail_20' ) end [2024-12-27 13:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114436', 'tblTempVendorCDR_20' ) start [2024-12-27 13:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114436', 'tblTempVendorCDR_20' ) end [2024-12-27 13:15:27] Production.INFO: ProcessCDR(1,14114436,1,1,2) [2024-12-27 13:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114436', 'tblTempUsageDetail_20' ) start [2024-12-27 13:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114436', 'tblTempUsageDetail_20' ) end [2024-12-27 13:15:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:15:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:15:31] Production.INFO: ==22291== Releasing lock... [2024-12-27 13:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:15:31] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:16:05 [end_date_ymd] => 2024-12-27 13:16:05 [RateCDR] => 1 ) [2024-12-27 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:16:05' and `end` < '2024-12-27 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:16:20] Production.INFO: count ==4462 [2024-12-27 13:16:21] Production.ERROR: pbx CDR StartTime 2024-12-27 10:16:05 - End Time 2024-12-27 13:16:05 [2024-12-27 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114441', 'tblTempUsageDetail_20' ) start [2024-12-27 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114441', 'tblTempUsageDetail_20' ) end [2024-12-27 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114441', 'tblTempVendorCDR_20' ) start [2024-12-27 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114441', 'tblTempVendorCDR_20' ) end [2024-12-27 13:16:22] Production.INFO: ProcessCDR(1,14114441,1,1,2) [2024-12-27 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114441', 'tblTempUsageDetail_20' ) start [2024-12-27 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114441', 'tblTempUsageDetail_20' ) end [2024-12-27 13:16:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:16:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:16:26] Production.INFO: ==22364== Releasing lock... [2024-12-27 13:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:16:26] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:17:05 [end_date_ymd] => 2024-12-27 13:17:05 [RateCDR] => 1 ) [2024-12-27 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:17:05' and `end` < '2024-12-27 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:17:25] Production.INFO: count ==4462 [2024-12-27 13:17:27] Production.ERROR: pbx CDR StartTime 2024-12-27 10:17:05 - End Time 2024-12-27 13:17:05 [2024-12-27 13:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114446', 'tblTempUsageDetail_20' ) start [2024-12-27 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114446', 'tblTempUsageDetail_20' ) end [2024-12-27 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114446', 'tblTempVendorCDR_20' ) start [2024-12-27 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114446', 'tblTempVendorCDR_20' ) end [2024-12-27 13:17:27] Production.INFO: ProcessCDR(1,14114446,1,1,2) [2024-12-27 13:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114446', 'tblTempUsageDetail_20' ) start [2024-12-27 13:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114446', 'tblTempUsageDetail_20' ) end [2024-12-27 13:17:32] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:17:32] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:17:32] Production.INFO: ==22438== Releasing lock... [2024-12-27 13:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:17:32] Production.INFO: 61.25 MB #Memory Used# [2024-12-27 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:18:05 [end_date_ymd] => 2024-12-27 13:18:05 [RateCDR] => 1 ) [2024-12-27 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:18:05' and `end` < '2024-12-27 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:18:23] Production.INFO: count ==4459 [2024-12-27 13:18:25] Production.ERROR: pbx CDR StartTime 2024-12-27 10:18:05 - End Time 2024-12-27 13:18:05 [2024-12-27 13:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114451', 'tblTempUsageDetail_20' ) start [2024-12-27 13:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114451', 'tblTempUsageDetail_20' ) end [2024-12-27 13:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114451', 'tblTempVendorCDR_20' ) start [2024-12-27 13:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114451', 'tblTempVendorCDR_20' ) end [2024-12-27 13:18:25] Production.INFO: ProcessCDR(1,14114451,1,1,2) [2024-12-27 13:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114451', 'tblTempUsageDetail_20' ) start [2024-12-27 13:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114451', 'tblTempUsageDetail_20' ) end [2024-12-27 13:18:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:18:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:18:30] Production.INFO: ==22584== Releasing lock... [2024-12-27 13:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:18:30] Production.INFO: 61.25 MB #Memory Used# [2024-12-27 13:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:19:04 [end_date_ymd] => 2024-12-27 13:19:04 [RateCDR] => 1 ) [2024-12-27 13: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-27 10:19:04' and `end` < '2024-12-27 13: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-27 13:19:19] Production.INFO: count ==4455 [2024-12-27 13:19:21] Production.ERROR: pbx CDR StartTime 2024-12-27 10:19:04 - End Time 2024-12-27 13:19:04 [2024-12-27 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114456', 'tblTempUsageDetail_20' ) start [2024-12-27 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114456', 'tblTempUsageDetail_20' ) end [2024-12-27 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114456', 'tblTempVendorCDR_20' ) start [2024-12-27 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114456', 'tblTempVendorCDR_20' ) end [2024-12-27 13:19:21] Production.INFO: ProcessCDR(1,14114456,1,1,2) [2024-12-27 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114456', 'tblTempUsageDetail_20' ) start [2024-12-27 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114456', 'tblTempUsageDetail_20' ) end [2024-12-27 13:19:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:19:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:19:26] Production.INFO: ==22692== Releasing lock... [2024-12-27 13:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:19:26] Production.INFO: 61.25 MB #Memory Used# [2024-12-27 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:20:06 [end_date_ymd] => 2024-12-27 13:20:06 [RateCDR] => 1 ) [2024-12-27 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:20:06' and `end` < '2024-12-27 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:20:20] Production.INFO: count ==4453 [2024-12-27 13:20:21] Production.ERROR: pbx CDR StartTime 2024-12-27 10:20:06 - End Time 2024-12-27 13:20:06 [2024-12-27 13:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114461', 'tblTempUsageDetail_20' ) start [2024-12-27 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114461', 'tblTempUsageDetail_20' ) end [2024-12-27 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114461', 'tblTempVendorCDR_20' ) start [2024-12-27 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114461', 'tblTempVendorCDR_20' ) end [2024-12-27 13:20:22] Production.INFO: ProcessCDR(1,14114461,1,1,2) [2024-12-27 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114461', 'tblTempUsageDetail_20' ) start [2024-12-27 13:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114461', 'tblTempUsageDetail_20' ) end [2024-12-27 13:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:20:25] Production.INFO: ==22785== Releasing lock... [2024-12-27 13:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:20:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:21:04 [end_date_ymd] => 2024-12-27 13:21:04 [RateCDR] => 1 ) [2024-12-27 13:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:21:04' and `end` < '2024-12-27 13:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:21:20] Production.INFO: count ==4480 [2024-12-27 13:21:21] Production.ERROR: pbx CDR StartTime 2024-12-27 10:21:04 - End Time 2024-12-27 13:21:04 [2024-12-27 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114467', 'tblTempUsageDetail_20' ) start [2024-12-27 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114467', 'tblTempUsageDetail_20' ) end [2024-12-27 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114467', 'tblTempVendorCDR_20' ) start [2024-12-27 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114467', 'tblTempVendorCDR_20' ) end [2024-12-27 13:21:21] Production.INFO: ProcessCDR(1,14114467,1,1,2) [2024-12-27 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114467', 'tblTempUsageDetail_20' ) start [2024-12-27 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114467', 'tblTempUsageDetail_20' ) end [2024-12-27 13:21:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:21:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:21:26] Production.INFO: ==22857== Releasing lock... [2024-12-27 13:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:21:26] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:22:05 [end_date_ymd] => 2024-12-27 13:22:05 [RateCDR] => 1 ) [2024-12-27 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:22:05' and `end` < '2024-12-27 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:22:21] Production.INFO: count ==4490 [2024-12-27 13:22:23] Production.ERROR: pbx CDR StartTime 2024-12-27 10:22:05 - End Time 2024-12-27 13:22:05 [2024-12-27 13:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114472', 'tblTempUsageDetail_20' ) start [2024-12-27 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114472', 'tblTempUsageDetail_20' ) end [2024-12-27 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114472', 'tblTempVendorCDR_20' ) start [2024-12-27 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114472', 'tblTempVendorCDR_20' ) end [2024-12-27 13:22:23] Production.INFO: ProcessCDR(1,14114472,1,1,2) [2024-12-27 13:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114472', 'tblTempUsageDetail_20' ) start [2024-12-27 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114472', 'tblTempUsageDetail_20' ) end [2024-12-27 13:22:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:22:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:22:28] Production.INFO: ==22930== Releasing lock... [2024-12-27 13:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:22:28] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:23:05 [end_date_ymd] => 2024-12-27 13:23:05 [RateCDR] => 1 ) [2024-12-27 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:23:05' and `end` < '2024-12-27 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:23:19] Production.INFO: count ==4492 [2024-12-27 13:23:21] Production.ERROR: pbx CDR StartTime 2024-12-27 10:23:05 - End Time 2024-12-27 13:23:05 [2024-12-27 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114477', 'tblTempUsageDetail_20' ) start [2024-12-27 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114477', 'tblTempUsageDetail_20' ) end [2024-12-27 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114477', 'tblTempVendorCDR_20' ) start [2024-12-27 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114477', 'tblTempVendorCDR_20' ) end [2024-12-27 13:23:21] Production.INFO: ProcessCDR(1,14114477,1,1,2) [2024-12-27 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114477', 'tblTempUsageDetail_20' ) start [2024-12-27 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114477', 'tblTempUsageDetail_20' ) end [2024-12-27 13:23:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:23:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:23:25] Production.INFO: ==23004== Releasing lock... [2024-12-27 13:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:23:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:24:05 [end_date_ymd] => 2024-12-27 13:24:05 [RateCDR] => 1 ) [2024-12-27 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-27 10:24:05' and `end` < '2024-12-27 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-27 13:24:19] Production.INFO: count ==4477 [2024-12-27 13:24:21] Production.ERROR: pbx CDR StartTime 2024-12-27 10:24:05 - End Time 2024-12-27 13:24:05 [2024-12-27 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114482', 'tblTempUsageDetail_20' ) start [2024-12-27 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114482', 'tblTempUsageDetail_20' ) end [2024-12-27 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114482', 'tblTempVendorCDR_20' ) start [2024-12-27 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114482', 'tblTempVendorCDR_20' ) end [2024-12-27 13:24:21] Production.INFO: ProcessCDR(1,14114482,1,1,2) [2024-12-27 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114482', 'tblTempUsageDetail_20' ) start [2024-12-27 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114482', 'tblTempUsageDetail_20' ) end [2024-12-27 13:24:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:24:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:24:25] Production.INFO: ==23074== Releasing lock... [2024-12-27 13:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:24:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:25:05 [end_date_ymd] => 2024-12-27 13:25:05 [RateCDR] => 1 ) [2024-12-27 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-27 10:25:05' and `end` < '2024-12-27 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-27 13:25:19] Production.INFO: count ==4489 [2024-12-27 13:25:21] Production.ERROR: pbx CDR StartTime 2024-12-27 10:25:05 - End Time 2024-12-27 13:25:05 [2024-12-27 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114487', 'tblTempUsageDetail_20' ) start [2024-12-27 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114487', 'tblTempUsageDetail_20' ) end [2024-12-27 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114487', 'tblTempVendorCDR_20' ) start [2024-12-27 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114487', 'tblTempVendorCDR_20' ) end [2024-12-27 13:25:21] Production.INFO: ProcessCDR(1,14114487,1,1,2) [2024-12-27 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114487', 'tblTempUsageDetail_20' ) start [2024-12-27 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114487', 'tblTempUsageDetail_20' ) end [2024-12-27 13:25:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:25:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:25:25] Production.INFO: ==23147== Releasing lock... [2024-12-27 13:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:25:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:26:04 [end_date_ymd] => 2024-12-27 13:26:04 [RateCDR] => 1 ) [2024-12-27 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-27 10:26:04' and `end` < '2024-12-27 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-27 13:26:17] Production.INFO: count ==4472 [2024-12-27 13:26:19] Production.ERROR: pbx CDR StartTime 2024-12-27 10:26:04 - End Time 2024-12-27 13:26:04 [2024-12-27 13:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114492', 'tblTempUsageDetail_20' ) start [2024-12-27 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114492', 'tblTempUsageDetail_20' ) end [2024-12-27 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114492', 'tblTempVendorCDR_20' ) start [2024-12-27 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114492', 'tblTempVendorCDR_20' ) end [2024-12-27 13:26:19] Production.INFO: ProcessCDR(1,14114492,1,1,2) [2024-12-27 13:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114492', 'tblTempUsageDetail_20' ) start [2024-12-27 13:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114492', 'tblTempUsageDetail_20' ) end [2024-12-27 13:26:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:26:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:26:24] Production.INFO: ==23216== Releasing lock... [2024-12-27 13:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:26:24] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:27:05 [end_date_ymd] => 2024-12-27 13:27:05 [RateCDR] => 1 ) [2024-12-27 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:27:05' and `end` < '2024-12-27 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:27:18] Production.INFO: count ==4469 [2024-12-27 13:27:20] Production.ERROR: pbx CDR StartTime 2024-12-27 10:27:05 - End Time 2024-12-27 13:27:05 [2024-12-27 13:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114497', 'tblTempUsageDetail_20' ) start [2024-12-27 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114497', 'tblTempUsageDetail_20' ) end [2024-12-27 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114497', 'tblTempVendorCDR_20' ) start [2024-12-27 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114497', 'tblTempVendorCDR_20' ) end [2024-12-27 13:27:20] Production.INFO: ProcessCDR(1,14114497,1,1,2) [2024-12-27 13:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114497', 'tblTempUsageDetail_20' ) start [2024-12-27 13:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114497', 'tblTempUsageDetail_20' ) end [2024-12-27 13:27:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:27:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:27:24] Production.INFO: ==23287== Releasing lock... [2024-12-27 13:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:27:24] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:28:05 [end_date_ymd] => 2024-12-27 13:28:05 [RateCDR] => 1 ) [2024-12-27 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:28:05' and `end` < '2024-12-27 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:28:22] Production.INFO: count ==4455 [2024-12-27 13:28:24] Production.ERROR: pbx CDR StartTime 2024-12-27 10:28:05 - End Time 2024-12-27 13:28:05 [2024-12-27 13:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114502', 'tblTempUsageDetail_20' ) start [2024-12-27 13:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114502', 'tblTempUsageDetail_20' ) end [2024-12-27 13:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114502', 'tblTempVendorCDR_20' ) start [2024-12-27 13:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114502', 'tblTempVendorCDR_20' ) end [2024-12-27 13:28:24] Production.INFO: ProcessCDR(1,14114502,1,1,2) [2024-12-27 13:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114502', 'tblTempUsageDetail_20' ) start [2024-12-27 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114502', 'tblTempUsageDetail_20' ) end [2024-12-27 13:28:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:28:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:28:27] Production.INFO: ==23365== Releasing lock... [2024-12-27 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:28:27] Production.INFO: 61.25 MB #Memory Used# [2024-12-27 13:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:29:04 [end_date_ymd] => 2024-12-27 13:29:04 [RateCDR] => 1 ) [2024-12-27 13:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:29:04' and `end` < '2024-12-27 13:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:29:19] Production.INFO: count ==4473 [2024-12-27 13:29:20] Production.ERROR: pbx CDR StartTime 2024-12-27 10:29:04 - End Time 2024-12-27 13:29:04 [2024-12-27 13:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114507', 'tblTempUsageDetail_20' ) start [2024-12-27 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114507', 'tblTempUsageDetail_20' ) end [2024-12-27 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114507', 'tblTempVendorCDR_20' ) start [2024-12-27 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114507', 'tblTempVendorCDR_20' ) end [2024-12-27 13:29:20] Production.INFO: ProcessCDR(1,14114507,1,1,2) [2024-12-27 13:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114507', 'tblTempUsageDetail_20' ) start [2024-12-27 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114507', 'tblTempUsageDetail_20' ) end [2024-12-27 13:29:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:29:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:29:25] Production.INFO: ==23438== Releasing lock... [2024-12-27 13:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:29:25] Production.INFO: 61.5 MB #Memory Used# [2024-12-27 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:30:06 [end_date_ymd] => 2024-12-27 13:30:06 [RateCDR] => 1 ) [2024-12-27 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:30:06' and `end` < '2024-12-27 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:30:19] Production.INFO: count ==4429 [2024-12-27 13:30:20] Production.ERROR: pbx CDR StartTime 2024-12-27 10:30:06 - End Time 2024-12-27 13:30:06 [2024-12-27 13:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114513', 'tblTempUsageDetail_20' ) start [2024-12-27 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114513', 'tblTempUsageDetail_20' ) end [2024-12-27 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114513', 'tblTempVendorCDR_20' ) start [2024-12-27 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114513', 'tblTempVendorCDR_20' ) end [2024-12-27 13:30:21] Production.INFO: ProcessCDR(1,14114513,1,1,2) [2024-12-27 13:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114513', 'tblTempUsageDetail_20' ) start [2024-12-27 13:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114513', 'tblTempUsageDetail_20' ) end [2024-12-27 13:30:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:30:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:30:25] Production.INFO: ==23512== Releasing lock... [2024-12-27 13:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:30:25] Production.INFO: 61 MB #Memory Used# [2024-12-27 13:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:31:04 [end_date_ymd] => 2024-12-27 13:31:04 [RateCDR] => 1 ) [2024-12-27 13:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:31:04' and `end` < '2024-12-27 13:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:31:18] Production.INFO: count ==4431 [2024-12-27 13:31:19] Production.ERROR: pbx CDR StartTime 2024-12-27 10:31:04 - End Time 2024-12-27 13:31:04 [2024-12-27 13:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114518', 'tblTempUsageDetail_20' ) start [2024-12-27 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114518', 'tblTempUsageDetail_20' ) end [2024-12-27 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114518', 'tblTempVendorCDR_20' ) start [2024-12-27 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114518', 'tblTempVendorCDR_20' ) end [2024-12-27 13:31:19] Production.INFO: ProcessCDR(1,14114518,1,1,2) [2024-12-27 13:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114518', 'tblTempUsageDetail_20' ) start [2024-12-27 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114518', 'tblTempUsageDetail_20' ) end [2024-12-27 13:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:31:24] Production.INFO: ==23585== Releasing lock... [2024-12-27 13:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:31:24] Production.INFO: 61.25 MB #Memory Used# [2024-12-27 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:32:05 [end_date_ymd] => 2024-12-27 13:32:05 [RateCDR] => 1 ) [2024-12-27 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:32:05' and `end` < '2024-12-27 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:32:19] Production.INFO: count ==4434 [2024-12-27 13:32:20] Production.ERROR: pbx CDR StartTime 2024-12-27 10:32:05 - End Time 2024-12-27 13:32:05 [2024-12-27 13:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114523', 'tblTempUsageDetail_20' ) start [2024-12-27 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114523', 'tblTempUsageDetail_20' ) end [2024-12-27 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114523', 'tblTempVendorCDR_20' ) start [2024-12-27 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114523', 'tblTempVendorCDR_20' ) end [2024-12-27 13:32:20] Production.INFO: ProcessCDR(1,14114523,1,1,2) [2024-12-27 13:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114523', 'tblTempUsageDetail_20' ) start [2024-12-27 13:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114523', 'tblTempUsageDetail_20' ) end [2024-12-27 13:32:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:32:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:32:25] Production.INFO: ==23658== Releasing lock... [2024-12-27 13:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:32:25] Production.INFO: 61.25 MB #Memory Used# [2024-12-27 13:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:33:04 [end_date_ymd] => 2024-12-27 13:33:04 [RateCDR] => 1 ) [2024-12-27 13: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-27 10:33:04' and `end` < '2024-12-27 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-27 13:33:18] Production.INFO: count ==4444 [2024-12-27 13:33:19] Production.ERROR: pbx CDR StartTime 2024-12-27 10:33:04 - End Time 2024-12-27 13:33:04 [2024-12-27 13:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114528', 'tblTempUsageDetail_20' ) start [2024-12-27 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114528', 'tblTempUsageDetail_20' ) end [2024-12-27 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114528', 'tblTempVendorCDR_20' ) start [2024-12-27 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114528', 'tblTempVendorCDR_20' ) end [2024-12-27 13:33:20] Production.INFO: ProcessCDR(1,14114528,1,1,2) [2024-12-27 13:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114528', 'tblTempUsageDetail_20' ) start [2024-12-27 13:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114528', 'tblTempUsageDetail_20' ) end [2024-12-27 13:33:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:33:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:33:24] Production.INFO: ==23729== Releasing lock... [2024-12-27 13:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:33:24] Production.INFO: 61.25 MB #Memory Used# [2024-12-27 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:34:05 [end_date_ymd] => 2024-12-27 13:34:05 [RateCDR] => 1 ) [2024-12-27 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:34:05' and `end` < '2024-12-27 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:34:20] Production.INFO: count ==4536 [2024-12-27 13:34:22] Production.ERROR: pbx CDR StartTime 2024-12-27 10:34:05 - End Time 2024-12-27 13:34:05 [2024-12-27 13:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114533', 'tblTempUsageDetail_20' ) start [2024-12-27 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114533', 'tblTempUsageDetail_20' ) end [2024-12-27 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114533', 'tblTempVendorCDR_20' ) start [2024-12-27 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114533', 'tblTempVendorCDR_20' ) end [2024-12-27 13:34:22] Production.INFO: ProcessCDR(1,14114533,1,1,2) [2024-12-27 13:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114533', 'tblTempUsageDetail_20' ) start [2024-12-27 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114533', 'tblTempUsageDetail_20' ) end [2024-12-27 13:34:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:34:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:34:27] Production.INFO: ==23841== Releasing lock... [2024-12-27 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:34:27] Production.INFO: 62 MB #Memory Used# [2024-12-27 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:35:05 [end_date_ymd] => 2024-12-27 13:35:05 [RateCDR] => 1 ) [2024-12-27 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:35:05' and `end` < '2024-12-27 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:35:18] Production.INFO: count ==4517 [2024-12-27 13:35:20] Production.ERROR: pbx CDR StartTime 2024-12-27 10:35:05 - End Time 2024-12-27 13:35:05 [2024-12-27 13:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114538', 'tblTempUsageDetail_20' ) start [2024-12-27 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114538', 'tblTempUsageDetail_20' ) end [2024-12-27 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114538', 'tblTempVendorCDR_20' ) start [2024-12-27 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114538', 'tblTempVendorCDR_20' ) end [2024-12-27 13:35:20] Production.INFO: ProcessCDR(1,14114538,1,1,2) [2024-12-27 13:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114538', 'tblTempUsageDetail_20' ) start [2024-12-27 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114538', 'tblTempUsageDetail_20' ) end [2024-12-27 13:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:35:23] Production.INFO: ==23914== Releasing lock... [2024-12-27 13:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:35:23] Production.INFO: 61.75 MB #Memory Used# [2024-12-27 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:36:05 [end_date_ymd] => 2024-12-27 13:36:05 [RateCDR] => 1 ) [2024-12-27 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:36:05' and `end` < '2024-12-27 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:36:18] Production.INFO: count ==4546 [2024-12-27 13:36:20] Production.ERROR: pbx CDR StartTime 2024-12-27 10:36:05 - End Time 2024-12-27 13:36:05 [2024-12-27 13:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114543', 'tblTempUsageDetail_20' ) start [2024-12-27 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114543', 'tblTempUsageDetail_20' ) end [2024-12-27 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114543', 'tblTempVendorCDR_20' ) start [2024-12-27 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114543', 'tblTempVendorCDR_20' ) end [2024-12-27 13:36:20] Production.INFO: ProcessCDR(1,14114543,1,1,2) [2024-12-27 13:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114543', 'tblTempUsageDetail_20' ) start [2024-12-27 13:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114543', 'tblTempUsageDetail_20' ) end [2024-12-27 13:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:36:24] Production.INFO: ==23985== Releasing lock... [2024-12-27 13:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:36:24] Production.INFO: 62 MB #Memory Used# [2024-12-27 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:37:05 [end_date_ymd] => 2024-12-27 13:37:05 [RateCDR] => 1 ) [2024-12-27 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:37:05' and `end` < '2024-12-27 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:37:22] Production.INFO: count ==4563 [2024-12-27 13:37:24] Production.ERROR: pbx CDR StartTime 2024-12-27 10:37:05 - End Time 2024-12-27 13:37:05 [2024-12-27 13:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114548', 'tblTempUsageDetail_20' ) start [2024-12-27 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114548', 'tblTempUsageDetail_20' ) end [2024-12-27 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114548', 'tblTempVendorCDR_20' ) start [2024-12-27 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114548', 'tblTempVendorCDR_20' ) end [2024-12-27 13:37:24] Production.INFO: ProcessCDR(1,14114548,1,1,2) [2024-12-27 13:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114548', 'tblTempUsageDetail_20' ) start [2024-12-27 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114548', 'tblTempUsageDetail_20' ) end [2024-12-27 13:37:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:37:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:37:28] Production.INFO: ==24056== Releasing lock... [2024-12-27 13:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:37:28] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 13:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:38:04 [end_date_ymd] => 2024-12-27 13:38:04 [RateCDR] => 1 ) [2024-12-27 13: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-27 10:38:04' and `end` < '2024-12-27 13: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-27 13:38:19] Production.INFO: count ==4555 [2024-12-27 13:38:21] Production.ERROR: pbx CDR StartTime 2024-12-27 10:38:04 - End Time 2024-12-27 13:38:04 [2024-12-27 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114553', 'tblTempUsageDetail_20' ) start [2024-12-27 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114553', 'tblTempUsageDetail_20' ) end [2024-12-27 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114553', 'tblTempVendorCDR_20' ) start [2024-12-27 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114553', 'tblTempVendorCDR_20' ) end [2024-12-27 13:38:21] Production.INFO: ProcessCDR(1,14114553,1,1,2) [2024-12-27 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114553', 'tblTempUsageDetail_20' ) start [2024-12-27 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114553', 'tblTempUsageDetail_20' ) end [2024-12-27 13:38:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:38:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:38:26] Production.INFO: ==24132== Releasing lock... [2024-12-27 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:38:26] Production.INFO: 62 MB #Memory Used# [2024-12-27 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:39:05 [end_date_ymd] => 2024-12-27 13:39:05 [RateCDR] => 1 ) [2024-12-27 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:39:05' and `end` < '2024-12-27 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:39:21] Production.INFO: count ==4533 [2024-12-27 13:39:23] Production.ERROR: pbx CDR StartTime 2024-12-27 10:39:05 - End Time 2024-12-27 13:39:05 [2024-12-27 13:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114558', 'tblTempUsageDetail_20' ) start [2024-12-27 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114558', 'tblTempUsageDetail_20' ) end [2024-12-27 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114558', 'tblTempVendorCDR_20' ) start [2024-12-27 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114558', 'tblTempVendorCDR_20' ) end [2024-12-27 13:39:23] Production.INFO: ProcessCDR(1,14114558,1,1,2) [2024-12-27 13:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114558', 'tblTempUsageDetail_20' ) start [2024-12-27 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114558', 'tblTempUsageDetail_20' ) end [2024-12-27 13:39:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:39:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:39:26] Production.INFO: ==24205== Releasing lock... [2024-12-27 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:39:26] Production.INFO: 62 MB #Memory Used# [2024-12-27 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:40:06 [end_date_ymd] => 2024-12-27 13:40:06 [RateCDR] => 1 ) [2024-12-27 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:40:06' and `end` < '2024-12-27 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:40:20] Production.INFO: count ==4501 [2024-12-27 13:40:22] Production.ERROR: pbx CDR StartTime 2024-12-27 10:40:06 - End Time 2024-12-27 13:40:06 [2024-12-27 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114564', 'tblTempUsageDetail_20' ) start [2024-12-27 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114564', 'tblTempUsageDetail_20' ) end [2024-12-27 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114564', 'tblTempVendorCDR_20' ) start [2024-12-27 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114564', 'tblTempVendorCDR_20' ) end [2024-12-27 13:40:22] Production.INFO: ProcessCDR(1,14114564,1,1,2) [2024-12-27 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114564', 'tblTempUsageDetail_20' ) start [2024-12-27 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114564', 'tblTempUsageDetail_20' ) end [2024-12-27 13:40:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:40:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:40:26] Production.INFO: ==24279== Releasing lock... [2024-12-27 13:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:40:26] Production.INFO: 61.75 MB #Memory Used# [2024-12-27 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:41:05 [end_date_ymd] => 2024-12-27 13:41:05 [RateCDR] => 1 ) [2024-12-27 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-27 10:41:05' and `end` < '2024-12-27 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-27 13:41:21] Production.INFO: count ==4572 [2024-12-27 13:41:22] Production.ERROR: pbx CDR StartTime 2024-12-27 10:41:05 - End Time 2024-12-27 13:41:05 [2024-12-27 13:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114569', 'tblTempUsageDetail_20' ) start [2024-12-27 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114569', 'tblTempUsageDetail_20' ) end [2024-12-27 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114569', 'tblTempVendorCDR_20' ) start [2024-12-27 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114569', 'tblTempVendorCDR_20' ) end [2024-12-27 13:41:23] Production.INFO: ProcessCDR(1,14114569,1,1,2) [2024-12-27 13:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114569', 'tblTempUsageDetail_20' ) start [2024-12-27 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114569', 'tblTempUsageDetail_20' ) end [2024-12-27 13:41:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:41:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:41:27] Production.INFO: ==24354== Releasing lock... [2024-12-27 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:41:27] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:42:05 [end_date_ymd] => 2024-12-27 13:42:05 [RateCDR] => 1 ) [2024-12-27 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:42:05' and `end` < '2024-12-27 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:42:22] Production.INFO: count ==4565 [2024-12-27 13:42:24] Production.ERROR: pbx CDR StartTime 2024-12-27 10:42:05 - End Time 2024-12-27 13:42:05 [2024-12-27 13:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114574', 'tblTempUsageDetail_20' ) start [2024-12-27 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114574', 'tblTempUsageDetail_20' ) end [2024-12-27 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114574', 'tblTempVendorCDR_20' ) start [2024-12-27 13:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114574', 'tblTempVendorCDR_20' ) end [2024-12-27 13:42:24] Production.INFO: ProcessCDR(1,14114574,1,1,2) [2024-12-27 13:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114574', 'tblTempUsageDetail_20' ) start [2024-12-27 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114574', 'tblTempUsageDetail_20' ) end [2024-12-27 13:42:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:42:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:42:28] Production.INFO: ==24429== Releasing lock... [2024-12-27 13:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:42:28] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 13:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:43:04 [end_date_ymd] => 2024-12-27 13:43:04 [RateCDR] => 1 ) [2024-12-27 13: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-27 10:43:04' and `end` < '2024-12-27 13: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-27 13:43:17] Production.INFO: count ==4573 [2024-12-27 13:43:19] Production.ERROR: pbx CDR StartTime 2024-12-27 10:43:04 - End Time 2024-12-27 13:43:04 [2024-12-27 13:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114579', 'tblTempUsageDetail_20' ) start [2024-12-27 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114579', 'tblTempUsageDetail_20' ) end [2024-12-27 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114579', 'tblTempVendorCDR_20' ) start [2024-12-27 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114579', 'tblTempVendorCDR_20' ) end [2024-12-27 13:43:19] Production.INFO: ProcessCDR(1,14114579,1,1,2) [2024-12-27 13:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114579', 'tblTempUsageDetail_20' ) start [2024-12-27 13:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114579', 'tblTempUsageDetail_20' ) end [2024-12-27 13:43:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:43:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:43:24] Production.INFO: ==24508== Releasing lock... [2024-12-27 13:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:43:24] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:44:05 [end_date_ymd] => 2024-12-27 13:44:05 [RateCDR] => 1 ) [2024-12-27 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:44:05' and `end` < '2024-12-27 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:44:31] Production.INFO: count ==4579 [2024-12-27 13:44:32] Production.ERROR: pbx CDR StartTime 2024-12-27 10:44:05 - End Time 2024-12-27 13:44:05 [2024-12-27 13:44:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114584', 'tblTempUsageDetail_20' ) start [2024-12-27 13:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114584', 'tblTempUsageDetail_20' ) end [2024-12-27 13:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114584', 'tblTempVendorCDR_20' ) start [2024-12-27 13:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114584', 'tblTempVendorCDR_20' ) end [2024-12-27 13:44:32] Production.INFO: ProcessCDR(1,14114584,1,1,2) [2024-12-27 13:44:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:44:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:44:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:44:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:44:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114584', 'tblTempUsageDetail_20' ) start [2024-12-27 13:44:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114584', 'tblTempUsageDetail_20' ) end [2024-12-27 13:44:37] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:44:37] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:44:37] Production.INFO: ==24579== Releasing lock... [2024-12-27 13:44:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:44:37] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 13:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:45:04 [end_date_ymd] => 2024-12-27 13:45:04 [RateCDR] => 1 ) [2024-12-27 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-27 10:45:04' and `end` < '2024-12-27 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-27 13:45:24] Production.INFO: count ==4574 [2024-12-27 13:45:26] Production.ERROR: pbx CDR StartTime 2024-12-27 10:45:04 - End Time 2024-12-27 13:45:04 [2024-12-27 13:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114589', 'tblTempUsageDetail_20' ) start [2024-12-27 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114589', 'tblTempUsageDetail_20' ) end [2024-12-27 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114589', 'tblTempVendorCDR_20' ) start [2024-12-27 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114589', 'tblTempVendorCDR_20' ) end [2024-12-27 13:45:26] Production.INFO: ProcessCDR(1,14114589,1,1,2) [2024-12-27 13:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114589', 'tblTempUsageDetail_20' ) start [2024-12-27 13:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114589', 'tblTempUsageDetail_20' ) end [2024-12-27 13:45:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:45:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:45:31] Production.INFO: ==24656== Releasing lock... [2024-12-27 13:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:45:31] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 13:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:46:04 [end_date_ymd] => 2024-12-27 13:46:04 [RateCDR] => 1 ) [2024-12-27 13: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-27 10:46:04' and `end` < '2024-12-27 13: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-27 13:46:22] Production.INFO: count ==4589 [2024-12-27 13:46:24] Production.ERROR: pbx CDR StartTime 2024-12-27 10:46:04 - End Time 2024-12-27 13:46:04 [2024-12-27 13:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114594', 'tblTempUsageDetail_20' ) start [2024-12-27 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114594', 'tblTempUsageDetail_20' ) end [2024-12-27 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114594', 'tblTempVendorCDR_20' ) start [2024-12-27 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114594', 'tblTempVendorCDR_20' ) end [2024-12-27 13:46:24] Production.INFO: ProcessCDR(1,14114594,1,1,2) [2024-12-27 13:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114594', 'tblTempUsageDetail_20' ) start [2024-12-27 13:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114594', 'tblTempUsageDetail_20' ) end [2024-12-27 13:46:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:46:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:46:28] Production.INFO: ==24733== Releasing lock... [2024-12-27 13:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:46:28] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:47:05 [end_date_ymd] => 2024-12-27 13:47:05 [RateCDR] => 1 ) [2024-12-27 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:47:05' and `end` < '2024-12-27 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:47:24] Production.INFO: count ==4580 [2024-12-27 13:47:26] Production.ERROR: pbx CDR StartTime 2024-12-27 10:47:05 - End Time 2024-12-27 13:47:05 [2024-12-27 13:47:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114599', 'tblTempUsageDetail_20' ) start [2024-12-27 13:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114599', 'tblTempUsageDetail_20' ) end [2024-12-27 13:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114599', 'tblTempVendorCDR_20' ) start [2024-12-27 13:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114599', 'tblTempVendorCDR_20' ) end [2024-12-27 13:47:26] Production.INFO: ProcessCDR(1,14114599,1,1,2) [2024-12-27 13:47:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:47:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:47:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:47:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114599', 'tblTempUsageDetail_20' ) start [2024-12-27 13:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114599', 'tblTempUsageDetail_20' ) end [2024-12-27 13:47:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:47:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:47:31] Production.INFO: ==24806== Releasing lock... [2024-12-27 13:47:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:47:31] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 13:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:48:04 [end_date_ymd] => 2024-12-27 13:48:04 [RateCDR] => 1 ) [2024-12-27 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-27 10:48:04' and `end` < '2024-12-27 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-27 13:48:19] Production.INFO: count ==4560 [2024-12-27 13:48:21] Production.ERROR: pbx CDR StartTime 2024-12-27 10:48:04 - End Time 2024-12-27 13:48:04 [2024-12-27 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114604', 'tblTempUsageDetail_20' ) start [2024-12-27 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114604', 'tblTempUsageDetail_20' ) end [2024-12-27 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114604', 'tblTempVendorCDR_20' ) start [2024-12-27 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114604', 'tblTempVendorCDR_20' ) end [2024-12-27 13:48:21] Production.INFO: ProcessCDR(1,14114604,1,1,2) [2024-12-27 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114604', 'tblTempUsageDetail_20' ) start [2024-12-27 13:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114604', 'tblTempUsageDetail_20' ) end [2024-12-27 13:48:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:48:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:48:25] Production.INFO: ==24879== Releasing lock... [2024-12-27 13:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:48:25] Production.INFO: 62 MB #Memory Used# [2024-12-27 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:49:05 [end_date_ymd] => 2024-12-27 13:49:05 [RateCDR] => 1 ) [2024-12-27 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-27 10:49:05' and `end` < '2024-12-27 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-27 13:49:19] Production.INFO: count ==4529 [2024-12-27 13:49:21] Production.ERROR: pbx CDR StartTime 2024-12-27 10:49:05 - End Time 2024-12-27 13:49:05 [2024-12-27 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114609', 'tblTempUsageDetail_20' ) start [2024-12-27 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114609', 'tblTempUsageDetail_20' ) end [2024-12-27 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114609', 'tblTempVendorCDR_20' ) start [2024-12-27 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114609', 'tblTempVendorCDR_20' ) end [2024-12-27 13:49:21] Production.INFO: ProcessCDR(1,14114609,1,1,2) [2024-12-27 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114609', 'tblTempUsageDetail_20' ) start [2024-12-27 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114609', 'tblTempUsageDetail_20' ) end [2024-12-27 13:49:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:49:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:49:26] Production.INFO: ==24949== Releasing lock... [2024-12-27 13:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:49:26] Production.INFO: 61.75 MB #Memory Used# [2024-12-27 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:50:05 [end_date_ymd] => 2024-12-27 13:50:05 [RateCDR] => 1 ) [2024-12-27 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-27 10:50:05' and `end` < '2024-12-27 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-27 13:50:19] Production.INFO: count ==4557 [2024-12-27 13:50:21] Production.ERROR: pbx CDR StartTime 2024-12-27 10:50:05 - End Time 2024-12-27 13:50:05 [2024-12-27 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114615', 'tblTempUsageDetail_20' ) start [2024-12-27 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114615', 'tblTempUsageDetail_20' ) end [2024-12-27 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114615', 'tblTempVendorCDR_20' ) start [2024-12-27 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114615', 'tblTempVendorCDR_20' ) end [2024-12-27 13:50:21] Production.INFO: ProcessCDR(1,14114615,1,1,2) [2024-12-27 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114615', 'tblTempUsageDetail_20' ) start [2024-12-27 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114615', 'tblTempUsageDetail_20' ) end [2024-12-27 13:50:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:50:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:50:26] Production.INFO: ==25066== Releasing lock... [2024-12-27 13:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:50:26] Production.INFO: 62 MB #Memory Used# [2024-12-27 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:51:05 [end_date_ymd] => 2024-12-27 13:51:05 [RateCDR] => 1 ) [2024-12-27 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-27 10:51:05' and `end` < '2024-12-27 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-27 13:51:19] Production.INFO: count ==4564 [2024-12-27 13:51:21] Production.ERROR: pbx CDR StartTime 2024-12-27 10:51:05 - End Time 2024-12-27 13:51:05 [2024-12-27 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114620', 'tblTempUsageDetail_20' ) start [2024-12-27 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114620', 'tblTempUsageDetail_20' ) end [2024-12-27 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114620', 'tblTempVendorCDR_20' ) start [2024-12-27 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114620', 'tblTempVendorCDR_20' ) end [2024-12-27 13:51:21] Production.INFO: ProcessCDR(1,14114620,1,1,2) [2024-12-27 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114620', 'tblTempUsageDetail_20' ) start [2024-12-27 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114620', 'tblTempUsageDetail_20' ) end [2024-12-27 13:51:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:51:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:51:26] Production.INFO: ==25142== Releasing lock... [2024-12-27 13:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:51:26] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:52:05 [end_date_ymd] => 2024-12-27 13:52:05 [RateCDR] => 1 ) [2024-12-27 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:52:05' and `end` < '2024-12-27 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:52:25] Production.INFO: count ==4571 [2024-12-27 13:52:26] Production.ERROR: pbx CDR StartTime 2024-12-27 10:52:05 - End Time 2024-12-27 13:52:05 [2024-12-27 13:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114625', 'tblTempUsageDetail_20' ) start [2024-12-27 13:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114625', 'tblTempUsageDetail_20' ) end [2024-12-27 13:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114625', 'tblTempVendorCDR_20' ) start [2024-12-27 13:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114625', 'tblTempVendorCDR_20' ) end [2024-12-27 13:52:27] Production.INFO: ProcessCDR(1,14114625,1,1,2) [2024-12-27 13:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114625', 'tblTempUsageDetail_20' ) start [2024-12-27 13:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114625', 'tblTempUsageDetail_20' ) end [2024-12-27 13:52:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:52:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:52:31] Production.INFO: ==25217== Releasing lock... [2024-12-27 13:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:52:31] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:53:05 [end_date_ymd] => 2024-12-27 13:53:05 [RateCDR] => 1 ) [2024-12-27 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-27 10:53:05' and `end` < '2024-12-27 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-27 13:53:19] Production.INFO: count ==4566 [2024-12-27 13:53:20] Production.ERROR: pbx CDR StartTime 2024-12-27 10:53:05 - End Time 2024-12-27 13:53:05 [2024-12-27 13:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114630', 'tblTempUsageDetail_20' ) start [2024-12-27 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114630', 'tblTempUsageDetail_20' ) end [2024-12-27 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114630', 'tblTempVendorCDR_20' ) start [2024-12-27 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114630', 'tblTempVendorCDR_20' ) end [2024-12-27 13:53:21] Production.INFO: ProcessCDR(1,14114630,1,1,2) [2024-12-27 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114630', 'tblTempUsageDetail_20' ) start [2024-12-27 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114630', 'tblTempUsageDetail_20' ) end [2024-12-27 13:53:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:53:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:53:25] Production.INFO: ==25290== Releasing lock... [2024-12-27 13:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:53:25] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 13:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:54:04 [end_date_ymd] => 2024-12-27 13:54:04 [RateCDR] => 1 ) [2024-12-27 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-27 10:54:04' and `end` < '2024-12-27 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-27 13:54:18] Production.INFO: count ==4566 [2024-12-27 13:54:19] Production.ERROR: pbx CDR StartTime 2024-12-27 10:54:04 - End Time 2024-12-27 13:54:04 [2024-12-27 13:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114635', 'tblTempUsageDetail_20' ) start [2024-12-27 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114635', 'tblTempUsageDetail_20' ) end [2024-12-27 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114635', 'tblTempVendorCDR_20' ) start [2024-12-27 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114635', 'tblTempVendorCDR_20' ) end [2024-12-27 13:54:19] Production.INFO: ProcessCDR(1,14114635,1,1,2) [2024-12-27 13:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114635', 'tblTempUsageDetail_20' ) start [2024-12-27 13:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114635', 'tblTempUsageDetail_20' ) end [2024-12-27 13:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:54:24] Production.INFO: ==25362== Releasing lock... [2024-12-27 13:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:54:24] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:55:05 [end_date_ymd] => 2024-12-27 13:55:05 [RateCDR] => 1 ) [2024-12-27 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:55:05' and `end` < '2024-12-27 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:55:22] Production.INFO: count ==4572 [2024-12-27 13:55:24] Production.ERROR: pbx CDR StartTime 2024-12-27 10:55:05 - End Time 2024-12-27 13:55:05 [2024-12-27 13:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114640', 'tblTempUsageDetail_20' ) start [2024-12-27 13:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114640', 'tblTempUsageDetail_20' ) end [2024-12-27 13:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114640', 'tblTempVendorCDR_20' ) start [2024-12-27 13:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114640', 'tblTempVendorCDR_20' ) end [2024-12-27 13:55:24] Production.INFO: ProcessCDR(1,14114640,1,1,2) [2024-12-27 13:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114640', 'tblTempUsageDetail_20' ) start [2024-12-27 13:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114640', 'tblTempUsageDetail_20' ) end [2024-12-27 13:55:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:55:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:55:29] Production.INFO: ==25434== Releasing lock... [2024-12-27 13:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:55:29] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 13:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:56:04 [end_date_ymd] => 2024-12-27 13:56:04 [RateCDR] => 1 ) [2024-12-27 13: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-27 10:56:04' and `end` < '2024-12-27 13: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-27 13:56:19] Production.INFO: count ==4584 [2024-12-27 13:56:20] Production.ERROR: pbx CDR StartTime 2024-12-27 10:56:04 - End Time 2024-12-27 13:56:04 [2024-12-27 13:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114645', 'tblTempUsageDetail_20' ) start [2024-12-27 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114645', 'tblTempUsageDetail_20' ) end [2024-12-27 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114645', 'tblTempVendorCDR_20' ) start [2024-12-27 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114645', 'tblTempVendorCDR_20' ) end [2024-12-27 13:56:21] Production.INFO: ProcessCDR(1,14114645,1,1,2) [2024-12-27 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114645', 'tblTempUsageDetail_20' ) start [2024-12-27 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114645', 'tblTempUsageDetail_20' ) end [2024-12-27 13:56:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:56:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:56:26] Production.INFO: ==25509== Releasing lock... [2024-12-27 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:56:26] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:57:05 [end_date_ymd] => 2024-12-27 13:57:05 [RateCDR] => 1 ) [2024-12-27 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 10:57:05' and `end` < '2024-12-27 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 13:57:18] Production.INFO: count ==4619 [2024-12-27 13:57:20] Production.ERROR: pbx CDR StartTime 2024-12-27 10:57:05 - End Time 2024-12-27 13:57:05 [2024-12-27 13:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114650', 'tblTempUsageDetail_20' ) start [2024-12-27 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114650', 'tblTempUsageDetail_20' ) end [2024-12-27 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114650', 'tblTempVendorCDR_20' ) start [2024-12-27 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114650', 'tblTempVendorCDR_20' ) end [2024-12-27 13:57:20] Production.INFO: ProcessCDR(1,14114650,1,1,2) [2024-12-27 13:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114650', 'tblTempUsageDetail_20' ) start [2024-12-27 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114650', 'tblTempUsageDetail_20' ) end [2024-12-27 13:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:57:23] Production.INFO: ==25586== Releasing lock... [2024-12-27 13:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:57:23] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:58:05 [end_date_ymd] => 2024-12-27 13:58:05 [RateCDR] => 1 ) [2024-12-27 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-27 10:58:05' and `end` < '2024-12-27 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-27 13:58:21] Production.INFO: count ==4608 [2024-12-27 13:58:22] Production.ERROR: pbx CDR StartTime 2024-12-27 10:58:05 - End Time 2024-12-27 13:58:05 [2024-12-27 13:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114655', 'tblTempUsageDetail_20' ) start [2024-12-27 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114655', 'tblTempUsageDetail_20' ) end [2024-12-27 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114655', 'tblTempVendorCDR_20' ) start [2024-12-27 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114655', 'tblTempVendorCDR_20' ) end [2024-12-27 13:58:23] Production.INFO: ProcessCDR(1,14114655,1,1,2) [2024-12-27 13:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114655', 'tblTempUsageDetail_20' ) start [2024-12-27 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114655', 'tblTempUsageDetail_20' ) end [2024-12-27 13:58:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:58:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:58:27] Production.INFO: ==25661== Releasing lock... [2024-12-27 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:58:27] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 10:59:05 [end_date_ymd] => 2024-12-27 13:59:05 [RateCDR] => 1 ) [2024-12-27 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-27 10:59:05' and `end` < '2024-12-27 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-27 13:59:18] Production.INFO: count ==4595 [2024-12-27 13:59:20] Production.ERROR: pbx CDR StartTime 2024-12-27 10:59:05 - End Time 2024-12-27 13:59:05 [2024-12-27 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114660', 'tblTempUsageDetail_20' ) start [2024-12-27 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114660', 'tblTempUsageDetail_20' ) end [2024-12-27 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114660', 'tblTempVendorCDR_20' ) start [2024-12-27 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114660', 'tblTempVendorCDR_20' ) end [2024-12-27 13:59:20] Production.INFO: ProcessCDR(1,14114660,1,1,2) [2024-12-27 13:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 13:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114660', 'tblTempUsageDetail_20' ) start [2024-12-27 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114660', 'tblTempUsageDetail_20' ) end [2024-12-27 13:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 13:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 13:59:23] Production.INFO: ==25733== Releasing lock... [2024-12-27 13:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 13:59:23] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:00:05 [end_date_ymd] => 2024-12-27 14:00:05 [RateCDR] => 1 ) [2024-12-27 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-27 11:00:05' and `end` < '2024-12-27 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-27 14:00:18] Production.INFO: count ==4593 [2024-12-27 14:00:20] Production.ERROR: pbx CDR StartTime 2024-12-27 11:00:05 - End Time 2024-12-27 14:00:05 [2024-12-27 14:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114666', 'tblTempUsageDetail_20' ) start [2024-12-27 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114666', 'tblTempUsageDetail_20' ) end [2024-12-27 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114666', 'tblTempVendorCDR_20' ) start [2024-12-27 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114666', 'tblTempVendorCDR_20' ) end [2024-12-27 14:00:20] Production.INFO: ProcessCDR(1,14114666,1,1,2) [2024-12-27 14:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114666', 'tblTempUsageDetail_20' ) start [2024-12-27 14:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114666', 'tblTempUsageDetail_20' ) end [2024-12-27 14:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:00:23] Production.INFO: ==25810== Releasing lock... [2024-12-27 14:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:00:23] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:01:05 [end_date_ymd] => 2024-12-27 14:01:05 [RateCDR] => 1 ) [2024-12-27 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:01:05' and `end` < '2024-12-27 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:01:23] Production.INFO: count ==4607 [2024-12-27 14:01:25] Production.ERROR: pbx CDR StartTime 2024-12-27 11:01:05 - End Time 2024-12-27 14:01:05 [2024-12-27 14:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114671', 'tblTempUsageDetail_20' ) start [2024-12-27 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114671', 'tblTempUsageDetail_20' ) end [2024-12-27 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114671', 'tblTempVendorCDR_20' ) start [2024-12-27 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114671', 'tblTempVendorCDR_20' ) end [2024-12-27 14:01:25] Production.INFO: ProcessCDR(1,14114671,1,1,2) [2024-12-27 14:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114671', 'tblTempUsageDetail_20' ) start [2024-12-27 14:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114671', 'tblTempUsageDetail_20' ) end [2024-12-27 14:01:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:01:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:01:30] Production.INFO: ==25899== Releasing lock... [2024-12-27 14:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:01:30] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:02:05 [end_date_ymd] => 2024-12-27 14:02:05 [RateCDR] => 1 ) [2024-12-27 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-27 11:02:05' and `end` < '2024-12-27 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-27 14:02:18] Production.INFO: count ==4600 [2024-12-27 14:02:20] Production.ERROR: pbx CDR StartTime 2024-12-27 11:02:05 - End Time 2024-12-27 14:02:05 [2024-12-27 14:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114676', 'tblTempUsageDetail_20' ) start [2024-12-27 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114676', 'tblTempUsageDetail_20' ) end [2024-12-27 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114676', 'tblTempVendorCDR_20' ) start [2024-12-27 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114676', 'tblTempVendorCDR_20' ) end [2024-12-27 14:02:20] Production.INFO: ProcessCDR(1,14114676,1,1,2) [2024-12-27 14:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114676', 'tblTempUsageDetail_20' ) start [2024-12-27 14:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114676', 'tblTempUsageDetail_20' ) end [2024-12-27 14:02:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:02:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:02:25] Production.INFO: ==25972== Releasing lock... [2024-12-27 14:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:02:25] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:03:05 [end_date_ymd] => 2024-12-27 14:03:05 [RateCDR] => 1 ) [2024-12-27 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-27 11:03:05' and `end` < '2024-12-27 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-27 14:03:21] Production.INFO: count ==4573 [2024-12-27 14:03:23] Production.ERROR: pbx CDR StartTime 2024-12-27 11:03:05 - End Time 2024-12-27 14:03:05 [2024-12-27 14:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114681', 'tblTempUsageDetail_20' ) start [2024-12-27 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114681', 'tblTempUsageDetail_20' ) end [2024-12-27 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114681', 'tblTempVendorCDR_20' ) start [2024-12-27 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114681', 'tblTempVendorCDR_20' ) end [2024-12-27 14:03:23] Production.INFO: ProcessCDR(1,14114681,1,1,2) [2024-12-27 14:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114681', 'tblTempUsageDetail_20' ) start [2024-12-27 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114681', 'tblTempUsageDetail_20' ) end [2024-12-27 14:03:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:03:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:03:28] Production.INFO: ==26044== Releasing lock... [2024-12-27 14:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:03:28] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:04:05 [end_date_ymd] => 2024-12-27 14:04:05 [RateCDR] => 1 ) [2024-12-27 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-27 11:04:05' and `end` < '2024-12-27 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-27 14:04:24] Production.INFO: count ==4589 [2024-12-27 14:04:26] Production.ERROR: pbx CDR StartTime 2024-12-27 11:04:05 - End Time 2024-12-27 14:04:05 [2024-12-27 14:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114686', 'tblTempUsageDetail_20' ) start [2024-12-27 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114686', 'tblTempUsageDetail_20' ) end [2024-12-27 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114686', 'tblTempVendorCDR_20' ) start [2024-12-27 14:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114686', 'tblTempVendorCDR_20' ) end [2024-12-27 14:04:26] Production.INFO: ProcessCDR(1,14114686,1,1,2) [2024-12-27 14:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114686', 'tblTempUsageDetail_20' ) start [2024-12-27 14:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114686', 'tblTempUsageDetail_20' ) end [2024-12-27 14:04:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:04:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:04:31] Production.INFO: ==26117== Releasing lock... [2024-12-27 14:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:04:31] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:05:05 [end_date_ymd] => 2024-12-27 14:05:05 [RateCDR] => 1 ) [2024-12-27 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:05:05' and `end` < '2024-12-27 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:05:19] Production.INFO: count ==4594 [2024-12-27 14:05:20] Production.ERROR: pbx CDR StartTime 2024-12-27 11:05:05 - End Time 2024-12-27 14:05:05 [2024-12-27 14:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114691', 'tblTempUsageDetail_20' ) start [2024-12-27 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114691', 'tblTempUsageDetail_20' ) end [2024-12-27 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114691', 'tblTempVendorCDR_20' ) start [2024-12-27 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114691', 'tblTempVendorCDR_20' ) end [2024-12-27 14:05:21] Production.INFO: ProcessCDR(1,14114691,1,1,2) [2024-12-27 14:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114691', 'tblTempUsageDetail_20' ) start [2024-12-27 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114691', 'tblTempUsageDetail_20' ) end [2024-12-27 14:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:05:25] Production.INFO: ==26233== Releasing lock... [2024-12-27 14:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:05:25] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:06:05 [end_date_ymd] => 2024-12-27 14:06:05 [RateCDR] => 1 ) [2024-12-27 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:06:05' and `end` < '2024-12-27 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:06:19] Production.INFO: count ==4660 [2024-12-27 14:06:21] Production.ERROR: pbx CDR StartTime 2024-12-27 11:06:05 - End Time 2024-12-27 14:06:05 [2024-12-27 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114696', 'tblTempUsageDetail_20' ) start [2024-12-27 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114696', 'tblTempUsageDetail_20' ) end [2024-12-27 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114696', 'tblTempVendorCDR_20' ) start [2024-12-27 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114696', 'tblTempVendorCDR_20' ) end [2024-12-27 14:06:21] Production.INFO: ProcessCDR(1,14114696,1,1,2) [2024-12-27 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114696', 'tblTempUsageDetail_20' ) start [2024-12-27 14:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114696', 'tblTempUsageDetail_20' ) end [2024-12-27 14:06:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:06:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:06:25] Production.INFO: ==26307== Releasing lock... [2024-12-27 14:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:06:25] Production.INFO: 62.75 MB #Memory Used# [2024-12-27 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:07:05 [end_date_ymd] => 2024-12-27 14:07:05 [RateCDR] => 1 ) [2024-12-27 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:07:05' and `end` < '2024-12-27 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:07:22] Production.INFO: count ==4646 [2024-12-27 14:07:24] Production.ERROR: pbx CDR StartTime 2024-12-27 11:07:05 - End Time 2024-12-27 14:07:05 [2024-12-27 14:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114701', 'tblTempUsageDetail_20' ) start [2024-12-27 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114701', 'tblTempUsageDetail_20' ) end [2024-12-27 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114701', 'tblTempVendorCDR_20' ) start [2024-12-27 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114701', 'tblTempVendorCDR_20' ) end [2024-12-27 14:07:24] Production.INFO: ProcessCDR(1,14114701,1,1,2) [2024-12-27 14:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114701', 'tblTempUsageDetail_20' ) start [2024-12-27 14:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114701', 'tblTempUsageDetail_20' ) end [2024-12-27 14:07:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:07:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:07:29] Production.INFO: ==26384== Releasing lock... [2024-12-27 14:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:07:29] Production.INFO: 62.75 MB #Memory Used# [2024-12-27 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:08:05 [end_date_ymd] => 2024-12-27 14:08:05 [RateCDR] => 1 ) [2024-12-27 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:08:05' and `end` < '2024-12-27 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:08:21] Production.INFO: count ==4689 [2024-12-27 14:08:22] Production.ERROR: pbx CDR StartTime 2024-12-27 11:08:05 - End Time 2024-12-27 14:08:05 [2024-12-27 14:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114706', 'tblTempUsageDetail_20' ) start [2024-12-27 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114706', 'tblTempUsageDetail_20' ) end [2024-12-27 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114706', 'tblTempVendorCDR_20' ) start [2024-12-27 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114706', 'tblTempVendorCDR_20' ) end [2024-12-27 14:08:23] Production.INFO: ProcessCDR(1,14114706,1,1,2) [2024-12-27 14:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114706', 'tblTempUsageDetail_20' ) start [2024-12-27 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114706', 'tblTempUsageDetail_20' ) end [2024-12-27 14:08:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:08:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:08:27] Production.INFO: ==26460== Releasing lock... [2024-12-27 14:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:08:27] Production.INFO: 63 MB #Memory Used# [2024-12-27 14:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:09:04 [end_date_ymd] => 2024-12-27 14:09:04 [RateCDR] => 1 ) [2024-12-27 14: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-27 11:09:04' and `end` < '2024-12-27 14: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-27 14:09:20] Production.INFO: count ==4699 [2024-12-27 14:09:22] Production.ERROR: pbx CDR StartTime 2024-12-27 11:09:04 - End Time 2024-12-27 14:09:04 [2024-12-27 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114711', 'tblTempUsageDetail_20' ) start [2024-12-27 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114711', 'tblTempUsageDetail_20' ) end [2024-12-27 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114711', 'tblTempVendorCDR_20' ) start [2024-12-27 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114711', 'tblTempVendorCDR_20' ) end [2024-12-27 14:09:22] Production.INFO: ProcessCDR(1,14114711,1,1,2) [2024-12-27 14:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114711', 'tblTempUsageDetail_20' ) start [2024-12-27 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114711', 'tblTempUsageDetail_20' ) end [2024-12-27 14:09:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:09:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:09:26] Production.INFO: ==26535== Releasing lock... [2024-12-27 14:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:09:26] Production.INFO: 63.25 MB #Memory Used# [2024-12-27 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:10:05 [end_date_ymd] => 2024-12-27 14:10:05 [RateCDR] => 1 ) [2024-12-27 14: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-27 11:10:05' and `end` < '2024-12-27 14: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-27 14:10:18] Production.INFO: count ==4700 [2024-12-27 14:10:20] Production.ERROR: pbx CDR StartTime 2024-12-27 11:10:05 - End Time 2024-12-27 14:10:05 [2024-12-27 14:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114716', 'tblTempUsageDetail_20' ) start [2024-12-27 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114716', 'tblTempUsageDetail_20' ) end [2024-12-27 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114716', 'tblTempVendorCDR_20' ) start [2024-12-27 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114716', 'tblTempVendorCDR_20' ) end [2024-12-27 14:10:20] Production.INFO: ProcessCDR(1,14114716,1,1,2) [2024-12-27 14:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114716', 'tblTempUsageDetail_20' ) start [2024-12-27 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114716', 'tblTempUsageDetail_20' ) end [2024-12-27 14:10:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:10:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:10:25] Production.INFO: ==26621== Releasing lock... [2024-12-27 14:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:10:25] Production.INFO: 63.25 MB #Memory Used# [2024-12-27 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:11:05 [end_date_ymd] => 2024-12-27 14:11:05 [RateCDR] => 1 ) [2024-12-27 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:11:05' and `end` < '2024-12-27 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:11:25] Production.INFO: count ==4698 [2024-12-27 14:11:27] Production.ERROR: pbx CDR StartTime 2024-12-27 11:11:05 - End Time 2024-12-27 14:11:05 [2024-12-27 14:11:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114722', 'tblTempUsageDetail_20' ) start [2024-12-27 14:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114722', 'tblTempUsageDetail_20' ) end [2024-12-27 14:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114722', 'tblTempVendorCDR_20' ) start [2024-12-27 14:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114722', 'tblTempVendorCDR_20' ) end [2024-12-27 14:11:27] Production.INFO: ProcessCDR(1,14114722,1,1,2) [2024-12-27 14:11:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114722', 'tblTempUsageDetail_20' ) start [2024-12-27 14:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114722', 'tblTempUsageDetail_20' ) end [2024-12-27 14:11:32] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:11:32] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:11:32] Production.INFO: ==26709== Releasing lock... [2024-12-27 14:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:11:32] Production.INFO: 63 MB #Memory Used# [2024-12-27 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:12:05 [end_date_ymd] => 2024-12-27 14:12:05 [RateCDR] => 1 ) [2024-12-27 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:12:05' and `end` < '2024-12-27 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:12:18] Production.INFO: count ==4705 [2024-12-27 14:12:20] Production.ERROR: pbx CDR StartTime 2024-12-27 11:12:05 - End Time 2024-12-27 14:12:05 [2024-12-27 14:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114727', 'tblTempUsageDetail_20' ) start [2024-12-27 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114727', 'tblTempUsageDetail_20' ) end [2024-12-27 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114727', 'tblTempVendorCDR_20' ) start [2024-12-27 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114727', 'tblTempVendorCDR_20' ) end [2024-12-27 14:12:20] Production.INFO: ProcessCDR(1,14114727,1,1,2) [2024-12-27 14:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114727', 'tblTempUsageDetail_20' ) start [2024-12-27 14:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114727', 'tblTempUsageDetail_20' ) end [2024-12-27 14:12:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:12:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:12:25] Production.INFO: ==26790== Releasing lock... [2024-12-27 14:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:12:25] Production.INFO: 63.25 MB #Memory Used# [2024-12-27 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:13:05 [end_date_ymd] => 2024-12-27 14:13:05 [RateCDR] => 1 ) [2024-12-27 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:13:05' and `end` < '2024-12-27 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:13:20] Production.INFO: count ==4716 [2024-12-27 14:13:22] Production.ERROR: pbx CDR StartTime 2024-12-27 11:13:05 - End Time 2024-12-27 14:13:05 [2024-12-27 14:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114732', 'tblTempUsageDetail_20' ) start [2024-12-27 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114732', 'tblTempUsageDetail_20' ) end [2024-12-27 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114732', 'tblTempVendorCDR_20' ) start [2024-12-27 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114732', 'tblTempVendorCDR_20' ) end [2024-12-27 14:13:22] Production.INFO: ProcessCDR(1,14114732,1,1,2) [2024-12-27 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114732', 'tblTempUsageDetail_20' ) start [2024-12-27 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114732', 'tblTempUsageDetail_20' ) end [2024-12-27 14:13:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:13:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:13:27] Production.INFO: ==26871== Releasing lock... [2024-12-27 14:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:13:27] Production.INFO: 63.25 MB #Memory Used# [2024-12-27 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:14:05 [end_date_ymd] => 2024-12-27 14:14:05 [RateCDR] => 1 ) [2024-12-27 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:14:05' and `end` < '2024-12-27 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:14:19] Production.INFO: count ==4725 [2024-12-27 14:14:20] Production.ERROR: pbx CDR StartTime 2024-12-27 11:14:05 - End Time 2024-12-27 14:14:05 [2024-12-27 14:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114737', 'tblTempUsageDetail_20' ) start [2024-12-27 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114737', 'tblTempUsageDetail_20' ) end [2024-12-27 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114737', 'tblTempVendorCDR_20' ) start [2024-12-27 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114737', 'tblTempVendorCDR_20' ) end [2024-12-27 14:14:21] Production.INFO: ProcessCDR(1,14114737,1,1,2) [2024-12-27 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114737', 'tblTempUsageDetail_20' ) start [2024-12-27 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114737', 'tblTempUsageDetail_20' ) end [2024-12-27 14:14:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:14:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:14:25] Production.INFO: ==26960== Releasing lock... [2024-12-27 14:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:14:25] Production.INFO: 63.25 MB #Memory Used# [2024-12-27 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:15:05 [end_date_ymd] => 2024-12-27 14:15:05 [RateCDR] => 1 ) [2024-12-27 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:15:05' and `end` < '2024-12-27 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:15:24] Production.INFO: count ==4743 [2024-12-27 14:15:25] Production.ERROR: pbx CDR StartTime 2024-12-27 11:15:05 - End Time 2024-12-27 14:15:05 [2024-12-27 14:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114742', 'tblTempUsageDetail_20' ) start [2024-12-27 14:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114742', 'tblTempUsageDetail_20' ) end [2024-12-27 14:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114742', 'tblTempVendorCDR_20' ) start [2024-12-27 14:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114742', 'tblTempVendorCDR_20' ) end [2024-12-27 14:15:26] Production.INFO: ProcessCDR(1,14114742,1,1,2) [2024-12-27 14:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114742', 'tblTempUsageDetail_20' ) start [2024-12-27 14:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114742', 'tblTempUsageDetail_20' ) end [2024-12-27 14:15:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:15:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:15:30] Production.INFO: ==27039== Releasing lock... [2024-12-27 14:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:15:30] Production.INFO: 63.5 MB #Memory Used# [2024-12-27 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:16:05 [end_date_ymd] => 2024-12-27 14:16:05 [RateCDR] => 1 ) [2024-12-27 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:16:05' and `end` < '2024-12-27 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:16:36] Production.INFO: count ==4751 [2024-12-27 14:16:38] Production.ERROR: pbx CDR StartTime 2024-12-27 11:16:05 - End Time 2024-12-27 14:16:05 [2024-12-27 14:16:38] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:16:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114747', 'tblTempUsageDetail_20' ) start [2024-12-27 14:16:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114747', 'tblTempUsageDetail_20' ) end [2024-12-27 14:16:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114747', 'tblTempVendorCDR_20' ) start [2024-12-27 14:16:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114747', 'tblTempVendorCDR_20' ) end [2024-12-27 14:16:38] Production.INFO: ProcessCDR(1,14114747,1,1,2) [2024-12-27 14:16:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:16:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:16:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:16:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:16:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114747', 'tblTempUsageDetail_20' ) start [2024-12-27 14:16:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114747', 'tblTempUsageDetail_20' ) end [2024-12-27 14:16:42] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:16:42] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:16:43] Production.INFO: ==27119== Releasing lock... [2024-12-27 14:16:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:16:43] Production.INFO: 63.5 MB #Memory Used# [2024-12-27 14:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:17:04 [end_date_ymd] => 2024-12-27 14:17:04 [RateCDR] => 1 ) [2024-12-27 14: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-27 11:17:04' and `end` < '2024-12-27 14: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-27 14:17:22] Production.INFO: count ==4739 [2024-12-27 14:17:24] Production.ERROR: pbx CDR StartTime 2024-12-27 11:17:04 - End Time 2024-12-27 14:17:04 [2024-12-27 14:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114752', 'tblTempUsageDetail_20' ) start [2024-12-27 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114752', 'tblTempUsageDetail_20' ) end [2024-12-27 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114752', 'tblTempVendorCDR_20' ) start [2024-12-27 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114752', 'tblTempVendorCDR_20' ) end [2024-12-27 14:17:24] Production.INFO: ProcessCDR(1,14114752,1,1,2) [2024-12-27 14:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114752', 'tblTempUsageDetail_20' ) start [2024-12-27 14:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114752', 'tblTempUsageDetail_20' ) end [2024-12-27 14:17:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:17:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:17:29] Production.INFO: ==27209== Releasing lock... [2024-12-27 14:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:17:29] Production.INFO: 63.5 MB #Memory Used# [2024-12-27 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:18:05 [end_date_ymd] => 2024-12-27 14:18:05 [RateCDR] => 1 ) [2024-12-27 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:18:05' and `end` < '2024-12-27 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:18:20] Production.INFO: count ==4745 [2024-12-27 14:18:22] Production.ERROR: pbx CDR StartTime 2024-12-27 11:18:05 - End Time 2024-12-27 14:18:05 [2024-12-27 14:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114757', 'tblTempUsageDetail_20' ) start [2024-12-27 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114757', 'tblTempUsageDetail_20' ) end [2024-12-27 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114757', 'tblTempVendorCDR_20' ) start [2024-12-27 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114757', 'tblTempVendorCDR_20' ) end [2024-12-27 14:18:22] Production.INFO: ProcessCDR(1,14114757,1,1,2) [2024-12-27 14:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114757', 'tblTempUsageDetail_20' ) start [2024-12-27 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114757', 'tblTempUsageDetail_20' ) end [2024-12-27 14:18:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:18:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:18:25] Production.INFO: ==27298== Releasing lock... [2024-12-27 14:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:18:25] Production.INFO: 63.5 MB #Memory Used# [2024-12-27 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:19:05 [end_date_ymd] => 2024-12-27 14:19:05 [RateCDR] => 1 ) [2024-12-27 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:19:05' and `end` < '2024-12-27 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:19:22] Production.INFO: count ==4754 [2024-12-27 14:19:24] Production.ERROR: pbx CDR StartTime 2024-12-27 11:19:05 - End Time 2024-12-27 14:19:05 [2024-12-27 14:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114762', 'tblTempUsageDetail_20' ) start [2024-12-27 14:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114762', 'tblTempUsageDetail_20' ) end [2024-12-27 14:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114762', 'tblTempVendorCDR_20' ) start [2024-12-27 14:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114762', 'tblTempVendorCDR_20' ) end [2024-12-27 14:19:24] Production.INFO: ProcessCDR(1,14114762,1,1,2) [2024-12-27 14:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114762', 'tblTempUsageDetail_20' ) start [2024-12-27 14:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114762', 'tblTempUsageDetail_20' ) end [2024-12-27 14:19:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:19:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:19:29] Production.INFO: ==27393== Releasing lock... [2024-12-27 14:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:19:29] Production.INFO: 63.5 MB #Memory Used# [2024-12-27 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:20:06 [end_date_ymd] => 2024-12-27 14:20:06 [RateCDR] => 1 ) [2024-12-27 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:20:06' and `end` < '2024-12-27 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:20:21] Production.INFO: count ==4779 [2024-12-27 14:20:23] Production.ERROR: pbx CDR StartTime 2024-12-27 11:20:06 - End Time 2024-12-27 14:20:06 [2024-12-27 14:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114768', 'tblTempUsageDetail_20' ) start [2024-12-27 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114768', 'tblTempUsageDetail_20' ) end [2024-12-27 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114768', 'tblTempVendorCDR_20' ) start [2024-12-27 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114768', 'tblTempVendorCDR_20' ) end [2024-12-27 14:20:23] Production.INFO: ProcessCDR(1,14114768,1,1,2) [2024-12-27 14:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114768', 'tblTempUsageDetail_20' ) start [2024-12-27 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114768', 'tblTempUsageDetail_20' ) end [2024-12-27 14:20:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:20:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:20:27] Production.INFO: ==27487== Releasing lock... [2024-12-27 14:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:20:27] Production.INFO: 63.75 MB #Memory Used# [2024-12-27 14:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:21:04 [end_date_ymd] => 2024-12-27 14:21:04 [RateCDR] => 1 ) [2024-12-27 14: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-27 11:21:04' and `end` < '2024-12-27 14: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-27 14:21:25] Production.INFO: count ==4821 [2024-12-27 14:21:27] Production.ERROR: pbx CDR StartTime 2024-12-27 11:21:04 - End Time 2024-12-27 14:21:04 [2024-12-27 14:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114773', 'tblTempUsageDetail_20' ) start [2024-12-27 14:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114773', 'tblTempUsageDetail_20' ) end [2024-12-27 14:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114773', 'tblTempVendorCDR_20' ) start [2024-12-27 14:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114773', 'tblTempVendorCDR_20' ) end [2024-12-27 14:21:27] Production.INFO: ProcessCDR(1,14114773,1,1,2) [2024-12-27 14:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114773', 'tblTempUsageDetail_20' ) start [2024-12-27 14:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114773', 'tblTempUsageDetail_20' ) end [2024-12-27 14:21:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:21:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:21:31] Production.INFO: ==27642== Releasing lock... [2024-12-27 14:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:21:31] Production.INFO: 64 MB #Memory Used# [2024-12-27 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:22:05 [end_date_ymd] => 2024-12-27 14:22:05 [RateCDR] => 1 ) [2024-12-27 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:22:05' and `end` < '2024-12-27 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:22:24] Production.INFO: count ==4824 [2024-12-27 14:22:26] Production.ERROR: pbx CDR StartTime 2024-12-27 11:22:05 - End Time 2024-12-27 14:22:05 [2024-12-27 14:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114778', 'tblTempUsageDetail_20' ) start [2024-12-27 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114778', 'tblTempUsageDetail_20' ) end [2024-12-27 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114778', 'tblTempVendorCDR_20' ) start [2024-12-27 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114778', 'tblTempVendorCDR_20' ) end [2024-12-27 14:22:26] Production.INFO: ProcessCDR(1,14114778,1,1,2) [2024-12-27 14:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114778', 'tblTempUsageDetail_20' ) start [2024-12-27 14:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114778', 'tblTempUsageDetail_20' ) end [2024-12-27 14:22:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:22:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:22:31] Production.INFO: ==27731== Releasing lock... [2024-12-27 14:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:22:31] Production.INFO: 64 MB #Memory Used# [2024-12-27 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:23:05 [end_date_ymd] => 2024-12-27 14:23:05 [RateCDR] => 1 ) [2024-12-27 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:23:05' and `end` < '2024-12-27 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:23:28] Production.INFO: count ==4854 [2024-12-27 14:23:30] Production.ERROR: pbx CDR StartTime 2024-12-27 11:23:05 - End Time 2024-12-27 14:23:05 [2024-12-27 14:23:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114783', 'tblTempUsageDetail_20' ) start [2024-12-27 14:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114783', 'tblTempUsageDetail_20' ) end [2024-12-27 14:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114783', 'tblTempVendorCDR_20' ) start [2024-12-27 14:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114783', 'tblTempVendorCDR_20' ) end [2024-12-27 14:23:30] Production.INFO: ProcessCDR(1,14114783,1,1,2) [2024-12-27 14:23:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:23:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:23:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:23:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114783', 'tblTempUsageDetail_20' ) start [2024-12-27 14:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114783', 'tblTempUsageDetail_20' ) end [2024-12-27 14:23:34] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:23:34] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:23:35] Production.INFO: ==27840== Releasing lock... [2024-12-27 14:23:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:23:35] Production.INFO: 64.25 MB #Memory Used# [2024-12-27 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:24:05 [end_date_ymd] => 2024-12-27 14:24:05 [RateCDR] => 1 ) [2024-12-27 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:24:05' and `end` < '2024-12-27 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:24:28] Production.INFO: count ==4860 [2024-12-27 14:24:30] Production.ERROR: pbx CDR StartTime 2024-12-27 11:24:05 - End Time 2024-12-27 14:24:05 [2024-12-27 14:24:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114788', 'tblTempUsageDetail_20' ) start [2024-12-27 14:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114788', 'tblTempUsageDetail_20' ) end [2024-12-27 14:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114788', 'tblTempVendorCDR_20' ) start [2024-12-27 14:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114788', 'tblTempVendorCDR_20' ) end [2024-12-27 14:24:30] Production.INFO: ProcessCDR(1,14114788,1,1,2) [2024-12-27 14:24:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:24:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:24:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:24:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114788', 'tblTempUsageDetail_20' ) start [2024-12-27 14:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114788', 'tblTempUsageDetail_20' ) end [2024-12-27 14:24:35] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:24:35] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:24:35] Production.INFO: ==27938== Releasing lock... [2024-12-27 14:24:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:24:35] Production.INFO: 64.25 MB #Memory Used# [2024-12-27 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:25:05 [end_date_ymd] => 2024-12-27 14:25:05 [RateCDR] => 1 ) [2024-12-27 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:25:05' and `end` < '2024-12-27 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:25:25] Production.INFO: count ==4859 [2024-12-27 14:25:27] Production.ERROR: pbx CDR StartTime 2024-12-27 11:25:05 - End Time 2024-12-27 14:25:05 [2024-12-27 14:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114793', 'tblTempUsageDetail_20' ) start [2024-12-27 14:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114793', 'tblTempUsageDetail_20' ) end [2024-12-27 14:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114793', 'tblTempVendorCDR_20' ) start [2024-12-27 14:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114793', 'tblTempVendorCDR_20' ) end [2024-12-27 14:25:27] Production.INFO: ProcessCDR(1,14114793,1,1,2) [2024-12-27 14:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114793', 'tblTempUsageDetail_20' ) start [2024-12-27 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114793', 'tblTempUsageDetail_20' ) end [2024-12-27 14:25:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:25:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:25:31] Production.INFO: ==28058== Releasing lock... [2024-12-27 14:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:25:31] Production.INFO: 64.25 MB #Memory Used# [2024-12-27 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:26:05 [end_date_ymd] => 2024-12-27 14:26:05 [RateCDR] => 1 ) [2024-12-27 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:26:05' and `end` < '2024-12-27 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:26:19] Production.INFO: count ==4876 [2024-12-27 14:26:21] Production.ERROR: pbx CDR StartTime 2024-12-27 11:26:05 - End Time 2024-12-27 14:26:05 [2024-12-27 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114798', 'tblTempUsageDetail_20' ) start [2024-12-27 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114798', 'tblTempUsageDetail_20' ) end [2024-12-27 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114798', 'tblTempVendorCDR_20' ) start [2024-12-27 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114798', 'tblTempVendorCDR_20' ) end [2024-12-27 14:26:21] Production.INFO: ProcessCDR(1,14114798,1,1,2) [2024-12-27 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114798', 'tblTempUsageDetail_20' ) start [2024-12-27 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114798', 'tblTempUsageDetail_20' ) end [2024-12-27 14:26:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:26:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:26:26] Production.INFO: ==28157== Releasing lock... [2024-12-27 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:26:26] Production.INFO: 64.5 MB #Memory Used# [2024-12-27 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:27:05 [end_date_ymd] => 2024-12-27 14:27:05 [RateCDR] => 1 ) [2024-12-27 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:27:05' and `end` < '2024-12-27 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:27:18] Production.INFO: count ==4883 [2024-12-27 14:27:20] Production.ERROR: pbx CDR StartTime 2024-12-27 11:27:05 - End Time 2024-12-27 14:27:05 [2024-12-27 14:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114803', 'tblTempUsageDetail_20' ) start [2024-12-27 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114803', 'tblTempUsageDetail_20' ) end [2024-12-27 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114803', 'tblTempVendorCDR_20' ) start [2024-12-27 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114803', 'tblTempVendorCDR_20' ) end [2024-12-27 14:27:20] Production.INFO: ProcessCDR(1,14114803,1,1,2) [2024-12-27 14:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114803', 'tblTempUsageDetail_20' ) start [2024-12-27 14:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114803', 'tblTempUsageDetail_20' ) end [2024-12-27 14:27:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:27:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:27:24] Production.INFO: ==28271== Releasing lock... [2024-12-27 14:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:27:24] Production.INFO: 64.5 MB #Memory Used# [2024-12-27 14:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:28:04 [end_date_ymd] => 2024-12-27 14:28:04 [RateCDR] => 1 ) [2024-12-27 14: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-27 11:28:04' and `end` < '2024-12-27 14: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-27 14:28:18] Production.INFO: count ==4904 [2024-12-27 14:28:20] Production.ERROR: pbx CDR StartTime 2024-12-27 11:28:04 - End Time 2024-12-27 14:28:04 [2024-12-27 14:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114808', 'tblTempUsageDetail_20' ) start [2024-12-27 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114808', 'tblTempUsageDetail_20' ) end [2024-12-27 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114808', 'tblTempVendorCDR_20' ) start [2024-12-27 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114808', 'tblTempVendorCDR_20' ) end [2024-12-27 14:28:20] Production.INFO: ProcessCDR(1,14114808,1,1,2) [2024-12-27 14:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114808', 'tblTempUsageDetail_20' ) start [2024-12-27 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114808', 'tblTempUsageDetail_20' ) end [2024-12-27 14:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:28:23] Production.INFO: ==28369== Releasing lock... [2024-12-27 14:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:28:23] Production.INFO: 64.75 MB #Memory Used# [2024-12-27 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:29:05 [end_date_ymd] => 2024-12-27 14:29:05 [RateCDR] => 1 ) [2024-12-27 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:29:05' and `end` < '2024-12-27 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:29:18] Production.INFO: count ==4900 [2024-12-27 14:29:20] Production.ERROR: pbx CDR StartTime 2024-12-27 11:29:05 - End Time 2024-12-27 14:29:05 [2024-12-27 14:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114813', 'tblTempUsageDetail_20' ) start [2024-12-27 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114813', 'tblTempUsageDetail_20' ) end [2024-12-27 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114813', 'tblTempVendorCDR_20' ) start [2024-12-27 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114813', 'tblTempVendorCDR_20' ) end [2024-12-27 14:29:20] Production.INFO: ProcessCDR(1,14114813,1,1,2) [2024-12-27 14:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114813', 'tblTempUsageDetail_20' ) start [2024-12-27 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114813', 'tblTempUsageDetail_20' ) end [2024-12-27 14:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:29:24] Production.INFO: ==28484== Releasing lock... [2024-12-27 14:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:29:24] Production.INFO: 64.75 MB #Memory Used# [2024-12-27 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:30:05 [end_date_ymd] => 2024-12-27 14:30:05 [RateCDR] => 1 ) [2024-12-27 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-27 11:30:05' and `end` < '2024-12-27 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-27 14:30:21] Production.INFO: count ==4895 [2024-12-27 14:30:23] Production.ERROR: pbx CDR StartTime 2024-12-27 11:30:05 - End Time 2024-12-27 14:30:05 [2024-12-27 14:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114818', 'tblTempUsageDetail_20' ) start [2024-12-27 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114818', 'tblTempUsageDetail_20' ) end [2024-12-27 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114818', 'tblTempVendorCDR_20' ) start [2024-12-27 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114818', 'tblTempVendorCDR_20' ) end [2024-12-27 14:30:23] Production.INFO: ProcessCDR(1,14114818,1,1,2) [2024-12-27 14:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114818', 'tblTempUsageDetail_20' ) start [2024-12-27 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114818', 'tblTempUsageDetail_20' ) end [2024-12-27 14:30:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:30:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:30:28] Production.INFO: ==28588== Releasing lock... [2024-12-27 14:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:30:28] Production.INFO: 64.5 MB #Memory Used# [2024-12-27 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:31:05 [end_date_ymd] => 2024-12-27 14:31:05 [RateCDR] => 1 ) [2024-12-27 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:31:05' and `end` < '2024-12-27 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:31:24] Production.INFO: count ==4909 [2024-12-27 14:31:26] Production.ERROR: pbx CDR StartTime 2024-12-27 11:31:05 - End Time 2024-12-27 14:31:05 [2024-12-27 14:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114824', 'tblTempUsageDetail_20' ) start [2024-12-27 14:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114824', 'tblTempUsageDetail_20' ) end [2024-12-27 14:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114824', 'tblTempVendorCDR_20' ) start [2024-12-27 14:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114824', 'tblTempVendorCDR_20' ) end [2024-12-27 14:31:26] Production.INFO: ProcessCDR(1,14114824,1,1,2) [2024-12-27 14:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114824', 'tblTempUsageDetail_20' ) start [2024-12-27 14:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114824', 'tblTempUsageDetail_20' ) end [2024-12-27 14:31:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:31:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:31:31] Production.INFO: ==28707== Releasing lock... [2024-12-27 14:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:31:31] Production.INFO: 64.75 MB #Memory Used# [2024-12-27 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:32:05 [end_date_ymd] => 2024-12-27 14:32:05 [RateCDR] => 1 ) [2024-12-27 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:32:05' and `end` < '2024-12-27 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:32:19] Production.INFO: count ==4897 [2024-12-27 14:32:20] Production.ERROR: pbx CDR StartTime 2024-12-27 11:32:05 - End Time 2024-12-27 14:32:05 [2024-12-27 14:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114829', 'tblTempUsageDetail_20' ) start [2024-12-27 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114829', 'tblTempUsageDetail_20' ) end [2024-12-27 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114829', 'tblTempVendorCDR_20' ) start [2024-12-27 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114829', 'tblTempVendorCDR_20' ) end [2024-12-27 14:32:21] Production.INFO: ProcessCDR(1,14114829,1,1,2) [2024-12-27 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114829', 'tblTempUsageDetail_20' ) start [2024-12-27 14:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114829', 'tblTempUsageDetail_20' ) end [2024-12-27 14:32:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:32:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:32:25] Production.INFO: ==28812== Releasing lock... [2024-12-27 14:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:32:25] Production.INFO: 64.75 MB #Memory Used# [2024-12-27 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:33:05 [end_date_ymd] => 2024-12-27 14:33:05 [RateCDR] => 1 ) [2024-12-27 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:33:05' and `end` < '2024-12-27 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:33:18] Production.INFO: count ==4889 [2024-12-27 14:33:20] Production.ERROR: pbx CDR StartTime 2024-12-27 11:33:05 - End Time 2024-12-27 14:33:05 [2024-12-27 14:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114834', 'tblTempUsageDetail_20' ) start [2024-12-27 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114834', 'tblTempUsageDetail_20' ) end [2024-12-27 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114834', 'tblTempVendorCDR_20' ) start [2024-12-27 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114834', 'tblTempVendorCDR_20' ) end [2024-12-27 14:33:20] Production.INFO: ProcessCDR(1,14114834,1,1,2) [2024-12-27 14:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114834', 'tblTempUsageDetail_20' ) start [2024-12-27 14:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114834', 'tblTempUsageDetail_20' ) end [2024-12-27 14:33:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:33:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:33:24] Production.INFO: ==28933== Releasing lock... [2024-12-27 14:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:33:24] Production.INFO: 64.5 MB #Memory Used# [2024-12-27 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:34:05 [end_date_ymd] => 2024-12-27 14:34:05 [RateCDR] => 1 ) [2024-12-27 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:34:05' and `end` < '2024-12-27 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:34:21] Production.INFO: count ==4872 [2024-12-27 14:34:22] Production.ERROR: pbx CDR StartTime 2024-12-27 11:34:05 - End Time 2024-12-27 14:34:05 [2024-12-27 14:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114839', 'tblTempUsageDetail_20' ) start [2024-12-27 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114839', 'tblTempUsageDetail_20' ) end [2024-12-27 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114839', 'tblTempVendorCDR_20' ) start [2024-12-27 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114839', 'tblTempVendorCDR_20' ) end [2024-12-27 14:34:22] Production.INFO: ProcessCDR(1,14114839,1,1,2) [2024-12-27 14:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114839', 'tblTempUsageDetail_20' ) start [2024-12-27 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114839', 'tblTempUsageDetail_20' ) end [2024-12-27 14:34:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:34:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:34:27] Production.INFO: ==29044== Releasing lock... [2024-12-27 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:34:27] Production.INFO: 64.5 MB #Memory Used# [2024-12-27 14:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:35:04 [end_date_ymd] => 2024-12-27 14:35:04 [RateCDR] => 1 ) [2024-12-27 14:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:35:04' and `end` < '2024-12-27 14:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:35:26] Production.INFO: count ==4886 [2024-12-27 14:35:28] Production.ERROR: pbx CDR StartTime 2024-12-27 11:35:04 - End Time 2024-12-27 14:35:04 [2024-12-27 14:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114844', 'tblTempUsageDetail_20' ) start [2024-12-27 14:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114844', 'tblTempUsageDetail_20' ) end [2024-12-27 14:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114844', 'tblTempVendorCDR_20' ) start [2024-12-27 14:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114844', 'tblTempVendorCDR_20' ) end [2024-12-27 14:35:28] Production.INFO: ProcessCDR(1,14114844,1,1,2) [2024-12-27 14:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114844', 'tblTempUsageDetail_20' ) start [2024-12-27 14:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114844', 'tblTempUsageDetail_20' ) end [2024-12-27 14:35:32] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:35:32] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:35:32] Production.INFO: ==29157== Releasing lock... [2024-12-27 14:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:35:32] Production.INFO: 64.5 MB #Memory Used# [2024-12-27 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:36:05 [end_date_ymd] => 2024-12-27 14:36:05 [RateCDR] => 1 ) [2024-12-27 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-27 11:36:05' and `end` < '2024-12-27 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-27 14:36:18] Production.INFO: count ==4908 [2024-12-27 14:36:20] Production.ERROR: pbx CDR StartTime 2024-12-27 11:36:05 - End Time 2024-12-27 14:36:05 [2024-12-27 14:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114849', 'tblTempUsageDetail_20' ) start [2024-12-27 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114849', 'tblTempUsageDetail_20' ) end [2024-12-27 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114849', 'tblTempVendorCDR_20' ) start [2024-12-27 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114849', 'tblTempVendorCDR_20' ) end [2024-12-27 14:36:20] Production.INFO: ProcessCDR(1,14114849,1,1,2) [2024-12-27 14:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114849', 'tblTempUsageDetail_20' ) start [2024-12-27 14:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114849', 'tblTempUsageDetail_20' ) end [2024-12-27 14:36:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:36:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:36:25] Production.INFO: ==29258== Releasing lock... [2024-12-27 14:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:36:25] Production.INFO: 64.75 MB #Memory Used# [2024-12-27 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:37:05 [end_date_ymd] => 2024-12-27 14:37:05 [RateCDR] => 1 ) [2024-12-27 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:37:05' and `end` < '2024-12-27 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:37:19] Production.INFO: count ==4904 [2024-12-27 14:37:21] Production.ERROR: pbx CDR StartTime 2024-12-27 11:37:05 - End Time 2024-12-27 14:37:05 [2024-12-27 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114854', 'tblTempUsageDetail_20' ) start [2024-12-27 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114854', 'tblTempUsageDetail_20' ) end [2024-12-27 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114854', 'tblTempVendorCDR_20' ) start [2024-12-27 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114854', 'tblTempVendorCDR_20' ) end [2024-12-27 14:37:21] Production.INFO: ProcessCDR(1,14114854,1,1,2) [2024-12-27 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114854', 'tblTempUsageDetail_20' ) start [2024-12-27 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114854', 'tblTempUsageDetail_20' ) end [2024-12-27 14:37:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:37:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:37:25] Production.INFO: ==29414== Releasing lock... [2024-12-27 14:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:37:25] Production.INFO: 64.75 MB #Memory Used# [2024-12-27 14:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:38:04 [end_date_ymd] => 2024-12-27 14:38:04 [RateCDR] => 1 ) [2024-12-27 14: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-27 11:38:04' and `end` < '2024-12-27 14: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-27 14:38:18] Production.INFO: count ==4880 [2024-12-27 14:38:20] Production.ERROR: pbx CDR StartTime 2024-12-27 11:38:04 - End Time 2024-12-27 14:38:04 [2024-12-27 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114859', 'tblTempUsageDetail_20' ) start [2024-12-27 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114859', 'tblTempUsageDetail_20' ) end [2024-12-27 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114859', 'tblTempVendorCDR_20' ) start [2024-12-27 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114859', 'tblTempVendorCDR_20' ) end [2024-12-27 14:38:20] Production.INFO: ProcessCDR(1,14114859,1,1,2) [2024-12-27 14:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114859', 'tblTempUsageDetail_20' ) start [2024-12-27 14:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114859', 'tblTempUsageDetail_20' ) end [2024-12-27 14:38:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:38:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:38:25] Production.INFO: ==29508== Releasing lock... [2024-12-27 14:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:38:25] Production.INFO: 64.5 MB #Memory Used# [2024-12-27 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:39:05 [end_date_ymd] => 2024-12-27 14:39:05 [RateCDR] => 1 ) [2024-12-27 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:39:05' and `end` < '2024-12-27 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:39:21] Production.INFO: count ==4844 [2024-12-27 14:39:23] Production.ERROR: pbx CDR StartTime 2024-12-27 11:39:05 - End Time 2024-12-27 14:39:05 [2024-12-27 14:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114864', 'tblTempUsageDetail_20' ) start [2024-12-27 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114864', 'tblTempUsageDetail_20' ) end [2024-12-27 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114864', 'tblTempVendorCDR_20' ) start [2024-12-27 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114864', 'tblTempVendorCDR_20' ) end [2024-12-27 14:39:23] Production.INFO: ProcessCDR(1,14114864,1,1,2) [2024-12-27 14:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114864', 'tblTempUsageDetail_20' ) start [2024-12-27 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114864', 'tblTempUsageDetail_20' ) end [2024-12-27 14:39:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:39:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:39:27] Production.INFO: ==29614== Releasing lock... [2024-12-27 14:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:39:27] Production.INFO: 64.25 MB #Memory Used# [2024-12-27 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:40:06 [end_date_ymd] => 2024-12-27 14:40:06 [RateCDR] => 1 ) [2024-12-27 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:40:06' and `end` < '2024-12-27 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:40:21] Production.INFO: count ==4804 [2024-12-27 14:40:23] Production.ERROR: pbx CDR StartTime 2024-12-27 11:40:06 - End Time 2024-12-27 14:40:06 [2024-12-27 14:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114870', 'tblTempUsageDetail_20' ) start [2024-12-27 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114870', 'tblTempUsageDetail_20' ) end [2024-12-27 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114870', 'tblTempVendorCDR_20' ) start [2024-12-27 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114870', 'tblTempVendorCDR_20' ) end [2024-12-27 14:40:23] Production.INFO: ProcessCDR(1,14114870,1,1,2) [2024-12-27 14:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114870', 'tblTempUsageDetail_20' ) start [2024-12-27 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114870', 'tblTempUsageDetail_20' ) end [2024-12-27 14:40:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:40:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:40:27] Production.INFO: ==29712== Releasing lock... [2024-12-27 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:40:27] Production.INFO: 64 MB #Memory Used# [2024-12-27 14:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:41:04 [end_date_ymd] => 2024-12-27 14:41:04 [RateCDR] => 1 ) [2024-12-27 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-27 11:41:04' and `end` < '2024-12-27 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-27 14:41:17] Production.INFO: count ==4733 [2024-12-27 14:41:19] Production.ERROR: pbx CDR StartTime 2024-12-27 11:41:04 - End Time 2024-12-27 14:41:04 [2024-12-27 14:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114875', 'tblTempUsageDetail_20' ) start [2024-12-27 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114875', 'tblTempUsageDetail_20' ) end [2024-12-27 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114875', 'tblTempVendorCDR_20' ) start [2024-12-27 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114875', 'tblTempVendorCDR_20' ) end [2024-12-27 14:41:19] Production.INFO: ProcessCDR(1,14114875,1,1,2) [2024-12-27 14:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114875', 'tblTempUsageDetail_20' ) start [2024-12-27 14:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114875', 'tblTempUsageDetail_20' ) end [2024-12-27 14:41:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:41:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:41:24] Production.INFO: ==29802== Releasing lock... [2024-12-27 14:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:41:24] Production.INFO: 63.5 MB #Memory Used# [2024-12-27 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:42:05 [end_date_ymd] => 2024-12-27 14:42:05 [RateCDR] => 1 ) [2024-12-27 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-27 11:42:05' and `end` < '2024-12-27 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-27 14:42:22] Production.INFO: count ==4689 [2024-12-27 14:42:24] Production.ERROR: pbx CDR StartTime 2024-12-27 11:42:05 - End Time 2024-12-27 14:42:05 [2024-12-27 14:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114880', 'tblTempUsageDetail_20' ) start [2024-12-27 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114880', 'tblTempUsageDetail_20' ) end [2024-12-27 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114880', 'tblTempVendorCDR_20' ) start [2024-12-27 14:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114880', 'tblTempVendorCDR_20' ) end [2024-12-27 14:42:24] Production.INFO: ProcessCDR(1,14114880,1,1,2) [2024-12-27 14:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114880', 'tblTempUsageDetail_20' ) start [2024-12-27 14:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114880', 'tblTempUsageDetail_20' ) end [2024-12-27 14:42:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:42:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:42:29] Production.INFO: ==29894== Releasing lock... [2024-12-27 14:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:42:29] Production.INFO: 63 MB #Memory Used# [2024-12-27 14:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:43:04 [end_date_ymd] => 2024-12-27 14:43:04 [RateCDR] => 1 ) [2024-12-27 14:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:43:04' and `end` < '2024-12-27 14:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:43:18] Production.INFO: count ==4669 [2024-12-27 14:43:20] Production.ERROR: pbx CDR StartTime 2024-12-27 11:43:04 - End Time 2024-12-27 14:43:04 [2024-12-27 14:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114885', 'tblTempUsageDetail_20' ) start [2024-12-27 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114885', 'tblTempUsageDetail_20' ) end [2024-12-27 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114885', 'tblTempVendorCDR_20' ) start [2024-12-27 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114885', 'tblTempVendorCDR_20' ) end [2024-12-27 14:43:20] Production.INFO: ProcessCDR(1,14114885,1,1,2) [2024-12-27 14:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114885', 'tblTempUsageDetail_20' ) start [2024-12-27 14:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114885', 'tblTempUsageDetail_20' ) end [2024-12-27 14:43:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:43:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:43:25] Production.INFO: ==29979== Releasing lock... [2024-12-27 14:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:43:25] Production.INFO: 63 MB #Memory Used# [2024-12-27 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:44:05 [end_date_ymd] => 2024-12-27 14:44:05 [RateCDR] => 1 ) [2024-12-27 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:44:05' and `end` < '2024-12-27 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:44:19] Production.INFO: count ==4646 [2024-12-27 14:44:21] Production.ERROR: pbx CDR StartTime 2024-12-27 11:44:05 - End Time 2024-12-27 14:44:05 [2024-12-27 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114890', 'tblTempUsageDetail_20' ) start [2024-12-27 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114890', 'tblTempUsageDetail_20' ) end [2024-12-27 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114890', 'tblTempVendorCDR_20' ) start [2024-12-27 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114890', 'tblTempVendorCDR_20' ) end [2024-12-27 14:44:21] Production.INFO: ProcessCDR(1,14114890,1,1,2) [2024-12-27 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114890', 'tblTempUsageDetail_20' ) start [2024-12-27 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114890', 'tblTempUsageDetail_20' ) end [2024-12-27 14:44:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:44:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:44:26] Production.INFO: ==30077== Releasing lock... [2024-12-27 14:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:44:26] Production.INFO: 62.75 MB #Memory Used# [2024-12-27 14:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:45:04 [end_date_ymd] => 2024-12-27 14:45:04 [RateCDR] => 1 ) [2024-12-27 14:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:45:04' and `end` < '2024-12-27 14:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:45:18] Production.INFO: count ==4617 [2024-12-27 14:45:19] Production.ERROR: pbx CDR StartTime 2024-12-27 11:45:04 - End Time 2024-12-27 14:45:04 [2024-12-27 14:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114895', 'tblTempUsageDetail_20' ) start [2024-12-27 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114895', 'tblTempUsageDetail_20' ) end [2024-12-27 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114895', 'tblTempVendorCDR_20' ) start [2024-12-27 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114895', 'tblTempVendorCDR_20' ) end [2024-12-27 14:45:20] Production.INFO: ProcessCDR(1,14114895,1,1,2) [2024-12-27 14:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114895', 'tblTempUsageDetail_20' ) start [2024-12-27 14:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114895', 'tblTempUsageDetail_20' ) end [2024-12-27 14:45:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:45:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:45:24] Production.INFO: ==30163== Releasing lock... [2024-12-27 14:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:45:24] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:46:05 [end_date_ymd] => 2024-12-27 14:46:05 [RateCDR] => 1 ) [2024-12-27 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:46:05' and `end` < '2024-12-27 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:46:19] Production.INFO: count ==4618 [2024-12-27 14:46:21] Production.ERROR: pbx CDR StartTime 2024-12-27 11:46:05 - End Time 2024-12-27 14:46:05 [2024-12-27 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114900', 'tblTempUsageDetail_20' ) start [2024-12-27 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114900', 'tblTempUsageDetail_20' ) end [2024-12-27 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114900', 'tblTempVendorCDR_20' ) start [2024-12-27 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114900', 'tblTempVendorCDR_20' ) end [2024-12-27 14:46:21] Production.INFO: ProcessCDR(1,14114900,1,1,2) [2024-12-27 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114900', 'tblTempUsageDetail_20' ) start [2024-12-27 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114900', 'tblTempUsageDetail_20' ) end [2024-12-27 14:46:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:46:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:46:26] Production.INFO: ==30250== Releasing lock... [2024-12-27 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:46:26] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:47:05 [end_date_ymd] => 2024-12-27 14:47:05 [RateCDR] => 1 ) [2024-12-27 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:47:05' and `end` < '2024-12-27 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:47:20] Production.INFO: count ==4629 [2024-12-27 14:47:21] Production.ERROR: pbx CDR StartTime 2024-12-27 11:47:05 - End Time 2024-12-27 14:47:05 [2024-12-27 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114905', 'tblTempUsageDetail_20' ) start [2024-12-27 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114905', 'tblTempUsageDetail_20' ) end [2024-12-27 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114905', 'tblTempVendorCDR_20' ) start [2024-12-27 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114905', 'tblTempVendorCDR_20' ) end [2024-12-27 14:47:21] Production.INFO: ProcessCDR(1,14114905,1,1,2) [2024-12-27 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114905', 'tblTempUsageDetail_20' ) start [2024-12-27 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114905', 'tblTempUsageDetail_20' ) end [2024-12-27 14:47:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:47:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:47:26] Production.INFO: ==30332== Releasing lock... [2024-12-27 14:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:47:26] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:48:05 [end_date_ymd] => 2024-12-27 14:48:05 [RateCDR] => 1 ) [2024-12-27 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-27 11:48:05' and `end` < '2024-12-27 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-27 14:48:27] Production.INFO: count ==4612 [2024-12-27 14:48:29] Production.ERROR: pbx CDR StartTime 2024-12-27 11:48:05 - End Time 2024-12-27 14:48:05 [2024-12-27 14:48:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114910', 'tblTempUsageDetail_20' ) start [2024-12-27 14:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114910', 'tblTempUsageDetail_20' ) end [2024-12-27 14:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114910', 'tblTempVendorCDR_20' ) start [2024-12-27 14:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114910', 'tblTempVendorCDR_20' ) end [2024-12-27 14:48:29] Production.INFO: ProcessCDR(1,14114910,1,1,2) [2024-12-27 14:48:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:48:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:48:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:48:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114910', 'tblTempUsageDetail_20' ) start [2024-12-27 14:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114910', 'tblTempUsageDetail_20' ) end [2024-12-27 14:48:34] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:48:34] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:48:34] Production.INFO: ==30419== Releasing lock... [2024-12-27 14:48:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:48:34] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:49:05 [end_date_ymd] => 2024-12-27 14:49:05 [RateCDR] => 1 ) [2024-12-27 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:49:05' and `end` < '2024-12-27 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:49:32] Production.INFO: count ==4613 [2024-12-27 14:49:34] Production.ERROR: pbx CDR StartTime 2024-12-27 11:49:05 - End Time 2024-12-27 14:49:05 [2024-12-27 14:49:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:49:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114915', 'tblTempUsageDetail_20' ) start [2024-12-27 14:49:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114915', 'tblTempUsageDetail_20' ) end [2024-12-27 14:49:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114915', 'tblTempVendorCDR_20' ) start [2024-12-27 14:49:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114915', 'tblTempVendorCDR_20' ) end [2024-12-27 14:49:34] Production.INFO: ProcessCDR(1,14114915,1,1,2) [2024-12-27 14:49:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:49:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:49:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:49:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:49:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114915', 'tblTempUsageDetail_20' ) start [2024-12-27 14:49:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114915', 'tblTempUsageDetail_20' ) end [2024-12-27 14:49:39] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:49:39] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:49:39] Production.INFO: ==30528== Releasing lock... [2024-12-27 14:49:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:49:39] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:50:06 [end_date_ymd] => 2024-12-27 14:50:06 [RateCDR] => 1 ) [2024-12-27 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:50:06' and `end` < '2024-12-27 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:50:24] Production.INFO: count ==4610 [2024-12-27 14:50:26] Production.ERROR: pbx CDR StartTime 2024-12-27 11:50:06 - End Time 2024-12-27 14:50:06 [2024-12-27 14:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114921', 'tblTempUsageDetail_20' ) start [2024-12-27 14:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114921', 'tblTempUsageDetail_20' ) end [2024-12-27 14:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114921', 'tblTempVendorCDR_20' ) start [2024-12-27 14:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114921', 'tblTempVendorCDR_20' ) end [2024-12-27 14:50:26] Production.INFO: ProcessCDR(1,14114921,1,1,2) [2024-12-27 14:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114921', 'tblTempUsageDetail_20' ) start [2024-12-27 14:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114921', 'tblTempUsageDetail_20' ) end [2024-12-27 14:50:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:50:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:50:32] Production.INFO: ==30633== Releasing lock... [2024-12-27 14:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:50:32] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:51:05 [end_date_ymd] => 2024-12-27 14:51:05 [RateCDR] => 1 ) [2024-12-27 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:51:05' and `end` < '2024-12-27 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:51:26] Production.INFO: count ==4578 [2024-12-27 14:51:28] Production.ERROR: pbx CDR StartTime 2024-12-27 11:51:05 - End Time 2024-12-27 14:51:05 [2024-12-27 14:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114926', 'tblTempUsageDetail_20' ) start [2024-12-27 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114926', 'tblTempUsageDetail_20' ) end [2024-12-27 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114926', 'tblTempVendorCDR_20' ) start [2024-12-27 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114926', 'tblTempVendorCDR_20' ) end [2024-12-27 14:51:28] Production.INFO: ProcessCDR(1,14114926,1,1,2) [2024-12-27 14:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:51:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:51:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:51:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114926', 'tblTempUsageDetail_20' ) start [2024-12-27 14:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114926', 'tblTempUsageDetail_20' ) end [2024-12-27 14:51:32] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:51:32] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:51:32] Production.INFO: ==30715== Releasing lock... [2024-12-27 14:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:51:32] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:52:05 [end_date_ymd] => 2024-12-27 14:52:05 [RateCDR] => 1 ) [2024-12-27 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:52:05' and `end` < '2024-12-27 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:52:24] Production.INFO: count ==4568 [2024-12-27 14:52:26] Production.ERROR: pbx CDR StartTime 2024-12-27 11:52:05 - End Time 2024-12-27 14:52:05 [2024-12-27 14:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114931', 'tblTempUsageDetail_20' ) start [2024-12-27 14:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114931', 'tblTempUsageDetail_20' ) end [2024-12-27 14:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114931', 'tblTempVendorCDR_20' ) start [2024-12-27 14:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114931', 'tblTempVendorCDR_20' ) end [2024-12-27 14:52:26] Production.INFO: ProcessCDR(1,14114931,1,1,2) [2024-12-27 14:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114931', 'tblTempUsageDetail_20' ) start [2024-12-27 14:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114931', 'tblTempUsageDetail_20' ) end [2024-12-27 14:52:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:52:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:52:31] Production.INFO: ==30831== Releasing lock... [2024-12-27 14:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:52:31] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:53:05 [end_date_ymd] => 2024-12-27 14:53:05 [RateCDR] => 1 ) [2024-12-27 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:53:05' and `end` < '2024-12-27 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:53:29] Production.INFO: count ==4587 [2024-12-27 14:53:30] Production.ERROR: pbx CDR StartTime 2024-12-27 11:53:05 - End Time 2024-12-27 14:53:05 [2024-12-27 14:53:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114936', 'tblTempUsageDetail_20' ) start [2024-12-27 14:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114936', 'tblTempUsageDetail_20' ) end [2024-12-27 14:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114936', 'tblTempVendorCDR_20' ) start [2024-12-27 14:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114936', 'tblTempVendorCDR_20' ) end [2024-12-27 14:53:31] Production.INFO: ProcessCDR(1,14114936,1,1,2) [2024-12-27 14:53:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:53:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:53:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:53:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114936', 'tblTempUsageDetail_20' ) start [2024-12-27 14:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114936', 'tblTempUsageDetail_20' ) end [2024-12-27 14:53:34] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:53:34] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:53:34] Production.INFO: ==30917== Releasing lock... [2024-12-27 14:53:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:53:34] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:54:06 [end_date_ymd] => 2024-12-27 14:54:06 [RateCDR] => 1 ) [2024-12-27 14:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:54:06' and `end` < '2024-12-27 14:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:54:24] Production.INFO: count ==4572 [2024-12-27 14:54:26] Production.ERROR: pbx CDR StartTime 2024-12-27 11:54:06 - End Time 2024-12-27 14:54:06 [2024-12-27 14:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114941', 'tblTempUsageDetail_20' ) start [2024-12-27 14:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114941', 'tblTempUsageDetail_20' ) end [2024-12-27 14:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114941', 'tblTempVendorCDR_20' ) start [2024-12-27 14:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114941', 'tblTempVendorCDR_20' ) end [2024-12-27 14:54:26] Production.INFO: ProcessCDR(1,14114941,1,1,2) [2024-12-27 14:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114941', 'tblTempUsageDetail_20' ) start [2024-12-27 14:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114941', 'tblTempUsageDetail_20' ) end [2024-12-27 14:54:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:54:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:54:31] Production.INFO: ==30997== Releasing lock... [2024-12-27 14:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:54:31] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 14:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:55:04 [end_date_ymd] => 2024-12-27 14:55:04 [RateCDR] => 1 ) [2024-12-27 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-27 11:55:04' and `end` < '2024-12-27 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-27 14:55:23] Production.INFO: count ==4688 [2024-12-27 14:55:25] Production.ERROR: pbx CDR StartTime 2024-12-27 11:55:04 - End Time 2024-12-27 14:55:04 [2024-12-27 14:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114946', 'tblTempUsageDetail_20' ) start [2024-12-27 14:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114946', 'tblTempUsageDetail_20' ) end [2024-12-27 14:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114946', 'tblTempVendorCDR_20' ) start [2024-12-27 14:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114946', 'tblTempVendorCDR_20' ) end [2024-12-27 14:55:26] Production.INFO: ProcessCDR(1,14114946,1,1,2) [2024-12-27 14:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114946', 'tblTempUsageDetail_20' ) start [2024-12-27 14:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114946', 'tblTempUsageDetail_20' ) end [2024-12-27 14:55:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:55:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:55:31] Production.INFO: ==31085== Releasing lock... [2024-12-27 14:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:55:31] Production.INFO: 63 MB #Memory Used# [2024-12-27 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:56:05 [end_date_ymd] => 2024-12-27 14:56:05 [RateCDR] => 1 ) [2024-12-27 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-27 11:56:05' and `end` < '2024-12-27 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-27 14:56:18] Production.INFO: count ==4659 [2024-12-27 14:56:20] Production.ERROR: pbx CDR StartTime 2024-12-27 11:56:05 - End Time 2024-12-27 14:56:05 [2024-12-27 14:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114951', 'tblTempUsageDetail_20' ) start [2024-12-27 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114951', 'tblTempUsageDetail_20' ) end [2024-12-27 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114951', 'tblTempVendorCDR_20' ) start [2024-12-27 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114951', 'tblTempVendorCDR_20' ) end [2024-12-27 14:56:20] Production.INFO: ProcessCDR(1,14114951,1,1,2) [2024-12-27 14:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114951', 'tblTempUsageDetail_20' ) start [2024-12-27 14:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114951', 'tblTempUsageDetail_20' ) end [2024-12-27 14:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:56:24] Production.INFO: ==31166== Releasing lock... [2024-12-27 14:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:56:24] Production.INFO: 62.75 MB #Memory Used# [2024-12-27 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:57:05 [end_date_ymd] => 2024-12-27 14:57:05 [RateCDR] => 1 ) [2024-12-27 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:57:05' and `end` < '2024-12-27 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:57:22] Production.INFO: count ==4613 [2024-12-27 14:57:24] Production.ERROR: pbx CDR StartTime 2024-12-27 11:57:05 - End Time 2024-12-27 14:57:05 [2024-12-27 14:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114956', 'tblTempUsageDetail_20' ) start [2024-12-27 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114956', 'tblTempUsageDetail_20' ) end [2024-12-27 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114956', 'tblTempVendorCDR_20' ) start [2024-12-27 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114956', 'tblTempVendorCDR_20' ) end [2024-12-27 14:57:24] Production.INFO: ProcessCDR(1,14114956,1,1,2) [2024-12-27 14:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114956', 'tblTempUsageDetail_20' ) start [2024-12-27 14:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114956', 'tblTempUsageDetail_20' ) end [2024-12-27 14:57:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:57:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:57:29] Production.INFO: ==31249== Releasing lock... [2024-12-27 14:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:57:29] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:58:05 [end_date_ymd] => 2024-12-27 14:58:05 [RateCDR] => 1 ) [2024-12-27 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 11:58:05' and `end` < '2024-12-27 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 14:58:25] Production.INFO: count ==4589 [2024-12-27 14:58:27] Production.ERROR: pbx CDR StartTime 2024-12-27 11:58:05 - End Time 2024-12-27 14:58:05 [2024-12-27 14:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114961', 'tblTempUsageDetail_20' ) start [2024-12-27 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114961', 'tblTempUsageDetail_20' ) end [2024-12-27 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114961', 'tblTempVendorCDR_20' ) start [2024-12-27 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114961', 'tblTempVendorCDR_20' ) end [2024-12-27 14:58:27] Production.INFO: ProcessCDR(1,14114961,1,1,2) [2024-12-27 14:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114961', 'tblTempUsageDetail_20' ) start [2024-12-27 14:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114961', 'tblTempUsageDetail_20' ) end [2024-12-27 14:58:32] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:58:32] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:58:32] Production.INFO: ==31327== Releasing lock... [2024-12-27 14:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:58:32] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 14:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 11:59:04 [end_date_ymd] => 2024-12-27 14:59:04 [RateCDR] => 1 ) [2024-12-27 14: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-27 11:59:04' and `end` < '2024-12-27 14: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-27 14:59:19] Production.INFO: count ==4566 [2024-12-27 14:59:20] Production.ERROR: pbx CDR StartTime 2024-12-27 11:59:04 - End Time 2024-12-27 14:59:04 [2024-12-27 14:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114966', 'tblTempUsageDetail_20' ) start [2024-12-27 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114966', 'tblTempUsageDetail_20' ) end [2024-12-27 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114966', 'tblTempVendorCDR_20' ) start [2024-12-27 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114966', 'tblTempVendorCDR_20' ) end [2024-12-27 14:59:20] Production.INFO: ProcessCDR(1,14114966,1,1,2) [2024-12-27 14:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 14:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114966', 'tblTempUsageDetail_20' ) start [2024-12-27 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114966', 'tblTempUsageDetail_20' ) end [2024-12-27 14:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 14:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 14:59:23] Production.INFO: ==31403== Releasing lock... [2024-12-27 14:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 14:59:23] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:00:05 [end_date_ymd] => 2024-12-27 15:00:05 [RateCDR] => 1 ) [2024-12-27 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:00:05' and `end` < '2024-12-27 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:00:20] Production.INFO: count ==4533 [2024-12-27 15:00:22] Production.ERROR: pbx CDR StartTime 2024-12-27 12:00:05 - End Time 2024-12-27 15:00:05 [2024-12-27 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114970', 'tblTempUsageDetail_20' ) start [2024-12-27 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114970', 'tblTempUsageDetail_20' ) end [2024-12-27 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114970', 'tblTempVendorCDR_20' ) start [2024-12-27 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114970', 'tblTempVendorCDR_20' ) end [2024-12-27 15:00:22] Production.INFO: ProcessCDR(1,14114970,1,1,2) [2024-12-27 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114970', 'tblTempUsageDetail_20' ) start [2024-12-27 15:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114970', 'tblTempUsageDetail_20' ) end [2024-12-27 15:00:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:00:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:00:25] Production.INFO: ==31485== Releasing lock... [2024-12-27 15:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:00:25] Production.INFO: 62 MB #Memory Used# [2024-12-27 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:01:05 [end_date_ymd] => 2024-12-27 15:01:05 [RateCDR] => 1 ) [2024-12-27 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:01:05' and `end` < '2024-12-27 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:01:18] Production.INFO: count ==4553 [2024-12-27 15:01:20] Production.ERROR: pbx CDR StartTime 2024-12-27 12:01:05 - End Time 2024-12-27 15:01:05 [2024-12-27 15:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114977', 'tblTempUsageDetail_20' ) start [2024-12-27 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114977', 'tblTempUsageDetail_20' ) end [2024-12-27 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114977', 'tblTempVendorCDR_20' ) start [2024-12-27 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114977', 'tblTempVendorCDR_20' ) end [2024-12-27 15:01:20] Production.INFO: ProcessCDR(1,14114977,1,1,2) [2024-12-27 15:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114977', 'tblTempUsageDetail_20' ) start [2024-12-27 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114977', 'tblTempUsageDetail_20' ) end [2024-12-27 15:01:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:01:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:01:25] Production.INFO: ==31574== Releasing lock... [2024-12-27 15:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:01:25] Production.INFO: 62 MB #Memory Used# [2024-12-27 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:02:05 [end_date_ymd] => 2024-12-27 15:02:05 [RateCDR] => 1 ) [2024-12-27 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:02:05' and `end` < '2024-12-27 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:02:22] Production.INFO: count ==4556 [2024-12-27 15:02:24] Production.ERROR: pbx CDR StartTime 2024-12-27 12:02:05 - End Time 2024-12-27 15:02:05 [2024-12-27 15:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114982', 'tblTempUsageDetail_20' ) start [2024-12-27 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114982', 'tblTempUsageDetail_20' ) end [2024-12-27 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114982', 'tblTempVendorCDR_20' ) start [2024-12-27 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114982', 'tblTempVendorCDR_20' ) end [2024-12-27 15:02:24] Production.INFO: ProcessCDR(1,14114982,1,1,2) [2024-12-27 15:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114982', 'tblTempUsageDetail_20' ) start [2024-12-27 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114982', 'tblTempUsageDetail_20' ) end [2024-12-27 15:02:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:02:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:02:28] Production.INFO: ==31737== Releasing lock... [2024-12-27 15:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:02:28] Production.INFO: 62 MB #Memory Used# [2024-12-27 15:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:03:04 [end_date_ymd] => 2024-12-27 15:03:04 [RateCDR] => 1 ) [2024-12-27 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-27 12:03:04' and `end` < '2024-12-27 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-27 15:03:23] Production.INFO: count ==4547 [2024-12-27 15:03:25] Production.ERROR: pbx CDR StartTime 2024-12-27 12:03:04 - End Time 2024-12-27 15:03:04 [2024-12-27 15:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114987', 'tblTempUsageDetail_20' ) start [2024-12-27 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114987', 'tblTempUsageDetail_20' ) end [2024-12-27 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114987', 'tblTempVendorCDR_20' ) start [2024-12-27 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114987', 'tblTempVendorCDR_20' ) end [2024-12-27 15:03:25] Production.INFO: ProcessCDR(1,14114987,1,1,2) [2024-12-27 15:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114987', 'tblTempUsageDetail_20' ) start [2024-12-27 15:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114987', 'tblTempUsageDetail_20' ) end [2024-12-27 15:03:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:03:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:03:29] Production.INFO: ==31814== Releasing lock... [2024-12-27 15:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:03:29] Production.INFO: 62 MB #Memory Used# [2024-12-27 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:04:05 [end_date_ymd] => 2024-12-27 15:04:05 [RateCDR] => 1 ) [2024-12-27 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-27 12:04:05' and `end` < '2024-12-27 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-27 15:04:25] Production.INFO: count ==4784 [2024-12-27 15:04:27] Production.ERROR: pbx CDR StartTime 2024-12-27 12:04:05 - End Time 2024-12-27 15:04:05 [2024-12-27 15:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114992', 'tblTempUsageDetail_20' ) start [2024-12-27 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114992', 'tblTempUsageDetail_20' ) end [2024-12-27 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114992', 'tblTempVendorCDR_20' ) start [2024-12-27 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114992', 'tblTempVendorCDR_20' ) end [2024-12-27 15:04:27] Production.INFO: ProcessCDR(1,14114992,1,1,2) [2024-12-27 15:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114992', 'tblTempUsageDetail_20' ) start [2024-12-27 15:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114992', 'tblTempUsageDetail_20' ) end [2024-12-27 15:04:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:04:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:04:30] Production.INFO: ==31887== Releasing lock... [2024-12-27 15:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:04:30] Production.INFO: 63.75 MB #Memory Used# [2024-12-27 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:05:05 [end_date_ymd] => 2024-12-27 15:05:05 [RateCDR] => 1 ) [2024-12-27 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:05:05' and `end` < '2024-12-27 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:05:19] Production.INFO: count ==4801 [2024-12-27 15:05:21] Production.ERROR: pbx CDR StartTime 2024-12-27 12:05:05 - End Time 2024-12-27 15:05:05 [2024-12-27 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114997', 'tblTempUsageDetail_20' ) start [2024-12-27 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14114997', 'tblTempUsageDetail_20' ) end [2024-12-27 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114997', 'tblTempVendorCDR_20' ) start [2024-12-27 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14114997', 'tblTempVendorCDR_20' ) end [2024-12-27 15:05:21] Production.INFO: ProcessCDR(1,14114997,1,1,2) [2024-12-27 15:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14114997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14114997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14114997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14114997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114997', 'tblTempUsageDetail_20' ) start [2024-12-27 15:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14114997', 'tblTempUsageDetail_20' ) end [2024-12-27 15:05:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:05:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:05:25] Production.INFO: ==32037== Releasing lock... [2024-12-27 15:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:05:25] Production.INFO: 64.25 MB #Memory Used# [2024-12-27 15:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:06:04 [end_date_ymd] => 2024-12-27 15:06:04 [RateCDR] => 1 ) [2024-12-27 15: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-27 12:06:04' and `end` < '2024-12-27 15: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-27 15:06:22] Production.INFO: count ==5068 [2024-12-27 15:06:24] Production.ERROR: pbx CDR StartTime 2024-12-27 12:06:04 - End Time 2024-12-27 15:06:04 [2024-12-27 15:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115002', 'tblTempUsageDetail_20' ) start [2024-12-27 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115002', 'tblTempUsageDetail_20' ) end [2024-12-27 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115002', 'tblTempVendorCDR_20' ) start [2024-12-27 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115002', 'tblTempVendorCDR_20' ) end [2024-12-27 15:06:24] Production.INFO: ProcessCDR(1,14115002,1,1,2) [2024-12-27 15:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115002', 'tblTempUsageDetail_20' ) start [2024-12-27 15:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115002', 'tblTempUsageDetail_20' ) end [2024-12-27 15:06:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:06:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:06:29] Production.INFO: ==32109== Releasing lock... [2024-12-27 15:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:06:29] Production.INFO: 66 MB #Memory Used# [2024-12-27 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:07:04 [end_date_ymd] => 2024-12-27 15:07:04 [RateCDR] => 1 ) [2024-12-27 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-27 12:07:04' and `end` < '2024-12-27 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-27 15:07:18] Production.INFO: count ==5078 [2024-12-27 15:07:20] Production.ERROR: pbx CDR StartTime 2024-12-27 12:07:04 - End Time 2024-12-27 15:07:04 [2024-12-27 15:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115007', 'tblTempUsageDetail_20' ) start [2024-12-27 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115007', 'tblTempUsageDetail_20' ) end [2024-12-27 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115007', 'tblTempVendorCDR_20' ) start [2024-12-27 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115007', 'tblTempVendorCDR_20' ) end [2024-12-27 15:07:20] Production.INFO: ProcessCDR(1,14115007,1,1,2) [2024-12-27 15:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115007', 'tblTempUsageDetail_20' ) start [2024-12-27 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115007', 'tblTempUsageDetail_20' ) end [2024-12-27 15:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:07:24] Production.INFO: ==32205== Releasing lock... [2024-12-27 15:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:07:24] Production.INFO: 66 MB #Memory Used# [2024-12-27 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:08:05 [end_date_ymd] => 2024-12-27 15:08:05 [RateCDR] => 1 ) [2024-12-27 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-27 12:08:05' and `end` < '2024-12-27 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-27 15:08:23] Production.INFO: count ==5066 [2024-12-27 15:08:26] Production.ERROR: pbx CDR StartTime 2024-12-27 12:08:05 - End Time 2024-12-27 15:08:05 [2024-12-27 15:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115012', 'tblTempUsageDetail_20' ) start [2024-12-27 15:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115012', 'tblTempUsageDetail_20' ) end [2024-12-27 15:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115012', 'tblTempVendorCDR_20' ) start [2024-12-27 15:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115012', 'tblTempVendorCDR_20' ) end [2024-12-27 15:08:26] Production.INFO: ProcessCDR(1,14115012,1,1,2) [2024-12-27 15:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115012', 'tblTempUsageDetail_20' ) start [2024-12-27 15:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115012', 'tblTempUsageDetail_20' ) end [2024-12-27 15:08:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:08:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:08:30] Production.INFO: ==32395== Releasing lock... [2024-12-27 15:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:08:30] Production.INFO: 65.75 MB #Memory Used# [2024-12-27 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:09:05 [end_date_ymd] => 2024-12-27 15:09:05 [RateCDR] => 1 ) [2024-12-27 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-27 12:09:05' and `end` < '2024-12-27 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-27 15:09:22] Production.INFO: count ==5079 [2024-12-27 15:09:24] Production.ERROR: pbx CDR StartTime 2024-12-27 12:09:05 - End Time 2024-12-27 15:09:05 [2024-12-27 15:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115017', 'tblTempUsageDetail_20' ) start [2024-12-27 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115017', 'tblTempUsageDetail_20' ) end [2024-12-27 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115017', 'tblTempVendorCDR_20' ) start [2024-12-27 15:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115017', 'tblTempVendorCDR_20' ) end [2024-12-27 15:09:24] Production.INFO: ProcessCDR(1,14115017,1,1,2) [2024-12-27 15:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115017', 'tblTempUsageDetail_20' ) start [2024-12-27 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115017', 'tblTempUsageDetail_20' ) end [2024-12-27 15:09:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:09:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:09:27] Production.INFO: ==32476== Releasing lock... [2024-12-27 15:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:09:27] Production.INFO: 66 MB #Memory Used# [2024-12-27 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:10:06 [end_date_ymd] => 2024-12-27 15:10:06 [RateCDR] => 1 ) [2024-12-27 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:10:06' and `end` < '2024-12-27 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:10:22] Production.INFO: count ==5067 [2024-12-27 15:10:24] Production.ERROR: pbx CDR StartTime 2024-12-27 12:10:06 - End Time 2024-12-27 15:10:06 [2024-12-27 15:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115022', 'tblTempUsageDetail_20' ) start [2024-12-27 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115022', 'tblTempUsageDetail_20' ) end [2024-12-27 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115022', 'tblTempVendorCDR_20' ) start [2024-12-27 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115022', 'tblTempVendorCDR_20' ) end [2024-12-27 15:10:24] Production.INFO: ProcessCDR(1,14115022,1,1,2) [2024-12-27 15:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115022', 'tblTempUsageDetail_20' ) start [2024-12-27 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115022', 'tblTempUsageDetail_20' ) end [2024-12-27 15:10:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:10:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:10:28] Production.INFO: ==32553== Releasing lock... [2024-12-27 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:10:28] Production.INFO: 66 MB #Memory Used# [2024-12-27 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:11:05 [end_date_ymd] => 2024-12-27 15:11:05 [RateCDR] => 1 ) [2024-12-27 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:11:05' and `end` < '2024-12-27 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:11:18] Production.INFO: count ==5068 [2024-12-27 15:11:20] Production.ERROR: pbx CDR StartTime 2024-12-27 12:11:05 - End Time 2024-12-27 15:11:05 [2024-12-27 15:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115028', 'tblTempUsageDetail_20' ) start [2024-12-27 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115028', 'tblTempUsageDetail_20' ) end [2024-12-27 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115028', 'tblTempVendorCDR_20' ) start [2024-12-27 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115028', 'tblTempVendorCDR_20' ) end [2024-12-27 15:11:20] Production.INFO: ProcessCDR(1,14115028,1,1,2) [2024-12-27 15:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115028', 'tblTempUsageDetail_20' ) start [2024-12-27 15:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115028', 'tblTempUsageDetail_20' ) end [2024-12-27 15:11:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:11:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:11:25] Production.INFO: ==32624== Releasing lock... [2024-12-27 15:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:11:25] Production.INFO: 66 MB #Memory Used# [2024-12-27 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:12:05 [end_date_ymd] => 2024-12-27 15:12:05 [RateCDR] => 1 ) [2024-12-27 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-27 12:12:05' and `end` < '2024-12-27 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-27 15:12:19] Production.INFO: count ==5063 [2024-12-27 15:12:21] Production.ERROR: pbx CDR StartTime 2024-12-27 12:12:05 - End Time 2024-12-27 15:12:05 [2024-12-27 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115033', 'tblTempUsageDetail_20' ) start [2024-12-27 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115033', 'tblTempUsageDetail_20' ) end [2024-12-27 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115033', 'tblTempVendorCDR_20' ) start [2024-12-27 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115033', 'tblTempVendorCDR_20' ) end [2024-12-27 15:12:21] Production.INFO: ProcessCDR(1,14115033,1,1,2) [2024-12-27 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115033', 'tblTempUsageDetail_20' ) start [2024-12-27 15:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115033', 'tblTempUsageDetail_20' ) end [2024-12-27 15:12:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:12:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:12:26] Production.INFO: ==318== Releasing lock... [2024-12-27 15:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:12:26] Production.INFO: 65.75 MB #Memory Used# [2024-12-27 15:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:13:04 [end_date_ymd] => 2024-12-27 15:13:04 [RateCDR] => 1 ) [2024-12-27 15: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-27 12:13:04' and `end` < '2024-12-27 15: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-27 15:13:19] Production.INFO: count ==5063 [2024-12-27 15:13:21] Production.ERROR: pbx CDR StartTime 2024-12-27 12:13:04 - End Time 2024-12-27 15:13:04 [2024-12-27 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115038', 'tblTempUsageDetail_20' ) start [2024-12-27 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115038', 'tblTempUsageDetail_20' ) end [2024-12-27 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115038', 'tblTempVendorCDR_20' ) start [2024-12-27 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115038', 'tblTempVendorCDR_20' ) end [2024-12-27 15:13:21] Production.INFO: ProcessCDR(1,14115038,1,1,2) [2024-12-27 15:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115038', 'tblTempUsageDetail_20' ) start [2024-12-27 15:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115038', 'tblTempUsageDetail_20' ) end [2024-12-27 15:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:13:24] Production.INFO: ==401== Releasing lock... [2024-12-27 15:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:13:24] Production.INFO: 65.75 MB #Memory Used# [2024-12-27 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:14:05 [end_date_ymd] => 2024-12-27 15:14:05 [RateCDR] => 1 ) [2024-12-27 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-27 12:14:05' and `end` < '2024-12-27 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-27 15:14:18] Production.INFO: count ==5064 [2024-12-27 15:14:20] Production.ERROR: pbx CDR StartTime 2024-12-27 12:14:05 - End Time 2024-12-27 15:14:05 [2024-12-27 15:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115043', 'tblTempUsageDetail_20' ) start [2024-12-27 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115043', 'tblTempUsageDetail_20' ) end [2024-12-27 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115043', 'tblTempVendorCDR_20' ) start [2024-12-27 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115043', 'tblTempVendorCDR_20' ) end [2024-12-27 15:14:20] Production.INFO: ProcessCDR(1,14115043,1,1,2) [2024-12-27 15:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115043', 'tblTempUsageDetail_20' ) start [2024-12-27 15:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115043', 'tblTempUsageDetail_20' ) end [2024-12-27 15:14:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:14:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:14:25] Production.INFO: ==474== Releasing lock... [2024-12-27 15:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:14:25] Production.INFO: 65.75 MB #Memory Used# [2024-12-27 15:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:15:04 [end_date_ymd] => 2024-12-27 15:15:04 [RateCDR] => 1 ) [2024-12-27 15: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-27 12:15:04' and `end` < '2024-12-27 15: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-27 15:15:22] Production.INFO: count ==5058 [2024-12-27 15:15:24] Production.ERROR: pbx CDR StartTime 2024-12-27 12:15:04 - End Time 2024-12-27 15:15:04 [2024-12-27 15:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115048', 'tblTempUsageDetail_20' ) start [2024-12-27 15:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115048', 'tblTempUsageDetail_20' ) end [2024-12-27 15:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115048', 'tblTempVendorCDR_20' ) start [2024-12-27 15:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115048', 'tblTempVendorCDR_20' ) end [2024-12-27 15:15:24] Production.INFO: ProcessCDR(1,14115048,1,1,2) [2024-12-27 15:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115048', 'tblTempUsageDetail_20' ) start [2024-12-27 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115048', 'tblTempUsageDetail_20' ) end [2024-12-27 15:15:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:15:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:15:29] Production.INFO: ==640== Releasing lock... [2024-12-27 15:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:15:29] Production.INFO: 65.75 MB #Memory Used# [2024-12-27 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:16:05 [end_date_ymd] => 2024-12-27 15:16:05 [RateCDR] => 1 ) [2024-12-27 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-27 12:16:05' and `end` < '2024-12-27 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-27 15:16:20] Production.INFO: count ==5064 [2024-12-27 15:16:22] Production.ERROR: pbx CDR StartTime 2024-12-27 12:16:05 - End Time 2024-12-27 15:16:05 [2024-12-27 15:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115053', 'tblTempUsageDetail_20' ) start [2024-12-27 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115053', 'tblTempUsageDetail_20' ) end [2024-12-27 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115053', 'tblTempVendorCDR_20' ) start [2024-12-27 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115053', 'tblTempVendorCDR_20' ) end [2024-12-27 15:16:22] Production.INFO: ProcessCDR(1,14115053,1,1,2) [2024-12-27 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115053', 'tblTempUsageDetail_20' ) start [2024-12-27 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115053', 'tblTempUsageDetail_20' ) end [2024-12-27 15:16:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:16:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:16:27] Production.INFO: ==742== Releasing lock... [2024-12-27 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:16:27] Production.INFO: 65.75 MB #Memory Used# [2024-12-27 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:17:05 [end_date_ymd] => 2024-12-27 15:17:05 [RateCDR] => 1 ) [2024-12-27 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:17:05' and `end` < '2024-12-27 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:17:18] Production.INFO: count ==5066 [2024-12-27 15:17:20] Production.ERROR: pbx CDR StartTime 2024-12-27 12:17:05 - End Time 2024-12-27 15:17:05 [2024-12-27 15:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115058', 'tblTempUsageDetail_20' ) start [2024-12-27 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115058', 'tblTempUsageDetail_20' ) end [2024-12-27 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115058', 'tblTempVendorCDR_20' ) start [2024-12-27 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115058', 'tblTempVendorCDR_20' ) end [2024-12-27 15:17:20] Production.INFO: ProcessCDR(1,14115058,1,1,2) [2024-12-27 15:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115058', 'tblTempUsageDetail_20' ) start [2024-12-27 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115058', 'tblTempUsageDetail_20' ) end [2024-12-27 15:17:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:17:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:17:25] Production.INFO: ==820== Releasing lock... [2024-12-27 15:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:17:25] Production.INFO: 66 MB #Memory Used# [2024-12-27 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:18:05 [end_date_ymd] => 2024-12-27 15:18:05 [RateCDR] => 1 ) [2024-12-27 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-27 12:18:05' and `end` < '2024-12-27 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-27 15:18:19] Production.INFO: count ==5061 [2024-12-27 15:18:21] Production.ERROR: pbx CDR StartTime 2024-12-27 12:18:05 - End Time 2024-12-27 15:18:05 [2024-12-27 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115063', 'tblTempUsageDetail_20' ) start [2024-12-27 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115063', 'tblTempUsageDetail_20' ) end [2024-12-27 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115063', 'tblTempVendorCDR_20' ) start [2024-12-27 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115063', 'tblTempVendorCDR_20' ) end [2024-12-27 15:18:21] Production.INFO: ProcessCDR(1,14115063,1,1,2) [2024-12-27 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115063', 'tblTempUsageDetail_20' ) start [2024-12-27 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115063', 'tblTempUsageDetail_20' ) end [2024-12-27 15:18:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:18:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:18:26] Production.INFO: ==896== Releasing lock... [2024-12-27 15:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:18:26] Production.INFO: 65.75 MB #Memory Used# [2024-12-27 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:19:05 [end_date_ymd] => 2024-12-27 15:19:05 [RateCDR] => 1 ) [2024-12-27 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:19:05' and `end` < '2024-12-27 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:19:19] Production.INFO: count ==5095 [2024-12-27 15:19:21] Production.ERROR: pbx CDR StartTime 2024-12-27 12:19:05 - End Time 2024-12-27 15:19:05 [2024-12-27 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115068', 'tblTempUsageDetail_20' ) start [2024-12-27 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115068', 'tblTempUsageDetail_20' ) end [2024-12-27 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115068', 'tblTempVendorCDR_20' ) start [2024-12-27 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115068', 'tblTempVendorCDR_20' ) end [2024-12-27 15:19:21] Production.INFO: ProcessCDR(1,14115068,1,1,2) [2024-12-27 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115068', 'tblTempUsageDetail_20' ) start [2024-12-27 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115068', 'tblTempUsageDetail_20' ) end [2024-12-27 15:19:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:19:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:19:25] Production.INFO: ==968== Releasing lock... [2024-12-27 15:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:19:25] Production.INFO: 66 MB #Memory Used# [2024-12-27 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:20:05 [end_date_ymd] => 2024-12-27 15:20:05 [RateCDR] => 1 ) [2024-12-27 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:20:05' and `end` < '2024-12-27 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:20:20] Production.INFO: count ==5075 [2024-12-27 15:20:22] Production.ERROR: pbx CDR StartTime 2024-12-27 12:20:05 - End Time 2024-12-27 15:20:05 [2024-12-27 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115074', 'tblTempUsageDetail_20' ) start [2024-12-27 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115074', 'tblTempUsageDetail_20' ) end [2024-12-27 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115074', 'tblTempVendorCDR_20' ) start [2024-12-27 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115074', 'tblTempVendorCDR_20' ) end [2024-12-27 15:20:22] Production.INFO: ProcessCDR(1,14115074,1,1,2) [2024-12-27 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115074', 'tblTempUsageDetail_20' ) start [2024-12-27 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115074', 'tblTempUsageDetail_20' ) end [2024-12-27 15:20:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:20:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:20:26] Production.INFO: ==1041== Releasing lock... [2024-12-27 15:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:20:26] Production.INFO: 66 MB #Memory Used# [2024-12-27 15:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:21:04 [end_date_ymd] => 2024-12-27 15:21:04 [RateCDR] => 1 ) [2024-12-27 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-27 12:21:04' and `end` < '2024-12-27 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-27 15:21:38] Production.INFO: count ==5097 [2024-12-27 15:21:40] Production.ERROR: pbx CDR StartTime 2024-12-27 12:21:04 - End Time 2024-12-27 15:21:04 [2024-12-27 15:21:40] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:21:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115079', 'tblTempUsageDetail_20' ) start [2024-12-27 15:21:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115079', 'tblTempUsageDetail_20' ) end [2024-12-27 15:21:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115079', 'tblTempVendorCDR_20' ) start [2024-12-27 15:21:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115079', 'tblTempVendorCDR_20' ) end [2024-12-27 15:21:40] Production.INFO: ProcessCDR(1,14115079,1,1,2) [2024-12-27 15:21:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:21:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:21:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:21:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:21:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115079', 'tblTempUsageDetail_20' ) start [2024-12-27 15:21:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115079', 'tblTempUsageDetail_20' ) end [2024-12-27 15:21:44] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:21:44] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:21:44] Production.INFO: ==1115== Releasing lock... [2024-12-27 15:21:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:21:44] Production.INFO: 66 MB #Memory Used# [2024-12-27 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:22:05 [end_date_ymd] => 2024-12-27 15:22:05 [RateCDR] => 1 ) [2024-12-27 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:22:05' and `end` < '2024-12-27 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:22:25] Production.INFO: count ==5114 [2024-12-27 15:22:27] Production.ERROR: pbx CDR StartTime 2024-12-27 12:22:05 - End Time 2024-12-27 15:22:05 [2024-12-27 15:22:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115084', 'tblTempUsageDetail_20' ) start [2024-12-27 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115084', 'tblTempUsageDetail_20' ) end [2024-12-27 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115084', 'tblTempVendorCDR_20' ) start [2024-12-27 15:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115084', 'tblTempVendorCDR_20' ) end [2024-12-27 15:22:27] Production.INFO: ProcessCDR(1,14115084,1,1,2) [2024-12-27 15:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:22:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:22:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:22:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115084', 'tblTempUsageDetail_20' ) start [2024-12-27 15:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115084', 'tblTempUsageDetail_20' ) end [2024-12-27 15:22:32] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:22:32] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:22:32] Production.INFO: ==1205== Releasing lock... [2024-12-27 15:22:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:22:32] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 15:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:23:04 [end_date_ymd] => 2024-12-27 15:23:04 [RateCDR] => 1 ) [2024-12-27 15:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:23:04' and `end` < '2024-12-27 15:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:23:19] Production.INFO: count ==5117 [2024-12-27 15:23:21] Production.ERROR: pbx CDR StartTime 2024-12-27 12:23:04 - End Time 2024-12-27 15:23:04 [2024-12-27 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115089', 'tblTempUsageDetail_20' ) start [2024-12-27 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115089', 'tblTempUsageDetail_20' ) end [2024-12-27 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115089', 'tblTempVendorCDR_20' ) start [2024-12-27 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115089', 'tblTempVendorCDR_20' ) end [2024-12-27 15:23:22] Production.INFO: ProcessCDR(1,14115089,1,1,2) [2024-12-27 15:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115089', 'tblTempUsageDetail_20' ) start [2024-12-27 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115089', 'tblTempUsageDetail_20' ) end [2024-12-27 15:23:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:23:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:23:26] Production.INFO: ==1294== Releasing lock... [2024-12-27 15:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:23:26] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:24:05 [end_date_ymd] => 2024-12-27 15:24:05 [RateCDR] => 1 ) [2024-12-27 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-27 12:24:05' and `end` < '2024-12-27 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-27 15:24:19] Production.INFO: count ==5119 [2024-12-27 15:24:21] Production.ERROR: pbx CDR StartTime 2024-12-27 12:24:05 - End Time 2024-12-27 15:24:05 [2024-12-27 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115094', 'tblTempUsageDetail_20' ) start [2024-12-27 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115094', 'tblTempUsageDetail_20' ) end [2024-12-27 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115094', 'tblTempVendorCDR_20' ) start [2024-12-27 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115094', 'tblTempVendorCDR_20' ) end [2024-12-27 15:24:21] Production.INFO: ProcessCDR(1,14115094,1,1,2) [2024-12-27 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115094', 'tblTempUsageDetail_20' ) start [2024-12-27 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115094', 'tblTempUsageDetail_20' ) end [2024-12-27 15:24:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:24:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:24:25] Production.INFO: ==1409== Releasing lock... [2024-12-27 15:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:24:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:25:04 [end_date_ymd] => 2024-12-27 15:25:04 [RateCDR] => 1 ) [2024-12-27 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-27 12:25:04' and `end` < '2024-12-27 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-27 15:25:23] Production.INFO: count ==5119 [2024-12-27 15:25:25] Production.ERROR: pbx CDR StartTime 2024-12-27 12:25:04 - End Time 2024-12-27 15:25:04 [2024-12-27 15:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115099', 'tblTempUsageDetail_20' ) start [2024-12-27 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115099', 'tblTempUsageDetail_20' ) end [2024-12-27 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115099', 'tblTempVendorCDR_20' ) start [2024-12-27 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115099', 'tblTempVendorCDR_20' ) end [2024-12-27 15:25:25] Production.INFO: ProcessCDR(1,14115099,1,1,2) [2024-12-27 15:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115099', 'tblTempUsageDetail_20' ) start [2024-12-27 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115099', 'tblTempUsageDetail_20' ) end [2024-12-27 15:25:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:25:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:25:28] Production.INFO: ==1484== Releasing lock... [2024-12-27 15:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:25:28] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:26:05 [end_date_ymd] => 2024-12-27 15:26:05 [RateCDR] => 1 ) [2024-12-27 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:26:05' and `end` < '2024-12-27 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:26:24] Production.INFO: count ==5126 [2024-12-27 15:26:26] Production.ERROR: pbx CDR StartTime 2024-12-27 12:26:05 - End Time 2024-12-27 15:26:05 [2024-12-27 15:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115104', 'tblTempUsageDetail_20' ) start [2024-12-27 15:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115104', 'tblTempUsageDetail_20' ) end [2024-12-27 15:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115104', 'tblTempVendorCDR_20' ) start [2024-12-27 15:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115104', 'tblTempVendorCDR_20' ) end [2024-12-27 15:26:26] Production.INFO: ProcessCDR(1,14115104,1,1,2) [2024-12-27 15:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115104', 'tblTempUsageDetail_20' ) start [2024-12-27 15:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115104', 'tblTempUsageDetail_20' ) end [2024-12-27 15:26:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:26:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:26:30] Production.INFO: ==1597== Releasing lock... [2024-12-27 15:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:26:30] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:27:05 [end_date_ymd] => 2024-12-27 15:27:05 [RateCDR] => 1 ) [2024-12-27 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:27:05' and `end` < '2024-12-27 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:27:25] Production.INFO: count ==5120 [2024-12-27 15:27:27] Production.ERROR: pbx CDR StartTime 2024-12-27 12:27:05 - End Time 2024-12-27 15:27:05 [2024-12-27 15:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115109', 'tblTempUsageDetail_20' ) start [2024-12-27 15:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115109', 'tblTempUsageDetail_20' ) end [2024-12-27 15:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115109', 'tblTempVendorCDR_20' ) start [2024-12-27 15:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115109', 'tblTempVendorCDR_20' ) end [2024-12-27 15:27:27] Production.INFO: ProcessCDR(1,14115109,1,1,2) [2024-12-27 15:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115109', 'tblTempUsageDetail_20' ) start [2024-12-27 15:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115109', 'tblTempUsageDetail_20' ) end [2024-12-27 15:27:32] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:27:32] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:27:32] Production.INFO: ==1675== Releasing lock... [2024-12-27 15:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:27:32] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:28:05 [end_date_ymd] => 2024-12-27 15:28:05 [RateCDR] => 1 ) [2024-12-27 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:28:05' and `end` < '2024-12-27 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:28:19] Production.INFO: count ==5120 [2024-12-27 15:28:21] Production.ERROR: pbx CDR StartTime 2024-12-27 12:28:05 - End Time 2024-12-27 15:28:05 [2024-12-27 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115114', 'tblTempUsageDetail_20' ) start [2024-12-27 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115114', 'tblTempUsageDetail_20' ) end [2024-12-27 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115114', 'tblTempVendorCDR_20' ) start [2024-12-27 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115114', 'tblTempVendorCDR_20' ) end [2024-12-27 15:28:21] Production.INFO: ProcessCDR(1,14115114,1,1,2) [2024-12-27 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115114', 'tblTempUsageDetail_20' ) start [2024-12-27 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115114', 'tblTempUsageDetail_20' ) end [2024-12-27 15:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:28:24] Production.INFO: ==1746== Releasing lock... [2024-12-27 15:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:28:24] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:29:05 [end_date_ymd] => 2024-12-27 15:29:05 [RateCDR] => 1 ) [2024-12-27 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:29:05' and `end` < '2024-12-27 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:29:26] Production.INFO: count ==5106 [2024-12-27 15:29:28] Production.ERROR: pbx CDR StartTime 2024-12-27 12:29:05 - End Time 2024-12-27 15:29:05 [2024-12-27 15:29:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115119', 'tblTempUsageDetail_20' ) start [2024-12-27 15:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115119', 'tblTempUsageDetail_20' ) end [2024-12-27 15:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115119', 'tblTempVendorCDR_20' ) start [2024-12-27 15:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115119', 'tblTempVendorCDR_20' ) end [2024-12-27 15:29:29] Production.INFO: ProcessCDR(1,14115119,1,1,2) [2024-12-27 15:29:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:29:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:29:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:29:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115119', 'tblTempUsageDetail_20' ) start [2024-12-27 15:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115119', 'tblTempUsageDetail_20' ) end [2024-12-27 15:29:33] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:29:33] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:29:33] Production.INFO: ==1827== Releasing lock... [2024-12-27 15:29:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:29:33] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:30:05 [end_date_ymd] => 2024-12-27 15:30:05 [RateCDR] => 1 ) [2024-12-27 15:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:30:05' and `end` < '2024-12-27 15:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:30:32] Production.INFO: count ==5127 [2024-12-27 15:30:35] Production.ERROR: pbx CDR StartTime 2024-12-27 12:30:05 - End Time 2024-12-27 15:30:05 [2024-12-27 15:30:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115124', 'tblTempUsageDetail_20' ) start [2024-12-27 15:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115124', 'tblTempUsageDetail_20' ) end [2024-12-27 15:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115124', 'tblTempVendorCDR_20' ) start [2024-12-27 15:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115124', 'tblTempVendorCDR_20' ) end [2024-12-27 15:30:35] Production.INFO: ProcessCDR(1,14115124,1,1,2) [2024-12-27 15:30:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:30:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:30:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:30:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115124', 'tblTempUsageDetail_20' ) start [2024-12-27 15:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115124', 'tblTempUsageDetail_20' ) end [2024-12-27 15:30:40] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:30:40] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:30:40] Production.INFO: ==1904== Releasing lock... [2024-12-27 15:30:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:30:40] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 15:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:31:04 [end_date_ymd] => 2024-12-27 15:31:04 [RateCDR] => 1 ) [2024-12-27 15:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:31:04' and `end` < '2024-12-27 15:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:31:23] Production.INFO: count ==5121 [2024-12-27 15:31:25] Production.ERROR: pbx CDR StartTime 2024-12-27 12:31:04 - End Time 2024-12-27 15:31:04 [2024-12-27 15:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115130', 'tblTempUsageDetail_20' ) start [2024-12-27 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115130', 'tblTempUsageDetail_20' ) end [2024-12-27 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115130', 'tblTempVendorCDR_20' ) start [2024-12-27 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115130', 'tblTempVendorCDR_20' ) end [2024-12-27 15:31:26] Production.INFO: ProcessCDR(1,14115130,1,1,2) [2024-12-27 15:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115130', 'tblTempUsageDetail_20' ) start [2024-12-27 15:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115130', 'tblTempUsageDetail_20' ) end [2024-12-27 15:31:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:31:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:31:29] Production.INFO: ==1983== Releasing lock... [2024-12-27 15:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:31:29] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 15:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:32:04 [end_date_ymd] => 2024-12-27 15:32:04 [RateCDR] => 1 ) [2024-12-27 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-27 12:32:04' and `end` < '2024-12-27 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-27 15:32:19] Production.INFO: count ==5121 [2024-12-27 15:32:21] Production.ERROR: pbx CDR StartTime 2024-12-27 12:32:04 - End Time 2024-12-27 15:32:04 [2024-12-27 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115132', 'tblTempUsageDetail_20' ) start [2024-12-27 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115132', 'tblTempUsageDetail_20' ) end [2024-12-27 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115132', 'tblTempVendorCDR_20' ) start [2024-12-27 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115132', 'tblTempVendorCDR_20' ) end [2024-12-27 15:32:21] Production.INFO: ProcessCDR(1,14115132,1,1,2) [2024-12-27 15:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115132', 'tblTempUsageDetail_20' ) start [2024-12-27 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115132', 'tblTempUsageDetail_20' ) end [2024-12-27 15:32:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:32:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:32:26] Production.INFO: ==2054== Releasing lock... [2024-12-27 15:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:32:26] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 15:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:33:04 [end_date_ymd] => 2024-12-27 15:33:04 [RateCDR] => 1 ) [2024-12-27 15:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:33:04' and `end` < '2024-12-27 15:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:33:23] Production.INFO: count ==5163 [2024-12-27 15:33:25] Production.ERROR: pbx CDR StartTime 2024-12-27 12:33:04 - End Time 2024-12-27 15:33:04 [2024-12-27 15:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115140', 'tblTempUsageDetail_20' ) start [2024-12-27 15:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115140', 'tblTempUsageDetail_20' ) end [2024-12-27 15:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115140', 'tblTempVendorCDR_20' ) start [2024-12-27 15:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115140', 'tblTempVendorCDR_20' ) end [2024-12-27 15:33:25] Production.INFO: ProcessCDR(1,14115140,1,1,2) [2024-12-27 15:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115140', 'tblTempUsageDetail_20' ) start [2024-12-27 15:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115140', 'tblTempUsageDetail_20' ) end [2024-12-27 15:33:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:33:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:33:29] Production.INFO: ==2131== Releasing lock... [2024-12-27 15:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:33:29] Production.INFO: 66.5 MB #Memory Used# [2024-12-27 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:34:05 [end_date_ymd] => 2024-12-27 15:34:05 [RateCDR] => 1 ) [2024-12-27 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:34:05' and `end` < '2024-12-27 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:34:24] Production.INFO: count ==5157 [2024-12-27 15:34:26] Production.ERROR: pbx CDR StartTime 2024-12-27 12:34:05 - End Time 2024-12-27 15:34:05 [2024-12-27 15:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115145', 'tblTempUsageDetail_20' ) start [2024-12-27 15:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115145', 'tblTempUsageDetail_20' ) end [2024-12-27 15:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115145', 'tblTempVendorCDR_20' ) start [2024-12-27 15:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115145', 'tblTempVendorCDR_20' ) end [2024-12-27 15:34:26] Production.INFO: ProcessCDR(1,14115145,1,1,2) [2024-12-27 15:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115145', 'tblTempUsageDetail_20' ) start [2024-12-27 15:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115145', 'tblTempUsageDetail_20' ) end [2024-12-27 15:34:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:34:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:34:31] Production.INFO: ==2207== Releasing lock... [2024-12-27 15:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:34:31] Production.INFO: 66.5 MB #Memory Used# [2024-12-27 15:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:35:04 [end_date_ymd] => 2024-12-27 15:35:04 [RateCDR] => 1 ) [2024-12-27 15: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-27 12:35:04' and `end` < '2024-12-27 15: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-27 15:35:17] Production.INFO: count ==5136 [2024-12-27 15:35:20] Production.ERROR: pbx CDR StartTime 2024-12-27 12:35:04 - End Time 2024-12-27 15:35:04 [2024-12-27 15:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115149', 'tblTempUsageDetail_20' ) start [2024-12-27 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115149', 'tblTempUsageDetail_20' ) end [2024-12-27 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115149', 'tblTempVendorCDR_20' ) start [2024-12-27 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115149', 'tblTempVendorCDR_20' ) end [2024-12-27 15:35:20] Production.INFO: ProcessCDR(1,14115149,1,1,2) [2024-12-27 15:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115149', 'tblTempUsageDetail_20' ) start [2024-12-27 15:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115149', 'tblTempUsageDetail_20' ) end [2024-12-27 15:35:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:35:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:35:24] Production.INFO: ==2278== Releasing lock... [2024-12-27 15:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:35:24] Production.INFO: 66.5 MB #Memory Used# [2024-12-27 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:36:05 [end_date_ymd] => 2024-12-27 15:36:05 [RateCDR] => 1 ) [2024-12-27 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:36:05' and `end` < '2024-12-27 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:36:18] Production.INFO: count ==5122 [2024-12-27 15:36:20] Production.ERROR: pbx CDR StartTime 2024-12-27 12:36:05 - End Time 2024-12-27 15:36:05 [2024-12-27 15:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115155', 'tblTempUsageDetail_20' ) start [2024-12-27 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115155', 'tblTempUsageDetail_20' ) end [2024-12-27 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115155', 'tblTempVendorCDR_20' ) start [2024-12-27 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115155', 'tblTempVendorCDR_20' ) end [2024-12-27 15:36:21] Production.INFO: ProcessCDR(1,14115155,1,1,2) [2024-12-27 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115155', 'tblTempUsageDetail_20' ) start [2024-12-27 15:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115155', 'tblTempUsageDetail_20' ) end [2024-12-27 15:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:36:24] Production.INFO: ==2356== Releasing lock... [2024-12-27 15:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:36:24] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:37:05 [end_date_ymd] => 2024-12-27 15:37:05 [RateCDR] => 1 ) [2024-12-27 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:37:05' and `end` < '2024-12-27 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:37:20] Production.INFO: count ==5113 [2024-12-27 15:37:22] Production.ERROR: pbx CDR StartTime 2024-12-27 12:37:05 - End Time 2024-12-27 15:37:05 [2024-12-27 15:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115160', 'tblTempUsageDetail_20' ) start [2024-12-27 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115160', 'tblTempUsageDetail_20' ) end [2024-12-27 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115160', 'tblTempVendorCDR_20' ) start [2024-12-27 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115160', 'tblTempVendorCDR_20' ) end [2024-12-27 15:37:22] Production.INFO: ProcessCDR(1,14115160,1,1,2) [2024-12-27 15:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115160', 'tblTempUsageDetail_20' ) start [2024-12-27 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115160', 'tblTempUsageDetail_20' ) end [2024-12-27 15:37:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:37:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:37:27] Production.INFO: ==2436== Releasing lock... [2024-12-27 15:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:37:27] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:38:05 [end_date_ymd] => 2024-12-27 15:38:05 [RateCDR] => 1 ) [2024-12-27 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:38:05' and `end` < '2024-12-27 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:38:27] Production.INFO: count ==5096 [2024-12-27 15:38:29] Production.ERROR: pbx CDR StartTime 2024-12-27 12:38:05 - End Time 2024-12-27 15:38:05 [2024-12-27 15:38:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115165', 'tblTempUsageDetail_20' ) start [2024-12-27 15:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115165', 'tblTempUsageDetail_20' ) end [2024-12-27 15:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115165', 'tblTempVendorCDR_20' ) start [2024-12-27 15:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115165', 'tblTempVendorCDR_20' ) end [2024-12-27 15:38:29] Production.INFO: ProcessCDR(1,14115165,1,1,2) [2024-12-27 15:38:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:38:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:38:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:38:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115165', 'tblTempUsageDetail_20' ) start [2024-12-27 15:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115165', 'tblTempUsageDetail_20' ) end [2024-12-27 15:38:34] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:38:34] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:38:34] Production.INFO: ==2509== Releasing lock... [2024-12-27 15:38:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:38:34] Production.INFO: 66 MB #Memory Used# [2024-12-27 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:39:05 [end_date_ymd] => 2024-12-27 15:39:05 [RateCDR] => 1 ) [2024-12-27 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:39:05' and `end` < '2024-12-27 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:39:27] Production.INFO: count ==5117 [2024-12-27 15:39:29] Production.ERROR: pbx CDR StartTime 2024-12-27 12:39:05 - End Time 2024-12-27 15:39:05 [2024-12-27 15:39:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115170', 'tblTempUsageDetail_20' ) start [2024-12-27 15:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115170', 'tblTempUsageDetail_20' ) end [2024-12-27 15:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115170', 'tblTempVendorCDR_20' ) start [2024-12-27 15:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115170', 'tblTempVendorCDR_20' ) end [2024-12-27 15:39:29] Production.INFO: ProcessCDR(1,14115170,1,1,2) [2024-12-27 15:39:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:39:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:39:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:39:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115170', 'tblTempUsageDetail_20' ) start [2024-12-27 15:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115170', 'tblTempUsageDetail_20' ) end [2024-12-27 15:39:34] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:39:34] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:39:34] Production.INFO: ==2621== Releasing lock... [2024-12-27 15:39:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:39:34] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:40:05 [end_date_ymd] => 2024-12-27 15:40:05 [RateCDR] => 1 ) [2024-12-27 15:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:40:05' and `end` < '2024-12-27 15:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:40:29] Production.INFO: count ==5177 [2024-12-27 15:40:31] Production.ERROR: pbx CDR StartTime 2024-12-27 12:40:05 - End Time 2024-12-27 15:40:05 [2024-12-27 15:40:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115175', 'tblTempUsageDetail_20' ) start [2024-12-27 15:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115175', 'tblTempUsageDetail_20' ) end [2024-12-27 15:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115175', 'tblTempVendorCDR_20' ) start [2024-12-27 15:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115175', 'tblTempVendorCDR_20' ) end [2024-12-27 15:40:31] Production.INFO: ProcessCDR(1,14115175,1,1,2) [2024-12-27 15:40:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:40:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:40:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:40:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115175', 'tblTempUsageDetail_20' ) start [2024-12-27 15:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115175', 'tblTempUsageDetail_20' ) end [2024-12-27 15:40:36] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:40:36] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:40:36] Production.INFO: ==2702== Releasing lock... [2024-12-27 15:40:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:40:36] Production.INFO: 66.75 MB #Memory Used# [2024-12-27 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:41:05 [end_date_ymd] => 2024-12-27 15:41:05 [RateCDR] => 1 ) [2024-12-27 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:41:05' and `end` < '2024-12-27 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:41:18] Production.INFO: count ==5177 [2024-12-27 15:41:20] Production.ERROR: pbx CDR StartTime 2024-12-27 12:41:05 - End Time 2024-12-27 15:41:05 [2024-12-27 15:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115181', 'tblTempUsageDetail_20' ) start [2024-12-27 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115181', 'tblTempUsageDetail_20' ) end [2024-12-27 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115181', 'tblTempVendorCDR_20' ) start [2024-12-27 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115181', 'tblTempVendorCDR_20' ) end [2024-12-27 15:41:20] Production.INFO: ProcessCDR(1,14115181,1,1,2) [2024-12-27 15:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115181', 'tblTempUsageDetail_20' ) start [2024-12-27 15:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115181', 'tblTempUsageDetail_20' ) end [2024-12-27 15:41:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:41:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:41:24] Production.INFO: ==2780== Releasing lock... [2024-12-27 15:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:41:24] Production.INFO: 66.75 MB #Memory Used# [2024-12-27 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:42:05 [end_date_ymd] => 2024-12-27 15:42:05 [RateCDR] => 1 ) [2024-12-27 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-27 12:42:05' and `end` < '2024-12-27 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-27 15:42:26] Production.INFO: count ==5190 [2024-12-27 15:42:28] Production.ERROR: pbx CDR StartTime 2024-12-27 12:42:05 - End Time 2024-12-27 15:42:05 [2024-12-27 15:42:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115186', 'tblTempUsageDetail_20' ) start [2024-12-27 15:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115186', 'tblTempUsageDetail_20' ) end [2024-12-27 15:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115186', 'tblTempVendorCDR_20' ) start [2024-12-27 15:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115186', 'tblTempVendorCDR_20' ) end [2024-12-27 15:42:28] Production.INFO: ProcessCDR(1,14115186,1,1,2) [2024-12-27 15:42:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:42:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:42:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:42:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115186', 'tblTempUsageDetail_20' ) start [2024-12-27 15:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115186', 'tblTempUsageDetail_20' ) end [2024-12-27 15:42:33] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:42:33] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:42:33] Production.INFO: ==2856== Releasing lock... [2024-12-27 15:42:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:42:33] Production.INFO: 66.75 MB #Memory Used# [2024-12-27 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:43:05 [end_date_ymd] => 2024-12-27 15:43:05 [RateCDR] => 1 ) [2024-12-27 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:43:05' and `end` < '2024-12-27 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:43:23] Production.INFO: count ==5195 [2024-12-27 15:43:25] Production.ERROR: pbx CDR StartTime 2024-12-27 12:43:05 - End Time 2024-12-27 15:43:05 [2024-12-27 15:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115191', 'tblTempUsageDetail_20' ) start [2024-12-27 15:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115191', 'tblTempUsageDetail_20' ) end [2024-12-27 15:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115191', 'tblTempVendorCDR_20' ) start [2024-12-27 15:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115191', 'tblTempVendorCDR_20' ) end [2024-12-27 15:43:25] Production.INFO: ProcessCDR(1,14115191,1,1,2) [2024-12-27 15:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115191', 'tblTempUsageDetail_20' ) start [2024-12-27 15:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115191', 'tblTempUsageDetail_20' ) end [2024-12-27 15:43:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:43:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:43:30] Production.INFO: ==2929== Releasing lock... [2024-12-27 15:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:43:30] Production.INFO: 66.75 MB #Memory Used# [2024-12-27 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:44:05 [end_date_ymd] => 2024-12-27 15:44:05 [RateCDR] => 1 ) [2024-12-27 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-27 12:44:05' and `end` < '2024-12-27 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-27 15:44:28] Production.INFO: count ==5230 [2024-12-27 15:44:31] Production.ERROR: pbx CDR StartTime 2024-12-27 12:44:05 - End Time 2024-12-27 15:44:05 [2024-12-27 15:44:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115196', 'tblTempUsageDetail_20' ) start [2024-12-27 15:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115196', 'tblTempUsageDetail_20' ) end [2024-12-27 15:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115196', 'tblTempVendorCDR_20' ) start [2024-12-27 15:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115196', 'tblTempVendorCDR_20' ) end [2024-12-27 15:44:31] Production.INFO: ProcessCDR(1,14115196,1,1,2) [2024-12-27 15:44:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:44:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:44:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:44:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115196', 'tblTempUsageDetail_20' ) start [2024-12-27 15:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115196', 'tblTempUsageDetail_20' ) end [2024-12-27 15:44:35] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:44:35] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:44:36] Production.INFO: ==3008== Releasing lock... [2024-12-27 15:44:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:44:36] Production.INFO: 67 MB #Memory Used# [2024-12-27 15:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:45:04 [end_date_ymd] => 2024-12-27 15:45:04 [RateCDR] => 1 ) [2024-12-27 15: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-27 12:45:04' and `end` < '2024-12-27 15: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-27 15:45:23] Production.INFO: count ==5221 [2024-12-27 15:45:25] Production.ERROR: pbx CDR StartTime 2024-12-27 12:45:04 - End Time 2024-12-27 15:45:04 [2024-12-27 15:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115201', 'tblTempUsageDetail_20' ) start [2024-12-27 15:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115201', 'tblTempUsageDetail_20' ) end [2024-12-27 15:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115201', 'tblTempVendorCDR_20' ) start [2024-12-27 15:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115201', 'tblTempVendorCDR_20' ) end [2024-12-27 15:45:26] Production.INFO: ProcessCDR(1,14115201,1,1,2) [2024-12-27 15:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115201', 'tblTempUsageDetail_20' ) start [2024-12-27 15:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115201', 'tblTempUsageDetail_20' ) end [2024-12-27 15:45:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:45:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:45:29] Production.INFO: ==3079== Releasing lock... [2024-12-27 15:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:45:29] Production.INFO: 67 MB #Memory Used# [2024-12-27 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:46:05 [end_date_ymd] => 2024-12-27 15:46:05 [RateCDR] => 1 ) [2024-12-27 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:46:05' and `end` < '2024-12-27 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:46:24] Production.INFO: count ==5242 [2024-12-27 15:46:26] Production.ERROR: pbx CDR StartTime 2024-12-27 12:46:05 - End Time 2024-12-27 15:46:05 [2024-12-27 15:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115206', 'tblTempUsageDetail_20' ) start [2024-12-27 15:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115206', 'tblTempUsageDetail_20' ) end [2024-12-27 15:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115206', 'tblTempVendorCDR_20' ) start [2024-12-27 15:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115206', 'tblTempVendorCDR_20' ) end [2024-12-27 15:46:27] Production.INFO: ProcessCDR(1,14115206,1,1,2) [2024-12-27 15:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115206', 'tblTempUsageDetail_20' ) start [2024-12-27 15:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115206', 'tblTempUsageDetail_20' ) end [2024-12-27 15:46:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:46:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:46:31] Production.INFO: ==3152== Releasing lock... [2024-12-27 15:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:46:31] Production.INFO: 67.25 MB #Memory Used# [2024-12-27 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:47:05 [end_date_ymd] => 2024-12-27 15:47:05 [RateCDR] => 1 ) [2024-12-27 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:47:05' and `end` < '2024-12-27 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:47:19] Production.INFO: count ==5246 [2024-12-27 15:47:22] Production.ERROR: pbx CDR StartTime 2024-12-27 12:47:05 - End Time 2024-12-27 15:47:05 [2024-12-27 15:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115211', 'tblTempUsageDetail_20' ) start [2024-12-27 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115211', 'tblTempUsageDetail_20' ) end [2024-12-27 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115211', 'tblTempVendorCDR_20' ) start [2024-12-27 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115211', 'tblTempVendorCDR_20' ) end [2024-12-27 15:47:22] Production.INFO: ProcessCDR(1,14115211,1,1,2) [2024-12-27 15:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115211', 'tblTempUsageDetail_20' ) start [2024-12-27 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115211', 'tblTempUsageDetail_20' ) end [2024-12-27 15:47:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:47:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:47:26] Production.INFO: ==3228== Releasing lock... [2024-12-27 15:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:47:26] Production.INFO: 67.25 MB #Memory Used# [2024-12-27 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:48:05 [end_date_ymd] => 2024-12-27 15:48:05 [RateCDR] => 1 ) [2024-12-27 15: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-27 12:48:05' and `end` < '2024-12-27 15: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-27 15:48:18] Production.INFO: count ==5218 [2024-12-27 15:48:20] Production.ERROR: pbx CDR StartTime 2024-12-27 12:48:05 - End Time 2024-12-27 15:48:05 [2024-12-27 15:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115216', 'tblTempUsageDetail_20' ) start [2024-12-27 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115216', 'tblTempUsageDetail_20' ) end [2024-12-27 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115216', 'tblTempVendorCDR_20' ) start [2024-12-27 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115216', 'tblTempVendorCDR_20' ) end [2024-12-27 15:48:21] Production.INFO: ProcessCDR(1,14115216,1,1,2) [2024-12-27 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115216', 'tblTempUsageDetail_20' ) start [2024-12-27 15:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115216', 'tblTempUsageDetail_20' ) end [2024-12-27 15:48:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:48:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:48:25] Production.INFO: ==3303== Releasing lock... [2024-12-27 15:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:48:25] Production.INFO: 67 MB #Memory Used# [2024-12-27 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:49:05 [end_date_ymd] => 2024-12-27 15:49:05 [RateCDR] => 1 ) [2024-12-27 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-27 12:49:05' and `end` < '2024-12-27 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-27 15:49:26] Production.INFO: count ==5220 [2024-12-27 15:49:28] Production.ERROR: pbx CDR StartTime 2024-12-27 12:49:05 - End Time 2024-12-27 15:49:05 [2024-12-27 15:49:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115221', 'tblTempUsageDetail_20' ) start [2024-12-27 15:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115221', 'tblTempUsageDetail_20' ) end [2024-12-27 15:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115221', 'tblTempVendorCDR_20' ) start [2024-12-27 15:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115221', 'tblTempVendorCDR_20' ) end [2024-12-27 15:49:28] Production.INFO: ProcessCDR(1,14115221,1,1,2) [2024-12-27 15:49:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:49:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:49:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115221', 'tblTempUsageDetail_20' ) start [2024-12-27 15:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115221', 'tblTempUsageDetail_20' ) end [2024-12-27 15:49:33] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:49:33] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:49:33] Production.INFO: ==3378== Releasing lock... [2024-12-27 15:49:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:49:33] Production.INFO: 67 MB #Memory Used# [2024-12-27 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:50:05 [end_date_ymd] => 2024-12-27 15:50:05 [RateCDR] => 1 ) [2024-12-27 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-27 12:50:05' and `end` < '2024-12-27 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-27 15:50:33] Production.INFO: count ==5207 [2024-12-27 15:50:36] Production.ERROR: pbx CDR StartTime 2024-12-27 12:50:05 - End Time 2024-12-27 15:50:05 [2024-12-27 15:50:36] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115226', 'tblTempUsageDetail_20' ) start [2024-12-27 15:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115226', 'tblTempUsageDetail_20' ) end [2024-12-27 15:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115226', 'tblTempVendorCDR_20' ) start [2024-12-27 15:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115226', 'tblTempVendorCDR_20' ) end [2024-12-27 15:50:36] Production.INFO: ProcessCDR(1,14115226,1,1,2) [2024-12-27 15:50:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:50:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:50:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:50:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115226', 'tblTempUsageDetail_20' ) start [2024-12-27 15:50:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115226', 'tblTempUsageDetail_20' ) end [2024-12-27 15:50:41] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:50:41] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:50:41] Production.INFO: ==3457== Releasing lock... [2024-12-27 15:50:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:50:41] Production.INFO: 67 MB #Memory Used# [2024-12-27 15:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:51:04 [end_date_ymd] => 2024-12-27 15:51:04 [RateCDR] => 1 ) [2024-12-27 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-27 12:51:04' and `end` < '2024-12-27 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-27 15:51:23] Production.INFO: count ==5214 [2024-12-27 15:51:25] Production.ERROR: pbx CDR StartTime 2024-12-27 12:51:04 - End Time 2024-12-27 15:51:04 [2024-12-27 15:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115232', 'tblTempUsageDetail_20' ) start [2024-12-27 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115232', 'tblTempUsageDetail_20' ) end [2024-12-27 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115232', 'tblTempVendorCDR_20' ) start [2024-12-27 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115232', 'tblTempVendorCDR_20' ) end [2024-12-27 15:51:25] Production.INFO: ProcessCDR(1,14115232,1,1,2) [2024-12-27 15:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115232', 'tblTempUsageDetail_20' ) start [2024-12-27 15:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115232', 'tblTempUsageDetail_20' ) end [2024-12-27 15:51:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:51:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:51:30] Production.INFO: ==3534== Releasing lock... [2024-12-27 15:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:51:30] Production.INFO: 67 MB #Memory Used# [2024-12-27 15:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:52:04 [end_date_ymd] => 2024-12-27 15:52:04 [RateCDR] => 1 ) [2024-12-27 15: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-27 12:52:04' and `end` < '2024-12-27 15: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-27 15:52:23] Production.INFO: count ==5231 [2024-12-27 15:52:26] Production.ERROR: pbx CDR StartTime 2024-12-27 12:52:04 - End Time 2024-12-27 15:52:04 [2024-12-27 15:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115237', 'tblTempUsageDetail_20' ) start [2024-12-27 15:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115237', 'tblTempUsageDetail_20' ) end [2024-12-27 15:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115237', 'tblTempVendorCDR_20' ) start [2024-12-27 15:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115237', 'tblTempVendorCDR_20' ) end [2024-12-27 15:52:26] Production.INFO: ProcessCDR(1,14115237,1,1,2) [2024-12-27 15:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115237', 'tblTempUsageDetail_20' ) start [2024-12-27 15:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115237', 'tblTempUsageDetail_20' ) end [2024-12-27 15:52:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:52:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:52:30] Production.INFO: ==3610== Releasing lock... [2024-12-27 15:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:52:30] Production.INFO: 67 MB #Memory Used# [2024-12-27 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:53:05 [end_date_ymd] => 2024-12-27 15:53:05 [RateCDR] => 1 ) [2024-12-27 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:53:05' and `end` < '2024-12-27 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:53:19] Production.INFO: count ==5224 [2024-12-27 15:53:21] Production.ERROR: pbx CDR StartTime 2024-12-27 12:53:05 - End Time 2024-12-27 15:53:05 [2024-12-27 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115242', 'tblTempUsageDetail_20' ) start [2024-12-27 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115242', 'tblTempUsageDetail_20' ) end [2024-12-27 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115242', 'tblTempVendorCDR_20' ) start [2024-12-27 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115242', 'tblTempVendorCDR_20' ) end [2024-12-27 15:53:21] Production.INFO: ProcessCDR(1,14115242,1,1,2) [2024-12-27 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115242', 'tblTempUsageDetail_20' ) start [2024-12-27 15:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115242', 'tblTempUsageDetail_20' ) end [2024-12-27 15:53:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:53:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:53:26] Production.INFO: ==3683== Releasing lock... [2024-12-27 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:53:26] Production.INFO: 67 MB #Memory Used# [2024-12-27 15:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:54:04 [end_date_ymd] => 2024-12-27 15:54:04 [RateCDR] => 1 ) [2024-12-27 15: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-27 12:54:04' and `end` < '2024-12-27 15: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-27 15:54:17] Production.INFO: count ==5222 [2024-12-27 15:54:19] Production.ERROR: pbx CDR StartTime 2024-12-27 12:54:04 - End Time 2024-12-27 15:54:04 [2024-12-27 15:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115247', 'tblTempUsageDetail_20' ) start [2024-12-27 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115247', 'tblTempUsageDetail_20' ) end [2024-12-27 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115247', 'tblTempVendorCDR_20' ) start [2024-12-27 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115247', 'tblTempVendorCDR_20' ) end [2024-12-27 15:54:20] Production.INFO: ProcessCDR(1,14115247,1,1,2) [2024-12-27 15:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115247', 'tblTempUsageDetail_20' ) start [2024-12-27 15:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115247', 'tblTempUsageDetail_20' ) end [2024-12-27 15:54:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:54:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:54:24] Production.INFO: ==3759== Releasing lock... [2024-12-27 15:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:54:24] Production.INFO: 67 MB #Memory Used# [2024-12-27 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:55:05 [end_date_ymd] => 2024-12-27 15:55:05 [RateCDR] => 1 ) [2024-12-27 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:55:05' and `end` < '2024-12-27 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:55:18] Production.INFO: count ==5199 [2024-12-27 15:55:20] Production.ERROR: pbx CDR StartTime 2024-12-27 12:55:05 - End Time 2024-12-27 15:55:05 [2024-12-27 15:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115252', 'tblTempUsageDetail_20' ) start [2024-12-27 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115252', 'tblTempUsageDetail_20' ) end [2024-12-27 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115252', 'tblTempVendorCDR_20' ) start [2024-12-27 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115252', 'tblTempVendorCDR_20' ) end [2024-12-27 15:55:20] Production.INFO: ProcessCDR(1,14115252,1,1,2) [2024-12-27 15:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115252', 'tblTempUsageDetail_20' ) start [2024-12-27 15:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115252', 'tblTempUsageDetail_20' ) end [2024-12-27 15:55:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:55:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:55:25] Production.INFO: ==3880== Releasing lock... [2024-12-27 15:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:55:25] Production.INFO: 66.75 MB #Memory Used# [2024-12-27 15:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:56:04 [end_date_ymd] => 2024-12-27 15:56:04 [RateCDR] => 1 ) [2024-12-27 15: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-27 12:56:04' and `end` < '2024-12-27 15: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-27 15:56:18] Production.INFO: count ==5227 [2024-12-27 15:56:20] Production.ERROR: pbx CDR StartTime 2024-12-27 12:56:04 - End Time 2024-12-27 15:56:04 [2024-12-27 15:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115257', 'tblTempUsageDetail_20' ) start [2024-12-27 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115257', 'tblTempUsageDetail_20' ) end [2024-12-27 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115257', 'tblTempVendorCDR_20' ) start [2024-12-27 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115257', 'tblTempVendorCDR_20' ) end [2024-12-27 15:56:20] Production.INFO: ProcessCDR(1,14115257,1,1,2) [2024-12-27 15:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115257', 'tblTempUsageDetail_20' ) start [2024-12-27 15:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115257', 'tblTempUsageDetail_20' ) end [2024-12-27 15:56:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:56:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:56:25] Production.INFO: ==3956== Releasing lock... [2024-12-27 15:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:56:25] Production.INFO: 67 MB #Memory Used# [2024-12-27 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:57:05 [end_date_ymd] => 2024-12-27 15:57:05 [RateCDR] => 1 ) [2024-12-27 15: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-27 12:57:05' and `end` < '2024-12-27 15: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-27 15:57:18] Production.INFO: count ==5237 [2024-12-27 15:57:20] Production.ERROR: pbx CDR StartTime 2024-12-27 12:57:05 - End Time 2024-12-27 15:57:05 [2024-12-27 15:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115262', 'tblTempUsageDetail_20' ) start [2024-12-27 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115262', 'tblTempUsageDetail_20' ) end [2024-12-27 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115262', 'tblTempVendorCDR_20' ) start [2024-12-27 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115262', 'tblTempVendorCDR_20' ) end [2024-12-27 15:57:20] Production.INFO: ProcessCDR(1,14115262,1,1,2) [2024-12-27 15:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115262', 'tblTempUsageDetail_20' ) start [2024-12-27 15:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115262', 'tblTempUsageDetail_20' ) end [2024-12-27 15:57:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:57:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:57:25] Production.INFO: ==4035== Releasing lock... [2024-12-27 15:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:57:25] Production.INFO: 67.25 MB #Memory Used# [2024-12-27 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:58:05 [end_date_ymd] => 2024-12-27 15:58:05 [RateCDR] => 1 ) [2024-12-27 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 12:58:05' and `end` < '2024-12-27 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 15:58:19] Production.INFO: count ==5243 [2024-12-27 15:58:22] Production.ERROR: pbx CDR StartTime 2024-12-27 12:58:05 - End Time 2024-12-27 15:58:05 [2024-12-27 15:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115267', 'tblTempUsageDetail_20' ) start [2024-12-27 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115267', 'tblTempUsageDetail_20' ) end [2024-12-27 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115267', 'tblTempVendorCDR_20' ) start [2024-12-27 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115267', 'tblTempVendorCDR_20' ) end [2024-12-27 15:58:22] Production.INFO: ProcessCDR(1,14115267,1,1,2) [2024-12-27 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115267', 'tblTempUsageDetail_20' ) start [2024-12-27 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115267', 'tblTempUsageDetail_20' ) end [2024-12-27 15:58:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:58:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:58:26] Production.INFO: ==4116== Releasing lock... [2024-12-27 15:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:58:26] Production.INFO: 67.25 MB #Memory Used# [2024-12-27 15:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 12:59:04 [end_date_ymd] => 2024-12-27 15:59:04 [RateCDR] => 1 ) [2024-12-27 15: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-27 12:59:04' and `end` < '2024-12-27 15: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-27 15:59:20] Production.INFO: count ==5234 [2024-12-27 15:59:22] Production.ERROR: pbx CDR StartTime 2024-12-27 12:59:04 - End Time 2024-12-27 15:59:04 [2024-12-27 15:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115272', 'tblTempUsageDetail_20' ) start [2024-12-27 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115272', 'tblTempUsageDetail_20' ) end [2024-12-27 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115272', 'tblTempVendorCDR_20' ) start [2024-12-27 15:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115272', 'tblTempVendorCDR_20' ) end [2024-12-27 15:59:23] Production.INFO: ProcessCDR(1,14115272,1,1,2) [2024-12-27 15:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 15:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115272', 'tblTempUsageDetail_20' ) start [2024-12-27 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115272', 'tblTempUsageDetail_20' ) end [2024-12-27 15:59:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 15:59:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 15:59:27] Production.INFO: ==4195== Releasing lock... [2024-12-27 15:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 15:59:27] Production.INFO: 67.25 MB #Memory Used# [2024-12-27 16:00:07] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:00:07 [end_date_ymd] => 2024-12-27 16:00:07 [RateCDR] => 1 ) [2024-12-27 16:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:00:07' and `end` < '2024-12-27 16:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:00:27] Production.INFO: count ==5233 [2024-12-27 16:00:29] Production.ERROR: pbx CDR StartTime 2024-12-27 13:00:07 - End Time 2024-12-27 16:00:07 [2024-12-27 16:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115278', 'tblTempUsageDetail_20' ) start [2024-12-27 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115278', 'tblTempUsageDetail_20' ) end [2024-12-27 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115278', 'tblTempVendorCDR_20' ) start [2024-12-27 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115278', 'tblTempVendorCDR_20' ) end [2024-12-27 16:00:29] Production.INFO: ProcessCDR(1,14115278,1,1,2) [2024-12-27 16:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115278', 'tblTempUsageDetail_20' ) start [2024-12-27 16:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115278', 'tblTempUsageDetail_20' ) end [2024-12-27 16:00:34] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:00:34] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:00:34] Production.INFO: ==4275== Releasing lock... [2024-12-27 16:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:00:34] Production.INFO: 67 MB #Memory Used# [2024-12-27 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:01:05 [end_date_ymd] => 2024-12-27 16:01:05 [RateCDR] => 1 ) [2024-12-27 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-27 13:01:05' and `end` < '2024-12-27 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-27 16:01:18] Production.INFO: count ==5225 [2024-12-27 16:01:20] Production.ERROR: pbx CDR StartTime 2024-12-27 13:01:05 - End Time 2024-12-27 16:01:05 [2024-12-27 16:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115283', 'tblTempUsageDetail_20' ) start [2024-12-27 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115283', 'tblTempUsageDetail_20' ) end [2024-12-27 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115283', 'tblTempVendorCDR_20' ) start [2024-12-27 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115283', 'tblTempVendorCDR_20' ) end [2024-12-27 16:01:20] Production.INFO: ProcessCDR(1,14115283,1,1,2) [2024-12-27 16:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115283', 'tblTempUsageDetail_20' ) start [2024-12-27 16:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115283', 'tblTempUsageDetail_20' ) end [2024-12-27 16:01:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:01:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:01:25] Production.INFO: ==4370== Releasing lock... [2024-12-27 16:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:01:25] Production.INFO: 67 MB #Memory Used# [2024-12-27 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:02:05 [end_date_ymd] => 2024-12-27 16:02:05 [RateCDR] => 1 ) [2024-12-27 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-27 13:02:05' and `end` < '2024-12-27 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-27 16:02:19] Production.INFO: count ==5214 [2024-12-27 16:02:21] Production.ERROR: pbx CDR StartTime 2024-12-27 13:02:05 - End Time 2024-12-27 16:02:05 [2024-12-27 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115285', 'tblTempUsageDetail_20' ) start [2024-12-27 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115285', 'tblTempUsageDetail_20' ) end [2024-12-27 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115285', 'tblTempVendorCDR_20' ) start [2024-12-27 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115285', 'tblTempVendorCDR_20' ) end [2024-12-27 16:02:21] Production.INFO: ProcessCDR(1,14115285,1,1,2) [2024-12-27 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115285', 'tblTempUsageDetail_20' ) start [2024-12-27 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115285', 'tblTempUsageDetail_20' ) end [2024-12-27 16:02:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:02:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:02:26] Production.INFO: ==4443== Releasing lock... [2024-12-27 16:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:02:26] Production.INFO: 67 MB #Memory Used# [2024-12-27 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:03:05 [end_date_ymd] => 2024-12-27 16:03:05 [RateCDR] => 1 ) [2024-12-27 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:03:05' and `end` < '2024-12-27 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:03:20] Production.INFO: count ==5216 [2024-12-27 16:03:22] Production.ERROR: pbx CDR StartTime 2024-12-27 13:03:05 - End Time 2024-12-27 16:03:05 [2024-12-27 16:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115293', 'tblTempUsageDetail_20' ) start [2024-12-27 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115293', 'tblTempUsageDetail_20' ) end [2024-12-27 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115293', 'tblTempVendorCDR_20' ) start [2024-12-27 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115293', 'tblTempVendorCDR_20' ) end [2024-12-27 16:03:22] Production.INFO: ProcessCDR(1,14115293,1,1,2) [2024-12-27 16:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115293', 'tblTempUsageDetail_20' ) start [2024-12-27 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115293', 'tblTempUsageDetail_20' ) end [2024-12-27 16:03:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:03:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:03:27] Production.INFO: ==4525== Releasing lock... [2024-12-27 16:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:03:27] Production.INFO: 67 MB #Memory Used# [2024-12-27 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:04:05 [end_date_ymd] => 2024-12-27 16:04:05 [RateCDR] => 1 ) [2024-12-27 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:04:05' and `end` < '2024-12-27 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:04:21] Production.INFO: count ==5212 [2024-12-27 16:04:23] Production.ERROR: pbx CDR StartTime 2024-12-27 13:04:05 - End Time 2024-12-27 16:04:05 [2024-12-27 16:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115298', 'tblTempUsageDetail_20' ) start [2024-12-27 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115298', 'tblTempUsageDetail_20' ) end [2024-12-27 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115298', 'tblTempVendorCDR_20' ) start [2024-12-27 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115298', 'tblTempVendorCDR_20' ) end [2024-12-27 16:04:23] Production.INFO: ProcessCDR(1,14115298,1,1,2) [2024-12-27 16:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115298', 'tblTempUsageDetail_20' ) start [2024-12-27 16:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115298', 'tblTempUsageDetail_20' ) end [2024-12-27 16:04:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:04:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:04:28] Production.INFO: ==4621== Releasing lock... [2024-12-27 16:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:04:28] Production.INFO: 67 MB #Memory Used# [2024-12-27 16:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:05:04 [end_date_ymd] => 2024-12-27 16:05:04 [RateCDR] => 1 ) [2024-12-27 16: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-27 13:05:04' and `end` < '2024-12-27 16: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-27 16:05:25] Production.INFO: count ==5206 [2024-12-27 16:05:27] Production.ERROR: pbx CDR StartTime 2024-12-27 13:05:04 - End Time 2024-12-27 16:05:04 [2024-12-27 16:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115303', 'tblTempUsageDetail_20' ) start [2024-12-27 16:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115303', 'tblTempUsageDetail_20' ) end [2024-12-27 16:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115303', 'tblTempVendorCDR_20' ) start [2024-12-27 16:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115303', 'tblTempVendorCDR_20' ) end [2024-12-27 16:05:27] Production.INFO: ProcessCDR(1,14115303,1,1,2) [2024-12-27 16:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115303', 'tblTempUsageDetail_20' ) start [2024-12-27 16:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115303', 'tblTempUsageDetail_20' ) end [2024-12-27 16:05:32] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:05:32] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:05:32] Production.INFO: ==4700== Releasing lock... [2024-12-27 16:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:05:32] Production.INFO: 67 MB #Memory Used# [2024-12-27 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:06:05 [end_date_ymd] => 2024-12-27 16:06:05 [RateCDR] => 1 ) [2024-12-27 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-27 13:06:05' and `end` < '2024-12-27 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-27 16:06:19] Production.INFO: count ==5242 [2024-12-27 16:06:21] Production.ERROR: pbx CDR StartTime 2024-12-27 13:06:05 - End Time 2024-12-27 16:06:05 [2024-12-27 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115308', 'tblTempUsageDetail_20' ) start [2024-12-27 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115308', 'tblTempUsageDetail_20' ) end [2024-12-27 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115308', 'tblTempVendorCDR_20' ) start [2024-12-27 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115308', 'tblTempVendorCDR_20' ) end [2024-12-27 16:06:21] Production.INFO: ProcessCDR(1,14115308,1,1,2) [2024-12-27 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115308', 'tblTempUsageDetail_20' ) start [2024-12-27 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115308', 'tblTempUsageDetail_20' ) end [2024-12-27 16:06:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:06:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:06:26] Production.INFO: ==4789== Releasing lock... [2024-12-27 16:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:06:26] Production.INFO: 67.25 MB #Memory Used# [2024-12-27 16:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:07:04 [end_date_ymd] => 2024-12-27 16:07:04 [RateCDR] => 1 ) [2024-12-27 16: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-27 13:07:04' and `end` < '2024-12-27 16: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-27 16:07:23] Production.INFO: count ==5230 [2024-12-27 16:07:25] Production.ERROR: pbx CDR StartTime 2024-12-27 13:07:04 - End Time 2024-12-27 16:07:04 [2024-12-27 16:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115313', 'tblTempUsageDetail_20' ) start [2024-12-27 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115313', 'tblTempUsageDetail_20' ) end [2024-12-27 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115313', 'tblTempVendorCDR_20' ) start [2024-12-27 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115313', 'tblTempVendorCDR_20' ) end [2024-12-27 16:07:25] Production.INFO: ProcessCDR(1,14115313,1,1,2) [2024-12-27 16:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115313', 'tblTempUsageDetail_20' ) start [2024-12-27 16:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115313', 'tblTempUsageDetail_20' ) end [2024-12-27 16:07:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:07:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:07:30] Production.INFO: ==4871== Releasing lock... [2024-12-27 16:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:07:30] Production.INFO: 67 MB #Memory Used# [2024-12-27 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:08:05 [end_date_ymd] => 2024-12-27 16:08:05 [RateCDR] => 1 ) [2024-12-27 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:08:05' and `end` < '2024-12-27 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:08:20] Production.INFO: count ==5224 [2024-12-27 16:08:22] Production.ERROR: pbx CDR StartTime 2024-12-27 13:08:05 - End Time 2024-12-27 16:08:05 [2024-12-27 16:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115318', 'tblTempUsageDetail_20' ) start [2024-12-27 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115318', 'tblTempUsageDetail_20' ) end [2024-12-27 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115318', 'tblTempVendorCDR_20' ) start [2024-12-27 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115318', 'tblTempVendorCDR_20' ) end [2024-12-27 16:08:22] Production.INFO: ProcessCDR(1,14115318,1,1,2) [2024-12-27 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115318', 'tblTempUsageDetail_20' ) start [2024-12-27 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115318', 'tblTempUsageDetail_20' ) end [2024-12-27 16:08:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:08:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:08:27] Production.INFO: ==4955== Releasing lock... [2024-12-27 16:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:08:27] Production.INFO: 67 MB #Memory Used# [2024-12-27 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:09:05 [end_date_ymd] => 2024-12-27 16:09:05 [RateCDR] => 1 ) [2024-12-27 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:09:05' and `end` < '2024-12-27 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:09:24] Production.INFO: count ==5223 [2024-12-27 16:09:26] Production.ERROR: pbx CDR StartTime 2024-12-27 13:09:05 - End Time 2024-12-27 16:09:05 [2024-12-27 16:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115323', 'tblTempUsageDetail_20' ) start [2024-12-27 16:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115323', 'tblTempUsageDetail_20' ) end [2024-12-27 16:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115323', 'tblTempVendorCDR_20' ) start [2024-12-27 16:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115323', 'tblTempVendorCDR_20' ) end [2024-12-27 16:09:26] Production.INFO: ProcessCDR(1,14115323,1,1,2) [2024-12-27 16:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115323', 'tblTempUsageDetail_20' ) start [2024-12-27 16:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115323', 'tblTempUsageDetail_20' ) end [2024-12-27 16:09:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:09:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:09:31] Production.INFO: ==5036== Releasing lock... [2024-12-27 16:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:09:31] Production.INFO: 67 MB #Memory Used# [2024-12-27 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:10:05 [end_date_ymd] => 2024-12-27 16:10:05 [RateCDR] => 1 ) [2024-12-27 16:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:10:05' and `end` < '2024-12-27 16:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:10:22] Production.INFO: count ==5219 [2024-12-27 16:10:24] Production.ERROR: pbx CDR StartTime 2024-12-27 13:10:05 - End Time 2024-12-27 16:10:05 [2024-12-27 16:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115329', 'tblTempUsageDetail_20' ) start [2024-12-27 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115329', 'tblTempUsageDetail_20' ) end [2024-12-27 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115329', 'tblTempVendorCDR_20' ) start [2024-12-27 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115329', 'tblTempVendorCDR_20' ) end [2024-12-27 16:10:24] Production.INFO: ProcessCDR(1,14115329,1,1,2) [2024-12-27 16:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115329', 'tblTempUsageDetail_20' ) start [2024-12-27 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115329', 'tblTempUsageDetail_20' ) end [2024-12-27 16:10:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:10:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:10:29] Production.INFO: ==5119== Releasing lock... [2024-12-27 16:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:10:29] Production.INFO: 67 MB #Memory Used# [2024-12-27 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:11:05 [end_date_ymd] => 2024-12-27 16:11:05 [RateCDR] => 1 ) [2024-12-27 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:11:05' and `end` < '2024-12-27 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:11:22] Production.INFO: count ==5223 [2024-12-27 16:11:25] Production.ERROR: pbx CDR StartTime 2024-12-27 13:11:05 - End Time 2024-12-27 16:11:05 [2024-12-27 16:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115334', 'tblTempUsageDetail_20' ) start [2024-12-27 16:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115334', 'tblTempUsageDetail_20' ) end [2024-12-27 16:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115334', 'tblTempVendorCDR_20' ) start [2024-12-27 16:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115334', 'tblTempVendorCDR_20' ) end [2024-12-27 16:11:25] Production.INFO: ProcessCDR(1,14115334,1,1,2) [2024-12-27 16:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115334', 'tblTempUsageDetail_20' ) start [2024-12-27 16:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115334', 'tblTempUsageDetail_20' ) end [2024-12-27 16:11:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:11:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:11:30] Production.INFO: ==5245== Releasing lock... [2024-12-27 16:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:11:30] Production.INFO: 67 MB #Memory Used# [2024-12-27 16:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:12:04 [end_date_ymd] => 2024-12-27 16:12:04 [RateCDR] => 1 ) [2024-12-27 16: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-27 13:12:04' and `end` < '2024-12-27 16: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-27 16:12:19] Production.INFO: count ==5237 [2024-12-27 16:12:21] Production.ERROR: pbx CDR StartTime 2024-12-27 13:12:04 - End Time 2024-12-27 16:12:04 [2024-12-27 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115339', 'tblTempUsageDetail_20' ) start [2024-12-27 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115339', 'tblTempUsageDetail_20' ) end [2024-12-27 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115339', 'tblTempVendorCDR_20' ) start [2024-12-27 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115339', 'tblTempVendorCDR_20' ) end [2024-12-27 16:12:21] Production.INFO: ProcessCDR(1,14115339,1,1,2) [2024-12-27 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115339', 'tblTempUsageDetail_20' ) start [2024-12-27 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115339', 'tblTempUsageDetail_20' ) end [2024-12-27 16:12:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:12:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:12:26] Production.INFO: ==5324== Releasing lock... [2024-12-27 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:12:26] Production.INFO: 67.25 MB #Memory Used# [2024-12-27 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:13:05 [end_date_ymd] => 2024-12-27 16:13:05 [RateCDR] => 1 ) [2024-12-27 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:13:05' and `end` < '2024-12-27 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:13:21] Production.INFO: count ==5249 [2024-12-27 16:13:23] Production.ERROR: pbx CDR StartTime 2024-12-27 13:13:05 - End Time 2024-12-27 16:13:05 [2024-12-27 16:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115344', 'tblTempUsageDetail_20' ) start [2024-12-27 16:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115344', 'tblTempUsageDetail_20' ) end [2024-12-27 16:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115344', 'tblTempVendorCDR_20' ) start [2024-12-27 16:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115344', 'tblTempVendorCDR_20' ) end [2024-12-27 16:13:23] Production.INFO: ProcessCDR(1,14115344,1,1,2) [2024-12-27 16:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115344', 'tblTempUsageDetail_20' ) start [2024-12-27 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115344', 'tblTempUsageDetail_20' ) end [2024-12-27 16:13:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:13:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:13:28] Production.INFO: ==5416== Releasing lock... [2024-12-27 16:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:13:28] Production.INFO: 67.25 MB #Memory Used# [2024-12-27 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:14:05 [end_date_ymd] => 2024-12-27 16:14:05 [RateCDR] => 1 ) [2024-12-27 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:14:05' and `end` < '2024-12-27 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:14:21] Production.INFO: count ==5250 [2024-12-27 16:14:23] Production.ERROR: pbx CDR StartTime 2024-12-27 13:14:05 - End Time 2024-12-27 16:14:05 [2024-12-27 16:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115349', 'tblTempUsageDetail_20' ) start [2024-12-27 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115349', 'tblTempUsageDetail_20' ) end [2024-12-27 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115349', 'tblTempVendorCDR_20' ) start [2024-12-27 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115349', 'tblTempVendorCDR_20' ) end [2024-12-27 16:14:24] Production.INFO: ProcessCDR(1,14115349,1,1,2) [2024-12-27 16:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115349', 'tblTempUsageDetail_20' ) start [2024-12-27 16:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115349', 'tblTempUsageDetail_20' ) end [2024-12-27 16:14:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:14:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:14:28] Production.INFO: ==5489== Releasing lock... [2024-12-27 16:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:14:28] Production.INFO: 67.25 MB #Memory Used# [2024-12-27 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:15:05 [end_date_ymd] => 2024-12-27 16:15:05 [RateCDR] => 1 ) [2024-12-27 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:15:05' and `end` < '2024-12-27 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:15:23] Production.INFO: count ==5271 [2024-12-27 16:15:26] Production.ERROR: pbx CDR StartTime 2024-12-27 13:15:05 - End Time 2024-12-27 16:15:05 [2024-12-27 16:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115354', 'tblTempUsageDetail_20' ) start [2024-12-27 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115354', 'tblTempUsageDetail_20' ) end [2024-12-27 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115354', 'tblTempVendorCDR_20' ) start [2024-12-27 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115354', 'tblTempVendorCDR_20' ) end [2024-12-27 16:15:26] Production.INFO: ProcessCDR(1,14115354,1,1,2) [2024-12-27 16:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115354', 'tblTempUsageDetail_20' ) start [2024-12-27 16:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115354', 'tblTempUsageDetail_20' ) end [2024-12-27 16:15:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:15:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:15:31] Production.INFO: ==5575== Releasing lock... [2024-12-27 16:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:15:31] Production.INFO: 67.5 MB #Memory Used# [2024-12-27 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:16:06 [end_date_ymd] => 2024-12-27 16:16:06 [RateCDR] => 1 ) [2024-12-27 16:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:16:06' and `end` < '2024-12-27 16:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:16:19] Production.INFO: count ==5270 [2024-12-27 16:16:22] Production.ERROR: pbx CDR StartTime 2024-12-27 13:16:06 - End Time 2024-12-27 16:16:06 [2024-12-27 16:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115359', 'tblTempUsageDetail_20' ) start [2024-12-27 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115359', 'tblTempUsageDetail_20' ) end [2024-12-27 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115359', 'tblTempVendorCDR_20' ) start [2024-12-27 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115359', 'tblTempVendorCDR_20' ) end [2024-12-27 16:16:22] Production.INFO: ProcessCDR(1,14115359,1,1,2) [2024-12-27 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115359', 'tblTempUsageDetail_20' ) start [2024-12-27 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115359', 'tblTempUsageDetail_20' ) end [2024-12-27 16:16:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:16:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:16:27] Production.INFO: ==5655== Releasing lock... [2024-12-27 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:16:27] Production.INFO: 67.5 MB #Memory Used# [2024-12-27 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:17:05 [end_date_ymd] => 2024-12-27 16:17:05 [RateCDR] => 1 ) [2024-12-27 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:17:05' and `end` < '2024-12-27 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:17:18] Production.INFO: count ==5253 [2024-12-27 16:17:21] Production.ERROR: pbx CDR StartTime 2024-12-27 13:17:05 - End Time 2024-12-27 16:17:05 [2024-12-27 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115364', 'tblTempUsageDetail_20' ) start [2024-12-27 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115364', 'tblTempUsageDetail_20' ) end [2024-12-27 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115364', 'tblTempVendorCDR_20' ) start [2024-12-27 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115364', 'tblTempVendorCDR_20' ) end [2024-12-27 16:17:21] Production.INFO: ProcessCDR(1,14115364,1,1,2) [2024-12-27 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115364', 'tblTempUsageDetail_20' ) start [2024-12-27 16:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115364', 'tblTempUsageDetail_20' ) end [2024-12-27 16:17:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:17:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:17:25] Production.INFO: ==5747== Releasing lock... [2024-12-27 16:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:17:25] Production.INFO: 67.25 MB #Memory Used# [2024-12-27 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:18:05 [end_date_ymd] => 2024-12-27 16:18:05 [RateCDR] => 1 ) [2024-12-27 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:18:05' and `end` < '2024-12-27 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:18:21] Production.INFO: count ==5296 [2024-12-27 16:18:23] Production.ERROR: pbx CDR StartTime 2024-12-27 13:18:05 - End Time 2024-12-27 16:18:05 [2024-12-27 16:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115369', 'tblTempUsageDetail_20' ) start [2024-12-27 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115369', 'tblTempUsageDetail_20' ) end [2024-12-27 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115369', 'tblTempVendorCDR_20' ) start [2024-12-27 16:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115369', 'tblTempVendorCDR_20' ) end [2024-12-27 16:18:24] Production.INFO: ProcessCDR(1,14115369,1,1,2) [2024-12-27 16:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115369', 'tblTempUsageDetail_20' ) start [2024-12-27 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115369', 'tblTempUsageDetail_20' ) end [2024-12-27 16:18:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:18:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:18:28] Production.INFO: ==5834== Releasing lock... [2024-12-27 16:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:18:28] Production.INFO: 67.5 MB #Memory Used# [2024-12-27 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:19:05 [end_date_ymd] => 2024-12-27 16:19:05 [RateCDR] => 1 ) [2024-12-27 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-27 13:19:05' and `end` < '2024-12-27 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-27 16:19:26] Production.INFO: count ==5299 [2024-12-27 16:19:28] Production.ERROR: pbx CDR StartTime 2024-12-27 13:19:05 - End Time 2024-12-27 16:19:05 [2024-12-27 16:19:28] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115374', 'tblTempUsageDetail_20' ) start [2024-12-27 16:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115374', 'tblTempUsageDetail_20' ) end [2024-12-27 16:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115374', 'tblTempVendorCDR_20' ) start [2024-12-27 16:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115374', 'tblTempVendorCDR_20' ) end [2024-12-27 16:19:28] Production.INFO: ProcessCDR(1,14115374,1,1,2) [2024-12-27 16:19:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:19:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:19:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:19:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115374', 'tblTempUsageDetail_20' ) start [2024-12-27 16:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115374', 'tblTempUsageDetail_20' ) end [2024-12-27 16:19:33] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:19:34] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:19:34] Production.INFO: ==5917== Releasing lock... [2024-12-27 16:19:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:19:34] Production.INFO: 67.5 MB #Memory Used# [2024-12-27 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:20:05 [end_date_ymd] => 2024-12-27 16:20:05 [RateCDR] => 1 ) [2024-12-27 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-27 13:20:05' and `end` < '2024-12-27 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-27 16:20:22] Production.INFO: count ==5299 [2024-12-27 16:20:24] Production.ERROR: pbx CDR StartTime 2024-12-27 13:20:05 - End Time 2024-12-27 16:20:05 [2024-12-27 16:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115380', 'tblTempUsageDetail_20' ) start [2024-12-27 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115380', 'tblTempUsageDetail_20' ) end [2024-12-27 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115380', 'tblTempVendorCDR_20' ) start [2024-12-27 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115380', 'tblTempVendorCDR_20' ) end [2024-12-27 16:20:24] Production.INFO: ProcessCDR(1,14115380,1,1,2) [2024-12-27 16:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115380', 'tblTempUsageDetail_20' ) start [2024-12-27 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115380', 'tblTempUsageDetail_20' ) end [2024-12-27 16:20:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:20:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:20:28] Production.INFO: ==6012== Releasing lock... [2024-12-27 16:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:20:28] Production.INFO: 67.5 MB #Memory Used# [2024-12-27 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:21:05 [end_date_ymd] => 2024-12-27 16:21:05 [RateCDR] => 1 ) [2024-12-27 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-27 13:21:05' and `end` < '2024-12-27 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-27 16:21:23] Production.INFO: count ==5365 [2024-12-27 16:21:25] Production.ERROR: pbx CDR StartTime 2024-12-27 13:21:05 - End Time 2024-12-27 16:21:05 [2024-12-27 16:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115385', 'tblTempUsageDetail_20' ) start [2024-12-27 16:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115385', 'tblTempUsageDetail_20' ) end [2024-12-27 16:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115385', 'tblTempVendorCDR_20' ) start [2024-12-27 16:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115385', 'tblTempVendorCDR_20' ) end [2024-12-27 16:21:25] Production.INFO: ProcessCDR(1,14115385,1,1,2) [2024-12-27 16:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115385', 'tblTempUsageDetail_20' ) start [2024-12-27 16:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115385', 'tblTempUsageDetail_20' ) end [2024-12-27 16:21:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:21:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:21:30] Production.INFO: ==6110== Releasing lock... [2024-12-27 16:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:21:30] Production.INFO: 68 MB #Memory Used# [2024-12-27 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:22:05 [end_date_ymd] => 2024-12-27 16:22:05 [RateCDR] => 1 ) [2024-12-27 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:22:05' and `end` < '2024-12-27 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:22:19] Production.INFO: count ==5357 [2024-12-27 16:22:22] Production.ERROR: pbx CDR StartTime 2024-12-27 13:22:05 - End Time 2024-12-27 16:22:05 [2024-12-27 16:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115390', 'tblTempUsageDetail_20' ) start [2024-12-27 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115390', 'tblTempUsageDetail_20' ) end [2024-12-27 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115390', 'tblTempVendorCDR_20' ) start [2024-12-27 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115390', 'tblTempVendorCDR_20' ) end [2024-12-27 16:22:22] Production.INFO: ProcessCDR(1,14115390,1,1,2) [2024-12-27 16:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115390', 'tblTempUsageDetail_20' ) start [2024-12-27 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115390', 'tblTempUsageDetail_20' ) end [2024-12-27 16:22:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:22:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:22:26] Production.INFO: ==6195== Releasing lock... [2024-12-27 16:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:22:26] Production.INFO: 68 MB #Memory Used# [2024-12-27 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:23:05 [end_date_ymd] => 2024-12-27 16:23:05 [RateCDR] => 1 ) [2024-12-27 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:23:05' and `end` < '2024-12-27 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:23:20] Production.INFO: count ==5348 [2024-12-27 16:23:22] Production.ERROR: pbx CDR StartTime 2024-12-27 13:23:05 - End Time 2024-12-27 16:23:05 [2024-12-27 16:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115395', 'tblTempUsageDetail_20' ) start [2024-12-27 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115395', 'tblTempUsageDetail_20' ) end [2024-12-27 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115395', 'tblTempVendorCDR_20' ) start [2024-12-27 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115395', 'tblTempVendorCDR_20' ) end [2024-12-27 16:23:23] Production.INFO: ProcessCDR(1,14115395,1,1,2) [2024-12-27 16:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115395', 'tblTempUsageDetail_20' ) start [2024-12-27 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115395', 'tblTempUsageDetail_20' ) end [2024-12-27 16:23:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:23:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:23:27] Production.INFO: ==6280== Releasing lock... [2024-12-27 16:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:23:27] Production.INFO: 68 MB #Memory Used# [2024-12-27 16:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:24:04 [end_date_ymd] => 2024-12-27 16:24:04 [RateCDR] => 1 ) [2024-12-27 16:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:24:04' and `end` < '2024-12-27 16:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:24:20] Production.INFO: count ==5376 [2024-12-27 16:24:22] Production.ERROR: pbx CDR StartTime 2024-12-27 13:24:04 - End Time 2024-12-27 16:24:04 [2024-12-27 16:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115400', 'tblTempUsageDetail_20' ) start [2024-12-27 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115400', 'tblTempUsageDetail_20' ) end [2024-12-27 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115400', 'tblTempVendorCDR_20' ) start [2024-12-27 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115400', 'tblTempVendorCDR_20' ) end [2024-12-27 16:24:22] Production.INFO: ProcessCDR(1,14115400,1,1,2) [2024-12-27 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115400', 'tblTempUsageDetail_20' ) start [2024-12-27 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115400', 'tblTempUsageDetail_20' ) end [2024-12-27 16:24:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:24:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:24:27] Production.INFO: ==6365== Releasing lock... [2024-12-27 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:24:27] Production.INFO: 68.25 MB #Memory Used# [2024-12-27 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:25:05 [end_date_ymd] => 2024-12-27 16:25:05 [RateCDR] => 1 ) [2024-12-27 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:25:05' and `end` < '2024-12-27 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:25:22] Production.INFO: count ==5383 [2024-12-27 16:25:25] Production.ERROR: pbx CDR StartTime 2024-12-27 13:25:05 - End Time 2024-12-27 16:25:05 [2024-12-27 16:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115405', 'tblTempUsageDetail_20' ) start [2024-12-27 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115405', 'tblTempUsageDetail_20' ) end [2024-12-27 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115405', 'tblTempVendorCDR_20' ) start [2024-12-27 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115405', 'tblTempVendorCDR_20' ) end [2024-12-27 16:25:25] Production.INFO: ProcessCDR(1,14115405,1,1,2) [2024-12-27 16:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115405', 'tblTempUsageDetail_20' ) start [2024-12-27 16:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115405', 'tblTempUsageDetail_20' ) end [2024-12-27 16:25:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:25:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:25:29] Production.INFO: ==6453== Releasing lock... [2024-12-27 16:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:25:29] Production.INFO: 68.25 MB #Memory Used# [2024-12-27 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:26:05 [end_date_ymd] => 2024-12-27 16:26:05 [RateCDR] => 1 ) [2024-12-27 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:26:05' and `end` < '2024-12-27 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:26:26] Production.INFO: count ==5372 [2024-12-27 16:26:29] Production.ERROR: pbx CDR StartTime 2024-12-27 13:26:05 - End Time 2024-12-27 16:26:05 [2024-12-27 16:26:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115410', 'tblTempUsageDetail_20' ) start [2024-12-27 16:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115410', 'tblTempUsageDetail_20' ) end [2024-12-27 16:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115410', 'tblTempVendorCDR_20' ) start [2024-12-27 16:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115410', 'tblTempVendorCDR_20' ) end [2024-12-27 16:26:29] Production.INFO: ProcessCDR(1,14115410,1,1,2) [2024-12-27 16:26:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:26:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:26:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115410', 'tblTempUsageDetail_20' ) start [2024-12-27 16:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115410', 'tblTempUsageDetail_20' ) end [2024-12-27 16:26:34] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:26:34] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:26:34] Production.INFO: ==6582== Releasing lock... [2024-12-27 16:26:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:26:34] Production.INFO: 68.25 MB #Memory Used# [2024-12-27 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:27:05 [end_date_ymd] => 2024-12-27 16:27:05 [RateCDR] => 1 ) [2024-12-27 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:27:05' and `end` < '2024-12-27 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:27:28] Production.INFO: count ==5364 [2024-12-27 16:27:30] Production.ERROR: pbx CDR StartTime 2024-12-27 13:27:05 - End Time 2024-12-27 16:27:05 [2024-12-27 16:27:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115415', 'tblTempUsageDetail_20' ) start [2024-12-27 16:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115415', 'tblTempUsageDetail_20' ) end [2024-12-27 16:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115415', 'tblTempVendorCDR_20' ) start [2024-12-27 16:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115415', 'tblTempVendorCDR_20' ) end [2024-12-27 16:27:30] Production.INFO: ProcessCDR(1,14115415,1,1,2) [2024-12-27 16:27:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:27:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:27:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:27:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:27:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115415', 'tblTempUsageDetail_20' ) start [2024-12-27 16:27:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115415', 'tblTempUsageDetail_20' ) end [2024-12-27 16:27:35] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:27:35] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:27:35] Production.INFO: ==6665== Releasing lock... [2024-12-27 16:27:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:27:35] Production.INFO: 68 MB #Memory Used# [2024-12-27 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:28:05 [end_date_ymd] => 2024-12-27 16:28:05 [RateCDR] => 1 ) [2024-12-27 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:28:05' and `end` < '2024-12-27 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:28:22] Production.INFO: count ==5369 [2024-12-27 16:28:24] Production.ERROR: pbx CDR StartTime 2024-12-27 13:28:05 - End Time 2024-12-27 16:28:05 [2024-12-27 16:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115420', 'tblTempUsageDetail_20' ) start [2024-12-27 16:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115420', 'tblTempUsageDetail_20' ) end [2024-12-27 16:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115420', 'tblTempVendorCDR_20' ) start [2024-12-27 16:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115420', 'tblTempVendorCDR_20' ) end [2024-12-27 16:28:24] Production.INFO: ProcessCDR(1,14115420,1,1,2) [2024-12-27 16:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115420', 'tblTempUsageDetail_20' ) start [2024-12-27 16:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115420', 'tblTempUsageDetail_20' ) end [2024-12-27 16:28:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:28:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:28:29] Production.INFO: ==6746== Releasing lock... [2024-12-27 16:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:28:29] Production.INFO: 68.25 MB #Memory Used# [2024-12-27 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:29:05 [end_date_ymd] => 2024-12-27 16:29:05 [RateCDR] => 1 ) [2024-12-27 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:29:05' and `end` < '2024-12-27 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:29:19] Production.INFO: count ==5355 [2024-12-27 16:29:21] Production.ERROR: pbx CDR StartTime 2024-12-27 13:29:05 - End Time 2024-12-27 16:29:05 [2024-12-27 16:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115425', 'tblTempUsageDetail_20' ) start [2024-12-27 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115425', 'tblTempUsageDetail_20' ) end [2024-12-27 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115425', 'tblTempVendorCDR_20' ) start [2024-12-27 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115425', 'tblTempVendorCDR_20' ) end [2024-12-27 16:29:21] Production.INFO: ProcessCDR(1,14115425,1,1,2) [2024-12-27 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115425', 'tblTempUsageDetail_20' ) start [2024-12-27 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115425', 'tblTempUsageDetail_20' ) end [2024-12-27 16:29:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:29:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:29:26] Production.INFO: ==6829== Releasing lock... [2024-12-27 16:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:29:26] Production.INFO: 68 MB #Memory Used# [2024-12-27 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:30:06 [end_date_ymd] => 2024-12-27 16:30:06 [RateCDR] => 1 ) [2024-12-27 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:30:06' and `end` < '2024-12-27 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:30:33] Production.INFO: count ==5348 [2024-12-27 16:30:35] Production.ERROR: pbx CDR StartTime 2024-12-27 13:30:06 - End Time 2024-12-27 16:30:06 [2024-12-27 16:30:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115430', 'tblTempUsageDetail_20' ) start [2024-12-27 16:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115430', 'tblTempUsageDetail_20' ) end [2024-12-27 16:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115430', 'tblTempVendorCDR_20' ) start [2024-12-27 16:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115430', 'tblTempVendorCDR_20' ) end [2024-12-27 16:30:35] Production.INFO: ProcessCDR(1,14115430,1,1,2) [2024-12-27 16:30:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:30:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:30:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:30:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115430', 'tblTempUsageDetail_20' ) start [2024-12-27 16:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115430', 'tblTempUsageDetail_20' ) end [2024-12-27 16:30:40] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:30:40] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:30:40] Production.INFO: ==6914== Releasing lock... [2024-12-27 16:30:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:30:40] Production.INFO: 68 MB #Memory Used# [2024-12-27 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:31:05 [end_date_ymd] => 2024-12-27 16:31:05 [RateCDR] => 1 ) [2024-12-27 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-27 13:31:05' and `end` < '2024-12-27 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-27 16:31:21] Production.INFO: count ==5358 [2024-12-27 16:31:23] Production.ERROR: pbx CDR StartTime 2024-12-27 13:31:05 - End Time 2024-12-27 16:31:05 [2024-12-27 16:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115436', 'tblTempUsageDetail_20' ) start [2024-12-27 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115436', 'tblTempUsageDetail_20' ) end [2024-12-27 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115436', 'tblTempVendorCDR_20' ) start [2024-12-27 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115436', 'tblTempVendorCDR_20' ) end [2024-12-27 16:31:24] Production.INFO: ProcessCDR(1,14115436,1,1,2) [2024-12-27 16:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115436', 'tblTempUsageDetail_20' ) start [2024-12-27 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115436', 'tblTempUsageDetail_20' ) end [2024-12-27 16:31:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:31:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:31:28] Production.INFO: ==7000== Releasing lock... [2024-12-27 16:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:31:28] Production.INFO: 68 MB #Memory Used# [2024-12-27 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:32:05 [end_date_ymd] => 2024-12-27 16:32:05 [RateCDR] => 1 ) [2024-12-27 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:32:05' and `end` < '2024-12-27 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:32:19] Production.INFO: count ==5321 [2024-12-27 16:32:21] Production.ERROR: pbx CDR StartTime 2024-12-27 13:32:05 - End Time 2024-12-27 16:32:05 [2024-12-27 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115441', 'tblTempUsageDetail_20' ) start [2024-12-27 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115441', 'tblTempUsageDetail_20' ) end [2024-12-27 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115441', 'tblTempVendorCDR_20' ) start [2024-12-27 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115441', 'tblTempVendorCDR_20' ) end [2024-12-27 16:32:21] Production.INFO: ProcessCDR(1,14115441,1,1,2) [2024-12-27 16:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115441', 'tblTempUsageDetail_20' ) start [2024-12-27 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115441', 'tblTempUsageDetail_20' ) end [2024-12-27 16:32:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:32:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:32:26] Production.INFO: ==7084== Releasing lock... [2024-12-27 16:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:32:26] Production.INFO: 67.75 MB #Memory Used# [2024-12-27 16:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:33:04 [end_date_ymd] => 2024-12-27 16:33:04 [RateCDR] => 1 ) [2024-12-27 16: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-27 13:33:04' and `end` < '2024-12-27 16: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-27 16:33:18] Production.INFO: count ==5289 [2024-12-27 16:33:20] Production.ERROR: pbx CDR StartTime 2024-12-27 13:33:04 - End Time 2024-12-27 16:33:04 [2024-12-27 16:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115446', 'tblTempUsageDetail_20' ) start [2024-12-27 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115446', 'tblTempUsageDetail_20' ) end [2024-12-27 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115446', 'tblTempVendorCDR_20' ) start [2024-12-27 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115446', 'tblTempVendorCDR_20' ) end [2024-12-27 16:33:20] Production.INFO: ProcessCDR(1,14115446,1,1,2) [2024-12-27 16:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115446', 'tblTempUsageDetail_20' ) start [2024-12-27 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115446', 'tblTempUsageDetail_20' ) end [2024-12-27 16:33:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:33:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:33:25] Production.INFO: ==7175== Releasing lock... [2024-12-27 16:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:33:25] Production.INFO: 67.5 MB #Memory Used# [2024-12-27 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:34:05 [end_date_ymd] => 2024-12-27 16:34:05 [RateCDR] => 1 ) [2024-12-27 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:34:05' and `end` < '2024-12-27 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:34:28] Production.INFO: count ==5270 [2024-12-27 16:34:30] Production.ERROR: pbx CDR StartTime 2024-12-27 13:34:05 - End Time 2024-12-27 16:34:05 [2024-12-27 16:34:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115451', 'tblTempUsageDetail_20' ) start [2024-12-27 16:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115451', 'tblTempUsageDetail_20' ) end [2024-12-27 16:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115451', 'tblTempVendorCDR_20' ) start [2024-12-27 16:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115451', 'tblTempVendorCDR_20' ) end [2024-12-27 16:34:30] Production.INFO: ProcessCDR(1,14115451,1,1,2) [2024-12-27 16:34:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:34:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115451', 'tblTempUsageDetail_20' ) start [2024-12-27 16:34:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115451', 'tblTempUsageDetail_20' ) end [2024-12-27 16:34:35] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:34:35] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:34:35] Production.INFO: ==7257== Releasing lock... [2024-12-27 16:34:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:34:35] Production.INFO: 67.5 MB #Memory Used# [2024-12-27 16:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:35:04 [end_date_ymd] => 2024-12-27 16:35:04 [RateCDR] => 1 ) [2024-12-27 16: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-27 13:35:04' and `end` < '2024-12-27 16: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-27 16:35:25] Production.INFO: count ==5259 [2024-12-27 16:35:27] Production.ERROR: pbx CDR StartTime 2024-12-27 13:35:04 - End Time 2024-12-27 16:35:04 [2024-12-27 16:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115456', 'tblTempUsageDetail_20' ) start [2024-12-27 16:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115456', 'tblTempUsageDetail_20' ) end [2024-12-27 16:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115456', 'tblTempVendorCDR_20' ) start [2024-12-27 16:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115456', 'tblTempVendorCDR_20' ) end [2024-12-27 16:35:27] Production.INFO: ProcessCDR(1,14115456,1,1,2) [2024-12-27 16:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115456', 'tblTempUsageDetail_20' ) start [2024-12-27 16:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115456', 'tblTempUsageDetail_20' ) end [2024-12-27 16:35:32] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:35:32] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:35:32] Production.INFO: ==7348== Releasing lock... [2024-12-27 16:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:35:32] Production.INFO: 67.25 MB #Memory Used# [2024-12-27 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:36:06 [end_date_ymd] => 2024-12-27 16:36:06 [RateCDR] => 1 ) [2024-12-27 16:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:36:06' and `end` < '2024-12-27 16:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:36:23] Production.INFO: count ==5241 [2024-12-27 16:36:25] Production.ERROR: pbx CDR StartTime 2024-12-27 13:36:06 - End Time 2024-12-27 16:36:06 [2024-12-27 16:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115461', 'tblTempUsageDetail_20' ) start [2024-12-27 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115461', 'tblTempUsageDetail_20' ) end [2024-12-27 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115461', 'tblTempVendorCDR_20' ) start [2024-12-27 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115461', 'tblTempVendorCDR_20' ) end [2024-12-27 16:36:25] Production.INFO: ProcessCDR(1,14115461,1,1,2) [2024-12-27 16:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115461', 'tblTempUsageDetail_20' ) start [2024-12-27 16:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115461', 'tblTempUsageDetail_20' ) end [2024-12-27 16:36:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:36:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:36:30] Production.INFO: ==7434== Releasing lock... [2024-12-27 16:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:36:30] Production.INFO: 67.25 MB #Memory Used# [2024-12-27 16:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:37:04 [end_date_ymd] => 2024-12-27 16:37:04 [RateCDR] => 1 ) [2024-12-27 16:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:37:04' and `end` < '2024-12-27 16:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:37:18] Production.INFO: count ==5215 [2024-12-27 16:37:20] Production.ERROR: pbx CDR StartTime 2024-12-27 13:37:04 - End Time 2024-12-27 16:37:04 [2024-12-27 16:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115466', 'tblTempUsageDetail_20' ) start [2024-12-27 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115466', 'tblTempUsageDetail_20' ) end [2024-12-27 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115466', 'tblTempVendorCDR_20' ) start [2024-12-27 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115466', 'tblTempVendorCDR_20' ) end [2024-12-27 16:37:20] Production.INFO: ProcessCDR(1,14115466,1,1,2) [2024-12-27 16:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115466', 'tblTempUsageDetail_20' ) start [2024-12-27 16:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115466', 'tblTempUsageDetail_20' ) end [2024-12-27 16:37:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:37:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:37:24] Production.INFO: ==7516== Releasing lock... [2024-12-27 16:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:37:24] Production.INFO: 67 MB #Memory Used# [2024-12-27 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:38:05 [end_date_ymd] => 2024-12-27 16:38:05 [RateCDR] => 1 ) [2024-12-27 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-27 13:38:05' and `end` < '2024-12-27 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-27 16:38:20] Production.INFO: count ==5226 [2024-12-27 16:38:22] Production.ERROR: pbx CDR StartTime 2024-12-27 13:38:05 - End Time 2024-12-27 16:38:05 [2024-12-27 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115471', 'tblTempUsageDetail_20' ) start [2024-12-27 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115471', 'tblTempUsageDetail_20' ) end [2024-12-27 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115471', 'tblTempVendorCDR_20' ) start [2024-12-27 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115471', 'tblTempVendorCDR_20' ) end [2024-12-27 16:38:22] Production.INFO: ProcessCDR(1,14115471,1,1,2) [2024-12-27 16:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115471', 'tblTempUsageDetail_20' ) start [2024-12-27 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115471', 'tblTempUsageDetail_20' ) end [2024-12-27 16:38:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:38:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:38:27] Production.INFO: ==7614== Releasing lock... [2024-12-27 16:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:38:27] Production.INFO: 67 MB #Memory Used# [2024-12-27 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:39:05 [end_date_ymd] => 2024-12-27 16:39:05 [RateCDR] => 1 ) [2024-12-27 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:39:05' and `end` < '2024-12-27 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:39:22] Production.INFO: count ==5208 [2024-12-27 16:39:24] Production.ERROR: pbx CDR StartTime 2024-12-27 13:39:05 - End Time 2024-12-27 16:39:05 [2024-12-27 16:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115476', 'tblTempUsageDetail_20' ) start [2024-12-27 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115476', 'tblTempUsageDetail_20' ) end [2024-12-27 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115476', 'tblTempVendorCDR_20' ) start [2024-12-27 16:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115476', 'tblTempVendorCDR_20' ) end [2024-12-27 16:39:24] Production.INFO: ProcessCDR(1,14115476,1,1,2) [2024-12-27 16:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115476', 'tblTempUsageDetail_20' ) start [2024-12-27 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115476', 'tblTempUsageDetail_20' ) end [2024-12-27 16:39:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:39:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:39:28] Production.INFO: ==7701== Releasing lock... [2024-12-27 16:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:39:28] Production.INFO: 67 MB #Memory Used# [2024-12-27 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:40:05 [end_date_ymd] => 2024-12-27 16:40:05 [RateCDR] => 1 ) [2024-12-27 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:40:05' and `end` < '2024-12-27 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-27 16:40:29] Production.INFO: count ==5186 [2024-12-27 16:40:31] Production.ERROR: pbx CDR StartTime 2024-12-27 13:40:05 - End Time 2024-12-27 16:40:05 [2024-12-27 16:40:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115482', 'tblTempUsageDetail_20' ) start [2024-12-27 16:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115482', 'tblTempUsageDetail_20' ) end [2024-12-27 16:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115482', 'tblTempVendorCDR_20' ) start [2024-12-27 16:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115482', 'tblTempVendorCDR_20' ) end [2024-12-27 16:40:31] Production.INFO: ProcessCDR(1,14115482,1,1,2) [2024-12-27 16:40:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:40:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:40:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:40:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115482', 'tblTempUsageDetail_20' ) start [2024-12-27 16:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115482', 'tblTempUsageDetail_20' ) end [2024-12-27 16:40:36] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:40:36] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:40:36] Production.INFO: ==7791== Releasing lock... [2024-12-27 16:40:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:40:36] Production.INFO: 66.75 MB #Memory Used# [2024-12-27 16:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:41:04 [end_date_ymd] => 2024-12-27 16:41:04 [RateCDR] => 1 ) [2024-12-27 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-27 13:41:04' and `end` < '2024-12-27 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-27 16:41:21] Production.INFO: count ==5134 [2024-12-27 16:41:23] Production.ERROR: pbx CDR StartTime 2024-12-27 13:41:04 - End Time 2024-12-27 16:41:04 [2024-12-27 16:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115487', 'tblTempUsageDetail_20' ) start [2024-12-27 16:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115487', 'tblTempUsageDetail_20' ) end [2024-12-27 16:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115487', 'tblTempVendorCDR_20' ) start [2024-12-27 16:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115487', 'tblTempVendorCDR_20' ) end [2024-12-27 16:41:24] Production.INFO: ProcessCDR(1,14115487,1,1,2) [2024-12-27 16:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115487', 'tblTempUsageDetail_20' ) start [2024-12-27 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115487', 'tblTempUsageDetail_20' ) end [2024-12-27 16:41:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:41:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:41:28] Production.INFO: ==7882== Releasing lock... [2024-12-27 16:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:41:28] Production.INFO: 66.5 MB #Memory Used# [2024-12-27 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:42:05 [end_date_ymd] => 2024-12-27 16:42:05 [RateCDR] => 1 ) [2024-12-27 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:42:05' and `end` < '2024-12-27 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:42:18] Production.INFO: count ==5114 [2024-12-27 16:42:21] Production.ERROR: pbx CDR StartTime 2024-12-27 13:42:05 - End Time 2024-12-27 16:42:05 [2024-12-27 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115492', 'tblTempUsageDetail_20' ) start [2024-12-27 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115492', 'tblTempUsageDetail_20' ) end [2024-12-27 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115492', 'tblTempVendorCDR_20' ) start [2024-12-27 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115492', 'tblTempVendorCDR_20' ) end [2024-12-27 16:42:21] Production.INFO: ProcessCDR(1,14115492,1,1,2) [2024-12-27 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115492', 'tblTempUsageDetail_20' ) start [2024-12-27 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115492', 'tblTempUsageDetail_20' ) end [2024-12-27 16:42:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:42:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:42:25] Production.INFO: ==8008== Releasing lock... [2024-12-27 16:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:42:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:43:05 [end_date_ymd] => 2024-12-27 16:43:05 [RateCDR] => 1 ) [2024-12-27 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:43:05' and `end` < '2024-12-27 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:43:18] Production.INFO: count ==5116 [2024-12-27 16:43:20] Production.ERROR: pbx CDR StartTime 2024-12-27 13:43:05 - End Time 2024-12-27 16:43:05 [2024-12-27 16:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115497', 'tblTempUsageDetail_20' ) start [2024-12-27 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115497', 'tblTempUsageDetail_20' ) end [2024-12-27 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115497', 'tblTempVendorCDR_20' ) start [2024-12-27 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115497', 'tblTempVendorCDR_20' ) end [2024-12-27 16:43:21] Production.INFO: ProcessCDR(1,14115497,1,1,2) [2024-12-27 16:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115497', 'tblTempUsageDetail_20' ) start [2024-12-27 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115497', 'tblTempUsageDetail_20' ) end [2024-12-27 16:43:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:43:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:43:25] Production.INFO: ==8090== Releasing lock... [2024-12-27 16:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:43:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 16:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:44:04 [end_date_ymd] => 2024-12-27 16:44:04 [RateCDR] => 1 ) [2024-12-27 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-27 13:44:04' and `end` < '2024-12-27 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-27 16:44:18] Production.INFO: count ==5113 [2024-12-27 16:44:20] Production.ERROR: pbx CDR StartTime 2024-12-27 13:44:04 - End Time 2024-12-27 16:44:04 [2024-12-27 16:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115502', 'tblTempUsageDetail_20' ) start [2024-12-27 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115502', 'tblTempUsageDetail_20' ) end [2024-12-27 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115502', 'tblTempVendorCDR_20' ) start [2024-12-27 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115502', 'tblTempVendorCDR_20' ) end [2024-12-27 16:44:20] Production.INFO: ProcessCDR(1,14115502,1,1,2) [2024-12-27 16:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115502', 'tblTempUsageDetail_20' ) start [2024-12-27 16:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115502', 'tblTempUsageDetail_20' ) end [2024-12-27 16:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:44:24] Production.INFO: ==8178== Releasing lock... [2024-12-27 16:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:44:24] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:45:05 [end_date_ymd] => 2024-12-27 16:45:05 [RateCDR] => 1 ) [2024-12-27 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:45:05' and `end` < '2024-12-27 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:45:18] Production.INFO: count ==5112 [2024-12-27 16:45:21] Production.ERROR: pbx CDR StartTime 2024-12-27 13:45:05 - End Time 2024-12-27 16:45:05 [2024-12-27 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115507', 'tblTempUsageDetail_20' ) start [2024-12-27 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115507', 'tblTempUsageDetail_20' ) end [2024-12-27 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115507', 'tblTempVendorCDR_20' ) start [2024-12-27 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115507', 'tblTempVendorCDR_20' ) end [2024-12-27 16:45:21] Production.INFO: ProcessCDR(1,14115507,1,1,2) [2024-12-27 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115507', 'tblTempUsageDetail_20' ) start [2024-12-27 16:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115507', 'tblTempUsageDetail_20' ) end [2024-12-27 16:45:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:45:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:45:24] Production.INFO: ==8273== Releasing lock... [2024-12-27 16:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:45:24] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 16:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:46:04 [end_date_ymd] => 2024-12-27 16:46:04 [RateCDR] => 1 ) [2024-12-27 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-27 13:46:04' and `end` < '2024-12-27 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-27 16:46:18] Production.INFO: count ==5102 [2024-12-27 16:46:20] Production.ERROR: pbx CDR StartTime 2024-12-27 13:46:04 - End Time 2024-12-27 16:46:04 [2024-12-27 16:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115512', 'tblTempUsageDetail_20' ) start [2024-12-27 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115512', 'tblTempUsageDetail_20' ) end [2024-12-27 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115512', 'tblTempVendorCDR_20' ) start [2024-12-27 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115512', 'tblTempVendorCDR_20' ) end [2024-12-27 16:46:20] Production.INFO: ProcessCDR(1,14115512,1,1,2) [2024-12-27 16:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115512', 'tblTempUsageDetail_20' ) start [2024-12-27 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115512', 'tblTempUsageDetail_20' ) end [2024-12-27 16:46:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:46:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:46:25] Production.INFO: ==8355== Releasing lock... [2024-12-27 16:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:46:25] Production.INFO: 66.25 MB #Memory Used# [2024-12-27 16:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:47:04 [end_date_ymd] => 2024-12-27 16:47:04 [RateCDR] => 1 ) [2024-12-27 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-27 13:47:04' and `end` < '2024-12-27 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-27 16:47:23] Production.INFO: count ==5095 [2024-12-27 16:47:25] Production.ERROR: pbx CDR StartTime 2024-12-27 13:47:04 - End Time 2024-12-27 16:47:04 [2024-12-27 16:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115515', 'tblTempUsageDetail_20' ) start [2024-12-27 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115515', 'tblTempUsageDetail_20' ) end [2024-12-27 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115515', 'tblTempVendorCDR_20' ) start [2024-12-27 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115515', 'tblTempVendorCDR_20' ) end [2024-12-27 16:47:25] Production.INFO: ProcessCDR(1,14115515,1,1,2) [2024-12-27 16:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115515', 'tblTempUsageDetail_20' ) start [2024-12-27 16:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115515', 'tblTempUsageDetail_20' ) end [2024-12-27 16:47:30] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:47:30] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:47:30] Production.INFO: ==8445== Releasing lock... [2024-12-27 16:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:47:30] Production.INFO: 66 MB #Memory Used# [2024-12-27 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:48:06 [end_date_ymd] => 2024-12-27 16:48:06 [RateCDR] => 1 ) [2024-12-27 16:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:48:06' and `end` < '2024-12-27 16:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:48:19] Production.INFO: count ==5084 [2024-12-27 16:48:22] Production.ERROR: pbx CDR StartTime 2024-12-27 13:48:06 - End Time 2024-12-27 16:48:06 [2024-12-27 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115522', 'tblTempUsageDetail_20' ) start [2024-12-27 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115522', 'tblTempUsageDetail_20' ) end [2024-12-27 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115522', 'tblTempVendorCDR_20' ) start [2024-12-27 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115522', 'tblTempVendorCDR_20' ) end [2024-12-27 16:48:22] Production.INFO: ProcessCDR(1,14115522,1,1,2) [2024-12-27 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115522', 'tblTempUsageDetail_20' ) start [2024-12-27 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115522', 'tblTempUsageDetail_20' ) end [2024-12-27 16:48:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:48:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:48:26] Production.INFO: ==8533== Releasing lock... [2024-12-27 16:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:48:26] Production.INFO: 66 MB #Memory Used# [2024-12-27 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:49:05 [end_date_ymd] => 2024-12-27 16:49:05 [RateCDR] => 1 ) [2024-12-27 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:49:05' and `end` < '2024-12-27 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:49:19] Production.INFO: count ==5084 [2024-12-27 16:49:21] Production.ERROR: pbx CDR StartTime 2024-12-27 13:49:05 - End Time 2024-12-27 16:49:05 [2024-12-27 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115527', 'tblTempUsageDetail_20' ) start [2024-12-27 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115527', 'tblTempUsageDetail_20' ) end [2024-12-27 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115527', 'tblTempVendorCDR_20' ) start [2024-12-27 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115527', 'tblTempVendorCDR_20' ) end [2024-12-27 16:49:22] Production.INFO: ProcessCDR(1,14115527,1,1,2) [2024-12-27 16:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115527', 'tblTempUsageDetail_20' ) start [2024-12-27 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115527', 'tblTempUsageDetail_20' ) end [2024-12-27 16:49:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:49:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:49:26] Production.INFO: ==8617== Releasing lock... [2024-12-27 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:49:26] Production.INFO: 66 MB #Memory Used# [2024-12-27 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:50:05 [end_date_ymd] => 2024-12-27 16:50:05 [RateCDR] => 1 ) [2024-12-27 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-27 13:50:05' and `end` < '2024-12-27 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-27 16:50:18] Production.INFO: count ==5058 [2024-12-27 16:50:20] Production.ERROR: pbx CDR StartTime 2024-12-27 13:50:05 - End Time 2024-12-27 16:50:05 [2024-12-27 16:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115532', 'tblTempUsageDetail_20' ) start [2024-12-27 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115532', 'tblTempUsageDetail_20' ) end [2024-12-27 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115532', 'tblTempVendorCDR_20' ) start [2024-12-27 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115532', 'tblTempVendorCDR_20' ) end [2024-12-27 16:50:21] Production.INFO: ProcessCDR(1,14115532,1,1,2) [2024-12-27 16:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115532', 'tblTempUsageDetail_20' ) start [2024-12-27 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115532', 'tblTempUsageDetail_20' ) end [2024-12-27 16:50:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:50:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:50:25] Production.INFO: ==8713== Releasing lock... [2024-12-27 16:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:50:25] Production.INFO: 65.75 MB #Memory Used# [2024-12-27 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:51:05 [end_date_ymd] => 2024-12-27 16:51:05 [RateCDR] => 1 ) [2024-12-27 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:51:05' and `end` < '2024-12-27 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:51:19] Production.INFO: count ==5033 [2024-12-27 16:51:21] Production.ERROR: pbx CDR StartTime 2024-12-27 13:51:05 - End Time 2024-12-27 16:51:05 [2024-12-27 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115538', 'tblTempUsageDetail_20' ) start [2024-12-27 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115538', 'tblTempUsageDetail_20' ) end [2024-12-27 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115538', 'tblTempVendorCDR_20' ) start [2024-12-27 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115538', 'tblTempVendorCDR_20' ) end [2024-12-27 16:51:22] Production.INFO: ProcessCDR(1,14115538,1,1,2) [2024-12-27 16:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115538', 'tblTempUsageDetail_20' ) start [2024-12-27 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115538', 'tblTempUsageDetail_20' ) end [2024-12-27 16:51:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:51:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:51:26] Production.INFO: ==8794== Releasing lock... [2024-12-27 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:51:26] Production.INFO: 65.75 MB #Memory Used# [2024-12-27 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:52:05 [end_date_ymd] => 2024-12-27 16:52:05 [RateCDR] => 1 ) [2024-12-27 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:52:05' and `end` < '2024-12-27 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:52:24] Production.INFO: count ==5023 [2024-12-27 16:52:26] Production.ERROR: pbx CDR StartTime 2024-12-27 13:52:05 - End Time 2024-12-27 16:52:05 [2024-12-27 16:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115543', 'tblTempUsageDetail_20' ) start [2024-12-27 16:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115543', 'tblTempUsageDetail_20' ) end [2024-12-27 16:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115543', 'tblTempVendorCDR_20' ) start [2024-12-27 16:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115543', 'tblTempVendorCDR_20' ) end [2024-12-27 16:52:26] Production.INFO: ProcessCDR(1,14115543,1,1,2) [2024-12-27 16:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115543', 'tblTempUsageDetail_20' ) start [2024-12-27 16:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115543', 'tblTempUsageDetail_20' ) end [2024-12-27 16:52:31] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:52:31] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:52:31] Production.INFO: ==8878== Releasing lock... [2024-12-27 16:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:52:31] Production.INFO: 65.5 MB #Memory Used# [2024-12-27 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:53:05 [end_date_ymd] => 2024-12-27 16:53:05 [RateCDR] => 1 ) [2024-12-27 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:53:05' and `end` < '2024-12-27 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:53:27] Production.INFO: count ==5035 [2024-12-27 16:53:29] Production.ERROR: pbx CDR StartTime 2024-12-27 13:53:05 - End Time 2024-12-27 16:53:05 [2024-12-27 16:53:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115548', 'tblTempUsageDetail_20' ) start [2024-12-27 16:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115548', 'tblTempUsageDetail_20' ) end [2024-12-27 16:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115548', 'tblTempVendorCDR_20' ) start [2024-12-27 16:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115548', 'tblTempVendorCDR_20' ) end [2024-12-27 16:53:30] Production.INFO: ProcessCDR(1,14115548,1,1,2) [2024-12-27 16:53:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:53:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:53:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:53:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115548', 'tblTempUsageDetail_20' ) start [2024-12-27 16:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115548', 'tblTempUsageDetail_20' ) end [2024-12-27 16:53:33] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:53:33] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:53:33] Production.INFO: ==8963== Releasing lock... [2024-12-27 16:53:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:53:33] Production.INFO: 65.75 MB #Memory Used# [2024-12-27 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:54:05 [end_date_ymd] => 2024-12-27 16:54:05 [RateCDR] => 1 ) [2024-12-27 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:54:05' and `end` < '2024-12-27 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:54:21] Production.INFO: count ==5038 [2024-12-27 16:54:23] Production.ERROR: pbx CDR StartTime 2024-12-27 13:54:05 - End Time 2024-12-27 16:54:05 [2024-12-27 16:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115553', 'tblTempUsageDetail_20' ) start [2024-12-27 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115553', 'tblTempUsageDetail_20' ) end [2024-12-27 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115553', 'tblTempVendorCDR_20' ) start [2024-12-27 16:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115553', 'tblTempVendorCDR_20' ) end [2024-12-27 16:54:24] Production.INFO: ProcessCDR(1,14115553,1,1,2) [2024-12-27 16:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115553', 'tblTempUsageDetail_20' ) start [2024-12-27 16:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115553', 'tblTempUsageDetail_20' ) end [2024-12-27 16:54:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:54:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:54:28] Production.INFO: ==9044== Releasing lock... [2024-12-27 16:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:54:28] Production.INFO: 65.75 MB #Memory Used# [2024-12-27 16:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:55:04 [end_date_ymd] => 2024-12-27 16:55:04 [RateCDR] => 1 ) [2024-12-27 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-27 13:55:04' and `end` < '2024-12-27 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-27 16:55:18] Production.INFO: count ==4999 [2024-12-27 16:55:20] Production.ERROR: pbx CDR StartTime 2024-12-27 13:55:04 - End Time 2024-12-27 16:55:04 [2024-12-27 16:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115558', 'tblTempUsageDetail_20' ) start [2024-12-27 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115558', 'tblTempUsageDetail_20' ) end [2024-12-27 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115558', 'tblTempVendorCDR_20' ) start [2024-12-27 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115558', 'tblTempVendorCDR_20' ) end [2024-12-27 16:55:20] Production.INFO: ProcessCDR(1,14115558,1,1,2) [2024-12-27 16:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115558', 'tblTempUsageDetail_20' ) start [2024-12-27 16:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115558', 'tblTempUsageDetail_20' ) end [2024-12-27 16:55:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:55:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:55:25] Production.INFO: ==9129== Releasing lock... [2024-12-27 16:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:55:25] Production.INFO: 65.5 MB #Memory Used# [2024-12-27 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:56:05 [end_date_ymd] => 2024-12-27 16:56:05 [RateCDR] => 1 ) [2024-12-27 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:56:05' and `end` < '2024-12-27 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:56:19] Production.INFO: count ==4976 [2024-12-27 16:56:21] Production.ERROR: pbx CDR StartTime 2024-12-27 13:56:05 - End Time 2024-12-27 16:56:05 [2024-12-27 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115563', 'tblTempUsageDetail_20' ) start [2024-12-27 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115563', 'tblTempUsageDetail_20' ) end [2024-12-27 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115563', 'tblTempVendorCDR_20' ) start [2024-12-27 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115563', 'tblTempVendorCDR_20' ) end [2024-12-27 16:56:21] Production.INFO: ProcessCDR(1,14115563,1,1,2) [2024-12-27 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115563', 'tblTempUsageDetail_20' ) start [2024-12-27 16:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115563', 'tblTempUsageDetail_20' ) end [2024-12-27 16:56:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:56:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:56:26] Production.INFO: ==9210== Releasing lock... [2024-12-27 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:56:26] Production.INFO: 65.25 MB #Memory Used# [2024-12-27 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:57:05 [end_date_ymd] => 2024-12-27 16:57:05 [RateCDR] => 1 ) [2024-12-27 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:57:05' and `end` < '2024-12-27 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:57:18] Production.INFO: count ==4945 [2024-12-27 16:57:20] Production.ERROR: pbx CDR StartTime 2024-12-27 13:57:05 - End Time 2024-12-27 16:57:05 [2024-12-27 16:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115568', 'tblTempUsageDetail_20' ) start [2024-12-27 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115568', 'tblTempUsageDetail_20' ) end [2024-12-27 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115568', 'tblTempVendorCDR_20' ) start [2024-12-27 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115568', 'tblTempVendorCDR_20' ) end [2024-12-27 16:57:20] Production.INFO: ProcessCDR(1,14115568,1,1,2) [2024-12-27 16:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115568', 'tblTempUsageDetail_20' ) start [2024-12-27 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115568', 'tblTempUsageDetail_20' ) end [2024-12-27 16:57:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:57:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:57:25] Production.INFO: ==9298== Releasing lock... [2024-12-27 16:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:57:25] Production.INFO: 65 MB #Memory Used# [2024-12-27 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:58:05 [end_date_ymd] => 2024-12-27 16:58:05 [RateCDR] => 1 ) [2024-12-27 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 13:58:05' and `end` < '2024-12-27 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 16:58:21] Production.INFO: count ==4958 [2024-12-27 16:58:23] Production.ERROR: pbx CDR StartTime 2024-12-27 13:58:05 - End Time 2024-12-27 16:58:05 [2024-12-27 16:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115573', 'tblTempUsageDetail_20' ) start [2024-12-27 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115573', 'tblTempUsageDetail_20' ) end [2024-12-27 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115573', 'tblTempVendorCDR_20' ) start [2024-12-27 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115573', 'tblTempVendorCDR_20' ) end [2024-12-27 16:58:23] Production.INFO: ProcessCDR(1,14115573,1,1,2) [2024-12-27 16:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115573', 'tblTempUsageDetail_20' ) start [2024-12-27 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115573', 'tblTempUsageDetail_20' ) end [2024-12-27 16:58:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:58:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:58:28] Production.INFO: ==9421== Releasing lock... [2024-12-27 16:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:58:28] Production.INFO: 65 MB #Memory Used# [2024-12-27 16:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 13:59:04 [end_date_ymd] => 2024-12-27 16:59:04 [RateCDR] => 1 ) [2024-12-27 16: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-27 13:59:04' and `end` < '2024-12-27 16: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-27 16:59:27] Production.INFO: count ==4929 [2024-12-27 16:59:29] Production.ERROR: pbx CDR StartTime 2024-12-27 13:59:04 - End Time 2024-12-27 16:59:04 [2024-12-27 16:59:29] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 16:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115578', 'tblTempUsageDetail_20' ) start [2024-12-27 16:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115578', 'tblTempUsageDetail_20' ) end [2024-12-27 16:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115578', 'tblTempVendorCDR_20' ) start [2024-12-27 16:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115578', 'tblTempVendorCDR_20' ) end [2024-12-27 16:59:29] Production.INFO: ProcessCDR(1,14115578,1,1,2) [2024-12-27 16:59:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:59:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 16:59:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:59:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 16:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115578', 'tblTempUsageDetail_20' ) start [2024-12-27 16:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115578', 'tblTempUsageDetail_20' ) end [2024-12-27 16:59:33] Production.ERROR: pbx prc_insertCDR start [2024-12-27 16:59:34] Production.ERROR: pbx prc_insertCDR end [2024-12-27 16:59:34] Production.INFO: ==9498== Releasing lock... [2024-12-27 16:59:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 16:59:34] Production.INFO: 64.75 MB #Memory Used# [2024-12-27 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:00:05 [end_date_ymd] => 2024-12-27 17:00:05 [RateCDR] => 1 ) [2024-12-27 17: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-27 14:00:05' and `end` < '2024-12-27 17: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-27 17:00:19] Production.INFO: count ==4927 [2024-12-27 17:00:21] Production.ERROR: pbx CDR StartTime 2024-12-27 14:00:05 - End Time 2024-12-27 17:00:05 [2024-12-27 17:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115583', 'tblTempUsageDetail_20' ) start [2024-12-27 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115583', 'tblTempUsageDetail_20' ) end [2024-12-27 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115583', 'tblTempVendorCDR_20' ) start [2024-12-27 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115583', 'tblTempVendorCDR_20' ) end [2024-12-27 17:00:21] Production.INFO: ProcessCDR(1,14115583,1,1,2) [2024-12-27 17:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115583', 'tblTempUsageDetail_20' ) start [2024-12-27 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115583', 'tblTempUsageDetail_20' ) end [2024-12-27 17:00:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:00:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:00:26] Production.INFO: ==9586== Releasing lock... [2024-12-27 17:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:00:26] Production.INFO: 64.75 MB #Memory Used# [2024-12-27 17:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:01:04 [end_date_ymd] => 2024-12-27 17:01:04 [RateCDR] => 1 ) [2024-12-27 17: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-27 14:01:04' and `end` < '2024-12-27 17: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-27 17:01:19] Production.INFO: count ==4909 [2024-12-27 17:01:21] Production.ERROR: pbx CDR StartTime 2024-12-27 14:01:04 - End Time 2024-12-27 17:01:04 [2024-12-27 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115589', 'tblTempUsageDetail_20' ) start [2024-12-27 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115589', 'tblTempUsageDetail_20' ) end [2024-12-27 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115589', 'tblTempVendorCDR_20' ) start [2024-12-27 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115589', 'tblTempVendorCDR_20' ) end [2024-12-27 17:01:21] Production.INFO: ProcessCDR(1,14115589,1,1,2) [2024-12-27 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115589', 'tblTempUsageDetail_20' ) start [2024-12-27 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115589', 'tblTempUsageDetail_20' ) end [2024-12-27 17:01:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:01:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:01:26] Production.INFO: ==9681== Releasing lock... [2024-12-27 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:01:26] Production.INFO: 64.75 MB #Memory Used# [2024-12-27 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:02:05 [end_date_ymd] => 2024-12-27 17:02:05 [RateCDR] => 1 ) [2024-12-27 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:02:05' and `end` < '2024-12-27 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:02:19] Production.INFO: count ==4890 [2024-12-27 17:02:21] Production.ERROR: pbx CDR StartTime 2024-12-27 14:02:05 - End Time 2024-12-27 17:02:05 [2024-12-27 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115594', 'tblTempUsageDetail_20' ) start [2024-12-27 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115594', 'tblTempUsageDetail_20' ) end [2024-12-27 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115594', 'tblTempVendorCDR_20' ) start [2024-12-27 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115594', 'tblTempVendorCDR_20' ) end [2024-12-27 17:02:21] Production.INFO: ProcessCDR(1,14115594,1,1,2) [2024-12-27 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115594', 'tblTempUsageDetail_20' ) start [2024-12-27 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115594', 'tblTempUsageDetail_20' ) end [2024-12-27 17:02:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:02:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:02:26] Production.INFO: ==9764== Releasing lock... [2024-12-27 17:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:02:26] Production.INFO: 64.5 MB #Memory Used# [2024-12-27 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:03:05 [end_date_ymd] => 2024-12-27 17:03:05 [RateCDR] => 1 ) [2024-12-27 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-27 14:03:05' and `end` < '2024-12-27 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-27 17:03:19] Production.INFO: count ==4868 [2024-12-27 17:03:21] Production.ERROR: pbx CDR StartTime 2024-12-27 14:03:05 - End Time 2024-12-27 17:03:05 [2024-12-27 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115599', 'tblTempUsageDetail_20' ) start [2024-12-27 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115599', 'tblTempUsageDetail_20' ) end [2024-12-27 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115599', 'tblTempVendorCDR_20' ) start [2024-12-27 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115599', 'tblTempVendorCDR_20' ) end [2024-12-27 17:03:21] Production.INFO: ProcessCDR(1,14115599,1,1,2) [2024-12-27 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115599', 'tblTempUsageDetail_20' ) start [2024-12-27 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115599', 'tblTempUsageDetail_20' ) end [2024-12-27 17:03:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:03:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:03:26] Production.INFO: ==9842== Releasing lock... [2024-12-27 17:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:03:26] Production.INFO: 64.5 MB #Memory Used# [2024-12-27 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:04:05 [end_date_ymd] => 2024-12-27 17:04:05 [RateCDR] => 1 ) [2024-12-27 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:04:05' and `end` < '2024-12-27 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:04:18] Production.INFO: count ==4844 [2024-12-27 17:04:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:04:05 - End Time 2024-12-27 17:04:05 [2024-12-27 17:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115604', 'tblTempUsageDetail_20' ) start [2024-12-27 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115604', 'tblTempUsageDetail_20' ) end [2024-12-27 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115604', 'tblTempVendorCDR_20' ) start [2024-12-27 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115604', 'tblTempVendorCDR_20' ) end [2024-12-27 17:04:20] Production.INFO: ProcessCDR(1,14115604,1,1,2) [2024-12-27 17:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115604', 'tblTempUsageDetail_20' ) start [2024-12-27 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115604', 'tblTempUsageDetail_20' ) end [2024-12-27 17:04:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:04:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:04:25] Production.INFO: ==9931== Releasing lock... [2024-12-27 17:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:04:25] Production.INFO: 64.25 MB #Memory Used# [2024-12-27 17:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:05:04 [end_date_ymd] => 2024-12-27 17:05:04 [RateCDR] => 1 ) [2024-12-27 17:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:05:04' and `end` < '2024-12-27 17:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:05:18] Production.INFO: count ==4821 [2024-12-27 17:05:19] Production.ERROR: pbx CDR StartTime 2024-12-27 14:05:04 - End Time 2024-12-27 17:05:04 [2024-12-27 17:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115609', 'tblTempUsageDetail_20' ) start [2024-12-27 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115609', 'tblTempUsageDetail_20' ) end [2024-12-27 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115609', 'tblTempVendorCDR_20' ) start [2024-12-27 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115609', 'tblTempVendorCDR_20' ) end [2024-12-27 17:05:20] Production.INFO: ProcessCDR(1,14115609,1,1,2) [2024-12-27 17:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115609', 'tblTempUsageDetail_20' ) start [2024-12-27 17:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115609', 'tblTempUsageDetail_20' ) end [2024-12-27 17:05:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:05:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:05:24] Production.INFO: ==10012== Releasing lock... [2024-12-27 17:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:05:24] Production.INFO: 64 MB #Memory Used# [2024-12-27 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:06:06 [end_date_ymd] => 2024-12-27 17:06:06 [RateCDR] => 1 ) [2024-12-27 17: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-27 14:06:06' and `end` < '2024-12-27 17: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-27 17:06:20] Production.INFO: count ==4817 [2024-12-27 17:06:22] Production.ERROR: pbx CDR StartTime 2024-12-27 14:06:06 - End Time 2024-12-27 17:06:06 [2024-12-27 17:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115614', 'tblTempUsageDetail_20' ) start [2024-12-27 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115614', 'tblTempUsageDetail_20' ) end [2024-12-27 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115614', 'tblTempVendorCDR_20' ) start [2024-12-27 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115614', 'tblTempVendorCDR_20' ) end [2024-12-27 17:06:22] Production.INFO: ProcessCDR(1,14115614,1,1,2) [2024-12-27 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115614', 'tblTempUsageDetail_20' ) start [2024-12-27 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115614', 'tblTempUsageDetail_20' ) end [2024-12-27 17:06:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:06:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:06:26] Production.INFO: ==10095== Releasing lock... [2024-12-27 17:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:06:26] Production.INFO: 64 MB #Memory Used# [2024-12-27 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:07:05 [end_date_ymd] => 2024-12-27 17:07:05 [RateCDR] => 1 ) [2024-12-27 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-27 14:07:05' and `end` < '2024-12-27 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-27 17:07:18] Production.INFO: count ==4804 [2024-12-27 17:07:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:07:05 - End Time 2024-12-27 17:07:05 [2024-12-27 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115619', 'tblTempUsageDetail_20' ) start [2024-12-27 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115619', 'tblTempUsageDetail_20' ) end [2024-12-27 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115619', 'tblTempVendorCDR_20' ) start [2024-12-27 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115619', 'tblTempVendorCDR_20' ) end [2024-12-27 17:07:20] Production.INFO: ProcessCDR(1,14115619,1,1,2) [2024-12-27 17:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115619', 'tblTempUsageDetail_20' ) start [2024-12-27 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115619', 'tblTempUsageDetail_20' ) end [2024-12-27 17:07:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:07:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:07:25] Production.INFO: ==10175== Releasing lock... [2024-12-27 17:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:07:25] Production.INFO: 64 MB #Memory Used# [2024-12-27 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:08:05 [end_date_ymd] => 2024-12-27 17:08:05 [RateCDR] => 1 ) [2024-12-27 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:08:05' and `end` < '2024-12-27 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:08:18] Production.INFO: count ==4773 [2024-12-27 17:08:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:08:05 - End Time 2024-12-27 17:08:05 [2024-12-27 17:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115624', 'tblTempUsageDetail_20' ) start [2024-12-27 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115624', 'tblTempUsageDetail_20' ) end [2024-12-27 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115624', 'tblTempVendorCDR_20' ) start [2024-12-27 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115624', 'tblTempVendorCDR_20' ) end [2024-12-27 17:08:20] Production.INFO: ProcessCDR(1,14115624,1,1,2) [2024-12-27 17:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115624', 'tblTempUsageDetail_20' ) start [2024-12-27 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115624', 'tblTempUsageDetail_20' ) end [2024-12-27 17:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:08:23] Production.INFO: ==10251== Releasing lock... [2024-12-27 17:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:08:23] Production.INFO: 63.75 MB #Memory Used# [2024-12-27 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:09:05 [end_date_ymd] => 2024-12-27 17:09:05 [RateCDR] => 1 ) [2024-12-27 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:09:05' and `end` < '2024-12-27 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:09:19] Production.INFO: count ==4766 [2024-12-27 17:09:21] Production.ERROR: pbx CDR StartTime 2024-12-27 14:09:05 - End Time 2024-12-27 17:09:05 [2024-12-27 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115629', 'tblTempUsageDetail_20' ) start [2024-12-27 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115629', 'tblTempUsageDetail_20' ) end [2024-12-27 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115629', 'tblTempVendorCDR_20' ) start [2024-12-27 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115629', 'tblTempVendorCDR_20' ) end [2024-12-27 17:09:21] Production.INFO: ProcessCDR(1,14115629,1,1,2) [2024-12-27 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115629', 'tblTempUsageDetail_20' ) start [2024-12-27 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115629', 'tblTempUsageDetail_20' ) end [2024-12-27 17:09:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:09:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:09:26] Production.INFO: ==10334== Releasing lock... [2024-12-27 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:09:26] Production.INFO: 63.75 MB #Memory Used# [2024-12-27 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:10:05 [end_date_ymd] => 2024-12-27 17:10:05 [RateCDR] => 1 ) [2024-12-27 17:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:10:05' and `end` < '2024-12-27 17:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:10:21] Production.INFO: count ==4761 [2024-12-27 17:10:22] Production.ERROR: pbx CDR StartTime 2024-12-27 14:10:05 - End Time 2024-12-27 17:10:05 [2024-12-27 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115635', 'tblTempUsageDetail_20' ) start [2024-12-27 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115635', 'tblTempUsageDetail_20' ) end [2024-12-27 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115635', 'tblTempVendorCDR_20' ) start [2024-12-27 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115635', 'tblTempVendorCDR_20' ) end [2024-12-27 17:10:23] Production.INFO: ProcessCDR(1,14115635,1,1,2) [2024-12-27 17:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115635', 'tblTempUsageDetail_20' ) start [2024-12-27 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115635', 'tblTempUsageDetail_20' ) end [2024-12-27 17:10:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:10:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:10:27] Production.INFO: ==10404== Releasing lock... [2024-12-27 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:10:27] Production.INFO: 63.5 MB #Memory Used# [2024-12-27 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:11:05 [end_date_ymd] => 2024-12-27 17:11:05 [RateCDR] => 1 ) [2024-12-27 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:11:05' and `end` < '2024-12-27 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:11:18] Production.INFO: count ==4769 [2024-12-27 17:11:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:11:05 - End Time 2024-12-27 17:11:05 [2024-12-27 17:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115640', 'tblTempUsageDetail_20' ) start [2024-12-27 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115640', 'tblTempUsageDetail_20' ) end [2024-12-27 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115640', 'tblTempVendorCDR_20' ) start [2024-12-27 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115640', 'tblTempVendorCDR_20' ) end [2024-12-27 17:11:20] Production.INFO: ProcessCDR(1,14115640,1,1,2) [2024-12-27 17:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115640', 'tblTempUsageDetail_20' ) start [2024-12-27 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115640', 'tblTempUsageDetail_20' ) end [2024-12-27 17:11:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:11:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:11:25] Production.INFO: ==10489== Releasing lock... [2024-12-27 17:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:11:25] Production.INFO: 63.75 MB #Memory Used# [2024-12-27 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:12:05 [end_date_ymd] => 2024-12-27 17:12:05 [RateCDR] => 1 ) [2024-12-27 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:12:05' and `end` < '2024-12-27 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:12:22] Production.INFO: count ==4762 [2024-12-27 17:12:24] Production.ERROR: pbx CDR StartTime 2024-12-27 14:12:05 - End Time 2024-12-27 17:12:05 [2024-12-27 17:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115645', 'tblTempUsageDetail_20' ) start [2024-12-27 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115645', 'tblTempUsageDetail_20' ) end [2024-12-27 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115645', 'tblTempVendorCDR_20' ) start [2024-12-27 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115645', 'tblTempVendorCDR_20' ) end [2024-12-27 17:12:24] Production.INFO: ProcessCDR(1,14115645,1,1,2) [2024-12-27 17:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115645', 'tblTempUsageDetail_20' ) start [2024-12-27 17:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115645', 'tblTempUsageDetail_20' ) end [2024-12-27 17:12:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:12:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:12:29] Production.INFO: ==10562== Releasing lock... [2024-12-27 17:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:12:29] Production.INFO: 63.5 MB #Memory Used# [2024-12-27 17:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:13:04 [end_date_ymd] => 2024-12-27 17:13:04 [RateCDR] => 1 ) [2024-12-27 17: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-27 14:13:04' and `end` < '2024-12-27 17: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-27 17:13:18] Production.INFO: count ==4747 [2024-12-27 17:13:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:13:04 - End Time 2024-12-27 17:13:04 [2024-12-27 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115650', 'tblTempUsageDetail_20' ) start [2024-12-27 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115650', 'tblTempUsageDetail_20' ) end [2024-12-27 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115650', 'tblTempVendorCDR_20' ) start [2024-12-27 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115650', 'tblTempVendorCDR_20' ) end [2024-12-27 17:13:20] Production.INFO: ProcessCDR(1,14115650,1,1,2) [2024-12-27 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115650', 'tblTempUsageDetail_20' ) start [2024-12-27 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115650', 'tblTempUsageDetail_20' ) end [2024-12-27 17:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:13:24] Production.INFO: ==10636== Releasing lock... [2024-12-27 17:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:13:24] Production.INFO: 63.5 MB #Memory Used# [2024-12-27 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:14:05 [end_date_ymd] => 2024-12-27 17:14:05 [RateCDR] => 1 ) [2024-12-27 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:14:05' and `end` < '2024-12-27 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:14:18] Production.INFO: count ==4733 [2024-12-27 17:14:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:14:05 - End Time 2024-12-27 17:14:05 [2024-12-27 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115655', 'tblTempUsageDetail_20' ) start [2024-12-27 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115655', 'tblTempUsageDetail_20' ) end [2024-12-27 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115655', 'tblTempVendorCDR_20' ) start [2024-12-27 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115655', 'tblTempVendorCDR_20' ) end [2024-12-27 17:14:20] Production.INFO: ProcessCDR(1,14115655,1,1,2) [2024-12-27 17:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115655', 'tblTempUsageDetail_20' ) start [2024-12-27 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115655', 'tblTempUsageDetail_20' ) end [2024-12-27 17:14:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:14:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:14:25] Production.INFO: ==10747== Releasing lock... [2024-12-27 17:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:14:25] Production.INFO: 63.5 MB #Memory Used# [2024-12-27 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:15:05 [end_date_ymd] => 2024-12-27 17:15:05 [RateCDR] => 1 ) [2024-12-27 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:15:05' and `end` < '2024-12-27 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:15:18] Production.INFO: count ==4702 [2024-12-27 17:15:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:15:05 - End Time 2024-12-27 17:15:05 [2024-12-27 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115660', 'tblTempUsageDetail_20' ) start [2024-12-27 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115660', 'tblTempUsageDetail_20' ) end [2024-12-27 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115660', 'tblTempVendorCDR_20' ) start [2024-12-27 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115660', 'tblTempVendorCDR_20' ) end [2024-12-27 17:15:21] Production.INFO: ProcessCDR(1,14115660,1,1,2) [2024-12-27 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115660', 'tblTempUsageDetail_20' ) start [2024-12-27 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115660', 'tblTempUsageDetail_20' ) end [2024-12-27 17:15:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:15:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:15:25] Production.INFO: ==10816== Releasing lock... [2024-12-27 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:15:25] Production.INFO: 63.25 MB #Memory Used# [2024-12-27 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:16:05 [end_date_ymd] => 2024-12-27 17:16:05 [RateCDR] => 1 ) [2024-12-27 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:16:05' and `end` < '2024-12-27 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:16:20] Production.INFO: count ==4704 [2024-12-27 17:16:21] Production.ERROR: pbx CDR StartTime 2024-12-27 14:16:05 - End Time 2024-12-27 17:16:05 [2024-12-27 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115665', 'tblTempUsageDetail_20' ) start [2024-12-27 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115665', 'tblTempUsageDetail_20' ) end [2024-12-27 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115665', 'tblTempVendorCDR_20' ) start [2024-12-27 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115665', 'tblTempVendorCDR_20' ) end [2024-12-27 17:16:22] Production.INFO: ProcessCDR(1,14115665,1,1,2) [2024-12-27 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115665', 'tblTempUsageDetail_20' ) start [2024-12-27 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115665', 'tblTempUsageDetail_20' ) end [2024-12-27 17:16:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:16:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:16:26] Production.INFO: ==10887== Releasing lock... [2024-12-27 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:16:26] Production.INFO: 63.25 MB #Memory Used# [2024-12-27 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:17:05 [end_date_ymd] => 2024-12-27 17:17:05 [RateCDR] => 1 ) [2024-12-27 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:17:05' and `end` < '2024-12-27 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:17:18] Production.INFO: count ==4688 [2024-12-27 17:17:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:17:05 - End Time 2024-12-27 17:17:05 [2024-12-27 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115670', 'tblTempUsageDetail_20' ) start [2024-12-27 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115670', 'tblTempUsageDetail_20' ) end [2024-12-27 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115670', 'tblTempVendorCDR_20' ) start [2024-12-27 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115670', 'tblTempVendorCDR_20' ) end [2024-12-27 17:17:20] Production.INFO: ProcessCDR(1,14115670,1,1,2) [2024-12-27 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115670', 'tblTempUsageDetail_20' ) start [2024-12-27 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115670', 'tblTempUsageDetail_20' ) end [2024-12-27 17:17:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:17:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:17:25] Production.INFO: ==10959== Releasing lock... [2024-12-27 17:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:17:25] Production.INFO: 63 MB #Memory Used# [2024-12-27 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:18:05 [end_date_ymd] => 2024-12-27 17:18:05 [RateCDR] => 1 ) [2024-12-27 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:18:05' and `end` < '2024-12-27 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:18:20] Production.INFO: count ==4667 [2024-12-27 17:18:21] Production.ERROR: pbx CDR StartTime 2024-12-27 14:18:05 - End Time 2024-12-27 17:18:05 [2024-12-27 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115675', 'tblTempUsageDetail_20' ) start [2024-12-27 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115675', 'tblTempUsageDetail_20' ) end [2024-12-27 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115675', 'tblTempVendorCDR_20' ) start [2024-12-27 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115675', 'tblTempVendorCDR_20' ) end [2024-12-27 17:18:22] Production.INFO: ProcessCDR(1,14115675,1,1,2) [2024-12-27 17:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115675', 'tblTempUsageDetail_20' ) start [2024-12-27 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115675', 'tblTempUsageDetail_20' ) end [2024-12-27 17:18:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:18:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:18:26] Production.INFO: ==11034== Releasing lock... [2024-12-27 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:18:26] Production.INFO: 63 MB #Memory Used# [2024-12-27 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:19:05 [end_date_ymd] => 2024-12-27 17:19:05 [RateCDR] => 1 ) [2024-12-27 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:19:05' and `end` < '2024-12-27 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:19:21] Production.INFO: count ==4662 [2024-12-27 17:19:23] Production.ERROR: pbx CDR StartTime 2024-12-27 14:19:05 - End Time 2024-12-27 17:19:05 [2024-12-27 17:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115680', 'tblTempUsageDetail_20' ) start [2024-12-27 17:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115680', 'tblTempUsageDetail_20' ) end [2024-12-27 17:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115680', 'tblTempVendorCDR_20' ) start [2024-12-27 17:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115680', 'tblTempVendorCDR_20' ) end [2024-12-27 17:19:23] Production.INFO: ProcessCDR(1,14115680,1,1,2) [2024-12-27 17:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115680', 'tblTempUsageDetail_20' ) start [2024-12-27 17:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115680', 'tblTempUsageDetail_20' ) end [2024-12-27 17:19:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:19:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:19:28] Production.INFO: ==11105== Releasing lock... [2024-12-27 17:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:19:28] Production.INFO: 62.75 MB #Memory Used# [2024-12-27 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:20:06 [end_date_ymd] => 2024-12-27 17:20:06 [RateCDR] => 1 ) [2024-12-27 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:20:06' and `end` < '2024-12-27 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:20:21] Production.INFO: count ==4631 [2024-12-27 17:20:23] Production.ERROR: pbx CDR StartTime 2024-12-27 14:20:06 - End Time 2024-12-27 17:20:06 [2024-12-27 17:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115686', 'tblTempUsageDetail_20' ) start [2024-12-27 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115686', 'tblTempUsageDetail_20' ) end [2024-12-27 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115686', 'tblTempVendorCDR_20' ) start [2024-12-27 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115686', 'tblTempVendorCDR_20' ) end [2024-12-27 17:20:23] Production.INFO: ProcessCDR(1,14115686,1,1,2) [2024-12-27 17:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115686', 'tblTempUsageDetail_20' ) start [2024-12-27 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115686', 'tblTempUsageDetail_20' ) end [2024-12-27 17:20:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:20:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:20:26] Production.INFO: ==11177== Releasing lock... [2024-12-27 17:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:20:26] Production.INFO: 62.75 MB #Memory Used# [2024-12-27 17:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:21:04 [end_date_ymd] => 2024-12-27 17:21:04 [RateCDR] => 1 ) [2024-12-27 17:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:21:04' and `end` < '2024-12-27 17:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:21:19] Production.INFO: count ==4643 [2024-12-27 17:21:21] Production.ERROR: pbx CDR StartTime 2024-12-27 14:21:04 - End Time 2024-12-27 17:21:04 [2024-12-27 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115691', 'tblTempUsageDetail_20' ) start [2024-12-27 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115691', 'tblTempUsageDetail_20' ) end [2024-12-27 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115691', 'tblTempVendorCDR_20' ) start [2024-12-27 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115691', 'tblTempVendorCDR_20' ) end [2024-12-27 17:21:21] Production.INFO: ProcessCDR(1,14115691,1,1,2) [2024-12-27 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115691', 'tblTempUsageDetail_20' ) start [2024-12-27 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115691', 'tblTempUsageDetail_20' ) end [2024-12-27 17:21:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:21:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:21:26] Production.INFO: ==11250== Releasing lock... [2024-12-27 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:21:26] Production.INFO: 62.75 MB #Memory Used# [2024-12-27 17:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:22:04 [end_date_ymd] => 2024-12-27 17:22:04 [RateCDR] => 1 ) [2024-12-27 17: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-27 14:22:04' and `end` < '2024-12-27 17: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-27 17:22:19] Production.INFO: count ==4634 [2024-12-27 17:22:21] Production.ERROR: pbx CDR StartTime 2024-12-27 14:22:04 - End Time 2024-12-27 17:22:04 [2024-12-27 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115696', 'tblTempUsageDetail_20' ) start [2024-12-27 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115696', 'tblTempUsageDetail_20' ) end [2024-12-27 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115696', 'tblTempVendorCDR_20' ) start [2024-12-27 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115696', 'tblTempVendorCDR_20' ) end [2024-12-27 17:22:21] Production.INFO: ProcessCDR(1,14115696,1,1,2) [2024-12-27 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115696', 'tblTempUsageDetail_20' ) start [2024-12-27 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115696', 'tblTempUsageDetail_20' ) end [2024-12-27 17:22:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:22:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:22:25] Production.INFO: ==11321== Releasing lock... [2024-12-27 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:22:25] Production.INFO: 62.75 MB #Memory Used# [2024-12-27 17:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:23:04 [end_date_ymd] => 2024-12-27 17:23:04 [RateCDR] => 1 ) [2024-12-27 17:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:23:04' and `end` < '2024-12-27 17:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:23:18] Production.INFO: count ==4628 [2024-12-27 17:23:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:23:04 - End Time 2024-12-27 17:23:04 [2024-12-27 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115701', 'tblTempUsageDetail_20' ) start [2024-12-27 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115701', 'tblTempUsageDetail_20' ) end [2024-12-27 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115701', 'tblTempVendorCDR_20' ) start [2024-12-27 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115701', 'tblTempVendorCDR_20' ) end [2024-12-27 17:23:20] Production.INFO: ProcessCDR(1,14115701,1,1,2) [2024-12-27 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115701', 'tblTempUsageDetail_20' ) start [2024-12-27 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115701', 'tblTempUsageDetail_20' ) end [2024-12-27 17:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:23:24] Production.INFO: ==11393== Releasing lock... [2024-12-27 17:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:23:24] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:24:05 [end_date_ymd] => 2024-12-27 17:24:05 [RateCDR] => 1 ) [2024-12-27 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:24:05' and `end` < '2024-12-27 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:24:18] Production.INFO: count ==4601 [2024-12-27 17:24:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:24:05 - End Time 2024-12-27 17:24:05 [2024-12-27 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115706', 'tblTempUsageDetail_20' ) start [2024-12-27 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115706', 'tblTempUsageDetail_20' ) end [2024-12-27 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115706', 'tblTempVendorCDR_20' ) start [2024-12-27 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115706', 'tblTempVendorCDR_20' ) end [2024-12-27 17:24:20] Production.INFO: ProcessCDR(1,14115706,1,1,2) [2024-12-27 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115706', 'tblTempUsageDetail_20' ) start [2024-12-27 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115706', 'tblTempUsageDetail_20' ) end [2024-12-27 17:24:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:24:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:24:24] Production.INFO: ==11465== Releasing lock... [2024-12-27 17:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:24:24] Production.INFO: 62.5 MB #Memory Used# [2024-12-27 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:25:05 [end_date_ymd] => 2024-12-27 17:25:05 [RateCDR] => 1 ) [2024-12-27 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-27 14:25:05' and `end` < '2024-12-27 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-27 17:25:19] Production.INFO: count ==4596 [2024-12-27 17:25:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:25:05 - End Time 2024-12-27 17:25:05 [2024-12-27 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115711', 'tblTempUsageDetail_20' ) start [2024-12-27 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115711', 'tblTempUsageDetail_20' ) end [2024-12-27 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115711', 'tblTempVendorCDR_20' ) start [2024-12-27 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115711', 'tblTempVendorCDR_20' ) end [2024-12-27 17:25:20] Production.INFO: ProcessCDR(1,14115711,1,1,2) [2024-12-27 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115711', 'tblTempUsageDetail_20' ) start [2024-12-27 17:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115711', 'tblTempUsageDetail_20' ) end [2024-12-27 17:25:33] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:25:35] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:25:39] Production.INFO: ==11541== Releasing lock... [2024-12-27 17:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:25:39] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 17:26:18] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:26:18 [end_date_ymd] => 2024-12-27 17:26:18 [RateCDR] => 1 ) [2024-12-27 17:26:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:26:18' and `end` < '2024-12-27 17:26:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:26:31] Production.INFO: count ==4583 [2024-12-27 17:27:22] Production.ERROR: pbx CDR StartTime 2024-12-27 14:26:18 - End Time 2024-12-27 17:26:18 [2024-12-27 17:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115716', 'tblTempUsageDetail_20' ) start [2024-12-27 17:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115716', 'tblTempUsageDetail_20' ) end [2024-12-27 17:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115716', 'tblTempVendorCDR_20' ) start [2024-12-27 17:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115716', 'tblTempVendorCDR_20' ) end [2024-12-27 17:27:28] Production.INFO: ProcessCDR(1,14115716,1,1,2) [2024-12-27 17:27:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:27:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:27:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:28:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:28:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115716', 'tblTempUsageDetail_20' ) start [2024-12-27 17:28:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115716', 'tblTempUsageDetail_20' ) end [2024-12-27 17:28:12] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:28:12] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:28:13] Production.INFO: ==11612== Releasing lock... [2024-12-27 17:28:13] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:28:13] Production.INFO: 62.25 MB #Memory Used# [2024-12-27 17:29:17] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:29:17 [end_date_ymd] => 2024-12-27 17:29:17 [RateCDR] => 1 ) [2024-12-27 17:29:17] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:29:17' and `end` < '2024-12-27 17:29:17' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:29:30] Production.INFO: count ==4522 [2024-12-27 17:30:13] Production.ERROR: pbx CDR StartTime 2024-12-27 14:29:17 - End Time 2024-12-27 17:29:17 [2024-12-27 17:30:13] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:30:13] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115727', 'tblTempUsageDetail_20' ) start [2024-12-27 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115727', 'tblTempUsageDetail_20' ) end [2024-12-27 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115727', 'tblTempVendorCDR_20' ) start [2024-12-27 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115727', 'tblTempVendorCDR_20' ) end [2024-12-27 17:30:19] Production.INFO: ProcessCDR(1,14115727,1,1,2) [2024-12-27 17:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:30:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:30:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115727', 'tblTempUsageDetail_20' ) start [2024-12-27 17:30:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115727', 'tblTempUsageDetail_20' ) end [2024-12-27 17:30:48] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:30:48] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:30:53] Production.INFO: ==11859== Releasing lock... [2024-12-27 17:30:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:30:53] Production.INFO: 61.75 MB #Memory Used# [2024-12-27 17:31:12] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:31:12 [end_date_ymd] => 2024-12-27 17:31:12 [RateCDR] => 1 ) [2024-12-27 17:31:12] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:31:12' and `end` < '2024-12-27 17:31:12' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:31:25] Production.INFO: count ==4503 [2024-12-27 17:32:33] Production.ERROR: pbx CDR StartTime 2024-12-27 14:31:12 - End Time 2024-12-27 17:31:12 [2024-12-27 17:32:33] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:32:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115736', 'tblTempUsageDetail_20' ) start [2024-12-27 17:32:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115736', 'tblTempUsageDetail_20' ) end [2024-12-27 17:32:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115736', 'tblTempVendorCDR_20' ) start [2024-12-27 17:32:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115736', 'tblTempVendorCDR_20' ) end [2024-12-27 17:32:47] Production.INFO: ProcessCDR(1,14115736,1,1,2) [2024-12-27 17:32:47] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:32:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:32:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:33:05] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:33:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115736', 'tblTempUsageDetail_20' ) start [2024-12-27 17:33:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115736', 'tblTempUsageDetail_20' ) end [2024-12-27 17:33:05] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:33:05] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:33:05] Production.INFO: ==12007== Releasing lock... [2024-12-27 17:33:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:33:05] Production.INFO: 61.75 MB #Memory Used# [2024-12-27 17:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:34:04 [end_date_ymd] => 2024-12-27 17:34:04 [RateCDR] => 1 ) [2024-12-27 17: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-27 14:34:04' and `end` < '2024-12-27 17: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-27 17:34:18] Production.INFO: count ==4436 [2024-12-27 17:34:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:34:04 - End Time 2024-12-27 17:34:04 [2024-12-27 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115748', 'tblTempUsageDetail_20' ) start [2024-12-27 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115748', 'tblTempUsageDetail_20' ) end [2024-12-27 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115748', 'tblTempVendorCDR_20' ) start [2024-12-27 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115748', 'tblTempVendorCDR_20' ) end [2024-12-27 17:34:20] Production.INFO: ProcessCDR(1,14115748,1,1,2) [2024-12-27 17:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115748', 'tblTempUsageDetail_20' ) start [2024-12-27 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115748', 'tblTempUsageDetail_20' ) end [2024-12-27 17:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:34:23] Production.INFO: ==12245== Releasing lock... [2024-12-27 17:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:34:23] Production.INFO: 61.25 MB #Memory Used# [2024-12-27 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:35:05 [end_date_ymd] => 2024-12-27 17:35:05 [RateCDR] => 1 ) [2024-12-27 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:35:05' and `end` < '2024-12-27 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:35:18] Production.INFO: count ==4416 [2024-12-27 17:35:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:35:05 - End Time 2024-12-27 17:35:05 [2024-12-27 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115753', 'tblTempUsageDetail_20' ) start [2024-12-27 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115753', 'tblTempUsageDetail_20' ) end [2024-12-27 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115753', 'tblTempVendorCDR_20' ) start [2024-12-27 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115753', 'tblTempVendorCDR_20' ) end [2024-12-27 17:35:20] Production.INFO: ProcessCDR(1,14115753,1,1,2) [2024-12-27 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115753', 'tblTempUsageDetail_20' ) start [2024-12-27 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115753', 'tblTempUsageDetail_20' ) end [2024-12-27 17:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:35:23] Production.INFO: ==12329== Releasing lock... [2024-12-27 17:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:35:23] Production.INFO: 61 MB #Memory Used# [2024-12-27 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:36:05 [end_date_ymd] => 2024-12-27 17:36:05 [RateCDR] => 1 ) [2024-12-27 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:36:05' and `end` < '2024-12-27 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:36:18] Production.INFO: count ==4404 [2024-12-27 17:36:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:36:05 - End Time 2024-12-27 17:36:05 [2024-12-27 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115758', 'tblTempUsageDetail_20' ) start [2024-12-27 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115758', 'tblTempUsageDetail_20' ) end [2024-12-27 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115758', 'tblTempVendorCDR_20' ) start [2024-12-27 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115758', 'tblTempVendorCDR_20' ) end [2024-12-27 17:36:20] Production.INFO: ProcessCDR(1,14115758,1,1,2) [2024-12-27 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115758', 'tblTempUsageDetail_20' ) start [2024-12-27 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115758', 'tblTempUsageDetail_20' ) end [2024-12-27 17:36:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:36:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:36:25] Production.INFO: ==12411== Releasing lock... [2024-12-27 17:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:36:25] Production.INFO: 61 MB #Memory Used# [2024-12-27 17:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:37:04 [end_date_ymd] => 2024-12-27 17:37:04 [RateCDR] => 1 ) [2024-12-27 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-27 14:37:04' and `end` < '2024-12-27 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-27 17:37:19] Production.INFO: count ==4370 [2024-12-27 17:37:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:37:04 - End Time 2024-12-27 17:37:04 [2024-12-27 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115763', 'tblTempUsageDetail_20' ) start [2024-12-27 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115763', 'tblTempUsageDetail_20' ) end [2024-12-27 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115763', 'tblTempVendorCDR_20' ) start [2024-12-27 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115763', 'tblTempVendorCDR_20' ) end [2024-12-27 17:37:20] Production.INFO: ProcessCDR(1,14115763,1,1,2) [2024-12-27 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115763', 'tblTempUsageDetail_20' ) start [2024-12-27 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115763', 'tblTempUsageDetail_20' ) end [2024-12-27 17:37:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:37:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:37:25] Production.INFO: ==12488== Releasing lock... [2024-12-27 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:37:25] Production.INFO: 60.75 MB #Memory Used# [2024-12-27 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:38:05 [end_date_ymd] => 2024-12-27 17:38:05 [RateCDR] => 1 ) [2024-12-27 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:38:05' and `end` < '2024-12-27 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:38:19] Production.INFO: count ==4362 [2024-12-27 17:38:21] Production.ERROR: pbx CDR StartTime 2024-12-27 14:38:05 - End Time 2024-12-27 17:38:05 [2024-12-27 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115768', 'tblTempUsageDetail_20' ) start [2024-12-27 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115768', 'tblTempUsageDetail_20' ) end [2024-12-27 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115768', 'tblTempVendorCDR_20' ) start [2024-12-27 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115768', 'tblTempVendorCDR_20' ) end [2024-12-27 17:38:21] Production.INFO: ProcessCDR(1,14115768,1,1,2) [2024-12-27 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115768', 'tblTempUsageDetail_20' ) start [2024-12-27 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115768', 'tblTempUsageDetail_20' ) end [2024-12-27 17:38:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:38:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:38:26] Production.INFO: ==12569== Releasing lock... [2024-12-27 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:38:26] Production.INFO: 60.5 MB #Memory Used# [2024-12-27 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:39:05 [end_date_ymd] => 2024-12-27 17:39:05 [RateCDR] => 1 ) [2024-12-27 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-27 14:39:05' and `end` < '2024-12-27 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:39:18] Production.INFO: count ==4361 [2024-12-27 17:39:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:39:05 - End Time 2024-12-27 17:39:05 [2024-12-27 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115773', 'tblTempUsageDetail_20' ) start [2024-12-27 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115773', 'tblTempUsageDetail_20' ) end [2024-12-27 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115773', 'tblTempVendorCDR_20' ) start [2024-12-27 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115773', 'tblTempVendorCDR_20' ) end [2024-12-27 17:39:20] Production.INFO: ProcessCDR(1,14115773,1,1,2) [2024-12-27 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115773', 'tblTempUsageDetail_20' ) start [2024-12-27 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115773', 'tblTempUsageDetail_20' ) end [2024-12-27 17:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:39:23] Production.INFO: ==12649== Releasing lock... [2024-12-27 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:39:23] Production.INFO: 60.5 MB #Memory Used# [2024-12-27 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:40:06 [end_date_ymd] => 2024-12-27 17:40:06 [RateCDR] => 1 ) [2024-12-27 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:40:06' and `end` < '2024-12-27 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:40:20] Production.INFO: count ==4357 [2024-12-27 17:40:21] Production.ERROR: pbx CDR StartTime 2024-12-27 14:40:06 - End Time 2024-12-27 17:40:06 [2024-12-27 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115778', 'tblTempUsageDetail_20' ) start [2024-12-27 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115778', 'tblTempUsageDetail_20' ) end [2024-12-27 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115778', 'tblTempVendorCDR_20' ) start [2024-12-27 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115778', 'tblTempVendorCDR_20' ) end [2024-12-27 17:40:22] Production.INFO: ProcessCDR(1,14115778,1,1,2) [2024-12-27 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115778', 'tblTempUsageDetail_20' ) start [2024-12-27 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115778', 'tblTempUsageDetail_20' ) end [2024-12-27 17:40:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:40:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:40:26] Production.INFO: ==12734== Releasing lock... [2024-12-27 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:40:26] Production.INFO: 60.5 MB #Memory Used# [2024-12-27 17:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:41:04 [end_date_ymd] => 2024-12-27 17:41:04 [RateCDR] => 1 ) [2024-12-27 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-27 14:41:04' and `end` < '2024-12-27 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-27 17:41:17] Production.INFO: count ==4399 [2024-12-27 17:41:19] Production.ERROR: pbx CDR StartTime 2024-12-27 14:41:04 - End Time 2024-12-27 17:41:04 [2024-12-27 17:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115784', 'tblTempUsageDetail_20' ) start [2024-12-27 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115784', 'tblTempUsageDetail_20' ) end [2024-12-27 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115784', 'tblTempVendorCDR_20' ) start [2024-12-27 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115784', 'tblTempVendorCDR_20' ) end [2024-12-27 17:41:19] Production.INFO: ProcessCDR(1,14115784,1,1,2) [2024-12-27 17:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115784', 'tblTempUsageDetail_20' ) start [2024-12-27 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115784', 'tblTempUsageDetail_20' ) end [2024-12-27 17:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:41:22] Production.INFO: ==12815== Releasing lock... [2024-12-27 17:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:41:22] Production.INFO: 61 MB #Memory Used# [2024-12-27 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:42:05 [end_date_ymd] => 2024-12-27 17:42:05 [RateCDR] => 1 ) [2024-12-27 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:42:05' and `end` < '2024-12-27 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:42:18] Production.INFO: count ==4382 [2024-12-27 17:42:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:42:05 - End Time 2024-12-27 17:42:05 [2024-12-27 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115789', 'tblTempUsageDetail_20' ) start [2024-12-27 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115789', 'tblTempUsageDetail_20' ) end [2024-12-27 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115789', 'tblTempVendorCDR_20' ) start [2024-12-27 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115789', 'tblTempVendorCDR_20' ) end [2024-12-27 17:42:20] Production.INFO: ProcessCDR(1,14115789,1,1,2) [2024-12-27 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115789', 'tblTempUsageDetail_20' ) start [2024-12-27 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115789', 'tblTempUsageDetail_20' ) end [2024-12-27 17:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:42:23] Production.INFO: ==12900== Releasing lock... [2024-12-27 17:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:42:23] Production.INFO: 60.75 MB #Memory Used# [2024-12-27 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:43:05 [end_date_ymd] => 2024-12-27 17:43:05 [RateCDR] => 1 ) [2024-12-27 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:43:05' and `end` < '2024-12-27 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:43:24] Production.INFO: count ==4371 [2024-12-27 17:43:25] Production.ERROR: pbx CDR StartTime 2024-12-27 14:43:05 - End Time 2024-12-27 17:43:05 [2024-12-27 17:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115794', 'tblTempUsageDetail_20' ) start [2024-12-27 17:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115794', 'tblTempUsageDetail_20' ) end [2024-12-27 17:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115794', 'tblTempVendorCDR_20' ) start [2024-12-27 17:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115794', 'tblTempVendorCDR_20' ) end [2024-12-27 17:43:26] Production.INFO: ProcessCDR(1,14115794,1,1,2) [2024-12-27 17:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115794', 'tblTempUsageDetail_20' ) start [2024-12-27 17:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115794', 'tblTempUsageDetail_20' ) end [2024-12-27 17:43:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:43:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:43:29] Production.INFO: ==12983== Releasing lock... [2024-12-27 17:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:43:29] Production.INFO: 60.75 MB #Memory Used# [2024-12-27 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:44:05 [end_date_ymd] => 2024-12-27 17:44:05 [RateCDR] => 1 ) [2024-12-27 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:44:05' and `end` < '2024-12-27 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:44:19] Production.INFO: count ==4371 [2024-12-27 17:44:21] Production.ERROR: pbx CDR StartTime 2024-12-27 14:44:05 - End Time 2024-12-27 17:44:05 [2024-12-27 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115799', 'tblTempUsageDetail_20' ) start [2024-12-27 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115799', 'tblTempUsageDetail_20' ) end [2024-12-27 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115799', 'tblTempVendorCDR_20' ) start [2024-12-27 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115799', 'tblTempVendorCDR_20' ) end [2024-12-27 17:44:21] Production.INFO: ProcessCDR(1,14115799,1,1,2) [2024-12-27 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115799', 'tblTempUsageDetail_20' ) start [2024-12-27 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115799', 'tblTempUsageDetail_20' ) end [2024-12-27 17:44:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:44:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:44:26] Production.INFO: ==13062== Releasing lock... [2024-12-27 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:44:26] Production.INFO: 60.75 MB #Memory Used# [2024-12-27 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:45:05 [end_date_ymd] => 2024-12-27 17:45:05 [RateCDR] => 1 ) [2024-12-27 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:45:05' and `end` < '2024-12-27 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:45:18] Production.INFO: count ==4321 [2024-12-27 17:45:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:45:05 - End Time 2024-12-27 17:45:05 [2024-12-27 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115804', 'tblTempUsageDetail_20' ) start [2024-12-27 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115804', 'tblTempUsageDetail_20' ) end [2024-12-27 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115804', 'tblTempVendorCDR_20' ) start [2024-12-27 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115804', 'tblTempVendorCDR_20' ) end [2024-12-27 17:45:20] Production.INFO: ProcessCDR(1,14115804,1,1,2) [2024-12-27 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115804', 'tblTempUsageDetail_20' ) start [2024-12-27 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115804', 'tblTempUsageDetail_20' ) end [2024-12-27 17:45:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:45:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:45:25] Production.INFO: ==13180== Releasing lock... [2024-12-27 17:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:45:25] Production.INFO: 60.25 MB #Memory Used# [2024-12-27 17:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:46:04 [end_date_ymd] => 2024-12-27 17:46:04 [RateCDR] => 1 ) [2024-12-27 17: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-27 14:46:04' and `end` < '2024-12-27 17: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-27 17:46:17] Production.INFO: count ==4319 [2024-12-27 17:46:19] Production.ERROR: pbx CDR StartTime 2024-12-27 14:46:04 - End Time 2024-12-27 17:46:04 [2024-12-27 17:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115809', 'tblTempUsageDetail_20' ) start [2024-12-27 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115809', 'tblTempUsageDetail_20' ) end [2024-12-27 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115809', 'tblTempVendorCDR_20' ) start [2024-12-27 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115809', 'tblTempVendorCDR_20' ) end [2024-12-27 17:46:19] Production.INFO: ProcessCDR(1,14115809,1,1,2) [2024-12-27 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115809', 'tblTempUsageDetail_20' ) start [2024-12-27 17:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115809', 'tblTempUsageDetail_20' ) end [2024-12-27 17:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:46:22] Production.INFO: ==13259== Releasing lock... [2024-12-27 17:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:46:22] Production.INFO: 60.25 MB #Memory Used# [2024-12-27 17:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:47:04 [end_date_ymd] => 2024-12-27 17:47:04 [RateCDR] => 1 ) [2024-12-27 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-27 14:47:04' and `end` < '2024-12-27 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-27 17:47:18] Production.INFO: count ==4322 [2024-12-27 17:47:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:47:04 - End Time 2024-12-27 17:47:04 [2024-12-27 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115814', 'tblTempUsageDetail_20' ) start [2024-12-27 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115814', 'tblTempUsageDetail_20' ) end [2024-12-27 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115814', 'tblTempVendorCDR_20' ) start [2024-12-27 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115814', 'tblTempVendorCDR_20' ) end [2024-12-27 17:47:20] Production.INFO: ProcessCDR(1,14115814,1,1,2) [2024-12-27 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115814', 'tblTempUsageDetail_20' ) start [2024-12-27 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115814', 'tblTempUsageDetail_20' ) end [2024-12-27 17:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:47:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:47:25] Production.INFO: ==13342== Releasing lock... [2024-12-27 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:47:25] Production.INFO: 60.25 MB #Memory Used# [2024-12-27 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:48:05 [end_date_ymd] => 2024-12-27 17:48:05 [RateCDR] => 1 ) [2024-12-27 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:48:05' and `end` < '2024-12-27 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:48:22] Production.INFO: count ==4310 [2024-12-27 17:48:23] Production.ERROR: pbx CDR StartTime 2024-12-27 14:48:05 - End Time 2024-12-27 17:48:05 [2024-12-27 17:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115819', 'tblTempUsageDetail_20' ) start [2024-12-27 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115819', 'tblTempUsageDetail_20' ) end [2024-12-27 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115819', 'tblTempVendorCDR_20' ) start [2024-12-27 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115819', 'tblTempVendorCDR_20' ) end [2024-12-27 17:48:23] Production.INFO: ProcessCDR(1,14115819,1,1,2) [2024-12-27 17:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115819', 'tblTempUsageDetail_20' ) start [2024-12-27 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115819', 'tblTempUsageDetail_20' ) end [2024-12-27 17:48:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:48:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:48:28] Production.INFO: ==13423== Releasing lock... [2024-12-27 17:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:48:28] Production.INFO: 60.25 MB #Memory Used# [2024-12-27 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:49:05 [end_date_ymd] => 2024-12-27 17:49:05 [RateCDR] => 1 ) [2024-12-27 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:49:05' and `end` < '2024-12-27 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:49:19] Production.INFO: count ==4285 [2024-12-27 17:49:21] Production.ERROR: pbx CDR StartTime 2024-12-27 14:49:05 - End Time 2024-12-27 17:49:05 [2024-12-27 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115824', 'tblTempUsageDetail_20' ) start [2024-12-27 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115824', 'tblTempUsageDetail_20' ) end [2024-12-27 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115824', 'tblTempVendorCDR_20' ) start [2024-12-27 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115824', 'tblTempVendorCDR_20' ) end [2024-12-27 17:49:21] Production.INFO: ProcessCDR(1,14115824,1,1,2) [2024-12-27 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115824', 'tblTempUsageDetail_20' ) start [2024-12-27 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115824', 'tblTempUsageDetail_20' ) end [2024-12-27 17:49:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:49:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:49:25] Production.INFO: ==13502== Releasing lock... [2024-12-27 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:49:25] Production.INFO: 60 MB #Memory Used# [2024-12-27 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:50:06 [end_date_ymd] => 2024-12-27 17:50:06 [RateCDR] => 1 ) [2024-12-27 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:50:06' and `end` < '2024-12-27 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:50:19] Production.INFO: count ==4223 [2024-12-27 17:50:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:50:06 - End Time 2024-12-27 17:50:06 [2024-12-27 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115830', 'tblTempUsageDetail_20' ) start [2024-12-27 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115830', 'tblTempUsageDetail_20' ) end [2024-12-27 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115830', 'tblTempVendorCDR_20' ) start [2024-12-27 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115830', 'tblTempVendorCDR_20' ) end [2024-12-27 17:50:20] Production.INFO: ProcessCDR(1,14115830,1,1,2) [2024-12-27 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115830', 'tblTempUsageDetail_20' ) start [2024-12-27 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115830', 'tblTempUsageDetail_20' ) end [2024-12-27 17:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:50:23] Production.INFO: ==13585== Releasing lock... [2024-12-27 17:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:50:23] Production.INFO: 59.5 MB #Memory Used# [2024-12-27 17:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:51:04 [end_date_ymd] => 2024-12-27 17:51:04 [RateCDR] => 1 ) [2024-12-27 17:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:51:04' and `end` < '2024-12-27 17:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:51:17] Production.INFO: count ==4184 [2024-12-27 17:51:18] Production.ERROR: pbx CDR StartTime 2024-12-27 14:51:04 - End Time 2024-12-27 17:51:04 [2024-12-27 17:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115835', 'tblTempUsageDetail_20' ) start [2024-12-27 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115835', 'tblTempUsageDetail_20' ) end [2024-12-27 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115835', 'tblTempVendorCDR_20' ) start [2024-12-27 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115835', 'tblTempVendorCDR_20' ) end [2024-12-27 17:51:19] Production.INFO: ProcessCDR(1,14115835,1,1,2) [2024-12-27 17:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115835', 'tblTempUsageDetail_20' ) start [2024-12-27 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115835', 'tblTempUsageDetail_20' ) end [2024-12-27 17:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:51:23] Production.INFO: ==13665== Releasing lock... [2024-12-27 17:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:51:23] Production.INFO: 59.5 MB #Memory Used# [2024-12-27 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:52:05 [end_date_ymd] => 2024-12-27 17:52:05 [RateCDR] => 1 ) [2024-12-27 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:52:05' and `end` < '2024-12-27 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:52:18] Production.INFO: count ==4151 [2024-12-27 17:52:19] Production.ERROR: pbx CDR StartTime 2024-12-27 14:52:05 - End Time 2024-12-27 17:52:05 [2024-12-27 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115840', 'tblTempUsageDetail_20' ) start [2024-12-27 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115840', 'tblTempUsageDetail_20' ) end [2024-12-27 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115840', 'tblTempVendorCDR_20' ) start [2024-12-27 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115840', 'tblTempVendorCDR_20' ) end [2024-12-27 17:52:19] Production.INFO: ProcessCDR(1,14115840,1,1,2) [2024-12-27 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115840', 'tblTempUsageDetail_20' ) start [2024-12-27 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115840', 'tblTempUsageDetail_20' ) end [2024-12-27 17:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:52:22] Production.INFO: ==13744== Releasing lock... [2024-12-27 17:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:52:22] Production.INFO: 59 MB #Memory Used# [2024-12-27 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:53:05 [end_date_ymd] => 2024-12-27 17:53:05 [RateCDR] => 1 ) [2024-12-27 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:53:05' and `end` < '2024-12-27 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:53:18] Production.INFO: count ==4096 [2024-12-27 17:53:19] Production.ERROR: pbx CDR StartTime 2024-12-27 14:53:05 - End Time 2024-12-27 17:53:05 [2024-12-27 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115845', 'tblTempUsageDetail_20' ) start [2024-12-27 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115845', 'tblTempUsageDetail_20' ) end [2024-12-27 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115845', 'tblTempVendorCDR_20' ) start [2024-12-27 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115845', 'tblTempVendorCDR_20' ) end [2024-12-27 17:53:20] Production.INFO: ProcessCDR(1,14115845,1,1,2) [2024-12-27 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115845', 'tblTempUsageDetail_20' ) start [2024-12-27 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115845', 'tblTempUsageDetail_20' ) end [2024-12-27 17:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:53:22] Production.INFO: ==13827== Releasing lock... [2024-12-27 17:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:53:22] Production.INFO: 58.5 MB #Memory Used# [2024-12-27 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:54:05 [end_date_ymd] => 2024-12-27 17:54:05 [RateCDR] => 1 ) [2024-12-27 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:54:05' and `end` < '2024-12-27 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:54:17] Production.INFO: count ==4050 [2024-12-27 17:54:19] Production.ERROR: pbx CDR StartTime 2024-12-27 14:54:05 - End Time 2024-12-27 17:54:05 [2024-12-27 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115850', 'tblTempUsageDetail_20' ) start [2024-12-27 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115850', 'tblTempUsageDetail_20' ) end [2024-12-27 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115850', 'tblTempVendorCDR_20' ) start [2024-12-27 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115850', 'tblTempVendorCDR_20' ) end [2024-12-27 17:54:19] Production.INFO: ProcessCDR(1,14115850,1,1,2) [2024-12-27 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115850', 'tblTempUsageDetail_20' ) start [2024-12-27 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115850', 'tblTempUsageDetail_20' ) end [2024-12-27 17:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:54:23] Production.INFO: ==13920== Releasing lock... [2024-12-27 17:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:54:23] Production.INFO: 58.25 MB #Memory Used# [2024-12-27 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:55:05 [end_date_ymd] => 2024-12-27 17:55:05 [RateCDR] => 1 ) [2024-12-27 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:55:05' and `end` < '2024-12-27 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:55:20] Production.INFO: count ==4023 [2024-12-27 17:55:21] Production.ERROR: pbx CDR StartTime 2024-12-27 14:55:05 - End Time 2024-12-27 17:55:05 [2024-12-27 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115855', 'tblTempUsageDetail_20' ) start [2024-12-27 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115855', 'tblTempUsageDetail_20' ) end [2024-12-27 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115855', 'tblTempVendorCDR_20' ) start [2024-12-27 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115855', 'tblTempVendorCDR_20' ) end [2024-12-27 17:55:21] Production.INFO: ProcessCDR(1,14115855,1,1,2) [2024-12-27 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115855', 'tblTempUsageDetail_20' ) start [2024-12-27 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115855', 'tblTempUsageDetail_20' ) end [2024-12-27 17:55:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:55:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:55:26] Production.INFO: ==14009== Releasing lock... [2024-12-27 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:55:26] Production.INFO: 58 MB #Memory Used# [2024-12-27 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:56:05 [end_date_ymd] => 2024-12-27 17:56:05 [RateCDR] => 1 ) [2024-12-27 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:56:05' and `end` < '2024-12-27 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:56:18] Production.INFO: count ==3998 [2024-12-27 17:56:19] Production.ERROR: pbx CDR StartTime 2024-12-27 14:56:05 - End Time 2024-12-27 17:56:05 [2024-12-27 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115860', 'tblTempUsageDetail_20' ) start [2024-12-27 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115860', 'tblTempUsageDetail_20' ) end [2024-12-27 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115860', 'tblTempVendorCDR_20' ) start [2024-12-27 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115860', 'tblTempVendorCDR_20' ) end [2024-12-27 17:56:19] Production.INFO: ProcessCDR(1,14115860,1,1,2) [2024-12-27 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115860', 'tblTempUsageDetail_20' ) start [2024-12-27 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115860', 'tblTempUsageDetail_20' ) end [2024-12-27 17:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:56:24] Production.INFO: ==14086== Releasing lock... [2024-12-27 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:56:24] Production.INFO: 58 MB #Memory Used# [2024-12-27 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:57:05 [end_date_ymd] => 2024-12-27 17:57:05 [RateCDR] => 1 ) [2024-12-27 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:57:05' and `end` < '2024-12-27 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:57:18] Production.INFO: count ==3953 [2024-12-27 17:57:19] Production.ERROR: pbx CDR StartTime 2024-12-27 14:57:05 - End Time 2024-12-27 17:57:05 [2024-12-27 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115865', 'tblTempUsageDetail_20' ) start [2024-12-27 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115865', 'tblTempUsageDetail_20' ) end [2024-12-27 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115865', 'tblTempVendorCDR_20' ) start [2024-12-27 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115865', 'tblTempVendorCDR_20' ) end [2024-12-27 17:57:19] Production.INFO: ProcessCDR(1,14115865,1,1,2) [2024-12-27 17:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115865', 'tblTempUsageDetail_20' ) start [2024-12-27 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115865', 'tblTempUsageDetail_20' ) end [2024-12-27 17:57:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:57:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:57:24] Production.INFO: ==14162== Releasing lock... [2024-12-27 17:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:57:24] Production.INFO: 57.5 MB #Memory Used# [2024-12-27 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:58:05 [end_date_ymd] => 2024-12-27 17:58:05 [RateCDR] => 1 ) [2024-12-27 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:58:05' and `end` < '2024-12-27 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:58:18] Production.INFO: count ==3895 [2024-12-27 17:58:20] Production.ERROR: pbx CDR StartTime 2024-12-27 14:58:05 - End Time 2024-12-27 17:58:05 [2024-12-27 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115870', 'tblTempUsageDetail_20' ) start [2024-12-27 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115870', 'tblTempUsageDetail_20' ) end [2024-12-27 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115870', 'tblTempVendorCDR_20' ) start [2024-12-27 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115870', 'tblTempVendorCDR_20' ) end [2024-12-27 17:58:20] Production.INFO: ProcessCDR(1,14115870,1,1,2) [2024-12-27 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115870', 'tblTempUsageDetail_20' ) start [2024-12-27 17:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115870', 'tblTempUsageDetail_20' ) end [2024-12-27 17:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:58:23] Production.INFO: ==14237== Releasing lock... [2024-12-27 17:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:58:23] Production.INFO: 57 MB #Memory Used# [2024-12-27 17:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 14:59:04 [end_date_ymd] => 2024-12-27 17:59:04 [RateCDR] => 1 ) [2024-12-27 17:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 14:59:04' and `end` < '2024-12-27 17:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 17:59:17] Production.INFO: count ==3833 [2024-12-27 17:59:19] Production.ERROR: pbx CDR StartTime 2024-12-27 14:59:04 - End Time 2024-12-27 17:59:04 [2024-12-27 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115875', 'tblTempUsageDetail_20' ) start [2024-12-27 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115875', 'tblTempUsageDetail_20' ) end [2024-12-27 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115875', 'tblTempVendorCDR_20' ) start [2024-12-27 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115875', 'tblTempVendorCDR_20' ) end [2024-12-27 17:59:19] Production.INFO: ProcessCDR(1,14115875,1,1,2) [2024-12-27 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 17:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115875', 'tblTempUsageDetail_20' ) start [2024-12-27 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115875', 'tblTempUsageDetail_20' ) end [2024-12-27 17:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 17:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 17:59:22] Production.INFO: ==14314== Releasing lock... [2024-12-27 17:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 17:59:22] Production.INFO: 56.75 MB #Memory Used# [2024-12-27 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:00:06 [end_date_ymd] => 2024-12-27 18:00:06 [RateCDR] => 1 ) [2024-12-27 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:00:06' and `end` < '2024-12-27 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:00:19] Production.INFO: count ==3755 [2024-12-27 18:00:20] Production.ERROR: pbx CDR StartTime 2024-12-27 15:00:06 - End Time 2024-12-27 18:00:06 [2024-12-27 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115881', 'tblTempUsageDetail_20' ) start [2024-12-27 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115881', 'tblTempUsageDetail_20' ) end [2024-12-27 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115881', 'tblTempVendorCDR_20' ) start [2024-12-27 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115881', 'tblTempVendorCDR_20' ) end [2024-12-27 18:00:20] Production.INFO: ProcessCDR(1,14115881,1,1,2) [2024-12-27 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115881', 'tblTempUsageDetail_20' ) start [2024-12-27 18:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115881', 'tblTempUsageDetail_20' ) end [2024-12-27 18:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:00:23] Production.INFO: ==14395== Releasing lock... [2024-12-27 18:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:00:23] Production.INFO: 56 MB #Memory Used# [2024-12-27 18:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:01:04 [end_date_ymd] => 2024-12-27 18:01:04 [RateCDR] => 1 ) [2024-12-27 18: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-27 15:01:04' and `end` < '2024-12-27 18: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-27 18:01:19] Production.INFO: count ==3674 [2024-12-27 18:01:20] Production.ERROR: pbx CDR StartTime 2024-12-27 15:01:04 - End Time 2024-12-27 18:01:04 [2024-12-27 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115886', 'tblTempUsageDetail_20' ) start [2024-12-27 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115886', 'tblTempUsageDetail_20' ) end [2024-12-27 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115886', 'tblTempVendorCDR_20' ) start [2024-12-27 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115886', 'tblTempVendorCDR_20' ) end [2024-12-27 18:01:20] Production.INFO: ProcessCDR(1,14115886,1,1,2) [2024-12-27 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115886', 'tblTempUsageDetail_20' ) start [2024-12-27 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115886', 'tblTempUsageDetail_20' ) end [2024-12-27 18:01:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:01:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:01:25] Production.INFO: ==14524== Releasing lock... [2024-12-27 18:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:01:25] Production.INFO: 56.25 MB #Memory Used# [2024-12-27 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:02:05 [end_date_ymd] => 2024-12-27 18:02:05 [RateCDR] => 1 ) [2024-12-27 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:02:05' and `end` < '2024-12-27 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:02:24] Production.INFO: count ==3611 [2024-12-27 18:02:25] Production.ERROR: pbx CDR StartTime 2024-12-27 15:02:05 - End Time 2024-12-27 18:02:05 [2024-12-27 18:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115891', 'tblTempUsageDetail_20' ) start [2024-12-27 18:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115891', 'tblTempUsageDetail_20' ) end [2024-12-27 18:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115891', 'tblTempVendorCDR_20' ) start [2024-12-27 18:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115891', 'tblTempVendorCDR_20' ) end [2024-12-27 18:02:26] Production.INFO: ProcessCDR(1,14115891,1,1,2) [2024-12-27 18:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115891', 'tblTempUsageDetail_20' ) start [2024-12-27 18:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115891', 'tblTempUsageDetail_20' ) end [2024-12-27 18:02:29] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:02:29] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:02:29] Production.INFO: ==14602== Releasing lock... [2024-12-27 18:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:02:29] Production.INFO: 55 MB #Memory Used# [2024-12-27 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:03:05 [end_date_ymd] => 2024-12-27 18:03:05 [RateCDR] => 1 ) [2024-12-27 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:03:05' and `end` < '2024-12-27 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:03:23] Production.INFO: count ==3552 [2024-12-27 18:03:24] Production.ERROR: pbx CDR StartTime 2024-12-27 15:03:05 - End Time 2024-12-27 18:03:05 [2024-12-27 18:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115896', 'tblTempUsageDetail_20' ) start [2024-12-27 18:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115896', 'tblTempUsageDetail_20' ) end [2024-12-27 18:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115896', 'tblTempVendorCDR_20' ) start [2024-12-27 18:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115896', 'tblTempVendorCDR_20' ) end [2024-12-27 18:03:24] Production.INFO: ProcessCDR(1,14115896,1,1,2) [2024-12-27 18:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115896', 'tblTempUsageDetail_20' ) start [2024-12-27 18:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115896', 'tblTempUsageDetail_20' ) end [2024-12-27 18:03:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:03:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:03:28] Production.INFO: ==14675== Releasing lock... [2024-12-27 18:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:03:28] Production.INFO: 55 MB #Memory Used# [2024-12-27 18:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:04:04 [end_date_ymd] => 2024-12-27 18:04:04 [RateCDR] => 1 ) [2024-12-27 18: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-27 15:04:04' and `end` < '2024-12-27 18: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-27 18:04:18] Production.INFO: count ==3542 [2024-12-27 18:04:20] Production.ERROR: pbx CDR StartTime 2024-12-27 15:04:04 - End Time 2024-12-27 18:04:04 [2024-12-27 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115901', 'tblTempUsageDetail_20' ) start [2024-12-27 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115901', 'tblTempUsageDetail_20' ) end [2024-12-27 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115901', 'tblTempVendorCDR_20' ) start [2024-12-27 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115901', 'tblTempVendorCDR_20' ) end [2024-12-27 18:04:20] Production.INFO: ProcessCDR(1,14115901,1,1,2) [2024-12-27 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115901', 'tblTempUsageDetail_20' ) start [2024-12-27 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115901', 'tblTempUsageDetail_20' ) end [2024-12-27 18:04:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:04:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:04:23] Production.INFO: ==14756== Releasing lock... [2024-12-27 18:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:04:23] Production.INFO: 54.5 MB #Memory Used# [2024-12-27 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:05:05 [end_date_ymd] => 2024-12-27 18:05:05 [RateCDR] => 1 ) [2024-12-27 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:05:05' and `end` < '2024-12-27 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:05:18] Production.INFO: count ==3440 [2024-12-27 18:05:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:05:05 - End Time 2024-12-27 18:05:05 [2024-12-27 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115906', 'tblTempUsageDetail_20' ) start [2024-12-27 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115906', 'tblTempUsageDetail_20' ) end [2024-12-27 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115906', 'tblTempVendorCDR_20' ) start [2024-12-27 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115906', 'tblTempVendorCDR_20' ) end [2024-12-27 18:05:19] Production.INFO: ProcessCDR(1,14115906,1,1,2) [2024-12-27 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115906', 'tblTempUsageDetail_20' ) start [2024-12-27 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115906', 'tblTempUsageDetail_20' ) end [2024-12-27 18:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:05:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:05:24] Production.INFO: ==14829== Releasing lock... [2024-12-27 18:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:05:24] Production.INFO: 53.75 MB #Memory Used# [2024-12-27 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:06:05 [end_date_ymd] => 2024-12-27 18:06:05 [RateCDR] => 1 ) [2024-12-27 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:06:05' and `end` < '2024-12-27 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:06:18] Production.INFO: count ==3407 [2024-12-27 18:06:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:06:05 - End Time 2024-12-27 18:06:05 [2024-12-27 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115911', 'tblTempUsageDetail_20' ) start [2024-12-27 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115911', 'tblTempUsageDetail_20' ) end [2024-12-27 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115911', 'tblTempVendorCDR_20' ) start [2024-12-27 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115911', 'tblTempVendorCDR_20' ) end [2024-12-27 18:06:19] Production.INFO: ProcessCDR(1,14115911,1,1,2) [2024-12-27 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115911', 'tblTempUsageDetail_20' ) start [2024-12-27 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115911', 'tblTempUsageDetail_20' ) end [2024-12-27 18:06:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:06:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:06:24] Production.INFO: ==14906== Releasing lock... [2024-12-27 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:06:24] Production.INFO: 54.5 MB #Memory Used# [2024-12-27 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:07:05 [end_date_ymd] => 2024-12-27 18:07:05 [RateCDR] => 1 ) [2024-12-27 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:07:05' and `end` < '2024-12-27 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:07:20] Production.INFO: count ==3404 [2024-12-27 18:07:21] Production.ERROR: pbx CDR StartTime 2024-12-27 15:07:05 - End Time 2024-12-27 18:07:05 [2024-12-27 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115916', 'tblTempUsageDetail_20' ) start [2024-12-27 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115916', 'tblTempUsageDetail_20' ) end [2024-12-27 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115916', 'tblTempVendorCDR_20' ) start [2024-12-27 18:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115916', 'tblTempVendorCDR_20' ) end [2024-12-27 18:07:22] Production.INFO: ProcessCDR(1,14115916,1,1,2) [2024-12-27 18:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115916', 'tblTempUsageDetail_20' ) start [2024-12-27 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115916', 'tblTempUsageDetail_20' ) end [2024-12-27 18:07:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:07:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:07:25] Production.INFO: ==14982== Releasing lock... [2024-12-27 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:07:25] Production.INFO: 53.75 MB #Memory Used# [2024-12-27 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:08:05 [end_date_ymd] => 2024-12-27 18:08:05 [RateCDR] => 1 ) [2024-12-27 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:08:05' and `end` < '2024-12-27 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:08:18] Production.INFO: count ==3397 [2024-12-27 18:08:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:08:05 - End Time 2024-12-27 18:08:05 [2024-12-27 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115921', 'tblTempUsageDetail_20' ) start [2024-12-27 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115921', 'tblTempUsageDetail_20' ) end [2024-12-27 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115921', 'tblTempVendorCDR_20' ) start [2024-12-27 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115921', 'tblTempVendorCDR_20' ) end [2024-12-27 18:08:19] Production.INFO: ProcessCDR(1,14115921,1,1,2) [2024-12-27 18:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115921', 'tblTempUsageDetail_20' ) start [2024-12-27 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115921', 'tblTempUsageDetail_20' ) end [2024-12-27 18:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:08:24] Production.INFO: ==15058== Releasing lock... [2024-12-27 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:08:24] Production.INFO: 55 MB #Memory Used# [2024-12-27 18:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:09:04 [end_date_ymd] => 2024-12-27 18:09:04 [RateCDR] => 1 ) [2024-12-27 18:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:09:04' and `end` < '2024-12-27 18:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:09:18] Production.INFO: count ==3393 [2024-12-27 18:09:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:09:04 - End Time 2024-12-27 18:09:04 [2024-12-27 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115926', 'tblTempUsageDetail_20' ) start [2024-12-27 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115926', 'tblTempUsageDetail_20' ) end [2024-12-27 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115926', 'tblTempVendorCDR_20' ) start [2024-12-27 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115926', 'tblTempVendorCDR_20' ) end [2024-12-27 18:09:19] Production.INFO: ProcessCDR(1,14115926,1,1,2) [2024-12-27 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115926', 'tblTempUsageDetail_20' ) start [2024-12-27 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115926', 'tblTempUsageDetail_20' ) end [2024-12-27 18:09:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:09:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:09:24] Production.INFO: ==15129== Releasing lock... [2024-12-27 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:09:24] Production.INFO: 54.25 MB #Memory Used# [2024-12-27 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:10:06 [end_date_ymd] => 2024-12-27 18:10:06 [RateCDR] => 1 ) [2024-12-27 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:10:06' and `end` < '2024-12-27 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:10:19] Production.INFO: count ==3385 [2024-12-27 18:10:20] Production.ERROR: pbx CDR StartTime 2024-12-27 15:10:06 - End Time 2024-12-27 18:10:06 [2024-12-27 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115931', 'tblTempUsageDetail_20' ) start [2024-12-27 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115931', 'tblTempUsageDetail_20' ) end [2024-12-27 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115931', 'tblTempVendorCDR_20' ) start [2024-12-27 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115931', 'tblTempVendorCDR_20' ) end [2024-12-27 18:10:20] Production.INFO: ProcessCDR(1,14115931,1,1,2) [2024-12-27 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115931', 'tblTempUsageDetail_20' ) start [2024-12-27 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115931', 'tblTempUsageDetail_20' ) end [2024-12-27 18:10:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:10:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:10:25] Production.INFO: ==15205== Releasing lock... [2024-12-27 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:10:25] Production.INFO: 53.5 MB #Memory Used# [2024-12-27 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:11:05 [end_date_ymd] => 2024-12-27 18:11:05 [RateCDR] => 1 ) [2024-12-27 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:11:05' and `end` < '2024-12-27 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:11:22] Production.INFO: count ==3418 [2024-12-27 18:11:23] Production.ERROR: pbx CDR StartTime 2024-12-27 15:11:05 - End Time 2024-12-27 18:11:05 [2024-12-27 18:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115937', 'tblTempUsageDetail_20' ) start [2024-12-27 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115937', 'tblTempUsageDetail_20' ) end [2024-12-27 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115937', 'tblTempVendorCDR_20' ) start [2024-12-27 18:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115937', 'tblTempVendorCDR_20' ) end [2024-12-27 18:11:23] Production.INFO: ProcessCDR(1,14115937,1,1,2) [2024-12-27 18:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115937', 'tblTempUsageDetail_20' ) start [2024-12-27 18:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115937', 'tblTempUsageDetail_20' ) end [2024-12-27 18:11:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:11:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:11:28] Production.INFO: ==15280== Releasing lock... [2024-12-27 18:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:11:28] Production.INFO: 53.75 MB #Memory Used# [2024-12-27 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:12:05 [end_date_ymd] => 2024-12-27 18:12:05 [RateCDR] => 1 ) [2024-12-27 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:12:05' and `end` < '2024-12-27 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:12:21] Production.INFO: count ==3414 [2024-12-27 18:12:22] Production.ERROR: pbx CDR StartTime 2024-12-27 15:12:05 - End Time 2024-12-27 18:12:05 [2024-12-27 18:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115942', 'tblTempUsageDetail_20' ) start [2024-12-27 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115942', 'tblTempUsageDetail_20' ) end [2024-12-27 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115942', 'tblTempVendorCDR_20' ) start [2024-12-27 18:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115942', 'tblTempVendorCDR_20' ) end [2024-12-27 18:12:23] Production.INFO: ProcessCDR(1,14115942,1,1,2) [2024-12-27 18:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115942', 'tblTempUsageDetail_20' ) start [2024-12-27 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115942', 'tblTempUsageDetail_20' ) end [2024-12-27 18:12:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:12:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:12:27] Production.INFO: ==15355== Releasing lock... [2024-12-27 18:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:12:27] Production.INFO: 53.75 MB #Memory Used# [2024-12-27 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:13:05 [end_date_ymd] => 2024-12-27 18:13:05 [RateCDR] => 1 ) [2024-12-27 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-27 15:13:05' and `end` < '2024-12-27 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:13:22] Production.INFO: count ==3397 [2024-12-27 18:13:24] Production.ERROR: pbx CDR StartTime 2024-12-27 15:13:05 - End Time 2024-12-27 18:13:05 [2024-12-27 18:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115947', 'tblTempUsageDetail_20' ) start [2024-12-27 18:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115947', 'tblTempUsageDetail_20' ) end [2024-12-27 18:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115947', 'tblTempVendorCDR_20' ) start [2024-12-27 18:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115947', 'tblTempVendorCDR_20' ) end [2024-12-27 18:13:24] Production.INFO: ProcessCDR(1,14115947,1,1,2) [2024-12-27 18:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115947', 'tblTempUsageDetail_20' ) start [2024-12-27 18:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115947', 'tblTempUsageDetail_20' ) end [2024-12-27 18:13:28] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:13:28] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:13:28] Production.INFO: ==15428== Releasing lock... [2024-12-27 18:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:13:28] Production.INFO: 53.5 MB #Memory Used# [2024-12-27 18:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:14:04 [end_date_ymd] => 2024-12-27 18:14:04 [RateCDR] => 1 ) [2024-12-27 18:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:14:04' and `end` < '2024-12-27 18:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:14:19] Production.INFO: count ==3399 [2024-12-27 18:14:20] Production.ERROR: pbx CDR StartTime 2024-12-27 15:14:04 - End Time 2024-12-27 18:14:04 [2024-12-27 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115952', 'tblTempUsageDetail_20' ) start [2024-12-27 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115952', 'tblTempUsageDetail_20' ) end [2024-12-27 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115952', 'tblTempVendorCDR_20' ) start [2024-12-27 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115952', 'tblTempVendorCDR_20' ) end [2024-12-27 18:14:20] Production.INFO: ProcessCDR(1,14115952,1,1,2) [2024-12-27 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115952', 'tblTempUsageDetail_20' ) start [2024-12-27 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115952', 'tblTempUsageDetail_20' ) end [2024-12-27 18:14:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:14:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:14:25] Production.INFO: ==15501== Releasing lock... [2024-12-27 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:14:25] Production.INFO: 53.75 MB #Memory Used# [2024-12-27 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:15:05 [end_date_ymd] => 2024-12-27 18:15:05 [RateCDR] => 1 ) [2024-12-27 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:15:05' and `end` < '2024-12-27 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:15:18] Production.INFO: count ==3387 [2024-12-27 18:15:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:15:05 - End Time 2024-12-27 18:15:05 [2024-12-27 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115957', 'tblTempUsageDetail_20' ) start [2024-12-27 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115957', 'tblTempUsageDetail_20' ) end [2024-12-27 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115957', 'tblTempVendorCDR_20' ) start [2024-12-27 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115957', 'tblTempVendorCDR_20' ) end [2024-12-27 18:15:19] Production.INFO: ProcessCDR(1,14115957,1,1,2) [2024-12-27 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115957', 'tblTempUsageDetail_20' ) start [2024-12-27 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115957', 'tblTempUsageDetail_20' ) end [2024-12-27 18:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:15:23] Production.INFO: ==15578== Releasing lock... [2024-12-27 18:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:15:23] Production.INFO: 53.75 MB #Memory Used# [2024-12-27 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:16:05 [end_date_ymd] => 2024-12-27 18:16:05 [RateCDR] => 1 ) [2024-12-27 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:16:05' and `end` < '2024-12-27 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:16:18] Production.INFO: count ==3379 [2024-12-27 18:16:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:16:05 - End Time 2024-12-27 18:16:05 [2024-12-27 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115962', 'tblTempUsageDetail_20' ) start [2024-12-27 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115962', 'tblTempUsageDetail_20' ) end [2024-12-27 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115962', 'tblTempVendorCDR_20' ) start [2024-12-27 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115962', 'tblTempVendorCDR_20' ) end [2024-12-27 18:16:19] Production.INFO: ProcessCDR(1,14115962,1,1,2) [2024-12-27 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115962', 'tblTempUsageDetail_20' ) start [2024-12-27 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115962', 'tblTempUsageDetail_20' ) end [2024-12-27 18:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:16:23] Production.INFO: ==15691== Releasing lock... [2024-12-27 18:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:16:23] Production.INFO: 53.75 MB #Memory Used# [2024-12-27 18:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:17:04 [end_date_ymd] => 2024-12-27 18:17:04 [RateCDR] => 1 ) [2024-12-27 18: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-27 15:17:04' and `end` < '2024-12-27 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-27 18:17:17] Production.INFO: count ==3386 [2024-12-27 18:17:18] Production.ERROR: pbx CDR StartTime 2024-12-27 15:17:04 - End Time 2024-12-27 18:17:04 [2024-12-27 18:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115967', 'tblTempUsageDetail_20' ) start [2024-12-27 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115967', 'tblTempUsageDetail_20' ) end [2024-12-27 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115967', 'tblTempVendorCDR_20' ) start [2024-12-27 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115967', 'tblTempVendorCDR_20' ) end [2024-12-27 18:17:19] Production.INFO: ProcessCDR(1,14115967,1,1,2) [2024-12-27 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115967', 'tblTempUsageDetail_20' ) start [2024-12-27 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115967', 'tblTempUsageDetail_20' ) end [2024-12-27 18:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:17:23] Production.INFO: ==15768== Releasing lock... [2024-12-27 18:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:17:23] Production.INFO: 54 MB #Memory Used# [2024-12-27 18:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:18:04 [end_date_ymd] => 2024-12-27 18:18:04 [RateCDR] => 1 ) [2024-12-27 18:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:18:04' and `end` < '2024-12-27 18:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:18:17] Production.INFO: count ==3383 [2024-12-27 18:18:18] Production.ERROR: pbx CDR StartTime 2024-12-27 15:18:04 - End Time 2024-12-27 18:18:04 [2024-12-27 18:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115972', 'tblTempUsageDetail_20' ) start [2024-12-27 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115972', 'tblTempUsageDetail_20' ) end [2024-12-27 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115972', 'tblTempVendorCDR_20' ) start [2024-12-27 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115972', 'tblTempVendorCDR_20' ) end [2024-12-27 18:18:18] Production.INFO: ProcessCDR(1,14115972,1,1,2) [2024-12-27 18:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115972', 'tblTempUsageDetail_20' ) start [2024-12-27 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115972', 'tblTempUsageDetail_20' ) end [2024-12-27 18:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:18:23] Production.INFO: ==15844== Releasing lock... [2024-12-27 18:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:18:23] Production.INFO: 54 MB #Memory Used# [2024-12-27 18:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:19:04 [end_date_ymd] => 2024-12-27 18:19:04 [RateCDR] => 1 ) [2024-12-27 18: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-27 15:19:04' and `end` < '2024-12-27 18: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-27 18:19:17] Production.INFO: count ==3334 [2024-12-27 18:19:18] Production.ERROR: pbx CDR StartTime 2024-12-27 15:19:04 - End Time 2024-12-27 18:19:04 [2024-12-27 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115977', 'tblTempUsageDetail_20' ) start [2024-12-27 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115977', 'tblTempUsageDetail_20' ) end [2024-12-27 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115977', 'tblTempVendorCDR_20' ) start [2024-12-27 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115977', 'tblTempVendorCDR_20' ) end [2024-12-27 18:19:18] Production.INFO: ProcessCDR(1,14115977,1,1,2) [2024-12-27 18:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115977', 'tblTempUsageDetail_20' ) start [2024-12-27 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115977', 'tblTempUsageDetail_20' ) end [2024-12-27 18:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:19:22] Production.INFO: ==15920== Releasing lock... [2024-12-27 18:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:19:22] Production.INFO: 53.25 MB #Memory Used# [2024-12-27 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:20:06 [end_date_ymd] => 2024-12-27 18:20:06 [RateCDR] => 1 ) [2024-12-27 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:20:06' and `end` < '2024-12-27 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:20:19] Production.INFO: count ==3307 [2024-12-27 18:20:20] Production.ERROR: pbx CDR StartTime 2024-12-27 15:20:06 - End Time 2024-12-27 18:20:06 [2024-12-27 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115983', 'tblTempUsageDetail_20' ) start [2024-12-27 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115983', 'tblTempUsageDetail_20' ) end [2024-12-27 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115983', 'tblTempVendorCDR_20' ) start [2024-12-27 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115983', 'tblTempVendorCDR_20' ) end [2024-12-27 18:20:20] Production.INFO: ProcessCDR(1,14115983,1,1,2) [2024-12-27 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115983', 'tblTempUsageDetail_20' ) start [2024-12-27 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115983', 'tblTempUsageDetail_20' ) end [2024-12-27 18:20:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:20:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:20:24] Production.INFO: ==15999== Releasing lock... [2024-12-27 18:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:20:24] Production.INFO: 52.75 MB #Memory Used# [2024-12-27 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:21:05 [end_date_ymd] => 2024-12-27 18:21:05 [RateCDR] => 1 ) [2024-12-27 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:21:05' and `end` < '2024-12-27 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:21:18] Production.INFO: count ==3258 [2024-12-27 18:21:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:21:05 - End Time 2024-12-27 18:21:05 [2024-12-27 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115988', 'tblTempUsageDetail_20' ) start [2024-12-27 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115988', 'tblTempUsageDetail_20' ) end [2024-12-27 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115988', 'tblTempVendorCDR_20' ) start [2024-12-27 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115988', 'tblTempVendorCDR_20' ) end [2024-12-27 18:21:19] Production.INFO: ProcessCDR(1,14115988,1,1,2) [2024-12-27 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115988', 'tblTempUsageDetail_20' ) start [2024-12-27 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115988', 'tblTempUsageDetail_20' ) end [2024-12-27 18:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:21:23] Production.INFO: ==16080== Releasing lock... [2024-12-27 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:21:23] Production.INFO: 52.25 MB #Memory Used# [2024-12-27 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:22:05 [end_date_ymd] => 2024-12-27 18:22:05 [RateCDR] => 1 ) [2024-12-27 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:22:05' and `end` < '2024-12-27 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:22:18] Production.INFO: count ==3251 [2024-12-27 18:22:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:22:05 - End Time 2024-12-27 18:22:05 [2024-12-27 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115993', 'tblTempUsageDetail_20' ) start [2024-12-27 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115993', 'tblTempUsageDetail_20' ) end [2024-12-27 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115993', 'tblTempVendorCDR_20' ) start [2024-12-27 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115993', 'tblTempVendorCDR_20' ) end [2024-12-27 18:22:19] Production.INFO: ProcessCDR(1,14115993,1,1,2) [2024-12-27 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115993', 'tblTempUsageDetail_20' ) start [2024-12-27 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115993', 'tblTempUsageDetail_20' ) end [2024-12-27 18:22:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:22:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:22:24] Production.INFO: ==16165== Releasing lock... [2024-12-27 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:22:24] Production.INFO: 52.25 MB #Memory Used# [2024-12-27 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:23:05 [end_date_ymd] => 2024-12-27 18:23:05 [RateCDR] => 1 ) [2024-12-27 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:23:05' and `end` < '2024-12-27 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:23:18] Production.INFO: count ==3214 [2024-12-27 18:23:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:23:05 - End Time 2024-12-27 18:23:05 [2024-12-27 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115998', 'tblTempUsageDetail_20' ) start [2024-12-27 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14115998', 'tblTempUsageDetail_20' ) end [2024-12-27 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115998', 'tblTempVendorCDR_20' ) start [2024-12-27 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14115998', 'tblTempVendorCDR_20' ) end [2024-12-27 18:23:19] Production.INFO: ProcessCDR(1,14115998,1,1,2) [2024-12-27 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14115998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14115998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14115998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14115998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115998', 'tblTempUsageDetail_20' ) start [2024-12-27 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14115998', 'tblTempUsageDetail_20' ) end [2024-12-27 18:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:23:24] Production.INFO: ==16252== Releasing lock... [2024-12-27 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:23:24] Production.INFO: 52.75 MB #Memory Used# [2024-12-27 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:24:06 [end_date_ymd] => 2024-12-27 18:24:06 [RateCDR] => 1 ) [2024-12-27 18:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:24:06' and `end` < '2024-12-27 18:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:24:20] Production.INFO: count ==3201 [2024-12-27 18:24:21] Production.ERROR: pbx CDR StartTime 2024-12-27 15:24:06 - End Time 2024-12-27 18:24:06 [2024-12-27 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116003', 'tblTempUsageDetail_20' ) start [2024-12-27 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116003', 'tblTempUsageDetail_20' ) end [2024-12-27 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116003', 'tblTempVendorCDR_20' ) start [2024-12-27 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116003', 'tblTempVendorCDR_20' ) end [2024-12-27 18:24:21] Production.INFO: ProcessCDR(1,14116003,1,1,2) [2024-12-27 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116003', 'tblTempUsageDetail_20' ) start [2024-12-27 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116003', 'tblTempUsageDetail_20' ) end [2024-12-27 18:24:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:24:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:24:25] Production.INFO: ==16325== Releasing lock... [2024-12-27 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:24:25] Production.INFO: 52 MB #Memory Used# [2024-12-27 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:25:05 [end_date_ymd] => 2024-12-27 18:25:05 [RateCDR] => 1 ) [2024-12-27 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:25:05' and `end` < '2024-12-27 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:25:17] Production.INFO: count ==3196 [2024-12-27 18:25:18] Production.ERROR: pbx CDR StartTime 2024-12-27 15:25:05 - End Time 2024-12-27 18:25:05 [2024-12-27 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116008', 'tblTempUsageDetail_20' ) start [2024-12-27 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116008', 'tblTempUsageDetail_20' ) end [2024-12-27 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116008', 'tblTempVendorCDR_20' ) start [2024-12-27 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116008', 'tblTempVendorCDR_20' ) end [2024-12-27 18:25:18] Production.INFO: ProcessCDR(1,14116008,1,1,2) [2024-12-27 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116008', 'tblTempUsageDetail_20' ) start [2024-12-27 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116008', 'tblTempUsageDetail_20' ) end [2024-12-27 18:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:25:22] Production.INFO: ==16403== Releasing lock... [2024-12-27 18:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:25:22] Production.INFO: 52.5 MB #Memory Used# [2024-12-27 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:26:05 [end_date_ymd] => 2024-12-27 18:26:05 [RateCDR] => 1 ) [2024-12-27 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:26:05' and `end` < '2024-12-27 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:26:20] Production.INFO: count ==3187 [2024-12-27 18:26:21] Production.ERROR: pbx CDR StartTime 2024-12-27 15:26:05 - End Time 2024-12-27 18:26:05 [2024-12-27 18:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116013', 'tblTempUsageDetail_20' ) start [2024-12-27 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116013', 'tblTempUsageDetail_20' ) end [2024-12-27 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116013', 'tblTempVendorCDR_20' ) start [2024-12-27 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116013', 'tblTempVendorCDR_20' ) end [2024-12-27 18:26:21] Production.INFO: ProcessCDR(1,14116013,1,1,2) [2024-12-27 18:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116013', 'tblTempUsageDetail_20' ) start [2024-12-27 18:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116013', 'tblTempUsageDetail_20' ) end [2024-12-27 18:26:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:26:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:26:25] Production.INFO: ==16481== Releasing lock... [2024-12-27 18:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:26:25] Production.INFO: 51.75 MB #Memory Used# [2024-12-27 18:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:27:04 [end_date_ymd] => 2024-12-27 18:27:04 [RateCDR] => 1 ) [2024-12-27 18: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-27 15:27:04' and `end` < '2024-12-27 18: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-27 18:27:17] Production.INFO: count ==3180 [2024-12-27 18:27:18] Production.ERROR: pbx CDR StartTime 2024-12-27 15:27:04 - End Time 2024-12-27 18:27:04 [2024-12-27 18:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116018', 'tblTempUsageDetail_20' ) start [2024-12-27 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116018', 'tblTempUsageDetail_20' ) end [2024-12-27 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116018', 'tblTempVendorCDR_20' ) start [2024-12-27 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116018', 'tblTempVendorCDR_20' ) end [2024-12-27 18:27:18] Production.INFO: ProcessCDR(1,14116018,1,1,2) [2024-12-27 18:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116018', 'tblTempUsageDetail_20' ) start [2024-12-27 18:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116018', 'tblTempUsageDetail_20' ) end [2024-12-27 18:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:27:21] Production.INFO: ==16559== Releasing lock... [2024-12-27 18:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:27:21] Production.INFO: 51.75 MB #Memory Used# [2024-12-27 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:28:05 [end_date_ymd] => 2024-12-27 18:28:05 [RateCDR] => 1 ) [2024-12-27 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:28:05' and `end` < '2024-12-27 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:28:18] Production.INFO: count ==3171 [2024-12-27 18:28:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:28:05 - End Time 2024-12-27 18:28:05 [2024-12-27 18:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116023', 'tblTempUsageDetail_20' ) start [2024-12-27 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116023', 'tblTempUsageDetail_20' ) end [2024-12-27 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116023', 'tblTempVendorCDR_20' ) start [2024-12-27 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116023', 'tblTempVendorCDR_20' ) end [2024-12-27 18:28:19] Production.INFO: ProcessCDR(1,14116023,1,1,2) [2024-12-27 18:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116023', 'tblTempUsageDetail_20' ) start [2024-12-27 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116023', 'tblTempUsageDetail_20' ) end [2024-12-27 18:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:28:23] Production.INFO: ==16633== Releasing lock... [2024-12-27 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:28:23] Production.INFO: 51.75 MB #Memory Used# [2024-12-27 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:29:05 [end_date_ymd] => 2024-12-27 18:29:05 [RateCDR] => 1 ) [2024-12-27 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:29:05' and `end` < '2024-12-27 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:29:18] Production.INFO: count ==3155 [2024-12-27 18:29:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:29:05 - End Time 2024-12-27 18:29:05 [2024-12-27 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116028', 'tblTempUsageDetail_20' ) start [2024-12-27 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116028', 'tblTempUsageDetail_20' ) end [2024-12-27 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116028', 'tblTempVendorCDR_20' ) start [2024-12-27 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116028', 'tblTempVendorCDR_20' ) end [2024-12-27 18:29:19] Production.INFO: ProcessCDR(1,14116028,1,1,2) [2024-12-27 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116028', 'tblTempUsageDetail_20' ) start [2024-12-27 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116028', 'tblTempUsageDetail_20' ) end [2024-12-27 18:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:29:22] Production.INFO: ==16711== Releasing lock... [2024-12-27 18:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:29:22] Production.INFO: 51.5 MB #Memory Used# [2024-12-27 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:30:05 [end_date_ymd] => 2024-12-27 18:30:05 [RateCDR] => 1 ) [2024-12-27 18: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-27 15:30:05' and `end` < '2024-12-27 18: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-27 18:30:18] Production.INFO: count ==3133 [2024-12-27 18:30:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:30:05 - End Time 2024-12-27 18:30:05 [2024-12-27 18:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116034', 'tblTempUsageDetail_20' ) start [2024-12-27 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116034', 'tblTempUsageDetail_20' ) end [2024-12-27 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116034', 'tblTempVendorCDR_20' ) start [2024-12-27 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116034', 'tblTempVendorCDR_20' ) end [2024-12-27 18:30:19] Production.INFO: ProcessCDR(1,14116034,1,1,2) [2024-12-27 18:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116034', 'tblTempUsageDetail_20' ) start [2024-12-27 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116034', 'tblTempUsageDetail_20' ) end [2024-12-27 18:30:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:30:24] Production.INFO: ==16791== Releasing lock... [2024-12-27 18:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:30:24] Production.INFO: 51.5 MB #Memory Used# [2024-12-27 18:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:31:04 [end_date_ymd] => 2024-12-27 18:31:04 [RateCDR] => 1 ) [2024-12-27 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-27 15:31:04' and `end` < '2024-12-27 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-27 18:31:18] Production.INFO: count ==3116 [2024-12-27 18:31:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:31:04 - End Time 2024-12-27 18:31:04 [2024-12-27 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116039', 'tblTempUsageDetail_20' ) start [2024-12-27 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116039', 'tblTempUsageDetail_20' ) end [2024-12-27 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116039', 'tblTempVendorCDR_20' ) start [2024-12-27 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116039', 'tblTempVendorCDR_20' ) end [2024-12-27 18:31:19] Production.INFO: ProcessCDR(1,14116039,1,1,2) [2024-12-27 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116039', 'tblTempUsageDetail_20' ) start [2024-12-27 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116039', 'tblTempUsageDetail_20' ) end [2024-12-27 18:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:31:24] Production.INFO: ==16869== Releasing lock... [2024-12-27 18:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:31:24] Production.INFO: 51.25 MB #Memory Used# [2024-12-27 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:32:05 [end_date_ymd] => 2024-12-27 18:32:05 [RateCDR] => 1 ) [2024-12-27 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:32:05' and `end` < '2024-12-27 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:32:19] Production.INFO: count ==3070 [2024-12-27 18:32:20] Production.ERROR: pbx CDR StartTime 2024-12-27 15:32:05 - End Time 2024-12-27 18:32:05 [2024-12-27 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116044', 'tblTempUsageDetail_20' ) start [2024-12-27 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116044', 'tblTempUsageDetail_20' ) end [2024-12-27 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116044', 'tblTempVendorCDR_20' ) start [2024-12-27 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116044', 'tblTempVendorCDR_20' ) end [2024-12-27 18:32:20] Production.INFO: ProcessCDR(1,14116044,1,1,2) [2024-12-27 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116044', 'tblTempUsageDetail_20' ) start [2024-12-27 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116044', 'tblTempUsageDetail_20' ) end [2024-12-27 18:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:32:23] Production.INFO: ==16989== Releasing lock... [2024-12-27 18:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:32:23] Production.INFO: 51 MB #Memory Used# [2024-12-27 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:33:05 [end_date_ymd] => 2024-12-27 18:33:05 [RateCDR] => 1 ) [2024-12-27 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:33:05' and `end` < '2024-12-27 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:33:19] Production.INFO: count ==3046 [2024-12-27 18:33:20] Production.ERROR: pbx CDR StartTime 2024-12-27 15:33:05 - End Time 2024-12-27 18:33:05 [2024-12-27 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116049', 'tblTempUsageDetail_20' ) start [2024-12-27 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116049', 'tblTempUsageDetail_20' ) end [2024-12-27 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116049', 'tblTempVendorCDR_20' ) start [2024-12-27 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116049', 'tblTempVendorCDR_20' ) end [2024-12-27 18:33:20] Production.INFO: ProcessCDR(1,14116049,1,1,2) [2024-12-27 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116049', 'tblTempUsageDetail_20' ) start [2024-12-27 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116049', 'tblTempUsageDetail_20' ) end [2024-12-27 18:33:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:33:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:33:24] Production.INFO: ==17064== Releasing lock... [2024-12-27 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:33:24] Production.INFO: 51.5 MB #Memory Used# [2024-12-27 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:34:05 [end_date_ymd] => 2024-12-27 18:34:05 [RateCDR] => 1 ) [2024-12-27 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:34:05' and `end` < '2024-12-27 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:34:18] Production.INFO: count ==3045 [2024-12-27 18:34:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:34:05 - End Time 2024-12-27 18:34:05 [2024-12-27 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116054', 'tblTempUsageDetail_20' ) start [2024-12-27 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116054', 'tblTempUsageDetail_20' ) end [2024-12-27 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116054', 'tblTempVendorCDR_20' ) start [2024-12-27 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116054', 'tblTempVendorCDR_20' ) end [2024-12-27 18:34:19] Production.INFO: ProcessCDR(1,14116054,1,1,2) [2024-12-27 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116054', 'tblTempUsageDetail_20' ) start [2024-12-27 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116054', 'tblTempUsageDetail_20' ) end [2024-12-27 18:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:34:24] Production.INFO: ==17143== Releasing lock... [2024-12-27 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:34:24] Production.INFO: 51 MB #Memory Used# [2024-12-27 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:35:05 [end_date_ymd] => 2024-12-27 18:35:05 [RateCDR] => 1 ) [2024-12-27 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:35:05' and `end` < '2024-12-27 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:35:17] Production.INFO: count ==3030 [2024-12-27 18:35:18] Production.ERROR: pbx CDR StartTime 2024-12-27 15:35:05 - End Time 2024-12-27 18:35:05 [2024-12-27 18:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116059', 'tblTempUsageDetail_20' ) start [2024-12-27 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116059', 'tblTempUsageDetail_20' ) end [2024-12-27 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116059', 'tblTempVendorCDR_20' ) start [2024-12-27 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116059', 'tblTempVendorCDR_20' ) end [2024-12-27 18:35:18] Production.INFO: ProcessCDR(1,14116059,1,1,2) [2024-12-27 18:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116059', 'tblTempUsageDetail_20' ) start [2024-12-27 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116059', 'tblTempUsageDetail_20' ) end [2024-12-27 18:35:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:35:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:35:23] Production.INFO: ==17219== Releasing lock... [2024-12-27 18:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:35:23] Production.INFO: 50.5 MB #Memory Used# [2024-12-27 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:36:05 [end_date_ymd] => 2024-12-27 18:36:05 [RateCDR] => 1 ) [2024-12-27 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:36:05' and `end` < '2024-12-27 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:36:18] Production.INFO: count ==3022 [2024-12-27 18:36:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:36:05 - End Time 2024-12-27 18:36:05 [2024-12-27 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116064', 'tblTempUsageDetail_20' ) start [2024-12-27 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116064', 'tblTempUsageDetail_20' ) end [2024-12-27 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116064', 'tblTempVendorCDR_20' ) start [2024-12-27 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116064', 'tblTempVendorCDR_20' ) end [2024-12-27 18:36:19] Production.INFO: ProcessCDR(1,14116064,1,1,2) [2024-12-27 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116064', 'tblTempUsageDetail_20' ) start [2024-12-27 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116064', 'tblTempUsageDetail_20' ) end [2024-12-27 18:36:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:36:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:36:24] Production.INFO: ==17295== Releasing lock... [2024-12-27 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:36:24] Production.INFO: 51 MB #Memory Used# [2024-12-27 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:37:05 [end_date_ymd] => 2024-12-27 18:37:05 [RateCDR] => 1 ) [2024-12-27 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:37:05' and `end` < '2024-12-27 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:37:18] Production.INFO: count ==3015 [2024-12-27 18:37:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:37:05 - End Time 2024-12-27 18:37:05 [2024-12-27 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116069', 'tblTempUsageDetail_20' ) start [2024-12-27 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116069', 'tblTempUsageDetail_20' ) end [2024-12-27 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116069', 'tblTempVendorCDR_20' ) start [2024-12-27 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116069', 'tblTempVendorCDR_20' ) end [2024-12-27 18:37:19] Production.INFO: ProcessCDR(1,14116069,1,1,2) [2024-12-27 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116069', 'tblTempUsageDetail_20' ) start [2024-12-27 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116069', 'tblTempUsageDetail_20' ) end [2024-12-27 18:37:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:37:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:37:24] Production.INFO: ==17370== Releasing lock... [2024-12-27 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:37:24] Production.INFO: 50.5 MB #Memory Used# [2024-12-27 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:38:05 [end_date_ymd] => 2024-12-27 18:38:05 [RateCDR] => 1 ) [2024-12-27 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:38:05' and `end` < '2024-12-27 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:38:18] Production.INFO: count ==2989 [2024-12-27 18:38:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:38:05 - End Time 2024-12-27 18:38:05 [2024-12-27 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116074', 'tblTempUsageDetail_20' ) start [2024-12-27 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116074', 'tblTempUsageDetail_20' ) end [2024-12-27 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116074', 'tblTempVendorCDR_20' ) start [2024-12-27 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116074', 'tblTempVendorCDR_20' ) end [2024-12-27 18:38:19] Production.INFO: ProcessCDR(1,14116074,1,1,2) [2024-12-27 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116074', 'tblTempUsageDetail_20' ) start [2024-12-27 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116074', 'tblTempUsageDetail_20' ) end [2024-12-27 18:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:38:22] Production.INFO: ==17445== Releasing lock... [2024-12-27 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:38:22] Production.INFO: 50.25 MB #Memory Used# [2024-12-27 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:39:05 [end_date_ymd] => 2024-12-27 18:39:05 [RateCDR] => 1 ) [2024-12-27 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:39:05' and `end` < '2024-12-27 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:39:18] Production.INFO: count ==2943 [2024-12-27 18:39:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:39:05 - End Time 2024-12-27 18:39:05 [2024-12-27 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116079', 'tblTempUsageDetail_20' ) start [2024-12-27 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116079', 'tblTempUsageDetail_20' ) end [2024-12-27 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116079', 'tblTempVendorCDR_20' ) start [2024-12-27 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116079', 'tblTempVendorCDR_20' ) end [2024-12-27 18:39:19] Production.INFO: ProcessCDR(1,14116079,1,1,2) [2024-12-27 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116079', 'tblTempUsageDetail_20' ) start [2024-12-27 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116079', 'tblTempUsageDetail_20' ) end [2024-12-27 18:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:39:23] Production.INFO: ==17522== Releasing lock... [2024-12-27 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:39:23] Production.INFO: 49.75 MB #Memory Used# [2024-12-27 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:40:05 [end_date_ymd] => 2024-12-27 18:40:05 [RateCDR] => 1 ) [2024-12-27 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:40:05' and `end` < '2024-12-27 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:40:18] Production.INFO: count ==2935 [2024-12-27 18:40:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:40:05 - End Time 2024-12-27 18:40:05 [2024-12-27 18:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116085', 'tblTempUsageDetail_20' ) start [2024-12-27 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116085', 'tblTempUsageDetail_20' ) end [2024-12-27 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116085', 'tblTempVendorCDR_20' ) start [2024-12-27 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116085', 'tblTempVendorCDR_20' ) end [2024-12-27 18:40:19] Production.INFO: ProcessCDR(1,14116085,1,1,2) [2024-12-27 18:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116085', 'tblTempUsageDetail_20' ) start [2024-12-27 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116085', 'tblTempUsageDetail_20' ) end [2024-12-27 18:40:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:40:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:40:24] Production.INFO: ==17598== Releasing lock... [2024-12-27 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:40:24] Production.INFO: 49.75 MB #Memory Used# [2024-12-27 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:41:05 [end_date_ymd] => 2024-12-27 18:41:05 [RateCDR] => 1 ) [2024-12-27 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:41:05' and `end` < '2024-12-27 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:41:18] Production.INFO: count ==2889 [2024-12-27 18:41:18] Production.ERROR: pbx CDR StartTime 2024-12-27 15:41:05 - End Time 2024-12-27 18:41:05 [2024-12-27 18:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116090', 'tblTempUsageDetail_20' ) start [2024-12-27 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116090', 'tblTempUsageDetail_20' ) end [2024-12-27 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116090', 'tblTempVendorCDR_20' ) start [2024-12-27 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116090', 'tblTempVendorCDR_20' ) end [2024-12-27 18:41:19] Production.INFO: ProcessCDR(1,14116090,1,1,2) [2024-12-27 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116090', 'tblTempUsageDetail_20' ) start [2024-12-27 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116090', 'tblTempUsageDetail_20' ) end [2024-12-27 18:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:41:22] Production.INFO: ==17676== Releasing lock... [2024-12-27 18:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:41:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-27 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:42:05 [end_date_ymd] => 2024-12-27 18:42:05 [RateCDR] => 1 ) [2024-12-27 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:42:05' and `end` < '2024-12-27 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:42:18] Production.INFO: count ==2873 [2024-12-27 18:42:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:42:05 - End Time 2024-12-27 18:42:05 [2024-12-27 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116095', 'tblTempUsageDetail_20' ) start [2024-12-27 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116095', 'tblTempUsageDetail_20' ) end [2024-12-27 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116095', 'tblTempVendorCDR_20' ) start [2024-12-27 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116095', 'tblTempVendorCDR_20' ) end [2024-12-27 18:42:19] Production.INFO: ProcessCDR(1,14116095,1,1,2) [2024-12-27 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116095', 'tblTempUsageDetail_20' ) start [2024-12-27 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116095', 'tblTempUsageDetail_20' ) end [2024-12-27 18:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:42:22] Production.INFO: ==17750== Releasing lock... [2024-12-27 18:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:42:22] Production.INFO: 49.75 MB #Memory Used# [2024-12-27 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:43:05 [end_date_ymd] => 2024-12-27 18:43:05 [RateCDR] => 1 ) [2024-12-27 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:43:05' and `end` < '2024-12-27 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:43:18] Production.INFO: count ==2863 [2024-12-27 18:43:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:43:05 - End Time 2024-12-27 18:43:05 [2024-12-27 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116100', 'tblTempUsageDetail_20' ) start [2024-12-27 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116100', 'tblTempUsageDetail_20' ) end [2024-12-27 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116100', 'tblTempVendorCDR_20' ) start [2024-12-27 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116100', 'tblTempVendorCDR_20' ) end [2024-12-27 18:43:19] Production.INFO: ProcessCDR(1,14116100,1,1,2) [2024-12-27 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116100', 'tblTempUsageDetail_20' ) start [2024-12-27 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116100', 'tblTempUsageDetail_20' ) end [2024-12-27 18:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:43:22] Production.INFO: ==17826== Releasing lock... [2024-12-27 18:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:43:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-27 18:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:44:04 [end_date_ymd] => 2024-12-27 18:44:04 [RateCDR] => 1 ) [2024-12-27 18: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-27 15:44:04' and `end` < '2024-12-27 18: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-27 18:44:20] Production.INFO: count ==2849 [2024-12-27 18:44:20] Production.ERROR: pbx CDR StartTime 2024-12-27 15:44:04 - End Time 2024-12-27 18:44:04 [2024-12-27 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116105', 'tblTempUsageDetail_20' ) start [2024-12-27 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116105', 'tblTempUsageDetail_20' ) end [2024-12-27 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116105', 'tblTempVendorCDR_20' ) start [2024-12-27 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116105', 'tblTempVendorCDR_20' ) end [2024-12-27 18:44:20] Production.INFO: ProcessCDR(1,14116105,1,1,2) [2024-12-27 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116105', 'tblTempUsageDetail_20' ) start [2024-12-27 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116105', 'tblTempUsageDetail_20' ) end [2024-12-27 18:44:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:44:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:44:24] Production.INFO: ==17900== Releasing lock... [2024-12-27 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:44:24] Production.INFO: 49.5 MB #Memory Used# [2024-12-27 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:45:05 [end_date_ymd] => 2024-12-27 18:45:05 [RateCDR] => 1 ) [2024-12-27 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:45:05' and `end` < '2024-12-27 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:45:18] Production.INFO: count ==2841 [2024-12-27 18:45:18] Production.ERROR: pbx CDR StartTime 2024-12-27 15:45:05 - End Time 2024-12-27 18:45:05 [2024-12-27 18:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116110', 'tblTempUsageDetail_20' ) start [2024-12-27 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116110', 'tblTempUsageDetail_20' ) end [2024-12-27 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116110', 'tblTempVendorCDR_20' ) start [2024-12-27 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116110', 'tblTempVendorCDR_20' ) end [2024-12-27 18:45:18] Production.INFO: ProcessCDR(1,14116110,1,1,2) [2024-12-27 18:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116110', 'tblTempUsageDetail_20' ) start [2024-12-27 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116110', 'tblTempUsageDetail_20' ) end [2024-12-27 18:45:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:45:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:45:23] Production.INFO: ==17970== Releasing lock... [2024-12-27 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:45:23] Production.INFO: 49.5 MB #Memory Used# [2024-12-27 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:46:05 [end_date_ymd] => 2024-12-27 18:46:05 [RateCDR] => 1 ) [2024-12-27 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:46:05' and `end` < '2024-12-27 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:46:18] Production.INFO: count ==2829 [2024-12-27 18:46:18] Production.ERROR: pbx CDR StartTime 2024-12-27 15:46:05 - End Time 2024-12-27 18:46:05 [2024-12-27 18:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116115', 'tblTempUsageDetail_20' ) start [2024-12-27 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116115', 'tblTempUsageDetail_20' ) end [2024-12-27 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116115', 'tblTempVendorCDR_20' ) start [2024-12-27 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116115', 'tblTempVendorCDR_20' ) end [2024-12-27 18:46:18] Production.INFO: ProcessCDR(1,14116115,1,1,2) [2024-12-27 18:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116115', 'tblTempUsageDetail_20' ) start [2024-12-27 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116115', 'tblTempUsageDetail_20' ) end [2024-12-27 18:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:46:23] Production.INFO: ==18048== Releasing lock... [2024-12-27 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:46:23] Production.INFO: 49.25 MB #Memory Used# [2024-12-27 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:47:05 [end_date_ymd] => 2024-12-27 18:47:05 [RateCDR] => 1 ) [2024-12-27 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:47:05' and `end` < '2024-12-27 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:47:18] Production.INFO: count ==2816 [2024-12-27 18:47:18] Production.ERROR: pbx CDR StartTime 2024-12-27 15:47:05 - End Time 2024-12-27 18:47:05 [2024-12-27 18:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116120', 'tblTempUsageDetail_20' ) start [2024-12-27 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116120', 'tblTempUsageDetail_20' ) end [2024-12-27 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116120', 'tblTempVendorCDR_20' ) start [2024-12-27 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116120', 'tblTempVendorCDR_20' ) end [2024-12-27 18:47:18] Production.INFO: ProcessCDR(1,14116120,1,1,2) [2024-12-27 18:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116120', 'tblTempUsageDetail_20' ) start [2024-12-27 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116120', 'tblTempUsageDetail_20' ) end [2024-12-27 18:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:47:22] Production.INFO: ==18127== Releasing lock... [2024-12-27 18:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:47:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-27 18:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:48:04 [end_date_ymd] => 2024-12-27 18:48:04 [RateCDR] => 1 ) [2024-12-27 18: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-27 15:48:04' and `end` < '2024-12-27 18: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-27 18:48:18] Production.INFO: count ==2813 [2024-12-27 18:48:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:48:04 - End Time 2024-12-27 18:48:04 [2024-12-27 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116125', 'tblTempUsageDetail_20' ) start [2024-12-27 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116125', 'tblTempUsageDetail_20' ) end [2024-12-27 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116125', 'tblTempVendorCDR_20' ) start [2024-12-27 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116125', 'tblTempVendorCDR_20' ) end [2024-12-27 18:48:19] Production.INFO: ProcessCDR(1,14116125,1,1,2) [2024-12-27 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116125', 'tblTempUsageDetail_20' ) start [2024-12-27 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116125', 'tblTempUsageDetail_20' ) end [2024-12-27 18:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:48:22] Production.INFO: ==18237== Releasing lock... [2024-12-27 18:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:48:22] Production.INFO: 49.25 MB #Memory Used# [2024-12-27 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:49:05 [end_date_ymd] => 2024-12-27 18:49:05 [RateCDR] => 1 ) [2024-12-27 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:49:05' and `end` < '2024-12-27 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:49:18] Production.INFO: count ==2815 [2024-12-27 18:49:18] Production.ERROR: pbx CDR StartTime 2024-12-27 15:49:05 - End Time 2024-12-27 18:49:05 [2024-12-27 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116130', 'tblTempUsageDetail_20' ) start [2024-12-27 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116130', 'tblTempUsageDetail_20' ) end [2024-12-27 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116130', 'tblTempVendorCDR_20' ) start [2024-12-27 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116130', 'tblTempVendorCDR_20' ) end [2024-12-27 18:49:19] Production.INFO: ProcessCDR(1,14116130,1,1,2) [2024-12-27 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116130', 'tblTempUsageDetail_20' ) start [2024-12-27 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116130', 'tblTempUsageDetail_20' ) end [2024-12-27 18:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:49:22] Production.INFO: ==18311== Releasing lock... [2024-12-27 18:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:49:22] Production.INFO: 49.5 MB #Memory Used# [2024-12-27 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:50:05 [end_date_ymd] => 2024-12-27 18:50:05 [RateCDR] => 1 ) [2024-12-27 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-27 15:50:05' and `end` < '2024-12-27 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-27 18:50:18] Production.INFO: count ==2793 [2024-12-27 18:50:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:50:05 - End Time 2024-12-27 18:50:05 [2024-12-27 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116136', 'tblTempUsageDetail_20' ) start [2024-12-27 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116136', 'tblTempUsageDetail_20' ) end [2024-12-27 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116136', 'tblTempVendorCDR_20' ) start [2024-12-27 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116136', 'tblTempVendorCDR_20' ) end [2024-12-27 18:50:19] Production.INFO: ProcessCDR(1,14116136,1,1,2) [2024-12-27 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116136', 'tblTempUsageDetail_20' ) start [2024-12-27 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116136', 'tblTempUsageDetail_20' ) end [2024-12-27 18:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:50:22] Production.INFO: ==18385== Releasing lock... [2024-12-27 18:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:50:22] Production.INFO: 48.75 MB #Memory Used# [2024-12-27 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:51:05 [end_date_ymd] => 2024-12-27 18:51:05 [RateCDR] => 1 ) [2024-12-27 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:51:05' and `end` < '2024-12-27 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:51:18] Production.INFO: count ==2753 [2024-12-27 18:51:18] Production.ERROR: pbx CDR StartTime 2024-12-27 15:51:05 - End Time 2024-12-27 18:51:05 [2024-12-27 18:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116141', 'tblTempUsageDetail_20' ) start [2024-12-27 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116141', 'tblTempUsageDetail_20' ) end [2024-12-27 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116141', 'tblTempVendorCDR_20' ) start [2024-12-27 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116141', 'tblTempVendorCDR_20' ) end [2024-12-27 18:51:18] Production.INFO: ProcessCDR(1,14116141,1,1,2) [2024-12-27 18:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116141', 'tblTempUsageDetail_20' ) start [2024-12-27 18:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116141', 'tblTempUsageDetail_20' ) end [2024-12-27 18:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:51:21] Production.INFO: ==18457== Releasing lock... [2024-12-27 18:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:51:21] Production.INFO: 48.75 MB #Memory Used# [2024-12-27 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:52:05 [end_date_ymd] => 2024-12-27 18:52:05 [RateCDR] => 1 ) [2024-12-27 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:52:05' and `end` < '2024-12-27 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:52:18] Production.INFO: count ==2749 [2024-12-27 18:52:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:52:05 - End Time 2024-12-27 18:52:05 [2024-12-27 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116146', 'tblTempUsageDetail_20' ) start [2024-12-27 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116146', 'tblTempUsageDetail_20' ) end [2024-12-27 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116146', 'tblTempVendorCDR_20' ) start [2024-12-27 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116146', 'tblTempVendorCDR_20' ) end [2024-12-27 18:52:19] Production.INFO: ProcessCDR(1,14116146,1,1,2) [2024-12-27 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116146', 'tblTempUsageDetail_20' ) start [2024-12-27 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116146', 'tblTempUsageDetail_20' ) end [2024-12-27 18:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:52:22] Production.INFO: ==18529== Releasing lock... [2024-12-27 18:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:52:22] Production.INFO: 49 MB #Memory Used# [2024-12-27 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:53:05 [end_date_ymd] => 2024-12-27 18:53:05 [RateCDR] => 1 ) [2024-12-27 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:53:05' and `end` < '2024-12-27 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:53:19] Production.INFO: count ==2750 [2024-12-27 18:53:20] Production.ERROR: pbx CDR StartTime 2024-12-27 15:53:05 - End Time 2024-12-27 18:53:05 [2024-12-27 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116151', 'tblTempUsageDetail_20' ) start [2024-12-27 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116151', 'tblTempUsageDetail_20' ) end [2024-12-27 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116151', 'tblTempVendorCDR_20' ) start [2024-12-27 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116151', 'tblTempVendorCDR_20' ) end [2024-12-27 18:53:20] Production.INFO: ProcessCDR(1,14116151,1,1,2) [2024-12-27 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116151', 'tblTempUsageDetail_20' ) start [2024-12-27 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116151', 'tblTempUsageDetail_20' ) end [2024-12-27 18:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:53:23] Production.INFO: ==18598== Releasing lock... [2024-12-27 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:53:23] Production.INFO: 48.75 MB #Memory Used# [2024-12-27 18:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:54:04 [end_date_ymd] => 2024-12-27 18:54:04 [RateCDR] => 1 ) [2024-12-27 18: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-27 15:54:04' and `end` < '2024-12-27 18: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-27 18:54:17] Production.INFO: count ==2737 [2024-12-27 18:54:18] Production.ERROR: pbx CDR StartTime 2024-12-27 15:54:04 - End Time 2024-12-27 18:54:04 [2024-12-27 18:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116156', 'tblTempUsageDetail_20' ) start [2024-12-27 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116156', 'tblTempUsageDetail_20' ) end [2024-12-27 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116156', 'tblTempVendorCDR_20' ) start [2024-12-27 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116156', 'tblTempVendorCDR_20' ) end [2024-12-27 18:54:18] Production.INFO: ProcessCDR(1,14116156,1,1,2) [2024-12-27 18:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116156', 'tblTempUsageDetail_20' ) start [2024-12-27 18:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116156', 'tblTempUsageDetail_20' ) end [2024-12-27 18:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:54:21] Production.INFO: ==18668== Releasing lock... [2024-12-27 18:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:54:21] Production.INFO: 48.5 MB #Memory Used# [2024-12-27 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:55:05 [end_date_ymd] => 2024-12-27 18:55:05 [RateCDR] => 1 ) [2024-12-27 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:55:05' and `end` < '2024-12-27 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:55:18] Production.INFO: count ==2717 [2024-12-27 18:55:18] Production.ERROR: pbx CDR StartTime 2024-12-27 15:55:05 - End Time 2024-12-27 18:55:05 [2024-12-27 18:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116161', 'tblTempUsageDetail_20' ) start [2024-12-27 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116161', 'tblTempUsageDetail_20' ) end [2024-12-27 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116161', 'tblTempVendorCDR_20' ) start [2024-12-27 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116161', 'tblTempVendorCDR_20' ) end [2024-12-27 18:55:19] Production.INFO: ProcessCDR(1,14116161,1,1,2) [2024-12-27 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116161', 'tblTempUsageDetail_20' ) start [2024-12-27 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116161', 'tblTempUsageDetail_20' ) end [2024-12-27 18:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:55:22] Production.INFO: ==18740== Releasing lock... [2024-12-27 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:55:22] Production.INFO: 48.5 MB #Memory Used# [2024-12-27 18:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:56:04 [end_date_ymd] => 2024-12-27 18:56:04 [RateCDR] => 1 ) [2024-12-27 18: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-27 15:56:04' and `end` < '2024-12-27 18: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-27 18:56:19] Production.INFO: count ==2709 [2024-12-27 18:56:20] Production.ERROR: pbx CDR StartTime 2024-12-27 15:56:04 - End Time 2024-12-27 18:56:04 [2024-12-27 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116166', 'tblTempUsageDetail_20' ) start [2024-12-27 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116166', 'tblTempUsageDetail_20' ) end [2024-12-27 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116166', 'tblTempVendorCDR_20' ) start [2024-12-27 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116166', 'tblTempVendorCDR_20' ) end [2024-12-27 18:56:20] Production.INFO: ProcessCDR(1,14116166,1,1,2) [2024-12-27 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116166', 'tblTempUsageDetail_20' ) start [2024-12-27 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116166', 'tblTempUsageDetail_20' ) end [2024-12-27 18:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:56:24] Production.INFO: ==18811== Releasing lock... [2024-12-27 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:56:24] Production.INFO: 48.5 MB #Memory Used# [2024-12-27 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:57:05 [end_date_ymd] => 2024-12-27 18:57:05 [RateCDR] => 1 ) [2024-12-27 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:57:05' and `end` < '2024-12-27 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:57:19] Production.INFO: count ==2679 [2024-12-27 18:57:20] Production.ERROR: pbx CDR StartTime 2024-12-27 15:57:05 - End Time 2024-12-27 18:57:05 [2024-12-27 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116171', 'tblTempUsageDetail_20' ) start [2024-12-27 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116171', 'tblTempUsageDetail_20' ) end [2024-12-27 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116171', 'tblTempVendorCDR_20' ) start [2024-12-27 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116171', 'tblTempVendorCDR_20' ) end [2024-12-27 18:57:20] Production.INFO: ProcessCDR(1,14116171,1,1,2) [2024-12-27 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116171', 'tblTempUsageDetail_20' ) start [2024-12-27 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116171', 'tblTempUsageDetail_20' ) end [2024-12-27 18:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:57:23] Production.INFO: ==18884== Releasing lock... [2024-12-27 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:57:23] Production.INFO: 48.25 MB #Memory Used# [2024-12-27 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:58:05 [end_date_ymd] => 2024-12-27 18:58:05 [RateCDR] => 1 ) [2024-12-27 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:58:05' and `end` < '2024-12-27 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:58:18] Production.INFO: count ==2659 [2024-12-27 18:58:19] Production.ERROR: pbx CDR StartTime 2024-12-27 15:58:05 - End Time 2024-12-27 18:58:05 [2024-12-27 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116176', 'tblTempUsageDetail_20' ) start [2024-12-27 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116176', 'tblTempUsageDetail_20' ) end [2024-12-27 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116176', 'tblTempVendorCDR_20' ) start [2024-12-27 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116176', 'tblTempVendorCDR_20' ) end [2024-12-27 18:58:19] Production.INFO: ProcessCDR(1,14116176,1,1,2) [2024-12-27 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116176', 'tblTempUsageDetail_20' ) start [2024-12-27 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116176', 'tblTempUsageDetail_20' ) end [2024-12-27 18:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:58:24] Production.INFO: ==18954== Releasing lock... [2024-12-27 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:58:24] Production.INFO: 48 MB #Memory Used# [2024-12-27 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 15:59:05 [end_date_ymd] => 2024-12-27 18:59:05 [RateCDR] => 1 ) [2024-12-27 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 15:59:05' and `end` < '2024-12-27 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 18:59:17] Production.INFO: count ==2658 [2024-12-27 18:59:18] Production.ERROR: pbx CDR StartTime 2024-12-27 15:59:05 - End Time 2024-12-27 18:59:05 [2024-12-27 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116181', 'tblTempUsageDetail_20' ) start [2024-12-27 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116181', 'tblTempUsageDetail_20' ) end [2024-12-27 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116181', 'tblTempVendorCDR_20' ) start [2024-12-27 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116181', 'tblTempVendorCDR_20' ) end [2024-12-27 18:59:18] Production.INFO: ProcessCDR(1,14116181,1,1,2) [2024-12-27 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 18:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 18:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116181', 'tblTempUsageDetail_20' ) start [2024-12-27 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116181', 'tblTempUsageDetail_20' ) end [2024-12-27 18:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 18:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 18:59:22] Production.INFO: ==19027== Releasing lock... [2024-12-27 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 18:59:22] Production.INFO: 48 MB #Memory Used# [2024-12-27 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:00:06 [end_date_ymd] => 2024-12-27 19:00:06 [RateCDR] => 1 ) [2024-12-27 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:00:06' and `end` < '2024-12-27 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:00:19] Production.INFO: count ==2648 [2024-12-27 19:00:20] Production.ERROR: pbx CDR StartTime 2024-12-27 16:00:06 - End Time 2024-12-27 19:00:06 [2024-12-27 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116187', 'tblTempUsageDetail_20' ) start [2024-12-27 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116187', 'tblTempUsageDetail_20' ) end [2024-12-27 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116187', 'tblTempVendorCDR_20' ) start [2024-12-27 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116187', 'tblTempVendorCDR_20' ) end [2024-12-27 19:00:20] Production.INFO: ProcessCDR(1,14116187,1,1,2) [2024-12-27 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116187', 'tblTempUsageDetail_20' ) start [2024-12-27 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116187', 'tblTempUsageDetail_20' ) end [2024-12-27 19:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:00:24] Production.INFO: ==19103== Releasing lock... [2024-12-27 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:00:24] Production.INFO: 48 MB #Memory Used# [2024-12-27 19:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:01:04 [end_date_ymd] => 2024-12-27 19:01:04 [RateCDR] => 1 ) [2024-12-27 19: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-27 16:01:04' and `end` < '2024-12-27 19: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-27 19:01:17] Production.INFO: count ==2628 [2024-12-27 19:01:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:01:04 - End Time 2024-12-27 19:01:04 [2024-12-27 19:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116192', 'tblTempUsageDetail_20' ) start [2024-12-27 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116192', 'tblTempUsageDetail_20' ) end [2024-12-27 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116192', 'tblTempVendorCDR_20' ) start [2024-12-27 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116192', 'tblTempVendorCDR_20' ) end [2024-12-27 19:01:18] Production.INFO: ProcessCDR(1,14116192,1,1,2) [2024-12-27 19:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116192', 'tblTempUsageDetail_20' ) start [2024-12-27 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116192', 'tblTempUsageDetail_20' ) end [2024-12-27 19:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:01:23] Production.INFO: ==19270== Releasing lock... [2024-12-27 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:01:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-27 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:02:05 [end_date_ymd] => 2024-12-27 19:02:05 [RateCDR] => 1 ) [2024-12-27 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:02:05' and `end` < '2024-12-27 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:02:17] Production.INFO: count ==2619 [2024-12-27 19:02:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:02:05 - End Time 2024-12-27 19:02:05 [2024-12-27 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116197', 'tblTempUsageDetail_20' ) start [2024-12-27 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116197', 'tblTempUsageDetail_20' ) end [2024-12-27 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116197', 'tblTempVendorCDR_20' ) start [2024-12-27 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116197', 'tblTempVendorCDR_20' ) end [2024-12-27 19:02:18] Production.INFO: ProcessCDR(1,14116197,1,1,2) [2024-12-27 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116197', 'tblTempUsageDetail_20' ) start [2024-12-27 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116197', 'tblTempUsageDetail_20' ) end [2024-12-27 19:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:02:23] Production.INFO: ==19347== Releasing lock... [2024-12-27 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:02:23] Production.INFO: 47.75 MB #Memory Used# [2024-12-27 19:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:03:04 [end_date_ymd] => 2024-12-27 19:03:04 [RateCDR] => 1 ) [2024-12-27 19: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-27 16:03:04' and `end` < '2024-12-27 19: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-27 19:03:17] Production.INFO: count ==2611 [2024-12-27 19:03:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:03:04 - End Time 2024-12-27 19:03:04 [2024-12-27 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116202', 'tblTempUsageDetail_20' ) start [2024-12-27 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116202', 'tblTempUsageDetail_20' ) end [2024-12-27 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116202', 'tblTempVendorCDR_20' ) start [2024-12-27 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116202', 'tblTempVendorCDR_20' ) end [2024-12-27 19:03:18] Production.INFO: ProcessCDR(1,14116202,1,1,2) [2024-12-27 19:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116202', 'tblTempUsageDetail_20' ) start [2024-12-27 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116202', 'tblTempUsageDetail_20' ) end [2024-12-27 19:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:03:22] Production.INFO: ==19438== Releasing lock... [2024-12-27 19:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:03:22] Production.INFO: 47.75 MB #Memory Used# [2024-12-27 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:04:05 [end_date_ymd] => 2024-12-27 19:04:05 [RateCDR] => 1 ) [2024-12-27 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:04:05' and `end` < '2024-12-27 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:04:20] Production.INFO: count ==2609 [2024-12-27 19:04:20] Production.ERROR: pbx CDR StartTime 2024-12-27 16:04:05 - End Time 2024-12-27 19:04:05 [2024-12-27 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116207', 'tblTempUsageDetail_20' ) start [2024-12-27 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116207', 'tblTempUsageDetail_20' ) end [2024-12-27 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116207', 'tblTempVendorCDR_20' ) start [2024-12-27 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116207', 'tblTempVendorCDR_20' ) end [2024-12-27 19:04:20] Production.INFO: ProcessCDR(1,14116207,1,1,2) [2024-12-27 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116207', 'tblTempUsageDetail_20' ) start [2024-12-27 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116207', 'tblTempUsageDetail_20' ) end [2024-12-27 19:04:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:04:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:04:25] Production.INFO: ==19530== Releasing lock... [2024-12-27 19:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:04:25] Production.INFO: 47.75 MB #Memory Used# [2024-12-27 19:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:05:04 [end_date_ymd] => 2024-12-27 19:05:04 [RateCDR] => 1 ) [2024-12-27 19: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-27 16:05:04' and `end` < '2024-12-27 19: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-27 19:05:17] Production.INFO: count ==2572 [2024-12-27 19:05:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:05:04 - End Time 2024-12-27 19:05:04 [2024-12-27 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116212', 'tblTempUsageDetail_20' ) start [2024-12-27 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116212', 'tblTempUsageDetail_20' ) end [2024-12-27 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116212', 'tblTempVendorCDR_20' ) start [2024-12-27 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116212', 'tblTempVendorCDR_20' ) end [2024-12-27 19:05:18] Production.INFO: ProcessCDR(1,14116212,1,1,2) [2024-12-27 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116212', 'tblTempUsageDetail_20' ) start [2024-12-27 19:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116212', 'tblTempUsageDetail_20' ) end [2024-12-27 19:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:05:21] Production.INFO: ==19679== Releasing lock... [2024-12-27 19:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:05:21] Production.INFO: 47.25 MB #Memory Used# [2024-12-27 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:06:05 [end_date_ymd] => 2024-12-27 19:06:05 [RateCDR] => 1 ) [2024-12-27 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:06:05' and `end` < '2024-12-27 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:06:18] Production.INFO: count ==2547 [2024-12-27 19:06:19] Production.ERROR: pbx CDR StartTime 2024-12-27 16:06:05 - End Time 2024-12-27 19:06:05 [2024-12-27 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116217', 'tblTempUsageDetail_20' ) start [2024-12-27 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116217', 'tblTempUsageDetail_20' ) end [2024-12-27 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116217', 'tblTempVendorCDR_20' ) start [2024-12-27 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116217', 'tblTempVendorCDR_20' ) end [2024-12-27 19:06:19] Production.INFO: ProcessCDR(1,14116217,1,1,2) [2024-12-27 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116217', 'tblTempUsageDetail_20' ) start [2024-12-27 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116217', 'tblTempUsageDetail_20' ) end [2024-12-27 19:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:06:23] Production.INFO: ==19750== Releasing lock... [2024-12-27 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:06:23] Production.INFO: 47.5 MB #Memory Used# [2024-12-27 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:07:05 [end_date_ymd] => 2024-12-27 19:07:05 [RateCDR] => 1 ) [2024-12-27 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:07:05' and `end` < '2024-12-27 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:07:19] Production.INFO: count ==2545 [2024-12-27 19:07:20] Production.ERROR: pbx CDR StartTime 2024-12-27 16:07:05 - End Time 2024-12-27 19:07:05 [2024-12-27 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116222', 'tblTempUsageDetail_20' ) start [2024-12-27 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116222', 'tblTempUsageDetail_20' ) end [2024-12-27 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116222', 'tblTempVendorCDR_20' ) start [2024-12-27 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116222', 'tblTempVendorCDR_20' ) end [2024-12-27 19:07:20] Production.INFO: ProcessCDR(1,14116222,1,1,2) [2024-12-27 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116222', 'tblTempUsageDetail_20' ) start [2024-12-27 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116222', 'tblTempUsageDetail_20' ) end [2024-12-27 19:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:07:24] Production.INFO: ==19820== Releasing lock... [2024-12-27 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:07:24] Production.INFO: 47.25 MB #Memory Used# [2024-12-27 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:08:06 [end_date_ymd] => 2024-12-27 19:08:06 [RateCDR] => 1 ) [2024-12-27 19:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:08:06' and `end` < '2024-12-27 19:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:08:19] Production.INFO: count ==2540 [2024-12-27 19:08:20] Production.ERROR: pbx CDR StartTime 2024-12-27 16:08:06 - End Time 2024-12-27 19:08:06 [2024-12-27 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116227', 'tblTempUsageDetail_20' ) start [2024-12-27 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116227', 'tblTempUsageDetail_20' ) end [2024-12-27 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116227', 'tblTempVendorCDR_20' ) start [2024-12-27 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116227', 'tblTempVendorCDR_20' ) end [2024-12-27 19:08:20] Production.INFO: ProcessCDR(1,14116227,1,1,2) [2024-12-27 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116227', 'tblTempUsageDetail_20' ) start [2024-12-27 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116227', 'tblTempUsageDetail_20' ) end [2024-12-27 19:08:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:08:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:08:24] Production.INFO: ==19971== Releasing lock... [2024-12-27 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:08:24] Production.INFO: 47.25 MB #Memory Used# [2024-12-27 19:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:09:04 [end_date_ymd] => 2024-12-27 19:09:04 [RateCDR] => 1 ) [2024-12-27 19: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-27 16:09:04' and `end` < '2024-12-27 19: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-27 19:09:17] Production.INFO: count ==2530 [2024-12-27 19:09:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:09:04 - End Time 2024-12-27 19:09:04 [2024-12-27 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116232', 'tblTempUsageDetail_20' ) start [2024-12-27 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116232', 'tblTempUsageDetail_20' ) end [2024-12-27 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116232', 'tblTempVendorCDR_20' ) start [2024-12-27 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116232', 'tblTempVendorCDR_20' ) end [2024-12-27 19:09:18] Production.INFO: ProcessCDR(1,14116232,1,1,2) [2024-12-27 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116232', 'tblTempUsageDetail_20' ) start [2024-12-27 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116232', 'tblTempUsageDetail_20' ) end [2024-12-27 19:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:09:21] Production.INFO: ==20045== Releasing lock... [2024-12-27 19:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:09:21] Production.INFO: 47 MB #Memory Used# [2024-12-27 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:10:05 [end_date_ymd] => 2024-12-27 19:10:05 [RateCDR] => 1 ) [2024-12-27 19:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:10:05' and `end` < '2024-12-27 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:10:18] Production.INFO: count ==2515 [2024-12-27 19:10:19] Production.ERROR: pbx CDR StartTime 2024-12-27 16:10:05 - End Time 2024-12-27 19:10:05 [2024-12-27 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116238', 'tblTempUsageDetail_20' ) start [2024-12-27 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116238', 'tblTempUsageDetail_20' ) end [2024-12-27 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116238', 'tblTempVendorCDR_20' ) start [2024-12-27 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116238', 'tblTempVendorCDR_20' ) end [2024-12-27 19:10:19] Production.INFO: ProcessCDR(1,14116238,1,1,2) [2024-12-27 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116238', 'tblTempUsageDetail_20' ) start [2024-12-27 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116238', 'tblTempUsageDetail_20' ) end [2024-12-27 19:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:10:24] Production.INFO: ==20123== Releasing lock... [2024-12-27 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:10:24] Production.INFO: 47 MB #Memory Used# [2024-12-27 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:11:05 [end_date_ymd] => 2024-12-27 19:11:05 [RateCDR] => 1 ) [2024-12-27 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:11:05' and `end` < '2024-12-27 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:11:18] Production.INFO: count ==2524 [2024-12-27 19:11:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:11:05 - End Time 2024-12-27 19:11:05 [2024-12-27 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116243', 'tblTempUsageDetail_20' ) start [2024-12-27 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116243', 'tblTempUsageDetail_20' ) end [2024-12-27 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116243', 'tblTempVendorCDR_20' ) start [2024-12-27 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116243', 'tblTempVendorCDR_20' ) end [2024-12-27 19:11:19] Production.INFO: ProcessCDR(1,14116243,1,1,2) [2024-12-27 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116243', 'tblTempUsageDetail_20' ) start [2024-12-27 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116243', 'tblTempUsageDetail_20' ) end [2024-12-27 19:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:11:23] Production.INFO: ==20198== Releasing lock... [2024-12-27 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:11:23] Production.INFO: 47 MB #Memory Used# [2024-12-27 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:12:05 [end_date_ymd] => 2024-12-27 19:12:05 [RateCDR] => 1 ) [2024-12-27 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:12:05' and `end` < '2024-12-27 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:12:18] Production.INFO: count ==2505 [2024-12-27 19:12:19] Production.ERROR: pbx CDR StartTime 2024-12-27 16:12:05 - End Time 2024-12-27 19:12:05 [2024-12-27 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116248', 'tblTempUsageDetail_20' ) start [2024-12-27 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116248', 'tblTempUsageDetail_20' ) end [2024-12-27 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116248', 'tblTempVendorCDR_20' ) start [2024-12-27 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116248', 'tblTempVendorCDR_20' ) end [2024-12-27 19:12:19] Production.INFO: ProcessCDR(1,14116248,1,1,2) [2024-12-27 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116248', 'tblTempUsageDetail_20' ) start [2024-12-27 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116248', 'tblTempUsageDetail_20' ) end [2024-12-27 19:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:12:23] Production.INFO: ==20347== Releasing lock... [2024-12-27 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:12:23] Production.INFO: 46.75 MB #Memory Used# [2024-12-27 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:13:05 [end_date_ymd] => 2024-12-27 19:13:05 [RateCDR] => 1 ) [2024-12-27 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:13:05' and `end` < '2024-12-27 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:13:18] Production.INFO: count ==2492 [2024-12-27 19:13:19] Production.ERROR: pbx CDR StartTime 2024-12-27 16:13:05 - End Time 2024-12-27 19:13:05 [2024-12-27 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116253', 'tblTempUsageDetail_20' ) start [2024-12-27 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116253', 'tblTempUsageDetail_20' ) end [2024-12-27 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116253', 'tblTempVendorCDR_20' ) start [2024-12-27 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116253', 'tblTempVendorCDR_20' ) end [2024-12-27 19:13:19] Production.INFO: ProcessCDR(1,14116253,1,1,2) [2024-12-27 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116253', 'tblTempUsageDetail_20' ) start [2024-12-27 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116253', 'tblTempUsageDetail_20' ) end [2024-12-27 19:13:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:13:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:13:24] Production.INFO: ==20419== Releasing lock... [2024-12-27 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:13:24] Production.INFO: 46.5 MB #Memory Used# [2024-12-27 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:14:05 [end_date_ymd] => 2024-12-27 19:14:05 [RateCDR] => 1 ) [2024-12-27 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:14:05' and `end` < '2024-12-27 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:14:21] Production.INFO: count ==2476 [2024-12-27 19:14:22] Production.ERROR: pbx CDR StartTime 2024-12-27 16:14:05 - End Time 2024-12-27 19:14:05 [2024-12-27 19:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116258', 'tblTempUsageDetail_20' ) start [2024-12-27 19:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116258', 'tblTempUsageDetail_20' ) end [2024-12-27 19:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116258', 'tblTempVendorCDR_20' ) start [2024-12-27 19:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116258', 'tblTempVendorCDR_20' ) end [2024-12-27 19:14:22] Production.INFO: ProcessCDR(1,14116258,1,1,2) [2024-12-27 19:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116258', 'tblTempUsageDetail_20' ) start [2024-12-27 19:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116258', 'tblTempUsageDetail_20' ) end [2024-12-27 19:14:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:14:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:14:26] Production.INFO: ==20488== Releasing lock... [2024-12-27 19:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:14:26] Production.INFO: 46.75 MB #Memory Used# [2024-12-27 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:15:05 [end_date_ymd] => 2024-12-27 19:15:05 [RateCDR] => 1 ) [2024-12-27 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:15:05' and `end` < '2024-12-27 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:15:18] Production.INFO: count ==2454 [2024-12-27 19:15:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:15:05 - End Time 2024-12-27 19:15:05 [2024-12-27 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116263', 'tblTempUsageDetail_20' ) start [2024-12-27 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116263', 'tblTempUsageDetail_20' ) end [2024-12-27 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116263', 'tblTempVendorCDR_20' ) start [2024-12-27 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116263', 'tblTempVendorCDR_20' ) end [2024-12-27 19:15:18] Production.INFO: ProcessCDR(1,14116263,1,1,2) [2024-12-27 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116263', 'tblTempUsageDetail_20' ) start [2024-12-27 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116263', 'tblTempUsageDetail_20' ) end [2024-12-27 19:15:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:15:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:15:23] Production.INFO: ==20638== Releasing lock... [2024-12-27 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:15:23] Production.INFO: 46.5 MB #Memory Used# [2024-12-27 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:16:05 [end_date_ymd] => 2024-12-27 19:16:05 [RateCDR] => 1 ) [2024-12-27 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:16:05' and `end` < '2024-12-27 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:16:20] Production.INFO: count ==2453 [2024-12-27 19:16:21] Production.ERROR: pbx CDR StartTime 2024-12-27 16:16:05 - End Time 2024-12-27 19:16:05 [2024-12-27 19:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116268', 'tblTempUsageDetail_20' ) start [2024-12-27 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116268', 'tblTempUsageDetail_20' ) end [2024-12-27 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116268', 'tblTempVendorCDR_20' ) start [2024-12-27 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116268', 'tblTempVendorCDR_20' ) end [2024-12-27 19:16:21] Production.INFO: ProcessCDR(1,14116268,1,1,2) [2024-12-27 19:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116268', 'tblTempUsageDetail_20' ) start [2024-12-27 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116268', 'tblTempUsageDetail_20' ) end [2024-12-27 19:16:25] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:16:25] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:16:25] Production.INFO: ==20713== Releasing lock... [2024-12-27 19:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:16:25] Production.INFO: 46.5 MB #Memory Used# [2024-12-27 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:17:05 [end_date_ymd] => 2024-12-27 19:17:05 [RateCDR] => 1 ) [2024-12-27 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:17:05' and `end` < '2024-12-27 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:17:18] Production.INFO: count ==2433 [2024-12-27 19:17:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:17:05 - End Time 2024-12-27 19:17:05 [2024-12-27 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116273', 'tblTempUsageDetail_20' ) start [2024-12-27 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116273', 'tblTempUsageDetail_20' ) end [2024-12-27 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116273', 'tblTempVendorCDR_20' ) start [2024-12-27 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116273', 'tblTempVendorCDR_20' ) end [2024-12-27 19:17:18] Production.INFO: ProcessCDR(1,14116273,1,1,2) [2024-12-27 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116273', 'tblTempUsageDetail_20' ) start [2024-12-27 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116273', 'tblTempUsageDetail_20' ) end [2024-12-27 19:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:17:21] Production.INFO: ==20783== Releasing lock... [2024-12-27 19:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:17:21] Production.INFO: 46.25 MB #Memory Used# [2024-12-27 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:18:05 [end_date_ymd] => 2024-12-27 19:18:05 [RateCDR] => 1 ) [2024-12-27 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:18:05' and `end` < '2024-12-27 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:18:18] Production.INFO: count ==2429 [2024-12-27 19:18:19] Production.ERROR: pbx CDR StartTime 2024-12-27 16:18:05 - End Time 2024-12-27 19:18:05 [2024-12-27 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116278', 'tblTempUsageDetail_20' ) start [2024-12-27 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116278', 'tblTempUsageDetail_20' ) end [2024-12-27 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116278', 'tblTempVendorCDR_20' ) start [2024-12-27 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116278', 'tblTempVendorCDR_20' ) end [2024-12-27 19:18:19] Production.INFO: ProcessCDR(1,14116278,1,1,2) [2024-12-27 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116278', 'tblTempUsageDetail_20' ) start [2024-12-27 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116278', 'tblTempUsageDetail_20' ) end [2024-12-27 19:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:18:22] Production.INFO: ==20856== Releasing lock... [2024-12-27 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:18:22] Production.INFO: 46.25 MB #Memory Used# [2024-12-27 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:19:05 [end_date_ymd] => 2024-12-27 19:19:05 [RateCDR] => 1 ) [2024-12-27 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:19:05' and `end` < '2024-12-27 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:19:20] Production.INFO: count ==2427 [2024-12-27 19:19:21] Production.ERROR: pbx CDR StartTime 2024-12-27 16:19:05 - End Time 2024-12-27 19:19:05 [2024-12-27 19:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116283', 'tblTempUsageDetail_20' ) start [2024-12-27 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116283', 'tblTempUsageDetail_20' ) end [2024-12-27 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116283', 'tblTempVendorCDR_20' ) start [2024-12-27 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116283', 'tblTempVendorCDR_20' ) end [2024-12-27 19:19:21] Production.INFO: ProcessCDR(1,14116283,1,1,2) [2024-12-27 19:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116283', 'tblTempUsageDetail_20' ) start [2024-12-27 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116283', 'tblTempUsageDetail_20' ) end [2024-12-27 19:19:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:19:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:19:24] Production.INFO: ==20966== Releasing lock... [2024-12-27 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:19:24] Production.INFO: 46.25 MB #Memory Used# [2024-12-27 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:20:05 [end_date_ymd] => 2024-12-27 19:20:05 [RateCDR] => 1 ) [2024-12-27 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-27 16:20:05' and `end` < '2024-12-27 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-27 19:20:19] Production.INFO: count ==2398 [2024-12-27 19:20:19] Production.ERROR: pbx CDR StartTime 2024-12-27 16:20:05 - End Time 2024-12-27 19:20:05 [2024-12-27 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116289', 'tblTempUsageDetail_20' ) start [2024-12-27 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116289', 'tblTempUsageDetail_20' ) end [2024-12-27 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116289', 'tblTempVendorCDR_20' ) start [2024-12-27 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116289', 'tblTempVendorCDR_20' ) end [2024-12-27 19:20:19] Production.INFO: ProcessCDR(1,14116289,1,1,2) [2024-12-27 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116289', 'tblTempUsageDetail_20' ) start [2024-12-27 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116289', 'tblTempUsageDetail_20' ) end [2024-12-27 19:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:20:24] Production.INFO: ==21041== Releasing lock... [2024-12-27 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:20:24] Production.INFO: 46.5 MB #Memory Used# [2024-12-27 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:21:05 [end_date_ymd] => 2024-12-27 19:21:05 [RateCDR] => 1 ) [2024-12-27 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:21:05' and `end` < '2024-12-27 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:21:17] Production.INFO: count ==2338 [2024-12-27 19:21:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:21:05 - End Time 2024-12-27 19:21:05 [2024-12-27 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116294', 'tblTempUsageDetail_20' ) start [2024-12-27 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116294', 'tblTempUsageDetail_20' ) end [2024-12-27 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116294', 'tblTempVendorCDR_20' ) start [2024-12-27 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116294', 'tblTempVendorCDR_20' ) end [2024-12-27 19:21:18] Production.INFO: ProcessCDR(1,14116294,1,1,2) [2024-12-27 19:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116294', 'tblTempUsageDetail_20' ) start [2024-12-27 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116294', 'tblTempUsageDetail_20' ) end [2024-12-27 19:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:21:22] Production.INFO: ==21115== Releasing lock... [2024-12-27 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:21:22] Production.INFO: 45.5 MB #Memory Used# [2024-12-27 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:22:05 [end_date_ymd] => 2024-12-27 19:22:05 [RateCDR] => 1 ) [2024-12-27 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-27 16:22:05' and `end` < '2024-12-27 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-27 19:22:18] Production.INFO: count ==2324 [2024-12-27 19:22:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:22:05 - End Time 2024-12-27 19:22:05 [2024-12-27 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116299', 'tblTempUsageDetail_20' ) start [2024-12-27 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116299', 'tblTempUsageDetail_20' ) end [2024-12-27 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116299', 'tblTempVendorCDR_20' ) start [2024-12-27 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116299', 'tblTempVendorCDR_20' ) end [2024-12-27 19:22:18] Production.INFO: ProcessCDR(1,14116299,1,1,2) [2024-12-27 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116299', 'tblTempUsageDetail_20' ) start [2024-12-27 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116299', 'tblTempUsageDetail_20' ) end [2024-12-27 19:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:22:21] Production.INFO: ==21187== Releasing lock... [2024-12-27 19:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:22:21] Production.INFO: 45.5 MB #Memory Used# [2024-12-27 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:23:05 [end_date_ymd] => 2024-12-27 19:23:05 [RateCDR] => 1 ) [2024-12-27 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:23:05' and `end` < '2024-12-27 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:23:20] Production.INFO: count ==2312 [2024-12-27 19:23:20] Production.ERROR: pbx CDR StartTime 2024-12-27 16:23:05 - End Time 2024-12-27 19:23:05 [2024-12-27 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116304', 'tblTempUsageDetail_20' ) start [2024-12-27 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116304', 'tblTempUsageDetail_20' ) end [2024-12-27 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116304', 'tblTempVendorCDR_20' ) start [2024-12-27 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116304', 'tblTempVendorCDR_20' ) end [2024-12-27 19:23:20] Production.INFO: ProcessCDR(1,14116304,1,1,2) [2024-12-27 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116304', 'tblTempUsageDetail_20' ) start [2024-12-27 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116304', 'tblTempUsageDetail_20' ) end [2024-12-27 19:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:23:24] Production.INFO: ==21260== Releasing lock... [2024-12-27 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:23:24] Production.INFO: 45.5 MB #Memory Used# [2024-12-27 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:24:05 [end_date_ymd] => 2024-12-27 19:24:05 [RateCDR] => 1 ) [2024-12-27 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-27 16:24:05' and `end` < '2024-12-27 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-27 19:24:17] Production.INFO: count ==2289 [2024-12-27 19:24:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:24:05 - End Time 2024-12-27 19:24:05 [2024-12-27 19:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116309', 'tblTempUsageDetail_20' ) start [2024-12-27 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116309', 'tblTempUsageDetail_20' ) end [2024-12-27 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116309', 'tblTempVendorCDR_20' ) start [2024-12-27 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116309', 'tblTempVendorCDR_20' ) end [2024-12-27 19:24:18] Production.INFO: ProcessCDR(1,14116309,1,1,2) [2024-12-27 19:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116309', 'tblTempUsageDetail_20' ) start [2024-12-27 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116309', 'tblTempUsageDetail_20' ) end [2024-12-27 19:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:24:22] Production.INFO: ==21334== Releasing lock... [2024-12-27 19:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:24:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-27 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:25:04 [end_date_ymd] => 2024-12-27 19:25:04 [RateCDR] => 1 ) [2024-12-27 19:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:25:04' and `end` < '2024-12-27 19:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:25:17] Production.INFO: count ==2283 [2024-12-27 19:25:17] Production.ERROR: pbx CDR StartTime 2024-12-27 16:25:04 - End Time 2024-12-27 19:25:04 [2024-12-27 19:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116314', 'tblTempUsageDetail_20' ) start [2024-12-27 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116314', 'tblTempUsageDetail_20' ) end [2024-12-27 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116314', 'tblTempVendorCDR_20' ) start [2024-12-27 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116314', 'tblTempVendorCDR_20' ) end [2024-12-27 19:25:17] Production.INFO: ProcessCDR(1,14116314,1,1,2) [2024-12-27 19:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116314', 'tblTempUsageDetail_20' ) start [2024-12-27 19:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116314', 'tblTempUsageDetail_20' ) end [2024-12-27 19:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:25:20] Production.INFO: ==21404== Releasing lock... [2024-12-27 19:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:25:20] Production.INFO: 45 MB #Memory Used# [2024-12-27 19:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:26:04 [end_date_ymd] => 2024-12-27 19:26:04 [RateCDR] => 1 ) [2024-12-27 19: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-27 16:26:04' and `end` < '2024-12-27 19: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-27 19:26:17] Production.INFO: count ==2281 [2024-12-27 19:26:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:26:04 - End Time 2024-12-27 19:26:04 [2024-12-27 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116319', 'tblTempUsageDetail_20' ) start [2024-12-27 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116319', 'tblTempUsageDetail_20' ) end [2024-12-27 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116319', 'tblTempVendorCDR_20' ) start [2024-12-27 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116319', 'tblTempVendorCDR_20' ) end [2024-12-27 19:26:18] Production.INFO: ProcessCDR(1,14116319,1,1,2) [2024-12-27 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116319', 'tblTempUsageDetail_20' ) start [2024-12-27 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116319', 'tblTempUsageDetail_20' ) end [2024-12-27 19:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:26:22] Production.INFO: ==21475== Releasing lock... [2024-12-27 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:26:22] Production.INFO: 45.25 MB #Memory Used# [2024-12-27 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:27:05 [end_date_ymd] => 2024-12-27 19:27:05 [RateCDR] => 1 ) [2024-12-27 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:27:05' and `end` < '2024-12-27 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:27:18] Production.INFO: count ==2268 [2024-12-27 19:27:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:27:05 - End Time 2024-12-27 19:27:05 [2024-12-27 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116324', 'tblTempUsageDetail_20' ) start [2024-12-27 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116324', 'tblTempUsageDetail_20' ) end [2024-12-27 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116324', 'tblTempVendorCDR_20' ) start [2024-12-27 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116324', 'tblTempVendorCDR_20' ) end [2024-12-27 19:27:18] Production.INFO: ProcessCDR(1,14116324,1,1,2) [2024-12-27 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116324', 'tblTempUsageDetail_20' ) start [2024-12-27 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116324', 'tblTempUsageDetail_20' ) end [2024-12-27 19:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:27:22] Production.INFO: ==21546== Releasing lock... [2024-12-27 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:27:22] Production.INFO: 45 MB #Memory Used# [2024-12-27 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:28:05 [end_date_ymd] => 2024-12-27 19:28:05 [RateCDR] => 1 ) [2024-12-27 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:28:05' and `end` < '2024-12-27 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:28:21] Production.INFO: count ==2267 [2024-12-27 19:28:21] Production.ERROR: pbx CDR StartTime 2024-12-27 16:28:05 - End Time 2024-12-27 19:28:05 [2024-12-27 19:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116329', 'tblTempUsageDetail_20' ) start [2024-12-27 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116329', 'tblTempUsageDetail_20' ) end [2024-12-27 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116329', 'tblTempVendorCDR_20' ) start [2024-12-27 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116329', 'tblTempVendorCDR_20' ) end [2024-12-27 19:28:21] Production.INFO: ProcessCDR(1,14116329,1,1,2) [2024-12-27 19:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116329', 'tblTempUsageDetail_20' ) start [2024-12-27 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116329', 'tblTempUsageDetail_20' ) end [2024-12-27 19:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:28:24] Production.INFO: ==21617== Releasing lock... [2024-12-27 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:28:24] Production.INFO: 45 MB #Memory Used# [2024-12-27 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:29:05 [end_date_ymd] => 2024-12-27 19:29:05 [RateCDR] => 1 ) [2024-12-27 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:29:05' and `end` < '2024-12-27 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:29:18] Production.INFO: count ==2276 [2024-12-27 19:29:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:29:05 - End Time 2024-12-27 19:29:05 [2024-12-27 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116334', 'tblTempUsageDetail_20' ) start [2024-12-27 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116334', 'tblTempUsageDetail_20' ) end [2024-12-27 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116334', 'tblTempVendorCDR_20' ) start [2024-12-27 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116334', 'tblTempVendorCDR_20' ) end [2024-12-27 19:29:18] Production.INFO: ProcessCDR(1,14116334,1,1,2) [2024-12-27 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116334', 'tblTempUsageDetail_20' ) start [2024-12-27 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116334', 'tblTempUsageDetail_20' ) end [2024-12-27 19:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:29:21] Production.INFO: ==21689== Releasing lock... [2024-12-27 19:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:29:21] Production.INFO: 45.25 MB #Memory Used# [2024-12-27 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:30:05 [end_date_ymd] => 2024-12-27 19:30:05 [RateCDR] => 1 ) [2024-12-27 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:30:05' and `end` < '2024-12-27 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:30:21] Production.INFO: count ==2273 [2024-12-27 19:30:21] Production.ERROR: pbx CDR StartTime 2024-12-27 16:30:05 - End Time 2024-12-27 19:30:05 [2024-12-27 19:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116340', 'tblTempUsageDetail_20' ) start [2024-12-27 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116340', 'tblTempUsageDetail_20' ) end [2024-12-27 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116340', 'tblTempVendorCDR_20' ) start [2024-12-27 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116340', 'tblTempVendorCDR_20' ) end [2024-12-27 19:30:21] Production.INFO: ProcessCDR(1,14116340,1,1,2) [2024-12-27 19:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116340', 'tblTempUsageDetail_20' ) start [2024-12-27 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116340', 'tblTempUsageDetail_20' ) end [2024-12-27 19:30:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:30:24] Production.INFO: ==21765== Releasing lock... [2024-12-27 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:30:24] Production.INFO: 45 MB #Memory Used# [2024-12-27 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:31:05 [end_date_ymd] => 2024-12-27 19:31:05 [RateCDR] => 1 ) [2024-12-27 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:31:05' and `end` < '2024-12-27 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:31:19] Production.INFO: count ==2252 [2024-12-27 19:31:19] Production.ERROR: pbx CDR StartTime 2024-12-27 16:31:05 - End Time 2024-12-27 19:31:05 [2024-12-27 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116345', 'tblTempUsageDetail_20' ) start [2024-12-27 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116345', 'tblTempUsageDetail_20' ) end [2024-12-27 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116345', 'tblTempVendorCDR_20' ) start [2024-12-27 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116345', 'tblTempVendorCDR_20' ) end [2024-12-27 19:31:20] Production.INFO: ProcessCDR(1,14116345,1,1,2) [2024-12-27 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116345', 'tblTempUsageDetail_20' ) start [2024-12-27 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116345', 'tblTempUsageDetail_20' ) end [2024-12-27 19:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:31:23] Production.INFO: ==21843== Releasing lock... [2024-12-27 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:31:23] Production.INFO: 44.75 MB #Memory Used# [2024-12-27 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:32:05 [end_date_ymd] => 2024-12-27 19:32:05 [RateCDR] => 1 ) [2024-12-27 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:32:05' and `end` < '2024-12-27 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:32:20] Production.INFO: count ==2248 [2024-12-27 19:32:21] Production.ERROR: pbx CDR StartTime 2024-12-27 16:32:05 - End Time 2024-12-27 19:32:05 [2024-12-27 19:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116350', 'tblTempUsageDetail_20' ) start [2024-12-27 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116350', 'tblTempUsageDetail_20' ) end [2024-12-27 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116350', 'tblTempVendorCDR_20' ) start [2024-12-27 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116350', 'tblTempVendorCDR_20' ) end [2024-12-27 19:32:21] Production.INFO: ProcessCDR(1,14116350,1,1,2) [2024-12-27 19:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116350', 'tblTempUsageDetail_20' ) start [2024-12-27 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116350', 'tblTempUsageDetail_20' ) end [2024-12-27 19:32:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:32:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:32:24] Production.INFO: ==21914== Releasing lock... [2024-12-27 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:32:24] Production.INFO: 44.75 MB #Memory Used# [2024-12-27 19:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:33:04 [end_date_ymd] => 2024-12-27 19:33:04 [RateCDR] => 1 ) [2024-12-27 19: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-27 16:33:04' and `end` < '2024-12-27 19: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-27 19:33:16] Production.INFO: count ==2236 [2024-12-27 19:33:17] Production.ERROR: pbx CDR StartTime 2024-12-27 16:33:04 - End Time 2024-12-27 19:33:04 [2024-12-27 19:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116355', 'tblTempUsageDetail_20' ) start [2024-12-27 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116355', 'tblTempUsageDetail_20' ) end [2024-12-27 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116355', 'tblTempVendorCDR_20' ) start [2024-12-27 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116355', 'tblTempVendorCDR_20' ) end [2024-12-27 19:33:17] Production.INFO: ProcessCDR(1,14116355,1,1,2) [2024-12-27 19:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116355', 'tblTempUsageDetail_20' ) start [2024-12-27 19:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116355', 'tblTempUsageDetail_20' ) end [2024-12-27 19:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:33:20] Production.INFO: ==21986== Releasing lock... [2024-12-27 19:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:33:20] Production.INFO: 45 MB #Memory Used# [2024-12-27 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:34:05 [end_date_ymd] => 2024-12-27 19:34:05 [RateCDR] => 1 ) [2024-12-27 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:34:05' and `end` < '2024-12-27 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:34:18] Production.INFO: count ==2231 [2024-12-27 19:34:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:34:05 - End Time 2024-12-27 19:34:05 [2024-12-27 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116360', 'tblTempUsageDetail_20' ) start [2024-12-27 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116360', 'tblTempUsageDetail_20' ) end [2024-12-27 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116360', 'tblTempVendorCDR_20' ) start [2024-12-27 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116360', 'tblTempVendorCDR_20' ) end [2024-12-27 19:34:18] Production.INFO: ProcessCDR(1,14116360,1,1,2) [2024-12-27 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116360', 'tblTempUsageDetail_20' ) start [2024-12-27 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116360', 'tblTempUsageDetail_20' ) end [2024-12-27 19:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:34:21] Production.INFO: ==22058== Releasing lock... [2024-12-27 19:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:34:21] Production.INFO: 44.25 MB #Memory Used# [2024-12-27 19:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:35:04 [end_date_ymd] => 2024-12-27 19:35:04 [RateCDR] => 1 ) [2024-12-27 19: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-27 16:35:04' and `end` < '2024-12-27 19: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-27 19:35:16] Production.INFO: count ==2222 [2024-12-27 19:35:17] Production.ERROR: pbx CDR StartTime 2024-12-27 16:35:04 - End Time 2024-12-27 19:35:04 [2024-12-27 19:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116365', 'tblTempUsageDetail_20' ) start [2024-12-27 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116365', 'tblTempUsageDetail_20' ) end [2024-12-27 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116365', 'tblTempVendorCDR_20' ) start [2024-12-27 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116365', 'tblTempVendorCDR_20' ) end [2024-12-27 19:35:17] Production.INFO: ProcessCDR(1,14116365,1,1,2) [2024-12-27 19:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116365', 'tblTempUsageDetail_20' ) start [2024-12-27 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116365', 'tblTempUsageDetail_20' ) end [2024-12-27 19:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:35:21] Production.INFO: ==22167== Releasing lock... [2024-12-27 19:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:35:21] Production.INFO: 44.75 MB #Memory Used# [2024-12-27 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:36:05 [end_date_ymd] => 2024-12-27 19:36:05 [RateCDR] => 1 ) [2024-12-27 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:36:05' and `end` < '2024-12-27 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:36:17] Production.INFO: count ==2217 [2024-12-27 19:36:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:36:05 - End Time 2024-12-27 19:36:05 [2024-12-27 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116370', 'tblTempUsageDetail_20' ) start [2024-12-27 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116370', 'tblTempUsageDetail_20' ) end [2024-12-27 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116370', 'tblTempVendorCDR_20' ) start [2024-12-27 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116370', 'tblTempVendorCDR_20' ) end [2024-12-27 19:36:18] Production.INFO: ProcessCDR(1,14116370,1,1,2) [2024-12-27 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116370', 'tblTempUsageDetail_20' ) start [2024-12-27 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116370', 'tblTempUsageDetail_20' ) end [2024-12-27 19:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:36:21] Production.INFO: ==22238== Releasing lock... [2024-12-27 19:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:36:21] Production.INFO: 44.5 MB #Memory Used# [2024-12-27 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:37:05 [end_date_ymd] => 2024-12-27 19:37:05 [RateCDR] => 1 ) [2024-12-27 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:37:05' and `end` < '2024-12-27 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:37:18] Production.INFO: count ==2213 [2024-12-27 19:37:19] Production.ERROR: pbx CDR StartTime 2024-12-27 16:37:05 - End Time 2024-12-27 19:37:05 [2024-12-27 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116375', 'tblTempUsageDetail_20' ) start [2024-12-27 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116375', 'tblTempUsageDetail_20' ) end [2024-12-27 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116375', 'tblTempVendorCDR_20' ) start [2024-12-27 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116375', 'tblTempVendorCDR_20' ) end [2024-12-27 19:37:19] Production.INFO: ProcessCDR(1,14116375,1,1,2) [2024-12-27 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116375', 'tblTempUsageDetail_20' ) start [2024-12-27 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116375', 'tblTempUsageDetail_20' ) end [2024-12-27 19:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:37:23] Production.INFO: ==22314== Releasing lock... [2024-12-27 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:37:23] Production.INFO: 44.75 MB #Memory Used# [2024-12-27 19:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:38:04 [end_date_ymd] => 2024-12-27 19:38:04 [RateCDR] => 1 ) [2024-12-27 19:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:38:04' and `end` < '2024-12-27 19:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:38:17] Production.INFO: count ==2196 [2024-12-27 19:38:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:38:04 - End Time 2024-12-27 19:38:04 [2024-12-27 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116380', 'tblTempUsageDetail_20' ) start [2024-12-27 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116380', 'tblTempUsageDetail_20' ) end [2024-12-27 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116380', 'tblTempVendorCDR_20' ) start [2024-12-27 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116380', 'tblTempVendorCDR_20' ) end [2024-12-27 19:38:18] Production.INFO: ProcessCDR(1,14116380,1,1,2) [2024-12-27 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116380', 'tblTempUsageDetail_20' ) start [2024-12-27 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116380', 'tblTempUsageDetail_20' ) end [2024-12-27 19:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:38:22] Production.INFO: ==22383== Releasing lock... [2024-12-27 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:38:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-27 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:39:05 [end_date_ymd] => 2024-12-27 19:39:05 [RateCDR] => 1 ) [2024-12-27 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:39:05' and `end` < '2024-12-27 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:39:18] Production.INFO: count ==2181 [2024-12-27 19:39:19] Production.ERROR: pbx CDR StartTime 2024-12-27 16:39:05 - End Time 2024-12-27 19:39:05 [2024-12-27 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116385', 'tblTempUsageDetail_20' ) start [2024-12-27 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116385', 'tblTempUsageDetail_20' ) end [2024-12-27 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116385', 'tblTempVendorCDR_20' ) start [2024-12-27 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116385', 'tblTempVendorCDR_20' ) end [2024-12-27 19:39:19] Production.INFO: ProcessCDR(1,14116385,1,1,2) [2024-12-27 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116385', 'tblTempUsageDetail_20' ) start [2024-12-27 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116385', 'tblTempUsageDetail_20' ) end [2024-12-27 19:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:39:23] Production.INFO: ==22453== Releasing lock... [2024-12-27 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:39:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-27 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:40:05 [end_date_ymd] => 2024-12-27 19:40:05 [RateCDR] => 1 ) [2024-12-27 19:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:40:05' and `end` < '2024-12-27 19:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:40:22] Production.INFO: count ==2174 [2024-12-27 19:40:22] Production.ERROR: pbx CDR StartTime 2024-12-27 16:40:05 - End Time 2024-12-27 19:40:05 [2024-12-27 19:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116391', 'tblTempUsageDetail_20' ) start [2024-12-27 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116391', 'tblTempUsageDetail_20' ) end [2024-12-27 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116391', 'tblTempVendorCDR_20' ) start [2024-12-27 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116391', 'tblTempVendorCDR_20' ) end [2024-12-27 19:40:22] Production.INFO: ProcessCDR(1,14116391,1,1,2) [2024-12-27 19:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116391', 'tblTempUsageDetail_20' ) start [2024-12-27 19:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116391', 'tblTempUsageDetail_20' ) end [2024-12-27 19:40:27] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:40:27] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:40:27] Production.INFO: ==22527== Releasing lock... [2024-12-27 19:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:40:27] Production.INFO: 44.5 MB #Memory Used# [2024-12-27 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:41:05 [end_date_ymd] => 2024-12-27 19:41:05 [RateCDR] => 1 ) [2024-12-27 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:41:05' and `end` < '2024-12-27 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:41:18] Production.INFO: count ==2198 [2024-12-27 19:41:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:41:05 - End Time 2024-12-27 19:41:05 [2024-12-27 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116396', 'tblTempUsageDetail_20' ) start [2024-12-27 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116396', 'tblTempUsageDetail_20' ) end [2024-12-27 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116396', 'tblTempVendorCDR_20' ) start [2024-12-27 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116396', 'tblTempVendorCDR_20' ) end [2024-12-27 19:41:18] Production.INFO: ProcessCDR(1,14116396,1,1,2) [2024-12-27 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116396', 'tblTempUsageDetail_20' ) start [2024-12-27 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116396', 'tblTempUsageDetail_20' ) end [2024-12-27 19:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:41:23] Production.INFO: ==22600== Releasing lock... [2024-12-27 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:41:23] Production.INFO: 44.25 MB #Memory Used# [2024-12-27 19:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:42:04 [end_date_ymd] => 2024-12-27 19:42:04 [RateCDR] => 1 ) [2024-12-27 19: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-27 16:42:04' and `end` < '2024-12-27 19: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-27 19:42:17] Production.INFO: count ==2193 [2024-12-27 19:42:17] Production.ERROR: pbx CDR StartTime 2024-12-27 16:42:04 - End Time 2024-12-27 19:42:04 [2024-12-27 19:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116401', 'tblTempUsageDetail_20' ) start [2024-12-27 19:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116401', 'tblTempUsageDetail_20' ) end [2024-12-27 19:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116401', 'tblTempVendorCDR_20' ) start [2024-12-27 19:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116401', 'tblTempVendorCDR_20' ) end [2024-12-27 19:42:17] Production.INFO: ProcessCDR(1,14116401,1,1,2) [2024-12-27 19:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116401', 'tblTempUsageDetail_20' ) start [2024-12-27 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116401', 'tblTempUsageDetail_20' ) end [2024-12-27 19:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:42:21] Production.INFO: ==22672== Releasing lock... [2024-12-27 19:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:42:21] Production.INFO: 44.75 MB #Memory Used# [2024-12-27 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:43:05 [end_date_ymd] => 2024-12-27 19:43:05 [RateCDR] => 1 ) [2024-12-27 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:43:05' and `end` < '2024-12-27 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:43:18] Production.INFO: count ==2191 [2024-12-27 19:43:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:43:05 - End Time 2024-12-27 19:43:05 [2024-12-27 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116406', 'tblTempUsageDetail_20' ) start [2024-12-27 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116406', 'tblTempUsageDetail_20' ) end [2024-12-27 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116406', 'tblTempVendorCDR_20' ) start [2024-12-27 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116406', 'tblTempVendorCDR_20' ) end [2024-12-27 19:43:18] Production.INFO: ProcessCDR(1,14116406,1,1,2) [2024-12-27 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116406', 'tblTempUsageDetail_20' ) start [2024-12-27 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116406', 'tblTempUsageDetail_20' ) end [2024-12-27 19:43:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:43:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:43:23] Production.INFO: ==22744== Releasing lock... [2024-12-27 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:43:23] Production.INFO: 44.25 MB #Memory Used# [2024-12-27 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:44:05 [end_date_ymd] => 2024-12-27 19:44:05 [RateCDR] => 1 ) [2024-12-27 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-27 16:44:05' and `end` < '2024-12-27 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-27 19:44:19] Production.INFO: count ==2186 [2024-12-27 19:44:19] Production.ERROR: pbx CDR StartTime 2024-12-27 16:44:05 - End Time 2024-12-27 19:44:05 [2024-12-27 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116411', 'tblTempUsageDetail_20' ) start [2024-12-27 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116411', 'tblTempUsageDetail_20' ) end [2024-12-27 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116411', 'tblTempVendorCDR_20' ) start [2024-12-27 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116411', 'tblTempVendorCDR_20' ) end [2024-12-27 19:44:19] Production.INFO: ProcessCDR(1,14116411,1,1,2) [2024-12-27 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116411', 'tblTempUsageDetail_20' ) start [2024-12-27 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116411', 'tblTempUsageDetail_20' ) end [2024-12-27 19:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:44:22] Production.INFO: ==22820== Releasing lock... [2024-12-27 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:44:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-27 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:45:05 [end_date_ymd] => 2024-12-27 19:45:05 [RateCDR] => 1 ) [2024-12-27 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:45:05' and `end` < '2024-12-27 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:45:17] Production.INFO: count ==2177 [2024-12-27 19:45:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:45:05 - End Time 2024-12-27 19:45:05 [2024-12-27 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116416', 'tblTempUsageDetail_20' ) start [2024-12-27 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116416', 'tblTempUsageDetail_20' ) end [2024-12-27 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116416', 'tblTempVendorCDR_20' ) start [2024-12-27 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116416', 'tblTempVendorCDR_20' ) end [2024-12-27 19:45:18] Production.INFO: ProcessCDR(1,14116416,1,1,2) [2024-12-27 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116416', 'tblTempUsageDetail_20' ) start [2024-12-27 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116416', 'tblTempUsageDetail_20' ) end [2024-12-27 19:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:45:21] Production.INFO: ==22896== Releasing lock... [2024-12-27 19:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:45:21] Production.INFO: 44.5 MB #Memory Used# [2024-12-27 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:46:05 [end_date_ymd] => 2024-12-27 19:46:05 [RateCDR] => 1 ) [2024-12-27 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:46:05' and `end` < '2024-12-27 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:46:19] Production.INFO: count ==2168 [2024-12-27 19:46:19] Production.ERROR: pbx CDR StartTime 2024-12-27 16:46:05 - End Time 2024-12-27 19:46:05 [2024-12-27 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116421', 'tblTempUsageDetail_20' ) start [2024-12-27 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116421', 'tblTempUsageDetail_20' ) end [2024-12-27 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116421', 'tblTempVendorCDR_20' ) start [2024-12-27 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116421', 'tblTempVendorCDR_20' ) end [2024-12-27 19:46:19] Production.INFO: ProcessCDR(1,14116421,1,1,2) [2024-12-27 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116421', 'tblTempUsageDetail_20' ) start [2024-12-27 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116421', 'tblTempUsageDetail_20' ) end [2024-12-27 19:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:46:22] Production.INFO: ==22971== Releasing lock... [2024-12-27 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:46:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-27 19:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:47:04 [end_date_ymd] => 2024-12-27 19:47:04 [RateCDR] => 1 ) [2024-12-27 19:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:47:04' and `end` < '2024-12-27 19:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:47:17] Production.INFO: count ==2167 [2024-12-27 19:47:17] Production.ERROR: pbx CDR StartTime 2024-12-27 16:47:04 - End Time 2024-12-27 19:47:04 [2024-12-27 19:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116426', 'tblTempUsageDetail_20' ) start [2024-12-27 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116426', 'tblTempUsageDetail_20' ) end [2024-12-27 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116426', 'tblTempVendorCDR_20' ) start [2024-12-27 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116426', 'tblTempVendorCDR_20' ) end [2024-12-27 19:47:18] Production.INFO: ProcessCDR(1,14116426,1,1,2) [2024-12-27 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116426', 'tblTempUsageDetail_20' ) start [2024-12-27 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116426', 'tblTempUsageDetail_20' ) end [2024-12-27 19:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:47:22] Production.INFO: ==23041== Releasing lock... [2024-12-27 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:47:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-27 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:48:05 [end_date_ymd] => 2024-12-27 19:48:05 [RateCDR] => 1 ) [2024-12-27 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:48:05' and `end` < '2024-12-27 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:48:18] Production.INFO: count ==2153 [2024-12-27 19:48:19] Production.ERROR: pbx CDR StartTime 2024-12-27 16:48:05 - End Time 2024-12-27 19:48:05 [2024-12-27 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116431', 'tblTempUsageDetail_20' ) start [2024-12-27 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116431', 'tblTempUsageDetail_20' ) end [2024-12-27 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116431', 'tblTempVendorCDR_20' ) start [2024-12-27 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116431', 'tblTempVendorCDR_20' ) end [2024-12-27 19:48:19] Production.INFO: ProcessCDR(1,14116431,1,1,2) [2024-12-27 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116431', 'tblTempUsageDetail_20' ) start [2024-12-27 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116431', 'tblTempUsageDetail_20' ) end [2024-12-27 19:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:48:22] Production.INFO: ==23111== Releasing lock... [2024-12-27 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:48:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-27 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:49:05 [end_date_ymd] => 2024-12-27 19:49:05 [RateCDR] => 1 ) [2024-12-27 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:49:05' and `end` < '2024-12-27 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:49:17] Production.INFO: count ==2126 [2024-12-27 19:49:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:49:05 - End Time 2024-12-27 19:49:05 [2024-12-27 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116436', 'tblTempUsageDetail_20' ) start [2024-12-27 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116436', 'tblTempUsageDetail_20' ) end [2024-12-27 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116436', 'tblTempVendorCDR_20' ) start [2024-12-27 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116436', 'tblTempVendorCDR_20' ) end [2024-12-27 19:49:18] Production.INFO: ProcessCDR(1,14116436,1,1,2) [2024-12-27 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116436', 'tblTempUsageDetail_20' ) start [2024-12-27 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116436', 'tblTempUsageDetail_20' ) end [2024-12-27 19:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:49:21] Production.INFO: ==23182== Releasing lock... [2024-12-27 19:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:49:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-27 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:50:06 [end_date_ymd] => 2024-12-27 19:50:06 [RateCDR] => 1 ) [2024-12-27 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:50:06' and `end` < '2024-12-27 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:50:18] Production.INFO: count ==2121 [2024-12-27 19:50:19] Production.ERROR: pbx CDR StartTime 2024-12-27 16:50:06 - End Time 2024-12-27 19:50:06 [2024-12-27 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116442', 'tblTempUsageDetail_20' ) start [2024-12-27 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116442', 'tblTempUsageDetail_20' ) end [2024-12-27 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116442', 'tblTempVendorCDR_20' ) start [2024-12-27 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116442', 'tblTempVendorCDR_20' ) end [2024-12-27 19:50:19] Production.INFO: ProcessCDR(1,14116442,1,1,2) [2024-12-27 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116442', 'tblTempUsageDetail_20' ) start [2024-12-27 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116442', 'tblTempUsageDetail_20' ) end [2024-12-27 19:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:50:22] Production.INFO: ==23255== Releasing lock... [2024-12-27 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:50:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-27 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:51:05 [end_date_ymd] => 2024-12-27 19:51:05 [RateCDR] => 1 ) [2024-12-27 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:51:05' and `end` < '2024-12-27 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:51:17] Production.INFO: count ==2101 [2024-12-27 19:51:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:51:05 - End Time 2024-12-27 19:51:05 [2024-12-27 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116447', 'tblTempUsageDetail_20' ) start [2024-12-27 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116447', 'tblTempUsageDetail_20' ) end [2024-12-27 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116447', 'tblTempVendorCDR_20' ) start [2024-12-27 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116447', 'tblTempVendorCDR_20' ) end [2024-12-27 19:51:18] Production.INFO: ProcessCDR(1,14116447,1,1,2) [2024-12-27 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116447', 'tblTempUsageDetail_20' ) start [2024-12-27 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116447', 'tblTempUsageDetail_20' ) end [2024-12-27 19:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:51:21] Production.INFO: ==23369== Releasing lock... [2024-12-27 19:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:51:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-27 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:52:05 [end_date_ymd] => 2024-12-27 19:52:05 [RateCDR] => 1 ) [2024-12-27 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:52:05' and `end` < '2024-12-27 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:52:18] Production.INFO: count ==2092 [2024-12-27 19:52:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:52:05 - End Time 2024-12-27 19:52:05 [2024-12-27 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116452', 'tblTempUsageDetail_20' ) start [2024-12-27 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116452', 'tblTempUsageDetail_20' ) end [2024-12-27 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116452', 'tblTempVendorCDR_20' ) start [2024-12-27 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116452', 'tblTempVendorCDR_20' ) end [2024-12-27 19:52:18] Production.INFO: ProcessCDR(1,14116452,1,1,2) [2024-12-27 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116452', 'tblTempUsageDetail_20' ) start [2024-12-27 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116452', 'tblTempUsageDetail_20' ) end [2024-12-27 19:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:52:21] Production.INFO: ==23439== Releasing lock... [2024-12-27 19:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:52:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-27 19:53:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:53:06 [end_date_ymd] => 2024-12-27 19:53:06 [RateCDR] => 1 ) [2024-12-27 19:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:53:06' and `end` < '2024-12-27 19:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:53:18] Production.INFO: count ==2081 [2024-12-27 19:53:19] Production.ERROR: pbx CDR StartTime 2024-12-27 16:53:06 - End Time 2024-12-27 19:53:06 [2024-12-27 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116457', 'tblTempUsageDetail_20' ) start [2024-12-27 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116457', 'tblTempUsageDetail_20' ) end [2024-12-27 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116457', 'tblTempVendorCDR_20' ) start [2024-12-27 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116457', 'tblTempVendorCDR_20' ) end [2024-12-27 19:53:19] Production.INFO: ProcessCDR(1,14116457,1,1,2) [2024-12-27 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116457', 'tblTempUsageDetail_20' ) start [2024-12-27 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116457', 'tblTempUsageDetail_20' ) end [2024-12-27 19:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:53:22] Production.INFO: ==23512== Releasing lock... [2024-12-27 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:53:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-27 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:54:05 [end_date_ymd] => 2024-12-27 19:54:05 [RateCDR] => 1 ) [2024-12-27 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:54:05' and `end` < '2024-12-27 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:54:19] Production.INFO: count ==2073 [2024-12-27 19:54:19] Production.ERROR: pbx CDR StartTime 2024-12-27 16:54:05 - End Time 2024-12-27 19:54:05 [2024-12-27 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116462', 'tblTempUsageDetail_20' ) start [2024-12-27 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116462', 'tblTempUsageDetail_20' ) end [2024-12-27 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116462', 'tblTempVendorCDR_20' ) start [2024-12-27 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116462', 'tblTempVendorCDR_20' ) end [2024-12-27 19:54:19] Production.INFO: ProcessCDR(1,14116462,1,1,2) [2024-12-27 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116462', 'tblTempUsageDetail_20' ) start [2024-12-27 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116462', 'tblTempUsageDetail_20' ) end [2024-12-27 19:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:54:22] Production.INFO: ==23582== Releasing lock... [2024-12-27 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:54:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-27 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:55:05 [end_date_ymd] => 2024-12-27 19:55:05 [RateCDR] => 1 ) [2024-12-27 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:55:05' and `end` < '2024-12-27 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:55:18] Production.INFO: count ==2069 [2024-12-27 19:55:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:55:05 - End Time 2024-12-27 19:55:05 [2024-12-27 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116467', 'tblTempUsageDetail_20' ) start [2024-12-27 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116467', 'tblTempUsageDetail_20' ) end [2024-12-27 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116467', 'tblTempVendorCDR_20' ) start [2024-12-27 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116467', 'tblTempVendorCDR_20' ) end [2024-12-27 19:55:18] Production.INFO: ProcessCDR(1,14116467,1,1,2) [2024-12-27 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116467', 'tblTempUsageDetail_20' ) start [2024-12-27 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116467', 'tblTempUsageDetail_20' ) end [2024-12-27 19:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:55:21] Production.INFO: ==23661== Releasing lock... [2024-12-27 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:55:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-27 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:56:05 [end_date_ymd] => 2024-12-27 19:56:05 [RateCDR] => 1 ) [2024-12-27 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:56:05' and `end` < '2024-12-27 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:56:18] Production.INFO: count ==2062 [2024-12-27 19:56:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:56:05 - End Time 2024-12-27 19:56:05 [2024-12-27 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116472', 'tblTempUsageDetail_20' ) start [2024-12-27 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116472', 'tblTempUsageDetail_20' ) end [2024-12-27 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116472', 'tblTempVendorCDR_20' ) start [2024-12-27 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116472', 'tblTempVendorCDR_20' ) end [2024-12-27 19:56:18] Production.INFO: ProcessCDR(1,14116472,1,1,2) [2024-12-27 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116472', 'tblTempUsageDetail_20' ) start [2024-12-27 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116472', 'tblTempUsageDetail_20' ) end [2024-12-27 19:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:56:21] Production.INFO: ==23733== Releasing lock... [2024-12-27 19:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:56:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-27 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:57:05 [end_date_ymd] => 2024-12-27 19:57:05 [RateCDR] => 1 ) [2024-12-27 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 16:57:05' and `end` < '2024-12-27 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 19:57:18] Production.INFO: count ==2061 [2024-12-27 19:57:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:57:05 - End Time 2024-12-27 19:57:05 [2024-12-27 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116477', 'tblTempUsageDetail_20' ) start [2024-12-27 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116477', 'tblTempUsageDetail_20' ) end [2024-12-27 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116477', 'tblTempVendorCDR_20' ) start [2024-12-27 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116477', 'tblTempVendorCDR_20' ) end [2024-12-27 19:57:18] Production.INFO: ProcessCDR(1,14116477,1,1,2) [2024-12-27 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116477', 'tblTempUsageDetail_20' ) start [2024-12-27 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116477', 'tblTempUsageDetail_20' ) end [2024-12-27 19:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:57:23] Production.INFO: ==23807== Releasing lock... [2024-12-27 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:57:23] Production.INFO: 43.25 MB #Memory Used# [2024-12-27 19:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:58:04 [end_date_ymd] => 2024-12-27 19:58:04 [RateCDR] => 1 ) [2024-12-27 19: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-27 16:58:04' and `end` < '2024-12-27 19: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-27 19:58:17] Production.INFO: count ==2055 [2024-12-27 19:58:17] Production.ERROR: pbx CDR StartTime 2024-12-27 16:58:04 - End Time 2024-12-27 19:58:04 [2024-12-27 19:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116482', 'tblTempUsageDetail_20' ) start [2024-12-27 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116482', 'tblTempUsageDetail_20' ) end [2024-12-27 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116482', 'tblTempVendorCDR_20' ) start [2024-12-27 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116482', 'tblTempVendorCDR_20' ) end [2024-12-27 19:58:17] Production.INFO: ProcessCDR(1,14116482,1,1,2) [2024-12-27 19:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116482', 'tblTempUsageDetail_20' ) start [2024-12-27 19:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116482', 'tblTempUsageDetail_20' ) end [2024-12-27 19:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:58:20] Production.INFO: ==23882== Releasing lock... [2024-12-27 19:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:58:20] Production.INFO: 43.25 MB #Memory Used# [2024-12-27 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 16:59:05 [end_date_ymd] => 2024-12-27 19:59:05 [RateCDR] => 1 ) [2024-12-27 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-27 16:59:05' and `end` < '2024-12-27 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-27 19:59:17] Production.INFO: count ==2082 [2024-12-27 19:59:18] Production.ERROR: pbx CDR StartTime 2024-12-27 16:59:05 - End Time 2024-12-27 19:59:05 [2024-12-27 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116487', 'tblTempUsageDetail_20' ) start [2024-12-27 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116487', 'tblTempUsageDetail_20' ) end [2024-12-27 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116487', 'tblTempVendorCDR_20' ) start [2024-12-27 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116487', 'tblTempVendorCDR_20' ) end [2024-12-27 19:59:18] Production.INFO: ProcessCDR(1,14116487,1,1,2) [2024-12-27 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116487', 'tblTempUsageDetail_20' ) start [2024-12-27 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116487', 'tblTempUsageDetail_20' ) end [2024-12-27 19:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 19:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 19:59:21] Production.INFO: ==23958== Releasing lock... [2024-12-27 19:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 19:59:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-27 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:00:06 [end_date_ymd] => 2024-12-27 20:00:06 [RateCDR] => 1 ) [2024-12-27 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:00:06' and `end` < '2024-12-27 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:00:21] Production.INFO: count ==2076 [2024-12-27 20:00:21] Production.ERROR: pbx CDR StartTime 2024-12-27 17:00:06 - End Time 2024-12-27 20:00:06 [2024-12-27 20:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116493', 'tblTempUsageDetail_20' ) start [2024-12-27 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116493', 'tblTempUsageDetail_20' ) end [2024-12-27 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116493', 'tblTempVendorCDR_20' ) start [2024-12-27 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116493', 'tblTempVendorCDR_20' ) end [2024-12-27 20:00:21] Production.INFO: ProcessCDR(1,14116493,1,1,2) [2024-12-27 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116493', 'tblTempUsageDetail_20' ) start [2024-12-27 20:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116493', 'tblTempUsageDetail_20' ) end [2024-12-27 20:00:26] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:00:26] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:00:26] Production.INFO: ==24048== Releasing lock... [2024-12-27 20:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:00:26] Production.INFO: 43.75 MB #Memory Used# [2024-12-27 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:01:05 [end_date_ymd] => 2024-12-27 20:01:05 [RateCDR] => 1 ) [2024-12-27 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:01:05' and `end` < '2024-12-27 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:01:19] Production.INFO: count ==2075 [2024-12-27 20:01:19] Production.ERROR: pbx CDR StartTime 2024-12-27 17:01:05 - End Time 2024-12-27 20:01:05 [2024-12-27 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116498', 'tblTempUsageDetail_20' ) start [2024-12-27 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116498', 'tblTempUsageDetail_20' ) end [2024-12-27 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116498', 'tblTempVendorCDR_20' ) start [2024-12-27 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116498', 'tblTempVendorCDR_20' ) end [2024-12-27 20:01:19] Production.INFO: ProcessCDR(1,14116498,1,1,2) [2024-12-27 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116498', 'tblTempUsageDetail_20' ) start [2024-12-27 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116498', 'tblTempUsageDetail_20' ) end [2024-12-27 20:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:01:22] Production.INFO: ==24182== Releasing lock... [2024-12-27 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:01:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-27 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:02:05 [end_date_ymd] => 2024-12-27 20:02:05 [RateCDR] => 1 ) [2024-12-27 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:02:05' and `end` < '2024-12-27 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:02:18] Production.INFO: count ==2070 [2024-12-27 20:02:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:02:05 - End Time 2024-12-27 20:02:05 [2024-12-27 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116503', 'tblTempUsageDetail_20' ) start [2024-12-27 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116503', 'tblTempUsageDetail_20' ) end [2024-12-27 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116503', 'tblTempVendorCDR_20' ) start [2024-12-27 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116503', 'tblTempVendorCDR_20' ) end [2024-12-27 20:02:18] Production.INFO: ProcessCDR(1,14116503,1,1,2) [2024-12-27 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116503', 'tblTempUsageDetail_20' ) start [2024-12-27 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116503', 'tblTempUsageDetail_20' ) end [2024-12-27 20:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:02:23] Production.INFO: ==24259== Releasing lock... [2024-12-27 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:02:23] Production.INFO: 43.25 MB #Memory Used# [2024-12-27 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:03:05 [end_date_ymd] => 2024-12-27 20:03:05 [RateCDR] => 1 ) [2024-12-27 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-27 17:03:05' and `end` < '2024-12-27 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-27 20:03:17] Production.INFO: count ==2066 [2024-12-27 20:03:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:03:05 - End Time 2024-12-27 20:03:05 [2024-12-27 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116508', 'tblTempUsageDetail_20' ) start [2024-12-27 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116508', 'tblTempUsageDetail_20' ) end [2024-12-27 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116508', 'tblTempVendorCDR_20' ) start [2024-12-27 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116508', 'tblTempVendorCDR_20' ) end [2024-12-27 20:03:18] Production.INFO: ProcessCDR(1,14116508,1,1,2) [2024-12-27 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116508', 'tblTempUsageDetail_20' ) start [2024-12-27 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116508', 'tblTempUsageDetail_20' ) end [2024-12-27 20:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:03:21] Production.INFO: ==24336== Releasing lock... [2024-12-27 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:03:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-27 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:04:05 [end_date_ymd] => 2024-12-27 20:04:05 [RateCDR] => 1 ) [2024-12-27 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:04:05' and `end` < '2024-12-27 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:04:18] Production.INFO: count ==2062 [2024-12-27 20:04:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:04:05 - End Time 2024-12-27 20:04:05 [2024-12-27 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116513', 'tblTempUsageDetail_20' ) start [2024-12-27 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116513', 'tblTempUsageDetail_20' ) end [2024-12-27 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116513', 'tblTempVendorCDR_20' ) start [2024-12-27 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116513', 'tblTempVendorCDR_20' ) end [2024-12-27 20:04:18] Production.INFO: ProcessCDR(1,14116513,1,1,2) [2024-12-27 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116513', 'tblTempUsageDetail_20' ) start [2024-12-27 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116513', 'tblTempUsageDetail_20' ) end [2024-12-27 20:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:04:22] Production.INFO: ==24409== Releasing lock... [2024-12-27 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:04:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-27 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:05:05 [end_date_ymd] => 2024-12-27 20:05:05 [RateCDR] => 1 ) [2024-12-27 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:05:05' and `end` < '2024-12-27 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:05:17] Production.INFO: count ==2056 [2024-12-27 20:05:17] Production.ERROR: pbx CDR StartTime 2024-12-27 17:05:05 - End Time 2024-12-27 20:05:05 [2024-12-27 20:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116518', 'tblTempUsageDetail_20' ) start [2024-12-27 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116518', 'tblTempUsageDetail_20' ) end [2024-12-27 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116518', 'tblTempVendorCDR_20' ) start [2024-12-27 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116518', 'tblTempVendorCDR_20' ) end [2024-12-27 20:05:18] Production.INFO: ProcessCDR(1,14116518,1,1,2) [2024-12-27 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116518', 'tblTempUsageDetail_20' ) start [2024-12-27 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116518', 'tblTempUsageDetail_20' ) end [2024-12-27 20:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:05:21] Production.INFO: ==24491== Releasing lock... [2024-12-27 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:05:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-27 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:06:05 [end_date_ymd] => 2024-12-27 20:06:05 [RateCDR] => 1 ) [2024-12-27 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:06:05' and `end` < '2024-12-27 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:06:18] Production.INFO: count ==2048 [2024-12-27 20:06:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:06:05 - End Time 2024-12-27 20:06:05 [2024-12-27 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116523', 'tblTempUsageDetail_20' ) start [2024-12-27 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116523', 'tblTempUsageDetail_20' ) end [2024-12-27 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116523', 'tblTempVendorCDR_20' ) start [2024-12-27 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116523', 'tblTempVendorCDR_20' ) end [2024-12-27 20:06:18] Production.INFO: ProcessCDR(1,14116523,1,1,2) [2024-12-27 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116523', 'tblTempUsageDetail_20' ) start [2024-12-27 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116523', 'tblTempUsageDetail_20' ) end [2024-12-27 20:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:06:21] Production.INFO: ==24605== Releasing lock... [2024-12-27 20:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:06:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-27 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:07:05 [end_date_ymd] => 2024-12-27 20:07:05 [RateCDR] => 1 ) [2024-12-27 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:07:05' and `end` < '2024-12-27 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:07:18] Production.INFO: count ==2044 [2024-12-27 20:07:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:07:05 - End Time 2024-12-27 20:07:05 [2024-12-27 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116528', 'tblTempUsageDetail_20' ) start [2024-12-27 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116528', 'tblTempUsageDetail_20' ) end [2024-12-27 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116528', 'tblTempVendorCDR_20' ) start [2024-12-27 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116528', 'tblTempVendorCDR_20' ) end [2024-12-27 20:07:18] Production.INFO: ProcessCDR(1,14116528,1,1,2) [2024-12-27 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116528', 'tblTempUsageDetail_20' ) start [2024-12-27 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116528', 'tblTempUsageDetail_20' ) end [2024-12-27 20:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:07:23] Production.INFO: ==24680== Releasing lock... [2024-12-27 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:07:23] Production.INFO: 43 MB #Memory Used# [2024-12-27 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:08:05 [end_date_ymd] => 2024-12-27 20:08:05 [RateCDR] => 1 ) [2024-12-27 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:08:05' and `end` < '2024-12-27 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:08:17] Production.INFO: count ==2043 [2024-12-27 20:08:17] Production.ERROR: pbx CDR StartTime 2024-12-27 17:08:05 - End Time 2024-12-27 20:08:05 [2024-12-27 20:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116533', 'tblTempUsageDetail_20' ) start [2024-12-27 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116533', 'tblTempUsageDetail_20' ) end [2024-12-27 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116533', 'tblTempVendorCDR_20' ) start [2024-12-27 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116533', 'tblTempVendorCDR_20' ) end [2024-12-27 20:08:18] Production.INFO: ProcessCDR(1,14116533,1,1,2) [2024-12-27 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116533', 'tblTempUsageDetail_20' ) start [2024-12-27 20:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116533', 'tblTempUsageDetail_20' ) end [2024-12-27 20:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:08:20] Production.INFO: ==24756== Releasing lock... [2024-12-27 20:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:08:20] Production.INFO: 43.25 MB #Memory Used# [2024-12-27 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:09:05 [end_date_ymd] => 2024-12-27 20:09:05 [RateCDR] => 1 ) [2024-12-27 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:09:05' and `end` < '2024-12-27 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:09:17] Production.INFO: count ==2030 [2024-12-27 20:09:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:09:05 - End Time 2024-12-27 20:09:05 [2024-12-27 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116538', 'tblTempUsageDetail_20' ) start [2024-12-27 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116538', 'tblTempUsageDetail_20' ) end [2024-12-27 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116538', 'tblTempVendorCDR_20' ) start [2024-12-27 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116538', 'tblTempVendorCDR_20' ) end [2024-12-27 20:09:18] Production.INFO: ProcessCDR(1,14116538,1,1,2) [2024-12-27 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116538', 'tblTempUsageDetail_20' ) start [2024-12-27 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116538', 'tblTempUsageDetail_20' ) end [2024-12-27 20:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:09:21] Production.INFO: ==24834== Releasing lock... [2024-12-27 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:09:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-27 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:10:05 [end_date_ymd] => 2024-12-27 20:10:05 [RateCDR] => 1 ) [2024-12-27 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-27 17:10:05' and `end` < '2024-12-27 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-27 20:10:18] Production.INFO: count ==2026 [2024-12-27 20:10:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:10:05 - End Time 2024-12-27 20:10:05 [2024-12-27 20:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116544', 'tblTempUsageDetail_20' ) start [2024-12-27 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116544', 'tblTempUsageDetail_20' ) end [2024-12-27 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116544', 'tblTempVendorCDR_20' ) start [2024-12-27 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116544', 'tblTempVendorCDR_20' ) end [2024-12-27 20:10:18] Production.INFO: ProcessCDR(1,14116544,1,1,2) [2024-12-27 20:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116544', 'tblTempUsageDetail_20' ) start [2024-12-27 20:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116544', 'tblTempUsageDetail_20' ) end [2024-12-27 20:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:10:21] Production.INFO: ==24906== Releasing lock... [2024-12-27 20:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:10:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-27 20:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:11:04 [end_date_ymd] => 2024-12-27 20:11:04 [RateCDR] => 1 ) [2024-12-27 20: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-27 17:11:04' and `end` < '2024-12-27 20: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-27 20:11:18] Production.INFO: count ==1966 [2024-12-27 20:11:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:11:04 - End Time 2024-12-27 20:11:04 [2024-12-27 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116549', 'tblTempUsageDetail_20' ) start [2024-12-27 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116549', 'tblTempUsageDetail_20' ) end [2024-12-27 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116549', 'tblTempVendorCDR_20' ) start [2024-12-27 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116549', 'tblTempVendorCDR_20' ) end [2024-12-27 20:11:18] Production.INFO: ProcessCDR(1,14116549,1,1,2) [2024-12-27 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116549', 'tblTempUsageDetail_20' ) start [2024-12-27 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116549', 'tblTempUsageDetail_20' ) end [2024-12-27 20:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:11:22] Production.INFO: ==24988== Releasing lock... [2024-12-27 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:11:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-27 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:12:05 [end_date_ymd] => 2024-12-27 20:12:05 [RateCDR] => 1 ) [2024-12-27 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-27 17:12:05' and `end` < '2024-12-27 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-27 20:12:18] Production.INFO: count ==1968 [2024-12-27 20:12:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:12:05 - End Time 2024-12-27 20:12:05 [2024-12-27 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116554', 'tblTempUsageDetail_20' ) start [2024-12-27 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116554', 'tblTempUsageDetail_20' ) end [2024-12-27 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116554', 'tblTempVendorCDR_20' ) start [2024-12-27 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116554', 'tblTempVendorCDR_20' ) end [2024-12-27 20:12:18] Production.INFO: ProcessCDR(1,14116554,1,1,2) [2024-12-27 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116554', 'tblTempUsageDetail_20' ) start [2024-12-27 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116554', 'tblTempUsageDetail_20' ) end [2024-12-27 20:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:12:23] Production.INFO: ==25064== Releasing lock... [2024-12-27 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:12:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-27 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:13:05 [end_date_ymd] => 2024-12-27 20:13:05 [RateCDR] => 1 ) [2024-12-27 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:13:05' and `end` < '2024-12-27 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:13:19] Production.INFO: count ==1969 [2024-12-27 20:13:20] Production.ERROR: pbx CDR StartTime 2024-12-27 17:13:05 - End Time 2024-12-27 20:13:05 [2024-12-27 20:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116559', 'tblTempUsageDetail_20' ) start [2024-12-27 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116559', 'tblTempUsageDetail_20' ) end [2024-12-27 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116559', 'tblTempVendorCDR_20' ) start [2024-12-27 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116559', 'tblTempVendorCDR_20' ) end [2024-12-27 20:13:20] Production.INFO: ProcessCDR(1,14116559,1,1,2) [2024-12-27 20:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116559', 'tblTempUsageDetail_20' ) start [2024-12-27 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116559', 'tblTempUsageDetail_20' ) end [2024-12-27 20:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:13:23] Production.INFO: ==25137== Releasing lock... [2024-12-27 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:13:23] Production.INFO: 43 MB #Memory Used# [2024-12-27 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:14:05 [end_date_ymd] => 2024-12-27 20:14:05 [RateCDR] => 1 ) [2024-12-27 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:14:05' and `end` < '2024-12-27 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:14:19] Production.INFO: count ==1963 [2024-12-27 20:14:19] Production.ERROR: pbx CDR StartTime 2024-12-27 17:14:05 - End Time 2024-12-27 20:14:05 [2024-12-27 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116564', 'tblTempUsageDetail_20' ) start [2024-12-27 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116564', 'tblTempUsageDetail_20' ) end [2024-12-27 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116564', 'tblTempVendorCDR_20' ) start [2024-12-27 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116564', 'tblTempVendorCDR_20' ) end [2024-12-27 20:14:19] Production.INFO: ProcessCDR(1,14116564,1,1,2) [2024-12-27 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116564', 'tblTempUsageDetail_20' ) start [2024-12-27 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116564', 'tblTempUsageDetail_20' ) end [2024-12-27 20:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:14:22] Production.INFO: ==25217== Releasing lock... [2024-12-27 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:14:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-27 20:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:15:04 [end_date_ymd] => 2024-12-27 20:15:04 [RateCDR] => 1 ) [2024-12-27 20: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-27 17:15:04' and `end` < '2024-12-27 20: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-27 20:15:17] Production.INFO: count ==1964 [2024-12-27 20:15:17] Production.ERROR: pbx CDR StartTime 2024-12-27 17:15:04 - End Time 2024-12-27 20:15:04 [2024-12-27 20:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116569', 'tblTempUsageDetail_20' ) start [2024-12-27 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116569', 'tblTempUsageDetail_20' ) end [2024-12-27 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116569', 'tblTempVendorCDR_20' ) start [2024-12-27 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116569', 'tblTempVendorCDR_20' ) end [2024-12-27 20:15:17] Production.INFO: ProcessCDR(1,14116569,1,1,2) [2024-12-27 20:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116569', 'tblTempUsageDetail_20' ) start [2024-12-27 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116569', 'tblTempUsageDetail_20' ) end [2024-12-27 20:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:15:21] Production.INFO: ==25296== Releasing lock... [2024-12-27 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:15:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-27 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:16:05 [end_date_ymd] => 2024-12-27 20:16:05 [RateCDR] => 1 ) [2024-12-27 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:16:05' and `end` < '2024-12-27 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:16:18] Production.INFO: count ==1960 [2024-12-27 20:16:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:16:05 - End Time 2024-12-27 20:16:05 [2024-12-27 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116574', 'tblTempUsageDetail_20' ) start [2024-12-27 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116574', 'tblTempUsageDetail_20' ) end [2024-12-27 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116574', 'tblTempVendorCDR_20' ) start [2024-12-27 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116574', 'tblTempVendorCDR_20' ) end [2024-12-27 20:16:18] Production.INFO: ProcessCDR(1,14116574,1,1,2) [2024-12-27 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116574', 'tblTempUsageDetail_20' ) start [2024-12-27 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116574', 'tblTempUsageDetail_20' ) end [2024-12-27 20:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:16:21] Production.INFO: ==25370== Releasing lock... [2024-12-27 20:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:16:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-27 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:17:05 [end_date_ymd] => 2024-12-27 20:17:05 [RateCDR] => 1 ) [2024-12-27 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-27 17:17:05' and `end` < '2024-12-27 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-27 20:17:17] Production.INFO: count ==1957 [2024-12-27 20:17:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:17:05 - End Time 2024-12-27 20:17:05 [2024-12-27 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116579', 'tblTempUsageDetail_20' ) start [2024-12-27 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116579', 'tblTempUsageDetail_20' ) end [2024-12-27 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116579', 'tblTempVendorCDR_20' ) start [2024-12-27 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116579', 'tblTempVendorCDR_20' ) end [2024-12-27 20:17:18] Production.INFO: ProcessCDR(1,14116579,1,1,2) [2024-12-27 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116579', 'tblTempUsageDetail_20' ) start [2024-12-27 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116579', 'tblTempUsageDetail_20' ) end [2024-12-27 20:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:17:21] Production.INFO: ==25458== Releasing lock... [2024-12-27 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:17:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-27 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:18:05 [end_date_ymd] => 2024-12-27 20:18:05 [RateCDR] => 1 ) [2024-12-27 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:18:05' and `end` < '2024-12-27 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:18:20] Production.INFO: count ==1941 [2024-12-27 20:18:20] Production.ERROR: pbx CDR StartTime 2024-12-27 17:18:05 - End Time 2024-12-27 20:18:05 [2024-12-27 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116584', 'tblTempUsageDetail_20' ) start [2024-12-27 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116584', 'tblTempUsageDetail_20' ) end [2024-12-27 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116584', 'tblTempVendorCDR_20' ) start [2024-12-27 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116584', 'tblTempVendorCDR_20' ) end [2024-12-27 20:18:20] Production.INFO: ProcessCDR(1,14116584,1,1,2) [2024-12-27 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116584', 'tblTempUsageDetail_20' ) start [2024-12-27 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116584', 'tblTempUsageDetail_20' ) end [2024-12-27 20:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:18:23] Production.INFO: ==25536== Releasing lock... [2024-12-27 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:18:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-27 20:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:19:04 [end_date_ymd] => 2024-12-27 20:19:04 [RateCDR] => 1 ) [2024-12-27 20:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:19:04' and `end` < '2024-12-27 20:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:19:18] Production.INFO: count ==1943 [2024-12-27 20:19:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:19:04 - End Time 2024-12-27 20:19:04 [2024-12-27 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116589', 'tblTempUsageDetail_20' ) start [2024-12-27 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116589', 'tblTempUsageDetail_20' ) end [2024-12-27 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116589', 'tblTempVendorCDR_20' ) start [2024-12-27 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116589', 'tblTempVendorCDR_20' ) end [2024-12-27 20:19:18] Production.INFO: ProcessCDR(1,14116589,1,1,2) [2024-12-27 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116589', 'tblTempUsageDetail_20' ) start [2024-12-27 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116589', 'tblTempUsageDetail_20' ) end [2024-12-27 20:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:19:21] Production.INFO: ==25615== Releasing lock... [2024-12-27 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:19:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-27 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:20:05 [end_date_ymd] => 2024-12-27 20:20:05 [RateCDR] => 1 ) [2024-12-27 20:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:20:05' and `end` < '2024-12-27 20:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:20:18] Production.INFO: count ==1941 [2024-12-27 20:20:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:20:05 - End Time 2024-12-27 20:20:05 [2024-12-27 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116594', 'tblTempUsageDetail_20' ) start [2024-12-27 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116594', 'tblTempUsageDetail_20' ) end [2024-12-27 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116594', 'tblTempVendorCDR_20' ) start [2024-12-27 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116594', 'tblTempVendorCDR_20' ) end [2024-12-27 20:20:18] Production.INFO: ProcessCDR(1,14116594,1,1,2) [2024-12-27 20:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116594', 'tblTempUsageDetail_20' ) start [2024-12-27 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116594', 'tblTempUsageDetail_20' ) end [2024-12-27 20:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:20:21] Production.INFO: ==25691== Releasing lock... [2024-12-27 20:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:20:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-27 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:21:05 [end_date_ymd] => 2024-12-27 20:21:05 [RateCDR] => 1 ) [2024-12-27 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:21:05' and `end` < '2024-12-27 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:21:19] Production.INFO: count ==1877 [2024-12-27 20:21:19] Production.ERROR: pbx CDR StartTime 2024-12-27 17:21:05 - End Time 2024-12-27 20:21:05 [2024-12-27 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116600', 'tblTempUsageDetail_20' ) start [2024-12-27 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116600', 'tblTempUsageDetail_20' ) end [2024-12-27 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116600', 'tblTempVendorCDR_20' ) start [2024-12-27 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116600', 'tblTempVendorCDR_20' ) end [2024-12-27 20:21:19] Production.INFO: ProcessCDR(1,14116600,1,1,2) [2024-12-27 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116600', 'tblTempUsageDetail_20' ) start [2024-12-27 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116600', 'tblTempUsageDetail_20' ) end [2024-12-27 20:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:21:22] Production.INFO: ==25776== Releasing lock... [2024-12-27 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:21:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-27 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:22:05 [end_date_ymd] => 2024-12-27 20:22:05 [RateCDR] => 1 ) [2024-12-27 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:22:05' and `end` < '2024-12-27 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:22:18] Production.INFO: count ==1874 [2024-12-27 20:22:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:22:05 - End Time 2024-12-27 20:22:05 [2024-12-27 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116605', 'tblTempUsageDetail_20' ) start [2024-12-27 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116605', 'tblTempUsageDetail_20' ) end [2024-12-27 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116605', 'tblTempVendorCDR_20' ) start [2024-12-27 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116605', 'tblTempVendorCDR_20' ) end [2024-12-27 20:22:18] Production.INFO: ProcessCDR(1,14116605,1,1,2) [2024-12-27 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116605', 'tblTempUsageDetail_20' ) start [2024-12-27 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116605', 'tblTempUsageDetail_20' ) end [2024-12-27 20:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:22:21] Production.INFO: ==25897== Releasing lock... [2024-12-27 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:22:21] Production.INFO: 42 MB #Memory Used# [2024-12-27 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:23:05 [end_date_ymd] => 2024-12-27 20:23:05 [RateCDR] => 1 ) [2024-12-27 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:23:05' and `end` < '2024-12-27 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:23:17] Production.INFO: count ==1870 [2024-12-27 20:23:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:23:05 - End Time 2024-12-27 20:23:05 [2024-12-27 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116610', 'tblTempUsageDetail_20' ) start [2024-12-27 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116610', 'tblTempUsageDetail_20' ) end [2024-12-27 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116610', 'tblTempVendorCDR_20' ) start [2024-12-27 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116610', 'tblTempVendorCDR_20' ) end [2024-12-27 20:23:18] Production.INFO: ProcessCDR(1,14116610,1,1,2) [2024-12-27 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116610', 'tblTempUsageDetail_20' ) start [2024-12-27 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116610', 'tblTempUsageDetail_20' ) end [2024-12-27 20:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:23:21] Production.INFO: ==25990== Releasing lock... [2024-12-27 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:23:21] Production.INFO: 42 MB #Memory Used# [2024-12-27 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:24:05 [end_date_ymd] => 2024-12-27 20:24:05 [RateCDR] => 1 ) [2024-12-27 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-27 17:24:05' and `end` < '2024-12-27 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-27 20:24:18] Production.INFO: count ==1867 [2024-12-27 20:24:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:24:05 - End Time 2024-12-27 20:24:05 [2024-12-27 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116615', 'tblTempUsageDetail_20' ) start [2024-12-27 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116615', 'tblTempUsageDetail_20' ) end [2024-12-27 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116615', 'tblTempVendorCDR_20' ) start [2024-12-27 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116615', 'tblTempVendorCDR_20' ) end [2024-12-27 20:24:18] Production.INFO: ProcessCDR(1,14116615,1,1,2) [2024-12-27 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116615', 'tblTempUsageDetail_20' ) start [2024-12-27 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116615', 'tblTempUsageDetail_20' ) end [2024-12-27 20:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:24:22] Production.INFO: ==26070== Releasing lock... [2024-12-27 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:24:22] Production.INFO: 42 MB #Memory Used# [2024-12-27 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:25:05 [end_date_ymd] => 2024-12-27 20:25:05 [RateCDR] => 1 ) [2024-12-27 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:25:05' and `end` < '2024-12-27 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:25:18] Production.INFO: count ==1862 [2024-12-27 20:25:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:25:05 - End Time 2024-12-27 20:25:05 [2024-12-27 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116620', 'tblTempUsageDetail_20' ) start [2024-12-27 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116620', 'tblTempUsageDetail_20' ) end [2024-12-27 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116620', 'tblTempVendorCDR_20' ) start [2024-12-27 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116620', 'tblTempVendorCDR_20' ) end [2024-12-27 20:25:18] Production.INFO: ProcessCDR(1,14116620,1,1,2) [2024-12-27 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116620', 'tblTempUsageDetail_20' ) start [2024-12-27 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116620', 'tblTempUsageDetail_20' ) end [2024-12-27 20:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:25:21] Production.INFO: ==26143== Releasing lock... [2024-12-27 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:25:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-27 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:26:05 [end_date_ymd] => 2024-12-27 20:26:05 [RateCDR] => 1 ) [2024-12-27 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-27 17:26:05' and `end` < '2024-12-27 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-27 20:26:17] Production.INFO: count ==1848 [2024-12-27 20:26:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:26:05 - End Time 2024-12-27 20:26:05 [2024-12-27 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116625', 'tblTempUsageDetail_20' ) start [2024-12-27 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116625', 'tblTempUsageDetail_20' ) end [2024-12-27 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116625', 'tblTempVendorCDR_20' ) start [2024-12-27 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116625', 'tblTempVendorCDR_20' ) end [2024-12-27 20:26:18] Production.INFO: ProcessCDR(1,14116625,1,1,2) [2024-12-27 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116625', 'tblTempUsageDetail_20' ) start [2024-12-27 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116625', 'tblTempUsageDetail_20' ) end [2024-12-27 20:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:26:21] Production.INFO: ==26222== Releasing lock... [2024-12-27 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:26:21] Production.INFO: 42 MB #Memory Used# [2024-12-27 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:27:05 [end_date_ymd] => 2024-12-27 20:27:05 [RateCDR] => 1 ) [2024-12-27 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:27:05' and `end` < '2024-12-27 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:27:18] Production.INFO: count ==1820 [2024-12-27 20:27:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:27:05 - End Time 2024-12-27 20:27:05 [2024-12-27 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116630', 'tblTempUsageDetail_20' ) start [2024-12-27 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116630', 'tblTempUsageDetail_20' ) end [2024-12-27 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116630', 'tblTempVendorCDR_20' ) start [2024-12-27 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116630', 'tblTempVendorCDR_20' ) end [2024-12-27 20:27:18] Production.INFO: ProcessCDR(1,14116630,1,1,2) [2024-12-27 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116630', 'tblTempUsageDetail_20' ) start [2024-12-27 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116630', 'tblTempUsageDetail_20' ) end [2024-12-27 20:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:27:21] Production.INFO: ==26301== Releasing lock... [2024-12-27 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:27:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-27 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:28:05 [end_date_ymd] => 2024-12-27 20:28:05 [RateCDR] => 1 ) [2024-12-27 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:28:05' and `end` < '2024-12-27 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:28:17] Production.INFO: count ==1819 [2024-12-27 20:28:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:28:05 - End Time 2024-12-27 20:28:05 [2024-12-27 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116635', 'tblTempUsageDetail_20' ) start [2024-12-27 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116635', 'tblTempUsageDetail_20' ) end [2024-12-27 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116635', 'tblTempVendorCDR_20' ) start [2024-12-27 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116635', 'tblTempVendorCDR_20' ) end [2024-12-27 20:28:18] Production.INFO: ProcessCDR(1,14116635,1,1,2) [2024-12-27 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116635', 'tblTempUsageDetail_20' ) start [2024-12-27 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116635', 'tblTempUsageDetail_20' ) end [2024-12-27 20:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:28:22] Production.INFO: ==26377== Releasing lock... [2024-12-27 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:28:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-27 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:29:05 [end_date_ymd] => 2024-12-27 20:29:05 [RateCDR] => 1 ) [2024-12-27 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:29:05' and `end` < '2024-12-27 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:29:18] Production.INFO: count ==1814 [2024-12-27 20:29:19] Production.ERROR: pbx CDR StartTime 2024-12-27 17:29:05 - End Time 2024-12-27 20:29:05 [2024-12-27 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116640', 'tblTempUsageDetail_20' ) start [2024-12-27 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116640', 'tblTempUsageDetail_20' ) end [2024-12-27 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116640', 'tblTempVendorCDR_20' ) start [2024-12-27 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116640', 'tblTempVendorCDR_20' ) end [2024-12-27 20:29:19] Production.INFO: ProcessCDR(1,14116640,1,1,2) [2024-12-27 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116640', 'tblTempUsageDetail_20' ) start [2024-12-27 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116640', 'tblTempUsageDetail_20' ) end [2024-12-27 20:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:29:22] Production.INFO: ==26453== Releasing lock... [2024-12-27 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:29:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-27 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:30:05 [end_date_ymd] => 2024-12-27 20:30:05 [RateCDR] => 1 ) [2024-12-27 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-27 17:30:05' and `end` < '2024-12-27 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-27 20:30:17] Production.INFO: count ==1816 [2024-12-27 20:30:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:30:05 - End Time 2024-12-27 20:30:05 [2024-12-27 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116646', 'tblTempUsageDetail_20' ) start [2024-12-27 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116646', 'tblTempUsageDetail_20' ) end [2024-12-27 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116646', 'tblTempVendorCDR_20' ) start [2024-12-27 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116646', 'tblTempVendorCDR_20' ) end [2024-12-27 20:30:18] Production.INFO: ProcessCDR(1,14116646,1,1,2) [2024-12-27 20:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116646', 'tblTempUsageDetail_20' ) start [2024-12-27 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116646', 'tblTempUsageDetail_20' ) end [2024-12-27 20:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:30:21] Production.INFO: ==26528== Releasing lock... [2024-12-27 20:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:30:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-27 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:31:05 [end_date_ymd] => 2024-12-27 20:31:05 [RateCDR] => 1 ) [2024-12-27 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:31:05' and `end` < '2024-12-27 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:31:17] Production.INFO: count ==1759 [2024-12-27 20:31:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:31:05 - End Time 2024-12-27 20:31:05 [2024-12-27 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116651', 'tblTempUsageDetail_20' ) start [2024-12-27 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116651', 'tblTempUsageDetail_20' ) end [2024-12-27 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116651', 'tblTempVendorCDR_20' ) start [2024-12-27 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116651', 'tblTempVendorCDR_20' ) end [2024-12-27 20:31:18] Production.INFO: ProcessCDR(1,14116651,1,1,2) [2024-12-27 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116651', 'tblTempUsageDetail_20' ) start [2024-12-27 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116651', 'tblTempUsageDetail_20' ) end [2024-12-27 20:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:31:22] Production.INFO: ==26603== Releasing lock... [2024-12-27 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:31:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-27 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:32:05 [end_date_ymd] => 2024-12-27 20:32:05 [RateCDR] => 1 ) [2024-12-27 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:32:05' and `end` < '2024-12-27 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:32:19] Production.INFO: count ==1758 [2024-12-27 20:32:19] Production.ERROR: pbx CDR StartTime 2024-12-27 17:32:05 - End Time 2024-12-27 20:32:05 [2024-12-27 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116656', 'tblTempUsageDetail_20' ) start [2024-12-27 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116656', 'tblTempUsageDetail_20' ) end [2024-12-27 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116656', 'tblTempVendorCDR_20' ) start [2024-12-27 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116656', 'tblTempVendorCDR_20' ) end [2024-12-27 20:32:19] Production.INFO: ProcessCDR(1,14116656,1,1,2) [2024-12-27 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116656', 'tblTempUsageDetail_20' ) start [2024-12-27 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116656', 'tblTempUsageDetail_20' ) end [2024-12-27 20:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:32:22] Production.INFO: ==26676== Releasing lock... [2024-12-27 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:32:22] Production.INFO: 41 MB #Memory Used# [2024-12-27 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:33:05 [end_date_ymd] => 2024-12-27 20:33:05 [RateCDR] => 1 ) [2024-12-27 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:33:05' and `end` < '2024-12-27 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:33:17] Production.INFO: count ==1745 [2024-12-27 20:33:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:33:05 - End Time 2024-12-27 20:33:05 [2024-12-27 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116661', 'tblTempUsageDetail_20' ) start [2024-12-27 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116661', 'tblTempUsageDetail_20' ) end [2024-12-27 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116661', 'tblTempVendorCDR_20' ) start [2024-12-27 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116661', 'tblTempVendorCDR_20' ) end [2024-12-27 20:33:18] Production.INFO: ProcessCDR(1,14116661,1,1,2) [2024-12-27 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116661', 'tblTempUsageDetail_20' ) start [2024-12-27 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116661', 'tblTempUsageDetail_20' ) end [2024-12-27 20:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:33:22] Production.INFO: ==26753== Releasing lock... [2024-12-27 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:33:22] Production.INFO: 41 MB #Memory Used# [2024-12-27 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:34:05 [end_date_ymd] => 2024-12-27 20:34:05 [RateCDR] => 1 ) [2024-12-27 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:34:05' and `end` < '2024-12-27 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:34:18] Production.INFO: count ==1744 [2024-12-27 20:34:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:34:05 - End Time 2024-12-27 20:34:05 [2024-12-27 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116666', 'tblTempUsageDetail_20' ) start [2024-12-27 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116666', 'tblTempUsageDetail_20' ) end [2024-12-27 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116666', 'tblTempVendorCDR_20' ) start [2024-12-27 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116666', 'tblTempVendorCDR_20' ) end [2024-12-27 20:34:18] Production.INFO: ProcessCDR(1,14116666,1,1,2) [2024-12-27 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116666', 'tblTempUsageDetail_20' ) start [2024-12-27 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116666', 'tblTempUsageDetail_20' ) end [2024-12-27 20:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:34:21] Production.INFO: ==26827== Releasing lock... [2024-12-27 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:34:21] Production.INFO: 41 MB #Memory Used# [2024-12-27 20:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:35:04 [end_date_ymd] => 2024-12-27 20:35:04 [RateCDR] => 1 ) [2024-12-27 20: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-27 17:35:04' and `end` < '2024-12-27 20: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-27 20:35:17] Production.INFO: count ==1743 [2024-12-27 20:35:17] Production.ERROR: pbx CDR StartTime 2024-12-27 17:35:04 - End Time 2024-12-27 20:35:04 [2024-12-27 20:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116671', 'tblTempUsageDetail_20' ) start [2024-12-27 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116671', 'tblTempUsageDetail_20' ) end [2024-12-27 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116671', 'tblTempVendorCDR_20' ) start [2024-12-27 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116671', 'tblTempVendorCDR_20' ) end [2024-12-27 20:35:17] Production.INFO: ProcessCDR(1,14116671,1,1,2) [2024-12-27 20:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116671', 'tblTempUsageDetail_20' ) start [2024-12-27 20:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116671', 'tblTempUsageDetail_20' ) end [2024-12-27 20:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:35:20] Production.INFO: ==26901== Releasing lock... [2024-12-27 20:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:35:20] Production.INFO: 41 MB #Memory Used# [2024-12-27 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:36:05 [end_date_ymd] => 2024-12-27 20:36:05 [RateCDR] => 1 ) [2024-12-27 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:36:05' and `end` < '2024-12-27 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:36:18] Production.INFO: count ==1742 [2024-12-27 20:36:19] Production.ERROR: pbx CDR StartTime 2024-12-27 17:36:05 - End Time 2024-12-27 20:36:05 [2024-12-27 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116676', 'tblTempUsageDetail_20' ) start [2024-12-27 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116676', 'tblTempUsageDetail_20' ) end [2024-12-27 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116676', 'tblTempVendorCDR_20' ) start [2024-12-27 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116676', 'tblTempVendorCDR_20' ) end [2024-12-27 20:36:19] Production.INFO: ProcessCDR(1,14116676,1,1,2) [2024-12-27 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116676', 'tblTempUsageDetail_20' ) start [2024-12-27 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116676', 'tblTempUsageDetail_20' ) end [2024-12-27 20:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:36:22] Production.INFO: ==26974== Releasing lock... [2024-12-27 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:36:22] Production.INFO: 41 MB #Memory Used# [2024-12-27 20:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:37:04 [end_date_ymd] => 2024-12-27 20:37:04 [RateCDR] => 1 ) [2024-12-27 20:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:37:04' and `end` < '2024-12-27 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-27 20:37:17] Production.INFO: count ==1741 [2024-12-27 20:37:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:37:04 - End Time 2024-12-27 20:37:04 [2024-12-27 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116681', 'tblTempUsageDetail_20' ) start [2024-12-27 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116681', 'tblTempUsageDetail_20' ) end [2024-12-27 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116681', 'tblTempVendorCDR_20' ) start [2024-12-27 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116681', 'tblTempVendorCDR_20' ) end [2024-12-27 20:37:18] Production.INFO: ProcessCDR(1,14116681,1,1,2) [2024-12-27 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116681', 'tblTempUsageDetail_20' ) start [2024-12-27 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116681', 'tblTempUsageDetail_20' ) end [2024-12-27 20:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:37:21] Production.INFO: ==27043== Releasing lock... [2024-12-27 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:37:21] Production.INFO: 41 MB #Memory Used# [2024-12-27 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:38:05 [end_date_ymd] => 2024-12-27 20:38:05 [RateCDR] => 1 ) [2024-12-27 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:38:05' and `end` < '2024-12-27 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:38:18] Production.INFO: count ==1740 [2024-12-27 20:38:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:38:05 - End Time 2024-12-27 20:38:05 [2024-12-27 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116686', 'tblTempUsageDetail_20' ) start [2024-12-27 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116686', 'tblTempUsageDetail_20' ) end [2024-12-27 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116686', 'tblTempVendorCDR_20' ) start [2024-12-27 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116686', 'tblTempVendorCDR_20' ) end [2024-12-27 20:38:18] Production.INFO: ProcessCDR(1,14116686,1,1,2) [2024-12-27 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116686', 'tblTempUsageDetail_20' ) start [2024-12-27 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116686', 'tblTempUsageDetail_20' ) end [2024-12-27 20:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:38:21] Production.INFO: ==27156== Releasing lock... [2024-12-27 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:38:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-27 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:39:05 [end_date_ymd] => 2024-12-27 20:39:05 [RateCDR] => 1 ) [2024-12-27 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:39:05' and `end` < '2024-12-27 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:39:17] Production.INFO: count ==1738 [2024-12-27 20:39:17] Production.ERROR: pbx CDR StartTime 2024-12-27 17:39:05 - End Time 2024-12-27 20:39:05 [2024-12-27 20:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116691', 'tblTempUsageDetail_20' ) start [2024-12-27 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116691', 'tblTempUsageDetail_20' ) end [2024-12-27 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116691', 'tblTempVendorCDR_20' ) start [2024-12-27 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116691', 'tblTempVendorCDR_20' ) end [2024-12-27 20:39:17] Production.INFO: ProcessCDR(1,14116691,1,1,2) [2024-12-27 20:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116691', 'tblTempUsageDetail_20' ) start [2024-12-27 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116691', 'tblTempUsageDetail_20' ) end [2024-12-27 20:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:39:21] Production.INFO: ==27224== Releasing lock... [2024-12-27 20:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:39:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-27 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:40:06 [end_date_ymd] => 2024-12-27 20:40:06 [RateCDR] => 1 ) [2024-12-27 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:40:06' and `end` < '2024-12-27 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:40:19] Production.INFO: count ==1729 [2024-12-27 20:40:19] Production.ERROR: pbx CDR StartTime 2024-12-27 17:40:06 - End Time 2024-12-27 20:40:06 [2024-12-27 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116697', 'tblTempUsageDetail_20' ) start [2024-12-27 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116697', 'tblTempUsageDetail_20' ) end [2024-12-27 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116697', 'tblTempVendorCDR_20' ) start [2024-12-27 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116697', 'tblTempVendorCDR_20' ) end [2024-12-27 20:40:19] Production.INFO: ProcessCDR(1,14116697,1,1,2) [2024-12-27 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116697', 'tblTempUsageDetail_20' ) start [2024-12-27 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116697', 'tblTempUsageDetail_20' ) end [2024-12-27 20:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:40:22] Production.INFO: ==27298== Releasing lock... [2024-12-27 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:40:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-27 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:41:05 [end_date_ymd] => 2024-12-27 20:41:05 [RateCDR] => 1 ) [2024-12-27 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-27 17:41:05' and `end` < '2024-12-27 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-27 20:41:18] Production.INFO: count ==1660 [2024-12-27 20:41:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:41:05 - End Time 2024-12-27 20:41:05 [2024-12-27 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116702', 'tblTempUsageDetail_20' ) start [2024-12-27 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116702', 'tblTempUsageDetail_20' ) end [2024-12-27 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116702', 'tblTempVendorCDR_20' ) start [2024-12-27 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116702', 'tblTempVendorCDR_20' ) end [2024-12-27 20:41:18] Production.INFO: ProcessCDR(1,14116702,1,1,2) [2024-12-27 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116702', 'tblTempUsageDetail_20' ) start [2024-12-27 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116702', 'tblTempUsageDetail_20' ) end [2024-12-27 20:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:41:22] Production.INFO: ==27373== Releasing lock... [2024-12-27 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:41:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-27 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:42:05 [end_date_ymd] => 2024-12-27 20:42:05 [RateCDR] => 1 ) [2024-12-27 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:42:05' and `end` < '2024-12-27 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:42:17] Production.INFO: count ==1654 [2024-12-27 20:42:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:42:05 - End Time 2024-12-27 20:42:05 [2024-12-27 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116707', 'tblTempUsageDetail_20' ) start [2024-12-27 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116707', 'tblTempUsageDetail_20' ) end [2024-12-27 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116707', 'tblTempVendorCDR_20' ) start [2024-12-27 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116707', 'tblTempVendorCDR_20' ) end [2024-12-27 20:42:18] Production.INFO: ProcessCDR(1,14116707,1,1,2) [2024-12-27 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116707', 'tblTempUsageDetail_20' ) start [2024-12-27 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116707', 'tblTempUsageDetail_20' ) end [2024-12-27 20:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:42:21] Production.INFO: ==27444== Releasing lock... [2024-12-27 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:42:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-27 20:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:43:04 [end_date_ymd] => 2024-12-27 20:43:04 [RateCDR] => 1 ) [2024-12-27 20: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-27 17:43:04' and `end` < '2024-12-27 20: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-27 20:43:17] Production.INFO: count ==1663 [2024-12-27 20:43:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:43:04 - End Time 2024-12-27 20:43:04 [2024-12-27 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116712', 'tblTempUsageDetail_20' ) start [2024-12-27 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116712', 'tblTempUsageDetail_20' ) end [2024-12-27 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116712', 'tblTempVendorCDR_20' ) start [2024-12-27 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116712', 'tblTempVendorCDR_20' ) end [2024-12-27 20:43:18] Production.INFO: ProcessCDR(1,14116712,1,1,2) [2024-12-27 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116712', 'tblTempUsageDetail_20' ) start [2024-12-27 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116712', 'tblTempUsageDetail_20' ) end [2024-12-27 20:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:43:21] Production.INFO: ==27515== Releasing lock... [2024-12-27 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:43:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-27 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:44:05 [end_date_ymd] => 2024-12-27 20:44:05 [RateCDR] => 1 ) [2024-12-27 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:44:05' and `end` < '2024-12-27 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:44:18] Production.INFO: count ==1654 [2024-12-27 20:44:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:44:05 - End Time 2024-12-27 20:44:05 [2024-12-27 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116717', 'tblTempUsageDetail_20' ) start [2024-12-27 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116717', 'tblTempUsageDetail_20' ) end [2024-12-27 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116717', 'tblTempVendorCDR_20' ) start [2024-12-27 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116717', 'tblTempVendorCDR_20' ) end [2024-12-27 20:44:18] Production.INFO: ProcessCDR(1,14116717,1,1,2) [2024-12-27 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116717', 'tblTempUsageDetail_20' ) start [2024-12-27 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116717', 'tblTempUsageDetail_20' ) end [2024-12-27 20:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:44:21] Production.INFO: ==27588== Releasing lock... [2024-12-27 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:44:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-27 20:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:45:04 [end_date_ymd] => 2024-12-27 20:45:04 [RateCDR] => 1 ) [2024-12-27 20: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-27 17:45:04' and `end` < '2024-12-27 20: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-27 20:45:17] Production.INFO: count ==1642 [2024-12-27 20:45:17] Production.ERROR: pbx CDR StartTime 2024-12-27 17:45:04 - End Time 2024-12-27 20:45:04 [2024-12-27 20:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116722', 'tblTempUsageDetail_20' ) start [2024-12-27 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116722', 'tblTempUsageDetail_20' ) end [2024-12-27 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116722', 'tblTempVendorCDR_20' ) start [2024-12-27 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116722', 'tblTempVendorCDR_20' ) end [2024-12-27 20:45:17] Production.INFO: ProcessCDR(1,14116722,1,1,2) [2024-12-27 20:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116722', 'tblTempUsageDetail_20' ) start [2024-12-27 20:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116722', 'tblTempUsageDetail_20' ) end [2024-12-27 20:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:45:20] Production.INFO: ==27659== Releasing lock... [2024-12-27 20:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:45:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-27 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:46:05 [end_date_ymd] => 2024-12-27 20:46:05 [RateCDR] => 1 ) [2024-12-27 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-27 17:46:05' and `end` < '2024-12-27 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-27 20:46:17] Production.INFO: count ==1633 [2024-12-27 20:46:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:46:05 - End Time 2024-12-27 20:46:05 [2024-12-27 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116727', 'tblTempUsageDetail_20' ) start [2024-12-27 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116727', 'tblTempUsageDetail_20' ) end [2024-12-27 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116727', 'tblTempVendorCDR_20' ) start [2024-12-27 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116727', 'tblTempVendorCDR_20' ) end [2024-12-27 20:46:18] Production.INFO: ProcessCDR(1,14116727,1,1,2) [2024-12-27 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116727', 'tblTempUsageDetail_20' ) start [2024-12-27 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116727', 'tblTempUsageDetail_20' ) end [2024-12-27 20:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:46:21] Production.INFO: ==27730== Releasing lock... [2024-12-27 20:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:46:21] Production.INFO: 40 MB #Memory Used# [2024-12-27 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:47:05 [end_date_ymd] => 2024-12-27 20:47:05 [RateCDR] => 1 ) [2024-12-27 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:47:05' and `end` < '2024-12-27 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:47:18] Production.INFO: count ==1628 [2024-12-27 20:47:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:47:05 - End Time 2024-12-27 20:47:05 [2024-12-27 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116732', 'tblTempUsageDetail_20' ) start [2024-12-27 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116732', 'tblTempUsageDetail_20' ) end [2024-12-27 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116732', 'tblTempVendorCDR_20' ) start [2024-12-27 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116732', 'tblTempVendorCDR_20' ) end [2024-12-27 20:47:18] Production.INFO: ProcessCDR(1,14116732,1,1,2) [2024-12-27 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116732', 'tblTempUsageDetail_20' ) start [2024-12-27 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116732', 'tblTempUsageDetail_20' ) end [2024-12-27 20:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:47:23] Production.INFO: ==27802== Releasing lock... [2024-12-27 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:47:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-27 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:48:05 [end_date_ymd] => 2024-12-27 20:48:05 [RateCDR] => 1 ) [2024-12-27 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-27 17:48:05' and `end` < '2024-12-27 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-27 20:48:19] Production.INFO: count ==1620 [2024-12-27 20:48:20] Production.ERROR: pbx CDR StartTime 2024-12-27 17:48:05 - End Time 2024-12-27 20:48:05 [2024-12-27 20:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116737', 'tblTempUsageDetail_20' ) start [2024-12-27 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116737', 'tblTempUsageDetail_20' ) end [2024-12-27 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116737', 'tblTempVendorCDR_20' ) start [2024-12-27 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116737', 'tblTempVendorCDR_20' ) end [2024-12-27 20:48:20] Production.INFO: ProcessCDR(1,14116737,1,1,2) [2024-12-27 20:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116737', 'tblTempUsageDetail_20' ) start [2024-12-27 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116737', 'tblTempUsageDetail_20' ) end [2024-12-27 20:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:48:23] Production.INFO: ==27873== Releasing lock... [2024-12-27 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:48:23] Production.INFO: 39.75 MB #Memory Used# [2024-12-27 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:49:05 [end_date_ymd] => 2024-12-27 20:49:05 [RateCDR] => 1 ) [2024-12-27 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-27 17:49:05' and `end` < '2024-12-27 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-27 20:49:18] Production.INFO: count ==1618 [2024-12-27 20:49:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:49:05 - End Time 2024-12-27 20:49:05 [2024-12-27 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116742', 'tblTempUsageDetail_20' ) start [2024-12-27 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116742', 'tblTempUsageDetail_20' ) end [2024-12-27 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116742', 'tblTempVendorCDR_20' ) start [2024-12-27 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116742', 'tblTempVendorCDR_20' ) end [2024-12-27 20:49:18] Production.INFO: ProcessCDR(1,14116742,1,1,2) [2024-12-27 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116742', 'tblTempUsageDetail_20' ) start [2024-12-27 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116742', 'tblTempUsageDetail_20' ) end [2024-12-27 20:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:49:21] Production.INFO: ==27946== Releasing lock... [2024-12-27 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:49:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-27 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:50:05 [end_date_ymd] => 2024-12-27 20:50:05 [RateCDR] => 1 ) [2024-12-27 20: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-27 17:50:05' and `end` < '2024-12-27 20: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-27 20:50:18] Production.INFO: count ==1618 [2024-12-27 20:50:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:50:05 - End Time 2024-12-27 20:50:05 [2024-12-27 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116748', 'tblTempUsageDetail_20' ) start [2024-12-27 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116748', 'tblTempUsageDetail_20' ) end [2024-12-27 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116748', 'tblTempVendorCDR_20' ) start [2024-12-27 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116748', 'tblTempVendorCDR_20' ) end [2024-12-27 20:50:18] Production.INFO: ProcessCDR(1,14116748,1,1,2) [2024-12-27 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116748', 'tblTempUsageDetail_20' ) start [2024-12-27 20:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116748', 'tblTempUsageDetail_20' ) end [2024-12-27 20:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:50:21] Production.INFO: ==28019== Releasing lock... [2024-12-27 20:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:50:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-27 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:51:05 [end_date_ymd] => 2024-12-27 20:51:05 [RateCDR] => 1 ) [2024-12-27 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:51:05' and `end` < '2024-12-27 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:51:18] Production.INFO: count ==1616 [2024-12-27 20:51:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:51:05 - End Time 2024-12-27 20:51:05 [2024-12-27 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116753', 'tblTempUsageDetail_20' ) start [2024-12-27 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116753', 'tblTempUsageDetail_20' ) end [2024-12-27 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116753', 'tblTempVendorCDR_20' ) start [2024-12-27 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116753', 'tblTempVendorCDR_20' ) end [2024-12-27 20:51:18] Production.INFO: ProcessCDR(1,14116753,1,1,2) [2024-12-27 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116753', 'tblTempUsageDetail_20' ) start [2024-12-27 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116753', 'tblTempUsageDetail_20' ) end [2024-12-27 20:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:51:23] Production.INFO: ==28092== Releasing lock... [2024-12-27 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:51:23] Production.INFO: 39.75 MB #Memory Used# [2024-12-27 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:52:05 [end_date_ymd] => 2024-12-27 20:52:05 [RateCDR] => 1 ) [2024-12-27 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:52:05' and `end` < '2024-12-27 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:52:17] Production.INFO: count ==1617 [2024-12-27 20:52:17] Production.ERROR: pbx CDR StartTime 2024-12-27 17:52:05 - End Time 2024-12-27 20:52:05 [2024-12-27 20:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116758', 'tblTempUsageDetail_20' ) start [2024-12-27 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116758', 'tblTempUsageDetail_20' ) end [2024-12-27 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116758', 'tblTempVendorCDR_20' ) start [2024-12-27 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116758', 'tblTempVendorCDR_20' ) end [2024-12-27 20:52:17] Production.INFO: ProcessCDR(1,14116758,1,1,2) [2024-12-27 20:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116758', 'tblTempUsageDetail_20' ) start [2024-12-27 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116758', 'tblTempUsageDetail_20' ) end [2024-12-27 20:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:52:22] Production.INFO: ==28164== Releasing lock... [2024-12-27 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:52:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-27 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:53:05 [end_date_ymd] => 2024-12-27 20:53:05 [RateCDR] => 1 ) [2024-12-27 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:53:05' and `end` < '2024-12-27 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:53:18] Production.INFO: count ==1605 [2024-12-27 20:53:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:53:05 - End Time 2024-12-27 20:53:05 [2024-12-27 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116763', 'tblTempUsageDetail_20' ) start [2024-12-27 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116763', 'tblTempUsageDetail_20' ) end [2024-12-27 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116763', 'tblTempVendorCDR_20' ) start [2024-12-27 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116763', 'tblTempVendorCDR_20' ) end [2024-12-27 20:53:18] Production.INFO: ProcessCDR(1,14116763,1,1,2) [2024-12-27 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116763', 'tblTempUsageDetail_20' ) start [2024-12-27 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116763', 'tblTempUsageDetail_20' ) end [2024-12-27 20:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:53:21] Production.INFO: ==28274== Releasing lock... [2024-12-27 20:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:53:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-27 20:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:54:04 [end_date_ymd] => 2024-12-27 20:54:04 [RateCDR] => 1 ) [2024-12-27 20:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:54:04' and `end` < '2024-12-27 20:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:54:17] Production.INFO: count ==1604 [2024-12-27 20:54:17] Production.ERROR: pbx CDR StartTime 2024-12-27 17:54:04 - End Time 2024-12-27 20:54:04 [2024-12-27 20:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116768', 'tblTempUsageDetail_20' ) start [2024-12-27 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116768', 'tblTempUsageDetail_20' ) end [2024-12-27 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116768', 'tblTempVendorCDR_20' ) start [2024-12-27 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116768', 'tblTempVendorCDR_20' ) end [2024-12-27 20:54:17] Production.INFO: ProcessCDR(1,14116768,1,1,2) [2024-12-27 20:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116768', 'tblTempUsageDetail_20' ) start [2024-12-27 20:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116768', 'tblTempUsageDetail_20' ) end [2024-12-27 20:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:54:20] Production.INFO: ==28348== Releasing lock... [2024-12-27 20:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:54:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-27 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:55:05 [end_date_ymd] => 2024-12-27 20:55:05 [RateCDR] => 1 ) [2024-12-27 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:55:05' and `end` < '2024-12-27 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:55:17] Production.INFO: count ==1603 [2024-12-27 20:55:17] Production.ERROR: pbx CDR StartTime 2024-12-27 17:55:05 - End Time 2024-12-27 20:55:05 [2024-12-27 20:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116773', 'tblTempUsageDetail_20' ) start [2024-12-27 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116773', 'tblTempUsageDetail_20' ) end [2024-12-27 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116773', 'tblTempVendorCDR_20' ) start [2024-12-27 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116773', 'tblTempVendorCDR_20' ) end [2024-12-27 20:55:17] Production.INFO: ProcessCDR(1,14116773,1,1,2) [2024-12-27 20:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116773', 'tblTempUsageDetail_20' ) start [2024-12-27 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116773', 'tblTempUsageDetail_20' ) end [2024-12-27 20:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:55:22] Production.INFO: ==28420== Releasing lock... [2024-12-27 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:55:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-27 20:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:56:04 [end_date_ymd] => 2024-12-27 20:56:04 [RateCDR] => 1 ) [2024-12-27 20: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-27 17:56:04' and `end` < '2024-12-27 20: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-27 20:56:17] Production.INFO: count ==1602 [2024-12-27 20:56:17] Production.ERROR: pbx CDR StartTime 2024-12-27 17:56:04 - End Time 2024-12-27 20:56:04 [2024-12-27 20:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116778', 'tblTempUsageDetail_20' ) start [2024-12-27 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116778', 'tblTempUsageDetail_20' ) end [2024-12-27 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116778', 'tblTempVendorCDR_20' ) start [2024-12-27 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116778', 'tblTempVendorCDR_20' ) end [2024-12-27 20:56:17] Production.INFO: ProcessCDR(1,14116778,1,1,2) [2024-12-27 20:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116778', 'tblTempUsageDetail_20' ) start [2024-12-27 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116778', 'tblTempUsageDetail_20' ) end [2024-12-27 20:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:56:22] Production.INFO: ==28492== Releasing lock... [2024-12-27 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:56:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-27 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:57:05 [end_date_ymd] => 2024-12-27 20:57:05 [RateCDR] => 1 ) [2024-12-27 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-27 17:57:05' and `end` < '2024-12-27 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-27 20:57:18] Production.INFO: count ==1589 [2024-12-27 20:57:19] Production.ERROR: pbx CDR StartTime 2024-12-27 17:57:05 - End Time 2024-12-27 20:57:05 [2024-12-27 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116783', 'tblTempUsageDetail_20' ) start [2024-12-27 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116783', 'tblTempUsageDetail_20' ) end [2024-12-27 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116783', 'tblTempVendorCDR_20' ) start [2024-12-27 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116783', 'tblTempVendorCDR_20' ) end [2024-12-27 20:57:19] Production.INFO: ProcessCDR(1,14116783,1,1,2) [2024-12-27 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116783', 'tblTempUsageDetail_20' ) start [2024-12-27 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116783', 'tblTempUsageDetail_20' ) end [2024-12-27 20:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:57:23] Production.INFO: ==28567== Releasing lock... [2024-12-27 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:57:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-27 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:58:05 [end_date_ymd] => 2024-12-27 20:58:05 [RateCDR] => 1 ) [2024-12-27 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:58:05' and `end` < '2024-12-27 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:58:18] Production.INFO: count ==1586 [2024-12-27 20:58:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:58:05 - End Time 2024-12-27 20:58:05 [2024-12-27 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116788', 'tblTempUsageDetail_20' ) start [2024-12-27 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116788', 'tblTempUsageDetail_20' ) end [2024-12-27 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116788', 'tblTempVendorCDR_20' ) start [2024-12-27 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116788', 'tblTempVendorCDR_20' ) end [2024-12-27 20:58:18] Production.INFO: ProcessCDR(1,14116788,1,1,2) [2024-12-27 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116788', 'tblTempUsageDetail_20' ) start [2024-12-27 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116788', 'tblTempUsageDetail_20' ) end [2024-12-27 20:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:58:21] Production.INFO: ==28641== Releasing lock... [2024-12-27 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:58:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-27 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 17:59:05 [end_date_ymd] => 2024-12-27 20:59:05 [RateCDR] => 1 ) [2024-12-27 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 17:59:05' and `end` < '2024-12-27 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 20:59:18] Production.INFO: count ==1577 [2024-12-27 20:59:18] Production.ERROR: pbx CDR StartTime 2024-12-27 17:59:05 - End Time 2024-12-27 20:59:05 [2024-12-27 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116793', 'tblTempUsageDetail_20' ) start [2024-12-27 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116793', 'tblTempUsageDetail_20' ) end [2024-12-27 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116793', 'tblTempVendorCDR_20' ) start [2024-12-27 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116793', 'tblTempVendorCDR_20' ) end [2024-12-27 20:59:18] Production.INFO: ProcessCDR(1,14116793,1,1,2) [2024-12-27 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116793', 'tblTempUsageDetail_20' ) start [2024-12-27 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116793', 'tblTempUsageDetail_20' ) end [2024-12-27 20:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 20:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 20:59:22] Production.INFO: ==28713== Releasing lock... [2024-12-27 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 20:59:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-27 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:00:05 [end_date_ymd] => 2024-12-27 21:00:05 [RateCDR] => 1 ) [2024-12-27 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-27 18:00:05' and `end` < '2024-12-27 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-27 21:00:17] Production.INFO: count ==1583 [2024-12-27 21:00:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:00:05 - End Time 2024-12-27 21:00:05 [2024-12-27 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116798', 'tblTempUsageDetail_20' ) start [2024-12-27 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116798', 'tblTempUsageDetail_20' ) end [2024-12-27 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116798', 'tblTempVendorCDR_20' ) start [2024-12-27 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116798', 'tblTempVendorCDR_20' ) end [2024-12-27 21:00:18] Production.INFO: ProcessCDR(1,14116798,1,1,2) [2024-12-27 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116798', 'tblTempUsageDetail_20' ) start [2024-12-27 21:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116798', 'tblTempUsageDetail_20' ) end [2024-12-27 21:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:00:21] Production.INFO: ==28787== Releasing lock... [2024-12-27 21:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:00:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-27 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:01:05 [end_date_ymd] => 2024-12-27 21:01:05 [RateCDR] => 1 ) [2024-12-27 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:01:05' and `end` < '2024-12-27 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:01:17] Production.INFO: count ==1549 [2024-12-27 21:01:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:01:05 - End Time 2024-12-27 21:01:05 [2024-12-27 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116804', 'tblTempUsageDetail_20' ) start [2024-12-27 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116804', 'tblTempUsageDetail_20' ) end [2024-12-27 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116804', 'tblTempVendorCDR_20' ) start [2024-12-27 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116804', 'tblTempVendorCDR_20' ) end [2024-12-27 21:01:18] Production.INFO: ProcessCDR(1,14116804,1,1,2) [2024-12-27 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116804', 'tblTempUsageDetail_20' ) start [2024-12-27 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116804', 'tblTempUsageDetail_20' ) end [2024-12-27 21:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:01:21] Production.INFO: ==28873== Releasing lock... [2024-12-27 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:01:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-27 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:02:06 [end_date_ymd] => 2024-12-27 21:02:06 [RateCDR] => 1 ) [2024-12-27 21: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-27 18:02:06' and `end` < '2024-12-27 21: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-27 21:02:18] Production.INFO: count ==1547 [2024-12-27 21:02:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:02:06 - End Time 2024-12-27 21:02:06 [2024-12-27 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116809', 'tblTempUsageDetail_20' ) start [2024-12-27 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116809', 'tblTempUsageDetail_20' ) end [2024-12-27 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116809', 'tblTempVendorCDR_20' ) start [2024-12-27 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116809', 'tblTempVendorCDR_20' ) end [2024-12-27 21:02:18] Production.INFO: ProcessCDR(1,14116809,1,1,2) [2024-12-27 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116809', 'tblTempUsageDetail_20' ) start [2024-12-27 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116809', 'tblTempUsageDetail_20' ) end [2024-12-27 21:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:02:21] Production.INFO: ==28943== Releasing lock... [2024-12-27 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:02:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-27 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:03:05 [end_date_ymd] => 2024-12-27 21:03:05 [RateCDR] => 1 ) [2024-12-27 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:03:05' and `end` < '2024-12-27 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:03:18] Production.INFO: count ==1540 [2024-12-27 21:03:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:03:05 - End Time 2024-12-27 21:03:05 [2024-12-27 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116814', 'tblTempUsageDetail_20' ) start [2024-12-27 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116814', 'tblTempUsageDetail_20' ) end [2024-12-27 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116814', 'tblTempVendorCDR_20' ) start [2024-12-27 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116814', 'tblTempVendorCDR_20' ) end [2024-12-27 21:03:18] Production.INFO: ProcessCDR(1,14116814,1,1,2) [2024-12-27 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116814', 'tblTempUsageDetail_20' ) start [2024-12-27 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116814', 'tblTempUsageDetail_20' ) end [2024-12-27 21:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:03:21] Production.INFO: ==29014== Releasing lock... [2024-12-27 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:03:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-27 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:04:05 [end_date_ymd] => 2024-12-27 21:04:05 [RateCDR] => 1 ) [2024-12-27 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:04:05' and `end` < '2024-12-27 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:04:18] Production.INFO: count ==1526 [2024-12-27 21:04:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:04:05 - End Time 2024-12-27 21:04:05 [2024-12-27 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116819', 'tblTempUsageDetail_20' ) start [2024-12-27 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116819', 'tblTempUsageDetail_20' ) end [2024-12-27 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116819', 'tblTempVendorCDR_20' ) start [2024-12-27 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116819', 'tblTempVendorCDR_20' ) end [2024-12-27 21:04:18] Production.INFO: ProcessCDR(1,14116819,1,1,2) [2024-12-27 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116819', 'tblTempUsageDetail_20' ) start [2024-12-27 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116819', 'tblTempUsageDetail_20' ) end [2024-12-27 21:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:04:21] Production.INFO: ==29085== Releasing lock... [2024-12-27 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:04:21] Production.INFO: 39 MB #Memory Used# [2024-12-27 21:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:05:04 [end_date_ymd] => 2024-12-27 21:05:04 [RateCDR] => 1 ) [2024-12-27 21: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-27 18:05:04' and `end` < '2024-12-27 21: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-27 21:05:17] Production.INFO: count ==1521 [2024-12-27 21:05:17] Production.ERROR: pbx CDR StartTime 2024-12-27 18:05:04 - End Time 2024-12-27 21:05:04 [2024-12-27 21:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116824', 'tblTempUsageDetail_20' ) start [2024-12-27 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116824', 'tblTempUsageDetail_20' ) end [2024-12-27 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116824', 'tblTempVendorCDR_20' ) start [2024-12-27 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116824', 'tblTempVendorCDR_20' ) end [2024-12-27 21:05:17] Production.INFO: ProcessCDR(1,14116824,1,1,2) [2024-12-27 21:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116824', 'tblTempUsageDetail_20' ) start [2024-12-27 21:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116824', 'tblTempUsageDetail_20' ) end [2024-12-27 21:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:05:20] Production.INFO: ==29157== Releasing lock... [2024-12-27 21:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:05:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-27 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:06:05 [end_date_ymd] => 2024-12-27 21:06:05 [RateCDR] => 1 ) [2024-12-27 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:06:05' and `end` < '2024-12-27 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:06:18] Production.INFO: count ==1514 [2024-12-27 21:06:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:06:05 - End Time 2024-12-27 21:06:05 [2024-12-27 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116829', 'tblTempUsageDetail_20' ) start [2024-12-27 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116829', 'tblTempUsageDetail_20' ) end [2024-12-27 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116829', 'tblTempVendorCDR_20' ) start [2024-12-27 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116829', 'tblTempVendorCDR_20' ) end [2024-12-27 21:06:18] Production.INFO: ProcessCDR(1,14116829,1,1,2) [2024-12-27 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116829', 'tblTempUsageDetail_20' ) start [2024-12-27 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116829', 'tblTempUsageDetail_20' ) end [2024-12-27 21:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:06:22] Production.INFO: ==29229== Releasing lock... [2024-12-27 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:06:22] Production.INFO: 39.25 MB #Memory Used# [2024-12-27 21:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:07:04 [end_date_ymd] => 2024-12-27 21:07:04 [RateCDR] => 1 ) [2024-12-27 21: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-27 18:07:04' and `end` < '2024-12-27 21: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-27 21:07:17] Production.INFO: count ==1513 [2024-12-27 21:07:17] Production.ERROR: pbx CDR StartTime 2024-12-27 18:07:04 - End Time 2024-12-27 21:07:04 [2024-12-27 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116834', 'tblTempUsageDetail_20' ) start [2024-12-27 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116834', 'tblTempUsageDetail_20' ) end [2024-12-27 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116834', 'tblTempVendorCDR_20' ) start [2024-12-27 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116834', 'tblTempVendorCDR_20' ) end [2024-12-27 21:07:17] Production.INFO: ProcessCDR(1,14116834,1,1,2) [2024-12-27 21:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116834', 'tblTempUsageDetail_20' ) start [2024-12-27 21:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116834', 'tblTempUsageDetail_20' ) end [2024-12-27 21:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:07:20] Production.INFO: ==29301== Releasing lock... [2024-12-27 21:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:07:20] Production.INFO: 39 MB #Memory Used# [2024-12-27 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:08:05 [end_date_ymd] => 2024-12-27 21:08:05 [RateCDR] => 1 ) [2024-12-27 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:08:05' and `end` < '2024-12-27 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:08:18] Production.INFO: count ==1515 [2024-12-27 21:08:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:08:05 - End Time 2024-12-27 21:08:05 [2024-12-27 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116839', 'tblTempUsageDetail_20' ) start [2024-12-27 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116839', 'tblTempUsageDetail_20' ) end [2024-12-27 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116839', 'tblTempVendorCDR_20' ) start [2024-12-27 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116839', 'tblTempVendorCDR_20' ) end [2024-12-27 21:08:18] Production.INFO: ProcessCDR(1,14116839,1,1,2) [2024-12-27 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116839', 'tblTempUsageDetail_20' ) start [2024-12-27 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116839', 'tblTempUsageDetail_20' ) end [2024-12-27 21:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:08:21] Production.INFO: ==29372== Releasing lock... [2024-12-27 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:08:21] Production.INFO: 39 MB #Memory Used# [2024-12-27 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:09:05 [end_date_ymd] => 2024-12-27 21:09:05 [RateCDR] => 1 ) [2024-12-27 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:09:05' and `end` < '2024-12-27 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:09:18] Production.INFO: count ==1511 [2024-12-27 21:09:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:09:05 - End Time 2024-12-27 21:09:05 [2024-12-27 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116844', 'tblTempUsageDetail_20' ) start [2024-12-27 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116844', 'tblTempUsageDetail_20' ) end [2024-12-27 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116844', 'tblTempVendorCDR_20' ) start [2024-12-27 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116844', 'tblTempVendorCDR_20' ) end [2024-12-27 21:09:18] Production.INFO: ProcessCDR(1,14116844,1,1,2) [2024-12-27 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116844', 'tblTempUsageDetail_20' ) start [2024-12-27 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116844', 'tblTempUsageDetail_20' ) end [2024-12-27 21:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:09:21] Production.INFO: ==29484== Releasing lock... [2024-12-27 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:09:21] Production.INFO: 39 MB #Memory Used# [2024-12-27 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:10:05 [end_date_ymd] => 2024-12-27 21:10:05 [RateCDR] => 1 ) [2024-12-27 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-27 18:10:05' and `end` < '2024-12-27 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-27 21:10:18] Production.INFO: count ==1524 [2024-12-27 21:10:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:10:05 - End Time 2024-12-27 21:10:05 [2024-12-27 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116849', 'tblTempUsageDetail_20' ) start [2024-12-27 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116849', 'tblTempUsageDetail_20' ) end [2024-12-27 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116849', 'tblTempVendorCDR_20' ) start [2024-12-27 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116849', 'tblTempVendorCDR_20' ) end [2024-12-27 21:10:18] Production.INFO: ProcessCDR(1,14116849,1,1,2) [2024-12-27 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116849', 'tblTempUsageDetail_20' ) start [2024-12-27 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116849', 'tblTempUsageDetail_20' ) end [2024-12-27 21:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:10:21] Production.INFO: ==29558== Releasing lock... [2024-12-27 21:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:10:21] Production.INFO: 39 MB #Memory Used# [2024-12-27 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:11:05 [end_date_ymd] => 2024-12-27 21:11:05 [RateCDR] => 1 ) [2024-12-27 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:11:05' and `end` < '2024-12-27 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:11:18] Production.INFO: count ==1479 [2024-12-27 21:11:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:11:05 - End Time 2024-12-27 21:11:05 [2024-12-27 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116855', 'tblTempUsageDetail_20' ) start [2024-12-27 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116855', 'tblTempUsageDetail_20' ) end [2024-12-27 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116855', 'tblTempVendorCDR_20' ) start [2024-12-27 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116855', 'tblTempVendorCDR_20' ) end [2024-12-27 21:11:18] Production.INFO: ProcessCDR(1,14116855,1,1,2) [2024-12-27 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116855', 'tblTempUsageDetail_20' ) start [2024-12-27 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116855', 'tblTempUsageDetail_20' ) end [2024-12-27 21:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:11:21] Production.INFO: ==29647== Releasing lock... [2024-12-27 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:11:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-27 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:12:05 [end_date_ymd] => 2024-12-27 21:12:05 [RateCDR] => 1 ) [2024-12-27 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:12:05' and `end` < '2024-12-27 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:12:17] Production.INFO: count ==1482 [2024-12-27 21:12:17] Production.ERROR: pbx CDR StartTime 2024-12-27 18:12:05 - End Time 2024-12-27 21:12:05 [2024-12-27 21:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116860', 'tblTempUsageDetail_20' ) start [2024-12-27 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116860', 'tblTempUsageDetail_20' ) end [2024-12-27 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116860', 'tblTempVendorCDR_20' ) start [2024-12-27 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116860', 'tblTempVendorCDR_20' ) end [2024-12-27 21:12:17] Production.INFO: ProcessCDR(1,14116860,1,1,2) [2024-12-27 21:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116860', 'tblTempUsageDetail_20' ) start [2024-12-27 21:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116860', 'tblTempUsageDetail_20' ) end [2024-12-27 21:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:12:20] Production.INFO: ==29728== Releasing lock... [2024-12-27 21:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:12:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-27 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:13:05 [end_date_ymd] => 2024-12-27 21:13:05 [RateCDR] => 1 ) [2024-12-27 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:13:05' and `end` < '2024-12-27 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:13:18] Production.INFO: count ==1479 [2024-12-27 21:13:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:13:05 - End Time 2024-12-27 21:13:05 [2024-12-27 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116865', 'tblTempUsageDetail_20' ) start [2024-12-27 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116865', 'tblTempUsageDetail_20' ) end [2024-12-27 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116865', 'tblTempVendorCDR_20' ) start [2024-12-27 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116865', 'tblTempVendorCDR_20' ) end [2024-12-27 21:13:18] Production.INFO: ProcessCDR(1,14116865,1,1,2) [2024-12-27 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116865', 'tblTempUsageDetail_20' ) start [2024-12-27 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116865', 'tblTempUsageDetail_20' ) end [2024-12-27 21:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:13:21] Production.INFO: ==29803== Releasing lock... [2024-12-27 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:13:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-27 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:14:05 [end_date_ymd] => 2024-12-27 21:14:05 [RateCDR] => 1 ) [2024-12-27 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:14:05' and `end` < '2024-12-27 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:14:18] Production.INFO: count ==1459 [2024-12-27 21:14:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:14:05 - End Time 2024-12-27 21:14:05 [2024-12-27 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116870', 'tblTempUsageDetail_20' ) start [2024-12-27 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116870', 'tblTempUsageDetail_20' ) end [2024-12-27 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116870', 'tblTempVendorCDR_20' ) start [2024-12-27 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116870', 'tblTempVendorCDR_20' ) end [2024-12-27 21:14:18] Production.INFO: ProcessCDR(1,14116870,1,1,2) [2024-12-27 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116870', 'tblTempUsageDetail_20' ) start [2024-12-27 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116870', 'tblTempUsageDetail_20' ) end [2024-12-27 21:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:14:21] Production.INFO: ==29881== Releasing lock... [2024-12-27 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:14:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-27 21:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:15:04 [end_date_ymd] => 2024-12-27 21:15:04 [RateCDR] => 1 ) [2024-12-27 21:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:15:04' and `end` < '2024-12-27 21:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:15:17] Production.INFO: count ==1454 [2024-12-27 21:15:17] Production.ERROR: pbx CDR StartTime 2024-12-27 18:15:04 - End Time 2024-12-27 21:15:04 [2024-12-27 21:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116875', 'tblTempUsageDetail_20' ) start [2024-12-27 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116875', 'tblTempUsageDetail_20' ) end [2024-12-27 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116875', 'tblTempVendorCDR_20' ) start [2024-12-27 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116875', 'tblTempVendorCDR_20' ) end [2024-12-27 21:15:17] Production.INFO: ProcessCDR(1,14116875,1,1,2) [2024-12-27 21:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116875', 'tblTempUsageDetail_20' ) start [2024-12-27 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116875', 'tblTempUsageDetail_20' ) end [2024-12-27 21:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:15:21] Production.INFO: ==29952== Releasing lock... [2024-12-27 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:15:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-27 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:16:05 [end_date_ymd] => 2024-12-27 21:16:05 [RateCDR] => 1 ) [2024-12-27 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:16:05' and `end` < '2024-12-27 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:16:17] Production.INFO: count ==1458 [2024-12-27 21:16:17] Production.ERROR: pbx CDR StartTime 2024-12-27 18:16:05 - End Time 2024-12-27 21:16:05 [2024-12-27 21:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116880', 'tblTempUsageDetail_20' ) start [2024-12-27 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116880', 'tblTempUsageDetail_20' ) end [2024-12-27 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116880', 'tblTempVendorCDR_20' ) start [2024-12-27 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116880', 'tblTempVendorCDR_20' ) end [2024-12-27 21:16:18] Production.INFO: ProcessCDR(1,14116880,1,1,2) [2024-12-27 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116880', 'tblTempUsageDetail_20' ) start [2024-12-27 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116880', 'tblTempUsageDetail_20' ) end [2024-12-27 21:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:16:22] Production.INFO: ==30033== Releasing lock... [2024-12-27 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:16:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-27 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:17:05 [end_date_ymd] => 2024-12-27 21:17:05 [RateCDR] => 1 ) [2024-12-27 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:17:05' and `end` < '2024-12-27 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:17:17] Production.INFO: count ==1453 [2024-12-27 21:17:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:17:05 - End Time 2024-12-27 21:17:05 [2024-12-27 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116885', 'tblTempUsageDetail_20' ) start [2024-12-27 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116885', 'tblTempUsageDetail_20' ) end [2024-12-27 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116885', 'tblTempVendorCDR_20' ) start [2024-12-27 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116885', 'tblTempVendorCDR_20' ) end [2024-12-27 21:17:18] Production.INFO: ProcessCDR(1,14116885,1,1,2) [2024-12-27 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116885', 'tblTempUsageDetail_20' ) start [2024-12-27 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116885', 'tblTempUsageDetail_20' ) end [2024-12-27 21:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:17:22] Production.INFO: ==30113== Releasing lock... [2024-12-27 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:17:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-27 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:18:05 [end_date_ymd] => 2024-12-27 21:18:05 [RateCDR] => 1 ) [2024-12-27 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:18:05' and `end` < '2024-12-27 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:18:19] Production.INFO: count ==1450 [2024-12-27 21:18:19] Production.ERROR: pbx CDR StartTime 2024-12-27 18:18:05 - End Time 2024-12-27 21:18:05 [2024-12-27 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116890', 'tblTempUsageDetail_20' ) start [2024-12-27 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116890', 'tblTempUsageDetail_20' ) end [2024-12-27 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116890', 'tblTempVendorCDR_20' ) start [2024-12-27 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116890', 'tblTempVendorCDR_20' ) end [2024-12-27 21:18:19] Production.INFO: ProcessCDR(1,14116890,1,1,2) [2024-12-27 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116890', 'tblTempUsageDetail_20' ) start [2024-12-27 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116890', 'tblTempUsageDetail_20' ) end [2024-12-27 21:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:18:22] Production.INFO: ==30198== Releasing lock... [2024-12-27 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:18:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-27 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:19:05 [end_date_ymd] => 2024-12-27 21:19:05 [RateCDR] => 1 ) [2024-12-27 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:19:05' and `end` < '2024-12-27 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:19:17] Production.INFO: count ==1449 [2024-12-27 21:19:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:19:05 - End Time 2024-12-27 21:19:05 [2024-12-27 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116895', 'tblTempUsageDetail_20' ) start [2024-12-27 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116895', 'tblTempUsageDetail_20' ) end [2024-12-27 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116895', 'tblTempVendorCDR_20' ) start [2024-12-27 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116895', 'tblTempVendorCDR_20' ) end [2024-12-27 21:19:18] Production.INFO: ProcessCDR(1,14116895,1,1,2) [2024-12-27 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116895', 'tblTempUsageDetail_20' ) start [2024-12-27 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116895', 'tblTempUsageDetail_20' ) end [2024-12-27 21:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:19:21] Production.INFO: ==30284== Releasing lock... [2024-12-27 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:19:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-27 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:20:06 [end_date_ymd] => 2024-12-27 21:20:06 [RateCDR] => 1 ) [2024-12-27 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:20:06' and `end` < '2024-12-27 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:20:19] Production.INFO: count ==1451 [2024-12-27 21:20:19] Production.ERROR: pbx CDR StartTime 2024-12-27 18:20:06 - End Time 2024-12-27 21:20:06 [2024-12-27 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116901', 'tblTempUsageDetail_20' ) start [2024-12-27 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116901', 'tblTempUsageDetail_20' ) end [2024-12-27 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116901', 'tblTempVendorCDR_20' ) start [2024-12-27 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116901', 'tblTempVendorCDR_20' ) end [2024-12-27 21:20:19] Production.INFO: ProcessCDR(1,14116901,1,1,2) [2024-12-27 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116901', 'tblTempUsageDetail_20' ) start [2024-12-27 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116901', 'tblTempUsageDetail_20' ) end [2024-12-27 21:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:20:22] Production.INFO: ==30371== Releasing lock... [2024-12-27 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:20:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-27 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:21:05 [end_date_ymd] => 2024-12-27 21:21:05 [RateCDR] => 1 ) [2024-12-27 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:21:05' and `end` < '2024-12-27 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:21:18] Production.INFO: count ==1406 [2024-12-27 21:21:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:21:05 - End Time 2024-12-27 21:21:05 [2024-12-27 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116906', 'tblTempUsageDetail_20' ) start [2024-12-27 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116906', 'tblTempUsageDetail_20' ) end [2024-12-27 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116906', 'tblTempVendorCDR_20' ) start [2024-12-27 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116906', 'tblTempVendorCDR_20' ) end [2024-12-27 21:21:18] Production.INFO: ProcessCDR(1,14116906,1,1,2) [2024-12-27 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116906', 'tblTempUsageDetail_20' ) start [2024-12-27 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116906', 'tblTempUsageDetail_20' ) end [2024-12-27 21:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:21:21] Production.INFO: ==30462== Releasing lock... [2024-12-27 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:21:21] Production.INFO: 38 MB #Memory Used# [2024-12-27 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:22:05 [end_date_ymd] => 2024-12-27 21:22:05 [RateCDR] => 1 ) [2024-12-27 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-27 18:22:05' and `end` < '2024-12-27 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-27 21:22:17] Production.INFO: count ==1402 [2024-12-27 21:22:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:22:05 - End Time 2024-12-27 21:22:05 [2024-12-27 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116911', 'tblTempUsageDetail_20' ) start [2024-12-27 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116911', 'tblTempUsageDetail_20' ) end [2024-12-27 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116911', 'tblTempVendorCDR_20' ) start [2024-12-27 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116911', 'tblTempVendorCDR_20' ) end [2024-12-27 21:22:18] Production.INFO: ProcessCDR(1,14116911,1,1,2) [2024-12-27 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116911', 'tblTempUsageDetail_20' ) start [2024-12-27 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116911', 'tblTempUsageDetail_20' ) end [2024-12-27 21:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:22:21] Production.INFO: ==30551== Releasing lock... [2024-12-27 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:22:21] Production.INFO: 38 MB #Memory Used# [2024-12-27 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:23:04 [end_date_ymd] => 2024-12-27 21:23:04 [RateCDR] => 1 ) [2024-12-27 21:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:23:04' and `end` < '2024-12-27 21:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:23:16] Production.INFO: count ==1405 [2024-12-27 21:23:16] Production.ERROR: pbx CDR StartTime 2024-12-27 18:23:04 - End Time 2024-12-27 21:23:04 [2024-12-27 21:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116915', 'tblTempUsageDetail_20' ) start [2024-12-27 21:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116915', 'tblTempUsageDetail_20' ) end [2024-12-27 21:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116915', 'tblTempVendorCDR_20' ) start [2024-12-27 21:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116915', 'tblTempVendorCDR_20' ) end [2024-12-27 21:23:16] Production.INFO: ProcessCDR(1,14116915,1,1,2) [2024-12-27 21:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116915', 'tblTempUsageDetail_20' ) start [2024-12-27 21:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116915', 'tblTempUsageDetail_20' ) end [2024-12-27 21:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:23:20] Production.INFO: ==30636== Releasing lock... [2024-12-27 21:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:23:20] Production.INFO: 38 MB #Memory Used# [2024-12-27 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:24:05 [end_date_ymd] => 2024-12-27 21:24:05 [RateCDR] => 1 ) [2024-12-27 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:24:05' and `end` < '2024-12-27 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:24:17] Production.INFO: count ==1404 [2024-12-27 21:24:17] Production.ERROR: pbx CDR StartTime 2024-12-27 18:24:05 - End Time 2024-12-27 21:24:05 [2024-12-27 21:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116921', 'tblTempUsageDetail_20' ) start [2024-12-27 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116921', 'tblTempUsageDetail_20' ) end [2024-12-27 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116921', 'tblTempVendorCDR_20' ) start [2024-12-27 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116921', 'tblTempVendorCDR_20' ) end [2024-12-27 21:24:17] Production.INFO: ProcessCDR(1,14116921,1,1,2) [2024-12-27 21:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116921', 'tblTempUsageDetail_20' ) start [2024-12-27 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116921', 'tblTempUsageDetail_20' ) end [2024-12-27 21:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:24:21] Production.INFO: ==30719== Releasing lock... [2024-12-27 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:24:21] Production.INFO: 38 MB #Memory Used# [2024-12-27 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:25:04 [end_date_ymd] => 2024-12-27 21:25:04 [RateCDR] => 1 ) [2024-12-27 21: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-27 18:25:04' and `end` < '2024-12-27 21: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-27 21:25:17] Production.INFO: count ==1403 [2024-12-27 21:25:17] Production.ERROR: pbx CDR StartTime 2024-12-27 18:25:04 - End Time 2024-12-27 21:25:04 [2024-12-27 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116926', 'tblTempUsageDetail_20' ) start [2024-12-27 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116926', 'tblTempUsageDetail_20' ) end [2024-12-27 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116926', 'tblTempVendorCDR_20' ) start [2024-12-27 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116926', 'tblTempVendorCDR_20' ) end [2024-12-27 21:25:17] Production.INFO: ProcessCDR(1,14116926,1,1,2) [2024-12-27 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116926', 'tblTempUsageDetail_20' ) start [2024-12-27 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116926', 'tblTempUsageDetail_20' ) end [2024-12-27 21:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:25:20] Production.INFO: ==30847== Releasing lock... [2024-12-27 21:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:25:20] Production.INFO: 38 MB #Memory Used# [2024-12-27 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:26:05 [end_date_ymd] => 2024-12-27 21:26:05 [RateCDR] => 1 ) [2024-12-27 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:26:05' and `end` < '2024-12-27 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:26:18] Production.INFO: count ==1388 [2024-12-27 21:26:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:26:05 - End Time 2024-12-27 21:26:05 [2024-12-27 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116931', 'tblTempUsageDetail_20' ) start [2024-12-27 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116931', 'tblTempUsageDetail_20' ) end [2024-12-27 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116931', 'tblTempVendorCDR_20' ) start [2024-12-27 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116931', 'tblTempVendorCDR_20' ) end [2024-12-27 21:26:18] Production.INFO: ProcessCDR(1,14116931,1,1,2) [2024-12-27 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116931', 'tblTempUsageDetail_20' ) start [2024-12-27 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116931', 'tblTempUsageDetail_20' ) end [2024-12-27 21:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:26:21] Production.INFO: ==30936== Releasing lock... [2024-12-27 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:26:21] Production.INFO: 38 MB #Memory Used# [2024-12-27 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:27:04 [end_date_ymd] => 2024-12-27 21:27:04 [RateCDR] => 1 ) [2024-12-27 21:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:27:04' and `end` < '2024-12-27 21:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:27:17] Production.INFO: count ==1385 [2024-12-27 21:27:17] Production.ERROR: pbx CDR StartTime 2024-12-27 18:27:04 - End Time 2024-12-27 21:27:04 [2024-12-27 21:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116936', 'tblTempUsageDetail_20' ) start [2024-12-27 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116936', 'tblTempUsageDetail_20' ) end [2024-12-27 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116936', 'tblTempVendorCDR_20' ) start [2024-12-27 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116936', 'tblTempVendorCDR_20' ) end [2024-12-27 21:27:17] Production.INFO: ProcessCDR(1,14116936,1,1,2) [2024-12-27 21:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116936', 'tblTempUsageDetail_20' ) start [2024-12-27 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116936', 'tblTempUsageDetail_20' ) end [2024-12-27 21:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:27:22] Production.INFO: ==31028== Releasing lock... [2024-12-27 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:27:22] Production.INFO: 38 MB #Memory Used# [2024-12-27 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:28:05 [end_date_ymd] => 2024-12-27 21:28:05 [RateCDR] => 1 ) [2024-12-27 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:28:05' and `end` < '2024-12-27 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:28:19] Production.INFO: count ==1379 [2024-12-27 21:28:19] Production.ERROR: pbx CDR StartTime 2024-12-27 18:28:05 - End Time 2024-12-27 21:28:05 [2024-12-27 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116941', 'tblTempUsageDetail_20' ) start [2024-12-27 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116941', 'tblTempUsageDetail_20' ) end [2024-12-27 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116941', 'tblTempVendorCDR_20' ) start [2024-12-27 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116941', 'tblTempVendorCDR_20' ) end [2024-12-27 21:28:19] Production.INFO: ProcessCDR(1,14116941,1,1,2) [2024-12-27 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116941', 'tblTempUsageDetail_20' ) start [2024-12-27 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116941', 'tblTempUsageDetail_20' ) end [2024-12-27 21:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:28:24] Production.INFO: ==31110== Releasing lock... [2024-12-27 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:28:24] Production.INFO: 38 MB #Memory Used# [2024-12-27 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:29:05 [end_date_ymd] => 2024-12-27 21:29:05 [RateCDR] => 1 ) [2024-12-27 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-27 18:29:05' and `end` < '2024-12-27 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-27 21:29:17] Production.INFO: count ==1379 [2024-12-27 21:29:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:29:05 - End Time 2024-12-27 21:29:05 [2024-12-27 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116946', 'tblTempUsageDetail_20' ) start [2024-12-27 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116946', 'tblTempUsageDetail_20' ) end [2024-12-27 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116946', 'tblTempVendorCDR_20' ) start [2024-12-27 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116946', 'tblTempVendorCDR_20' ) end [2024-12-27 21:29:18] Production.INFO: ProcessCDR(1,14116946,1,1,2) [2024-12-27 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116946', 'tblTempUsageDetail_20' ) start [2024-12-27 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116946', 'tblTempUsageDetail_20' ) end [2024-12-27 21:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:29:21] Production.INFO: ==31196== Releasing lock... [2024-12-27 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:29:21] Production.INFO: 38 MB #Memory Used# [2024-12-27 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:30:05 [end_date_ymd] => 2024-12-27 21:30:05 [RateCDR] => 1 ) [2024-12-27 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-27 18:30:05' and `end` < '2024-12-27 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-27 21:30:18] Production.INFO: count ==1378 [2024-12-27 21:30:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:30:05 - End Time 2024-12-27 21:30:05 [2024-12-27 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116951', 'tblTempUsageDetail_20' ) start [2024-12-27 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116951', 'tblTempUsageDetail_20' ) end [2024-12-27 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116951', 'tblTempVendorCDR_20' ) start [2024-12-27 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116951', 'tblTempVendorCDR_20' ) end [2024-12-27 21:30:18] Production.INFO: ProcessCDR(1,14116951,1,1,2) [2024-12-27 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116951', 'tblTempUsageDetail_20' ) start [2024-12-27 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116951', 'tblTempUsageDetail_20' ) end [2024-12-27 21:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:30:21] Production.INFO: ==31283== Releasing lock... [2024-12-27 21:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:30:21] Production.INFO: 38 MB #Memory Used# [2024-12-27 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:31:05 [end_date_ymd] => 2024-12-27 21:31:05 [RateCDR] => 1 ) [2024-12-27 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:31:05' and `end` < '2024-12-27 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:31:18] Production.INFO: count ==1367 [2024-12-27 21:31:19] Production.ERROR: pbx CDR StartTime 2024-12-27 18:31:05 - End Time 2024-12-27 21:31:05 [2024-12-27 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116957', 'tblTempUsageDetail_20' ) start [2024-12-27 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116957', 'tblTempUsageDetail_20' ) end [2024-12-27 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116957', 'tblTempVendorCDR_20' ) start [2024-12-27 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116957', 'tblTempVendorCDR_20' ) end [2024-12-27 21:31:19] Production.INFO: ProcessCDR(1,14116957,1,1,2) [2024-12-27 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116957', 'tblTempUsageDetail_20' ) start [2024-12-27 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116957', 'tblTempUsageDetail_20' ) end [2024-12-27 21:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:31:22] Production.INFO: ==31374== Releasing lock... [2024-12-27 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:31:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-27 21:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:32:04 [end_date_ymd] => 2024-12-27 21:32:04 [RateCDR] => 1 ) [2024-12-27 21:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:32:04' and `end` < '2024-12-27 21:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:32:17] Production.INFO: count ==1367 [2024-12-27 21:32:17] Production.ERROR: pbx CDR StartTime 2024-12-27 18:32:04 - End Time 2024-12-27 21:32:04 [2024-12-27 21:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116962', 'tblTempUsageDetail_20' ) start [2024-12-27 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116962', 'tblTempUsageDetail_20' ) end [2024-12-27 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116962', 'tblTempVendorCDR_20' ) start [2024-12-27 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116962', 'tblTempVendorCDR_20' ) end [2024-12-27 21:32:17] Production.INFO: ProcessCDR(1,14116962,1,1,2) [2024-12-27 21:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116962', 'tblTempUsageDetail_20' ) start [2024-12-27 21:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116962', 'tblTempUsageDetail_20' ) end [2024-12-27 21:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:32:20] Production.INFO: ==31458== Releasing lock... [2024-12-27 21:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:32:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-27 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:33:05 [end_date_ymd] => 2024-12-27 21:33:05 [RateCDR] => 1 ) [2024-12-27 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:33:05' and `end` < '2024-12-27 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:33:18] Production.INFO: count ==1365 [2024-12-27 21:33:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:33:05 - End Time 2024-12-27 21:33:05 [2024-12-27 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116967', 'tblTempUsageDetail_20' ) start [2024-12-27 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116967', 'tblTempUsageDetail_20' ) end [2024-12-27 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116967', 'tblTempVendorCDR_20' ) start [2024-12-27 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116967', 'tblTempVendorCDR_20' ) end [2024-12-27 21:33:18] Production.INFO: ProcessCDR(1,14116967,1,1,2) [2024-12-27 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116967', 'tblTempUsageDetail_20' ) start [2024-12-27 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116967', 'tblTempUsageDetail_20' ) end [2024-12-27 21:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:33:21] Production.INFO: ==31544== Releasing lock... [2024-12-27 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:33:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-27 21:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:34:04 [end_date_ymd] => 2024-12-27 21:34:04 [RateCDR] => 1 ) [2024-12-27 21:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:34:04' and `end` < '2024-12-27 21:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:34:18] Production.INFO: count ==1363 [2024-12-27 21:34:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:34:04 - End Time 2024-12-27 21:34:04 [2024-12-27 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116972', 'tblTempUsageDetail_20' ) start [2024-12-27 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116972', 'tblTempUsageDetail_20' ) end [2024-12-27 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116972', 'tblTempVendorCDR_20' ) start [2024-12-27 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116972', 'tblTempVendorCDR_20' ) end [2024-12-27 21:34:18] Production.INFO: ProcessCDR(1,14116972,1,1,2) [2024-12-27 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116972', 'tblTempUsageDetail_20' ) start [2024-12-27 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116972', 'tblTempUsageDetail_20' ) end [2024-12-27 21:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:34:21] Production.INFO: ==31632== Releasing lock... [2024-12-27 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:34:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-27 21:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:35:04 [end_date_ymd] => 2024-12-27 21:35:04 [RateCDR] => 1 ) [2024-12-27 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-27 18:35:04' and `end` < '2024-12-27 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-27 21:35:17] Production.INFO: count ==1365 [2024-12-27 21:35:17] Production.ERROR: pbx CDR StartTime 2024-12-27 18:35:04 - End Time 2024-12-27 21:35:04 [2024-12-27 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116977', 'tblTempUsageDetail_20' ) start [2024-12-27 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116977', 'tblTempUsageDetail_20' ) end [2024-12-27 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116977', 'tblTempVendorCDR_20' ) start [2024-12-27 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116977', 'tblTempVendorCDR_20' ) end [2024-12-27 21:35:17] Production.INFO: ProcessCDR(1,14116977,1,1,2) [2024-12-27 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116977', 'tblTempUsageDetail_20' ) start [2024-12-27 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116977', 'tblTempUsageDetail_20' ) end [2024-12-27 21:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:35:21] Production.INFO: ==31718== Releasing lock... [2024-12-27 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:35:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-27 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:36:05 [end_date_ymd] => 2024-12-27 21:36:05 [RateCDR] => 1 ) [2024-12-27 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:36:05' and `end` < '2024-12-27 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:36:18] Production.INFO: count ==1359 [2024-12-27 21:36:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:36:05 - End Time 2024-12-27 21:36:05 [2024-12-27 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116982', 'tblTempUsageDetail_20' ) start [2024-12-27 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116982', 'tblTempUsageDetail_20' ) end [2024-12-27 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116982', 'tblTempVendorCDR_20' ) start [2024-12-27 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116982', 'tblTempVendorCDR_20' ) end [2024-12-27 21:36:18] Production.INFO: ProcessCDR(1,14116982,1,1,2) [2024-12-27 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116982', 'tblTempUsageDetail_20' ) start [2024-12-27 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116982', 'tblTempUsageDetail_20' ) end [2024-12-27 21:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:36:21] Production.INFO: ==31800== Releasing lock... [2024-12-27 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:36:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-27 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:37:05 [end_date_ymd] => 2024-12-27 21:37:05 [RateCDR] => 1 ) [2024-12-27 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:37:05' and `end` < '2024-12-27 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:37:18] Production.INFO: count ==1358 [2024-12-27 21:37:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:37:05 - End Time 2024-12-27 21:37:05 [2024-12-27 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116987', 'tblTempUsageDetail_20' ) start [2024-12-27 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116987', 'tblTempUsageDetail_20' ) end [2024-12-27 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116987', 'tblTempVendorCDR_20' ) start [2024-12-27 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116987', 'tblTempVendorCDR_20' ) end [2024-12-27 21:37:18] Production.INFO: ProcessCDR(1,14116987,1,1,2) [2024-12-27 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116987', 'tblTempUsageDetail_20' ) start [2024-12-27 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116987', 'tblTempUsageDetail_20' ) end [2024-12-27 21:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:37:21] Production.INFO: ==31883== Releasing lock... [2024-12-27 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:37:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-27 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:38:05 [end_date_ymd] => 2024-12-27 21:38:05 [RateCDR] => 1 ) [2024-12-27 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:38:05' and `end` < '2024-12-27 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:38:18] Production.INFO: count ==1345 [2024-12-27 21:38:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:38:05 - End Time 2024-12-27 21:38:05 [2024-12-27 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116992', 'tblTempUsageDetail_20' ) start [2024-12-27 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116992', 'tblTempUsageDetail_20' ) end [2024-12-27 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116992', 'tblTempVendorCDR_20' ) start [2024-12-27 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116992', 'tblTempVendorCDR_20' ) end [2024-12-27 21:38:18] Production.INFO: ProcessCDR(1,14116992,1,1,2) [2024-12-27 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116992', 'tblTempUsageDetail_20' ) start [2024-12-27 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116992', 'tblTempUsageDetail_20' ) end [2024-12-27 21:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:38:21] Production.INFO: ==31976== Releasing lock... [2024-12-27 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:38:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-27 21:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:39:04 [end_date_ymd] => 2024-12-27 21:39:04 [RateCDR] => 1 ) [2024-12-27 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-27 18:39:04' and `end` < '2024-12-27 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-27 21:39:18] Production.INFO: count ==1345 [2024-12-27 21:39:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:39:04 - End Time 2024-12-27 21:39:04 [2024-12-27 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116997', 'tblTempUsageDetail_20' ) start [2024-12-27 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14116997', 'tblTempUsageDetail_20' ) end [2024-12-27 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116997', 'tblTempVendorCDR_20' ) start [2024-12-27 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14116997', 'tblTempVendorCDR_20' ) end [2024-12-27 21:39:18] Production.INFO: ProcessCDR(1,14116997,1,1,2) [2024-12-27 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14116997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14116997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14116997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14116997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116997', 'tblTempUsageDetail_20' ) start [2024-12-27 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14116997', 'tblTempUsageDetail_20' ) end [2024-12-27 21:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:39:22] Production.INFO: ==32058== Releasing lock... [2024-12-27 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:39:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-27 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:40:06 [end_date_ymd] => 2024-12-27 21:40:06 [RateCDR] => 1 ) [2024-12-27 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:40:06' and `end` < '2024-12-27 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:40:19] Production.INFO: count ==1338 [2024-12-27 21:40:19] Production.ERROR: pbx CDR StartTime 2024-12-27 18:40:06 - End Time 2024-12-27 21:40:06 [2024-12-27 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117003', 'tblTempUsageDetail_20' ) start [2024-12-27 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117003', 'tblTempUsageDetail_20' ) end [2024-12-27 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117003', 'tblTempVendorCDR_20' ) start [2024-12-27 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117003', 'tblTempVendorCDR_20' ) end [2024-12-27 21:40:19] Production.INFO: ProcessCDR(1,14117003,1,1,2) [2024-12-27 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117003', 'tblTempUsageDetail_20' ) start [2024-12-27 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117003', 'tblTempUsageDetail_20' ) end [2024-12-27 21:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:40:22] Production.INFO: ==32149== Releasing lock... [2024-12-27 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:40:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-27 21:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:41:04 [end_date_ymd] => 2024-12-27 21:41:04 [RateCDR] => 1 ) [2024-12-27 21: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-27 18:41:04' and `end` < '2024-12-27 21: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-27 21:41:17] Production.INFO: count ==1300 [2024-12-27 21:41:17] Production.ERROR: pbx CDR StartTime 2024-12-27 18:41:04 - End Time 2024-12-27 21:41:04 [2024-12-27 21:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117008', 'tblTempUsageDetail_20' ) start [2024-12-27 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117008', 'tblTempUsageDetail_20' ) end [2024-12-27 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117008', 'tblTempVendorCDR_20' ) start [2024-12-27 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117008', 'tblTempVendorCDR_20' ) end [2024-12-27 21:41:18] Production.INFO: ProcessCDR(1,14117008,1,1,2) [2024-12-27 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117008', 'tblTempUsageDetail_20' ) start [2024-12-27 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117008', 'tblTempUsageDetail_20' ) end [2024-12-27 21:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:41:21] Production.INFO: ==32273== Releasing lock... [2024-12-27 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:41:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-27 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:42:05 [end_date_ymd] => 2024-12-27 21:42:05 [RateCDR] => 1 ) [2024-12-27 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:42:05' and `end` < '2024-12-27 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:42:18] Production.INFO: count ==1300 [2024-12-27 21:42:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:42:05 - End Time 2024-12-27 21:42:05 [2024-12-27 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117013', 'tblTempUsageDetail_20' ) start [2024-12-27 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117013', 'tblTempUsageDetail_20' ) end [2024-12-27 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117013', 'tblTempVendorCDR_20' ) start [2024-12-27 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117013', 'tblTempVendorCDR_20' ) end [2024-12-27 21:42:18] Production.INFO: ProcessCDR(1,14117013,1,1,2) [2024-12-27 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117013', 'tblTempUsageDetail_20' ) start [2024-12-27 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117013', 'tblTempUsageDetail_20' ) end [2024-12-27 21:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:42:21] Production.INFO: ==32366== Releasing lock... [2024-12-27 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:42:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-27 21:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:43:04 [end_date_ymd] => 2024-12-27 21:43:04 [RateCDR] => 1 ) [2024-12-27 21: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-27 18:43:04' and `end` < '2024-12-27 21: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-27 21:43:17] Production.INFO: count ==1300 [2024-12-27 21:43:17] Production.ERROR: pbx CDR StartTime 2024-12-27 18:43:04 - End Time 2024-12-27 21:43:04 [2024-12-27 21:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117018', 'tblTempUsageDetail_20' ) start [2024-12-27 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117018', 'tblTempUsageDetail_20' ) end [2024-12-27 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117018', 'tblTempVendorCDR_20' ) start [2024-12-27 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117018', 'tblTempVendorCDR_20' ) end [2024-12-27 21:43:17] Production.INFO: ProcessCDR(1,14117018,1,1,2) [2024-12-27 21:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117018', 'tblTempUsageDetail_20' ) start [2024-12-27 21:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117018', 'tblTempUsageDetail_20' ) end [2024-12-27 21:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:43:20] Production.INFO: ==32451== Releasing lock... [2024-12-27 21:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:43:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-27 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:44:05 [end_date_ymd] => 2024-12-27 21:44:05 [RateCDR] => 1 ) [2024-12-27 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:44:05' and `end` < '2024-12-27 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:44:18] Production.INFO: count ==1300 [2024-12-27 21:44:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:44:05 - End Time 2024-12-27 21:44:05 [2024-12-27 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117023', 'tblTempUsageDetail_20' ) start [2024-12-27 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117023', 'tblTempUsageDetail_20' ) end [2024-12-27 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117023', 'tblTempVendorCDR_20' ) start [2024-12-27 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117023', 'tblTempVendorCDR_20' ) end [2024-12-27 21:44:18] Production.INFO: ProcessCDR(1,14117023,1,1,2) [2024-12-27 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117023', 'tblTempUsageDetail_20' ) start [2024-12-27 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117023', 'tblTempUsageDetail_20' ) end [2024-12-27 21:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:44:21] Production.INFO: ==32524== Releasing lock... [2024-12-27 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:44:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-27 21:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:45:04 [end_date_ymd] => 2024-12-27 21:45:04 [RateCDR] => 1 ) [2024-12-27 21: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-27 18:45:04' and `end` < '2024-12-27 21: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-27 21:45:17] Production.INFO: count ==1300 [2024-12-27 21:45:17] Production.ERROR: pbx CDR StartTime 2024-12-27 18:45:04 - End Time 2024-12-27 21:45:04 [2024-12-27 21:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117028', 'tblTempUsageDetail_20' ) start [2024-12-27 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117028', 'tblTempUsageDetail_20' ) end [2024-12-27 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117028', 'tblTempVendorCDR_20' ) start [2024-12-27 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117028', 'tblTempVendorCDR_20' ) end [2024-12-27 21:45:17] Production.INFO: ProcessCDR(1,14117028,1,1,2) [2024-12-27 21:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117028', 'tblTempUsageDetail_20' ) start [2024-12-27 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117028', 'tblTempUsageDetail_20' ) end [2024-12-27 21:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:45:22] Production.INFO: ==32602== Releasing lock... [2024-12-27 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:45:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-27 21:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:46:04 [end_date_ymd] => 2024-12-27 21:46:04 [RateCDR] => 1 ) [2024-12-27 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-27 18:46:04' and `end` < '2024-12-27 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-27 21:46:17] Production.INFO: count ==1296 [2024-12-27 21:46:17] Production.ERROR: pbx CDR StartTime 2024-12-27 18:46:04 - End Time 2024-12-27 21:46:04 [2024-12-27 21:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117033', 'tblTempUsageDetail_20' ) start [2024-12-27 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117033', 'tblTempUsageDetail_20' ) end [2024-12-27 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117033', 'tblTempVendorCDR_20' ) start [2024-12-27 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117033', 'tblTempVendorCDR_20' ) end [2024-12-27 21:46:17] Production.INFO: ProcessCDR(1,14117033,1,1,2) [2024-12-27 21:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117033', 'tblTempUsageDetail_20' ) start [2024-12-27 21:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117033', 'tblTempUsageDetail_20' ) end [2024-12-27 21:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:46:20] Production.INFO: ==32673== Releasing lock... [2024-12-27 21:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:46:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-27 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:47:05 [end_date_ymd] => 2024-12-27 21:47:05 [RateCDR] => 1 ) [2024-12-27 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:47:05' and `end` < '2024-12-27 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:47:17] Production.INFO: count ==1295 [2024-12-27 21:47:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:47:05 - End Time 2024-12-27 21:47:05 [2024-12-27 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117038', 'tblTempUsageDetail_20' ) start [2024-12-27 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117038', 'tblTempUsageDetail_20' ) end [2024-12-27 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117038', 'tblTempVendorCDR_20' ) start [2024-12-27 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117038', 'tblTempVendorCDR_20' ) end [2024-12-27 21:47:18] Production.INFO: ProcessCDR(1,14117038,1,1,2) [2024-12-27 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117038', 'tblTempUsageDetail_20' ) start [2024-12-27 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117038', 'tblTempUsageDetail_20' ) end [2024-12-27 21:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:47:22] Production.INFO: ==32747== Releasing lock... [2024-12-27 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:47:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-27 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:48:05 [end_date_ymd] => 2024-12-27 21:48:05 [RateCDR] => 1 ) [2024-12-27 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:48:05' and `end` < '2024-12-27 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:48:19] Production.INFO: count ==1294 [2024-12-27 21:48:19] Production.ERROR: pbx CDR StartTime 2024-12-27 18:48:05 - End Time 2024-12-27 21:48:05 [2024-12-27 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117043', 'tblTempUsageDetail_20' ) start [2024-12-27 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117043', 'tblTempUsageDetail_20' ) end [2024-12-27 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117043', 'tblTempVendorCDR_20' ) start [2024-12-27 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117043', 'tblTempVendorCDR_20' ) end [2024-12-27 21:48:19] Production.INFO: ProcessCDR(1,14117043,1,1,2) [2024-12-27 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117043', 'tblTempUsageDetail_20' ) start [2024-12-27 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117043', 'tblTempUsageDetail_20' ) end [2024-12-27 21:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:48:23] Production.INFO: ==373== Releasing lock... [2024-12-27 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:48:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-27 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:49:05 [end_date_ymd] => 2024-12-27 21:49:05 [RateCDR] => 1 ) [2024-12-27 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:49:05' and `end` < '2024-12-27 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:49:19] Production.INFO: count ==1283 [2024-12-27 21:49:20] Production.ERROR: pbx CDR StartTime 2024-12-27 18:49:05 - End Time 2024-12-27 21:49:05 [2024-12-27 21:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117048', 'tblTempUsageDetail_20' ) start [2024-12-27 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117048', 'tblTempUsageDetail_20' ) end [2024-12-27 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117048', 'tblTempVendorCDR_20' ) start [2024-12-27 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117048', 'tblTempVendorCDR_20' ) end [2024-12-27 21:49:20] Production.INFO: ProcessCDR(1,14117048,1,1,2) [2024-12-27 21:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117048', 'tblTempUsageDetail_20' ) start [2024-12-27 21:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117048', 'tblTempUsageDetail_20' ) end [2024-12-27 21:49:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:49:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:49:24] Production.INFO: ==451== Releasing lock... [2024-12-27 21:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:49:24] Production.INFO: 37.25 MB #Memory Used# [2024-12-27 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:50:05 [end_date_ymd] => 2024-12-27 21:50:05 [RateCDR] => 1 ) [2024-12-27 21:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:50:05' and `end` < '2024-12-27 21:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:50:18] Production.INFO: count ==1283 [2024-12-27 21:50:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:50:05 - End Time 2024-12-27 21:50:05 [2024-12-27 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117053', 'tblTempUsageDetail_20' ) start [2024-12-27 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117053', 'tblTempUsageDetail_20' ) end [2024-12-27 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117053', 'tblTempVendorCDR_20' ) start [2024-12-27 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117053', 'tblTempVendorCDR_20' ) end [2024-12-27 21:50:18] Production.INFO: ProcessCDR(1,14117053,1,1,2) [2024-12-27 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117053', 'tblTempUsageDetail_20' ) start [2024-12-27 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117053', 'tblTempUsageDetail_20' ) end [2024-12-27 21:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:50:22] Production.INFO: ==528== Releasing lock... [2024-12-27 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:50:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-27 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:51:05 [end_date_ymd] => 2024-12-27 21:51:05 [RateCDR] => 1 ) [2024-12-27 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:51:05' and `end` < '2024-12-27 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:51:19] Production.INFO: count ==1245 [2024-12-27 21:51:19] Production.ERROR: pbx CDR StartTime 2024-12-27 18:51:05 - End Time 2024-12-27 21:51:05 [2024-12-27 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117059', 'tblTempUsageDetail_20' ) start [2024-12-27 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117059', 'tblTempUsageDetail_20' ) end [2024-12-27 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117059', 'tblTempVendorCDR_20' ) start [2024-12-27 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117059', 'tblTempVendorCDR_20' ) end [2024-12-27 21:51:19] Production.INFO: ProcessCDR(1,14117059,1,1,2) [2024-12-27 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117059', 'tblTempUsageDetail_20' ) start [2024-12-27 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117059', 'tblTempUsageDetail_20' ) end [2024-12-27 21:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:51:22] Production.INFO: ==609== Releasing lock... [2024-12-27 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:51:22] Production.INFO: 37 MB #Memory Used# [2024-12-27 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:52:05 [end_date_ymd] => 2024-12-27 21:52:05 [RateCDR] => 1 ) [2024-12-27 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:52:05' and `end` < '2024-12-27 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:52:17] Production.INFO: count ==1242 [2024-12-27 21:52:17] Production.ERROR: pbx CDR StartTime 2024-12-27 18:52:05 - End Time 2024-12-27 21:52:05 [2024-12-27 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117064', 'tblTempUsageDetail_20' ) start [2024-12-27 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117064', 'tblTempUsageDetail_20' ) end [2024-12-27 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117064', 'tblTempVendorCDR_20' ) start [2024-12-27 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117064', 'tblTempVendorCDR_20' ) end [2024-12-27 21:52:17] Production.INFO: ProcessCDR(1,14117064,1,1,2) [2024-12-27 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117064', 'tblTempUsageDetail_20' ) start [2024-12-27 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117064', 'tblTempUsageDetail_20' ) end [2024-12-27 21:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:52:21] Production.INFO: ==705== Releasing lock... [2024-12-27 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:52:21] Production.INFO: 37 MB #Memory Used# [2024-12-27 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:53:05 [end_date_ymd] => 2024-12-27 21:53:05 [RateCDR] => 1 ) [2024-12-27 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:53:05' and `end` < '2024-12-27 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:53:18] Production.INFO: count ==1240 [2024-12-27 21:53:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:53:05 - End Time 2024-12-27 21:53:05 [2024-12-27 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117069', 'tblTempUsageDetail_20' ) start [2024-12-27 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117069', 'tblTempUsageDetail_20' ) end [2024-12-27 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117069', 'tblTempVendorCDR_20' ) start [2024-12-27 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117069', 'tblTempVendorCDR_20' ) end [2024-12-27 21:53:18] Production.INFO: ProcessCDR(1,14117069,1,1,2) [2024-12-27 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117069', 'tblTempUsageDetail_20' ) start [2024-12-27 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117069', 'tblTempUsageDetail_20' ) end [2024-12-27 21:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:53:21] Production.INFO: ==782== Releasing lock... [2024-12-27 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:53:21] Production.INFO: 37 MB #Memory Used# [2024-12-27 21:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:54:04 [end_date_ymd] => 2024-12-27 21:54:04 [RateCDR] => 1 ) [2024-12-27 21: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-27 18:54:04' and `end` < '2024-12-27 21: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-27 21:54:17] Production.INFO: count ==1241 [2024-12-27 21:54:17] Production.ERROR: pbx CDR StartTime 2024-12-27 18:54:04 - End Time 2024-12-27 21:54:04 [2024-12-27 21:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117074', 'tblTempUsageDetail_20' ) start [2024-12-27 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117074', 'tblTempUsageDetail_20' ) end [2024-12-27 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117074', 'tblTempVendorCDR_20' ) start [2024-12-27 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117074', 'tblTempVendorCDR_20' ) end [2024-12-27 21:54:17] Production.INFO: ProcessCDR(1,14117074,1,1,2) [2024-12-27 21:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117074', 'tblTempUsageDetail_20' ) start [2024-12-27 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117074', 'tblTempUsageDetail_20' ) end [2024-12-27 21:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:54:21] Production.INFO: ==858== Releasing lock... [2024-12-27 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:54:21] Production.INFO: 37 MB #Memory Used# [2024-12-27 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:55:05 [end_date_ymd] => 2024-12-27 21:55:05 [RateCDR] => 1 ) [2024-12-27 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:55:05' and `end` < '2024-12-27 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:55:18] Production.INFO: count ==1239 [2024-12-27 21:55:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:55:05 - End Time 2024-12-27 21:55:05 [2024-12-27 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117079', 'tblTempUsageDetail_20' ) start [2024-12-27 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117079', 'tblTempUsageDetail_20' ) end [2024-12-27 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117079', 'tblTempVendorCDR_20' ) start [2024-12-27 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117079', 'tblTempVendorCDR_20' ) end [2024-12-27 21:55:18] Production.INFO: ProcessCDR(1,14117079,1,1,2) [2024-12-27 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117079', 'tblTempUsageDetail_20' ) start [2024-12-27 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117079', 'tblTempUsageDetail_20' ) end [2024-12-27 21:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:55:21] Production.INFO: ==932== Releasing lock... [2024-12-27 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:55:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-27 21:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:56:04 [end_date_ymd] => 2024-12-27 21:56:04 [RateCDR] => 1 ) [2024-12-27 21:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:56:04' and `end` < '2024-12-27 21:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:56:17] Production.INFO: count ==1239 [2024-12-27 21:56:17] Production.ERROR: pbx CDR StartTime 2024-12-27 18:56:04 - End Time 2024-12-27 21:56:04 [2024-12-27 21:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117084', 'tblTempUsageDetail_20' ) start [2024-12-27 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117084', 'tblTempUsageDetail_20' ) end [2024-12-27 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117084', 'tblTempVendorCDR_20' ) start [2024-12-27 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117084', 'tblTempVendorCDR_20' ) end [2024-12-27 21:56:17] Production.INFO: ProcessCDR(1,14117084,1,1,2) [2024-12-27 21:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117084', 'tblTempUsageDetail_20' ) start [2024-12-27 21:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117084', 'tblTempUsageDetail_20' ) end [2024-12-27 21:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:56:20] Production.INFO: ==1048== Releasing lock... [2024-12-27 21:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:56:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-27 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:57:05 [end_date_ymd] => 2024-12-27 21:57:05 [RateCDR] => 1 ) [2024-12-27 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:57:05' and `end` < '2024-12-27 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:57:18] Production.INFO: count ==1278 [2024-12-27 21:57:18] Production.ERROR: pbx CDR StartTime 2024-12-27 18:57:05 - End Time 2024-12-27 21:57:05 [2024-12-27 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117089', 'tblTempUsageDetail_20' ) start [2024-12-27 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117089', 'tblTempUsageDetail_20' ) end [2024-12-27 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117089', 'tblTempVendorCDR_20' ) start [2024-12-27 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117089', 'tblTempVendorCDR_20' ) end [2024-12-27 21:57:18] Production.INFO: ProcessCDR(1,14117089,1,1,2) [2024-12-27 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117089', 'tblTempUsageDetail_20' ) start [2024-12-27 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117089', 'tblTempUsageDetail_20' ) end [2024-12-27 21:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:57:21] Production.INFO: ==1121== Releasing lock... [2024-12-27 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:57:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-27 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:58:05 [end_date_ymd] => 2024-12-27 21:58:05 [RateCDR] => 1 ) [2024-12-27 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:58:05' and `end` < '2024-12-27 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:58:17] Production.INFO: count ==1387 [2024-12-27 21:58:17] Production.ERROR: pbx CDR StartTime 2024-12-27 18:58:05 - End Time 2024-12-27 21:58:05 [2024-12-27 21:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117094', 'tblTempUsageDetail_20' ) start [2024-12-27 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117094', 'tblTempUsageDetail_20' ) end [2024-12-27 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117094', 'tblTempVendorCDR_20' ) start [2024-12-27 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117094', 'tblTempVendorCDR_20' ) end [2024-12-27 21:58:18] Production.INFO: ProcessCDR(1,14117094,1,1,2) [2024-12-27 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117094', 'tblTempUsageDetail_20' ) start [2024-12-27 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117094', 'tblTempUsageDetail_20' ) end [2024-12-27 21:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:58:21] Production.INFO: ==1198== Releasing lock... [2024-12-27 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:58:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-27 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 18:59:05 [end_date_ymd] => 2024-12-27 21:59:05 [RateCDR] => 1 ) [2024-12-27 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 18:59:05' and `end` < '2024-12-27 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 21:59:19] Production.INFO: count ==1385 [2024-12-27 21:59:19] Production.ERROR: pbx CDR StartTime 2024-12-27 18:59:05 - End Time 2024-12-27 21:59:05 [2024-12-27 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117099', 'tblTempUsageDetail_20' ) start [2024-12-27 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117099', 'tblTempUsageDetail_20' ) end [2024-12-27 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117099', 'tblTempVendorCDR_20' ) start [2024-12-27 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117099', 'tblTempVendorCDR_20' ) end [2024-12-27 21:59:19] Production.INFO: ProcessCDR(1,14117099,1,1,2) [2024-12-27 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117099', 'tblTempUsageDetail_20' ) start [2024-12-27 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117099', 'tblTempUsageDetail_20' ) end [2024-12-27 21:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 21:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 21:59:22] Production.INFO: ==1285== Releasing lock... [2024-12-27 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 21:59:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-27 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:00:06 [end_date_ymd] => 2024-12-27 22:00:06 [RateCDR] => 1 ) [2024-12-27 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:00:06' and `end` < '2024-12-27 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:00:18] Production.INFO: count ==1386 [2024-12-27 22:00:19] Production.ERROR: pbx CDR StartTime 2024-12-27 19:00:06 - End Time 2024-12-27 22:00:06 [2024-12-27 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117105', 'tblTempUsageDetail_20' ) start [2024-12-27 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117105', 'tblTempUsageDetail_20' ) end [2024-12-27 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117105', 'tblTempVendorCDR_20' ) start [2024-12-27 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117105', 'tblTempVendorCDR_20' ) end [2024-12-27 22:00:19] Production.INFO: ProcessCDR(1,14117105,1,1,2) [2024-12-27 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117105', 'tblTempUsageDetail_20' ) start [2024-12-27 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117105', 'tblTempUsageDetail_20' ) end [2024-12-27 22:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:00:23] Production.INFO: ==1359== Releasing lock... [2024-12-27 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:00:23] Production.INFO: 38.5 MB #Memory Used# [2024-12-27 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:01:05 [end_date_ymd] => 2024-12-27 22:01:05 [RateCDR] => 1 ) [2024-12-27 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:01:05' and `end` < '2024-12-27 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:01:17] Production.INFO: count ==1351 [2024-12-27 22:01:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:01:05 - End Time 2024-12-27 22:01:05 [2024-12-27 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117110', 'tblTempUsageDetail_20' ) start [2024-12-27 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117110', 'tblTempUsageDetail_20' ) end [2024-12-27 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117110', 'tblTempVendorCDR_20' ) start [2024-12-27 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117110', 'tblTempVendorCDR_20' ) end [2024-12-27 22:01:18] Production.INFO: ProcessCDR(1,14117110,1,1,2) [2024-12-27 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117110', 'tblTempUsageDetail_20' ) start [2024-12-27 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117110', 'tblTempUsageDetail_20' ) end [2024-12-27 22:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:01:22] Production.INFO: ==1445== Releasing lock... [2024-12-27 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:01:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-27 22:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:02:04 [end_date_ymd] => 2024-12-27 22:02:04 [RateCDR] => 1 ) [2024-12-27 22:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:02:04' and `end` < '2024-12-27 22:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:02:17] Production.INFO: count ==1350 [2024-12-27 22:02:17] Production.ERROR: pbx CDR StartTime 2024-12-27 19:02:04 - End Time 2024-12-27 22:02:04 [2024-12-27 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117115', 'tblTempUsageDetail_20' ) start [2024-12-27 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117115', 'tblTempUsageDetail_20' ) end [2024-12-27 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117115', 'tblTempVendorCDR_20' ) start [2024-12-27 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117115', 'tblTempVendorCDR_20' ) end [2024-12-27 22:02:17] Production.INFO: ProcessCDR(1,14117115,1,1,2) [2024-12-27 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117115', 'tblTempUsageDetail_20' ) start [2024-12-27 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117115', 'tblTempUsageDetail_20' ) end [2024-12-27 22:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:02:20] Production.INFO: ==1547== Releasing lock... [2024-12-27 22:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:02:20] Production.INFO: 38 MB #Memory Used# [2024-12-27 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:03:05 [end_date_ymd] => 2024-12-27 22:03:05 [RateCDR] => 1 ) [2024-12-27 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:03:05' and `end` < '2024-12-27 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:03:17] Production.INFO: count ==1349 [2024-12-27 22:03:17] Production.ERROR: pbx CDR StartTime 2024-12-27 19:03:05 - End Time 2024-12-27 22:03:05 [2024-12-27 22:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117120', 'tblTempUsageDetail_20' ) start [2024-12-27 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117120', 'tblTempUsageDetail_20' ) end [2024-12-27 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117120', 'tblTempVendorCDR_20' ) start [2024-12-27 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117120', 'tblTempVendorCDR_20' ) end [2024-12-27 22:03:17] Production.INFO: ProcessCDR(1,14117120,1,1,2) [2024-12-27 22:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117120', 'tblTempUsageDetail_20' ) start [2024-12-27 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117120', 'tblTempUsageDetail_20' ) end [2024-12-27 22:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:03:22] Production.INFO: ==1627== Releasing lock... [2024-12-27 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:03:22] Production.INFO: 38 MB #Memory Used# [2024-12-27 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:04:05 [end_date_ymd] => 2024-12-27 22:04:05 [RateCDR] => 1 ) [2024-12-27 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:04:05' and `end` < '2024-12-27 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:04:17] Production.INFO: count ==1344 [2024-12-27 22:04:17] Production.ERROR: pbx CDR StartTime 2024-12-27 19:04:05 - End Time 2024-12-27 22:04:05 [2024-12-27 22:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117125', 'tblTempUsageDetail_20' ) start [2024-12-27 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117125', 'tblTempUsageDetail_20' ) end [2024-12-27 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117125', 'tblTempVendorCDR_20' ) start [2024-12-27 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117125', 'tblTempVendorCDR_20' ) end [2024-12-27 22:04:17] Production.INFO: ProcessCDR(1,14117125,1,1,2) [2024-12-27 22:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117125', 'tblTempUsageDetail_20' ) start [2024-12-27 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117125', 'tblTempUsageDetail_20' ) end [2024-12-27 22:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:04:20] Production.INFO: ==1701== Releasing lock... [2024-12-27 22:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:04:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-27 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:05:05 [end_date_ymd] => 2024-12-27 22:05:05 [RateCDR] => 1 ) [2024-12-27 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:05:05' and `end` < '2024-12-27 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:05:18] Production.INFO: count ==1347 [2024-12-27 22:05:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:05:05 - End Time 2024-12-27 22:05:05 [2024-12-27 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117130', 'tblTempUsageDetail_20' ) start [2024-12-27 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117130', 'tblTempUsageDetail_20' ) end [2024-12-27 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117130', 'tblTempVendorCDR_20' ) start [2024-12-27 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117130', 'tblTempVendorCDR_20' ) end [2024-12-27 22:05:18] Production.INFO: ProcessCDR(1,14117130,1,1,2) [2024-12-27 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117130', 'tblTempUsageDetail_20' ) start [2024-12-27 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117130', 'tblTempUsageDetail_20' ) end [2024-12-27 22:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:05:22] Production.INFO: ==1773== Releasing lock... [2024-12-27 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:05:22] Production.INFO: 38 MB #Memory Used# [2024-12-27 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:06:05 [end_date_ymd] => 2024-12-27 22:06:05 [RateCDR] => 1 ) [2024-12-27 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:06:05' and `end` < '2024-12-27 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:06:18] Production.INFO: count ==1341 [2024-12-27 22:06:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:06:05 - End Time 2024-12-27 22:06:05 [2024-12-27 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117135', 'tblTempUsageDetail_20' ) start [2024-12-27 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117135', 'tblTempUsageDetail_20' ) end [2024-12-27 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117135', 'tblTempVendorCDR_20' ) start [2024-12-27 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117135', 'tblTempVendorCDR_20' ) end [2024-12-27 22:06:18] Production.INFO: ProcessCDR(1,14117135,1,1,2) [2024-12-27 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117135', 'tblTempUsageDetail_20' ) start [2024-12-27 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117135', 'tblTempUsageDetail_20' ) end [2024-12-27 22:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:06:22] Production.INFO: ==1848== Releasing lock... [2024-12-27 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:06:22] Production.INFO: 38 MB #Memory Used# [2024-12-27 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:07:05 [end_date_ymd] => 2024-12-27 22:07:05 [RateCDR] => 1 ) [2024-12-27 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:07:05' and `end` < '2024-12-27 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:07:19] Production.INFO: count ==1342 [2024-12-27 22:07:20] Production.ERROR: pbx CDR StartTime 2024-12-27 19:07:05 - End Time 2024-12-27 22:07:05 [2024-12-27 22:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117140', 'tblTempUsageDetail_20' ) start [2024-12-27 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117140', 'tblTempUsageDetail_20' ) end [2024-12-27 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117140', 'tblTempVendorCDR_20' ) start [2024-12-27 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117140', 'tblTempVendorCDR_20' ) end [2024-12-27 22:07:20] Production.INFO: ProcessCDR(1,14117140,1,1,2) [2024-12-27 22:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117140', 'tblTempUsageDetail_20' ) start [2024-12-27 22:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117140', 'tblTempUsageDetail_20' ) end [2024-12-27 22:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:07:24] Production.INFO: ==1920== Releasing lock... [2024-12-27 22:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:07:24] Production.INFO: 37.75 MB #Memory Used# [2024-12-27 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:08:05 [end_date_ymd] => 2024-12-27 22:08:05 [RateCDR] => 1 ) [2024-12-27 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:08:05' and `end` < '2024-12-27 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:08:18] Production.INFO: count ==1339 [2024-12-27 22:08:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:08:05 - End Time 2024-12-27 22:08:05 [2024-12-27 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117145', 'tblTempUsageDetail_20' ) start [2024-12-27 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117145', 'tblTempUsageDetail_20' ) end [2024-12-27 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117145', 'tblTempVendorCDR_20' ) start [2024-12-27 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117145', 'tblTempVendorCDR_20' ) end [2024-12-27 22:08:18] Production.INFO: ProcessCDR(1,14117145,1,1,2) [2024-12-27 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117145', 'tblTempUsageDetail_20' ) start [2024-12-27 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117145', 'tblTempUsageDetail_20' ) end [2024-12-27 22:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:08:21] Production.INFO: ==1991== Releasing lock... [2024-12-27 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:08:21] Production.INFO: 38 MB #Memory Used# [2024-12-27 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:09:04 [end_date_ymd] => 2024-12-27 22:09:04 [RateCDR] => 1 ) [2024-12-27 22:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:09:04' and `end` < '2024-12-27 22:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:09:17] Production.INFO: count ==1337 [2024-12-27 22:09:17] Production.ERROR: pbx CDR StartTime 2024-12-27 19:09:04 - End Time 2024-12-27 22:09:04 [2024-12-27 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117150', 'tblTempUsageDetail_20' ) start [2024-12-27 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117150', 'tblTempUsageDetail_20' ) end [2024-12-27 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117150', 'tblTempVendorCDR_20' ) start [2024-12-27 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117150', 'tblTempVendorCDR_20' ) end [2024-12-27 22:09:17] Production.INFO: ProcessCDR(1,14117150,1,1,2) [2024-12-27 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117150', 'tblTempUsageDetail_20' ) start [2024-12-27 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117150', 'tblTempUsageDetail_20' ) end [2024-12-27 22:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:09:21] Production.INFO: ==2067== Releasing lock... [2024-12-27 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:09:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-27 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:10:05 [end_date_ymd] => 2024-12-27 22:10:05 [RateCDR] => 1 ) [2024-12-27 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-27 19:10:05' and `end` < '2024-12-27 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-27 22:10:18] Production.INFO: count ==1335 [2024-12-27 22:10:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:10:05 - End Time 2024-12-27 22:10:05 [2024-12-27 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117155', 'tblTempUsageDetail_20' ) start [2024-12-27 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117155', 'tblTempUsageDetail_20' ) end [2024-12-27 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117155', 'tblTempVendorCDR_20' ) start [2024-12-27 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117155', 'tblTempVendorCDR_20' ) end [2024-12-27 22:10:18] Production.INFO: ProcessCDR(1,14117155,1,1,2) [2024-12-27 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117155', 'tblTempUsageDetail_20' ) start [2024-12-27 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117155', 'tblTempUsageDetail_20' ) end [2024-12-27 22:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:10:21] Production.INFO: ==2149== Releasing lock... [2024-12-27 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:10:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-27 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:11:05 [end_date_ymd] => 2024-12-27 22:11:05 [RateCDR] => 1 ) [2024-12-27 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:11:05' and `end` < '2024-12-27 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:11:17] Production.INFO: count ==1274 [2024-12-27 22:11:17] Production.ERROR: pbx CDR StartTime 2024-12-27 19:11:05 - End Time 2024-12-27 22:11:05 [2024-12-27 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117161', 'tblTempUsageDetail_20' ) start [2024-12-27 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117161', 'tblTempUsageDetail_20' ) end [2024-12-27 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117161', 'tblTempVendorCDR_20' ) start [2024-12-27 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117161', 'tblTempVendorCDR_20' ) end [2024-12-27 22:11:17] Production.INFO: ProcessCDR(1,14117161,1,1,2) [2024-12-27 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117161', 'tblTempUsageDetail_20' ) start [2024-12-27 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117161', 'tblTempUsageDetail_20' ) end [2024-12-27 22:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:11:21] Production.INFO: ==2223== Releasing lock... [2024-12-27 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:11:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-27 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:12:05 [end_date_ymd] => 2024-12-27 22:12:05 [RateCDR] => 1 ) [2024-12-27 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:12:05' and `end` < '2024-12-27 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:12:19] Production.INFO: count ==1276 [2024-12-27 22:12:19] Production.ERROR: pbx CDR StartTime 2024-12-27 19:12:05 - End Time 2024-12-27 22:12:05 [2024-12-27 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117166', 'tblTempUsageDetail_20' ) start [2024-12-27 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117166', 'tblTempUsageDetail_20' ) end [2024-12-27 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117166', 'tblTempVendorCDR_20' ) start [2024-12-27 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117166', 'tblTempVendorCDR_20' ) end [2024-12-27 22:12:19] Production.INFO: ProcessCDR(1,14117166,1,1,2) [2024-12-27 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117166', 'tblTempUsageDetail_20' ) start [2024-12-27 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117166', 'tblTempUsageDetail_20' ) end [2024-12-27 22:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:12:22] Production.INFO: ==2333== Releasing lock... [2024-12-27 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:12:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-27 22:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:13:04 [end_date_ymd] => 2024-12-27 22:13:04 [RateCDR] => 1 ) [2024-12-27 22: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-27 19:13:04' and `end` < '2024-12-27 22: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-27 22:13:17] Production.INFO: count ==1264 [2024-12-27 22:13:17] Production.ERROR: pbx CDR StartTime 2024-12-27 19:13:04 - End Time 2024-12-27 22:13:04 [2024-12-27 22:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117171', 'tblTempUsageDetail_20' ) start [2024-12-27 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117171', 'tblTempUsageDetail_20' ) end [2024-12-27 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117171', 'tblTempVendorCDR_20' ) start [2024-12-27 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117171', 'tblTempVendorCDR_20' ) end [2024-12-27 22:13:17] Production.INFO: ProcessCDR(1,14117171,1,1,2) [2024-12-27 22:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117171', 'tblTempUsageDetail_20' ) start [2024-12-27 22:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117171', 'tblTempUsageDetail_20' ) end [2024-12-27 22:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:13:20] Production.INFO: ==2405== Releasing lock... [2024-12-27 22:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:13:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-27 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:14:05 [end_date_ymd] => 2024-12-27 22:14:05 [RateCDR] => 1 ) [2024-12-27 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:14:05' and `end` < '2024-12-27 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:14:18] Production.INFO: count ==1258 [2024-12-27 22:14:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:14:05 - End Time 2024-12-27 22:14:05 [2024-12-27 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117176', 'tblTempUsageDetail_20' ) start [2024-12-27 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117176', 'tblTempUsageDetail_20' ) end [2024-12-27 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117176', 'tblTempVendorCDR_20' ) start [2024-12-27 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117176', 'tblTempVendorCDR_20' ) end [2024-12-27 22:14:18] Production.INFO: ProcessCDR(1,14117176,1,1,2) [2024-12-27 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117176', 'tblTempUsageDetail_20' ) start [2024-12-27 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117176', 'tblTempUsageDetail_20' ) end [2024-12-27 22:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:14:21] Production.INFO: ==2476== Releasing lock... [2024-12-27 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:14:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-27 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:15:05 [end_date_ymd] => 2024-12-27 22:15:05 [RateCDR] => 1 ) [2024-12-27 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:15:05' and `end` < '2024-12-27 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:15:18] Production.INFO: count ==1257 [2024-12-27 22:15:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:15:05 - End Time 2024-12-27 22:15:05 [2024-12-27 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117181', 'tblTempUsageDetail_20' ) start [2024-12-27 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117181', 'tblTempUsageDetail_20' ) end [2024-12-27 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117181', 'tblTempVendorCDR_20' ) start [2024-12-27 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117181', 'tblTempVendorCDR_20' ) end [2024-12-27 22:15:18] Production.INFO: ProcessCDR(1,14117181,1,1,2) [2024-12-27 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117181', 'tblTempUsageDetail_20' ) start [2024-12-27 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117181', 'tblTempUsageDetail_20' ) end [2024-12-27 22:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:15:21] Production.INFO: ==2548== Releasing lock... [2024-12-27 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:15:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-27 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:16:05 [end_date_ymd] => 2024-12-27 22:16:05 [RateCDR] => 1 ) [2024-12-27 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:16:05' and `end` < '2024-12-27 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:16:18] Production.INFO: count ==1255 [2024-12-27 22:16:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:16:05 - End Time 2024-12-27 22:16:05 [2024-12-27 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117186', 'tblTempUsageDetail_20' ) start [2024-12-27 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117186', 'tblTempUsageDetail_20' ) end [2024-12-27 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117186', 'tblTempVendorCDR_20' ) start [2024-12-27 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117186', 'tblTempVendorCDR_20' ) end [2024-12-27 22:16:18] Production.INFO: ProcessCDR(1,14117186,1,1,2) [2024-12-27 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117186', 'tblTempUsageDetail_20' ) start [2024-12-27 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117186', 'tblTempUsageDetail_20' ) end [2024-12-27 22:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:16:21] Production.INFO: ==2620== Releasing lock... [2024-12-27 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:16:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-27 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:17:05 [end_date_ymd] => 2024-12-27 22:17:05 [RateCDR] => 1 ) [2024-12-27 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:17:05' and `end` < '2024-12-27 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:17:18] Production.INFO: count ==1253 [2024-12-27 22:17:19] Production.ERROR: pbx CDR StartTime 2024-12-27 19:17:05 - End Time 2024-12-27 22:17:05 [2024-12-27 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117191', 'tblTempUsageDetail_20' ) start [2024-12-27 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117191', 'tblTempUsageDetail_20' ) end [2024-12-27 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117191', 'tblTempVendorCDR_20' ) start [2024-12-27 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117191', 'tblTempVendorCDR_20' ) end [2024-12-27 22:17:19] Production.INFO: ProcessCDR(1,14117191,1,1,2) [2024-12-27 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117191', 'tblTempUsageDetail_20' ) start [2024-12-27 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117191', 'tblTempUsageDetail_20' ) end [2024-12-27 22:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:17:23] Production.INFO: ==2692== Releasing lock... [2024-12-27 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:17:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-27 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:18:05 [end_date_ymd] => 2024-12-27 22:18:05 [RateCDR] => 1 ) [2024-12-27 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:18:05' and `end` < '2024-12-27 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:18:18] Production.INFO: count ==1252 [2024-12-27 22:18:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:18:05 - End Time 2024-12-27 22:18:05 [2024-12-27 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117196', 'tblTempUsageDetail_20' ) start [2024-12-27 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117196', 'tblTempUsageDetail_20' ) end [2024-12-27 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117196', 'tblTempVendorCDR_20' ) start [2024-12-27 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117196', 'tblTempVendorCDR_20' ) end [2024-12-27 22:18:18] Production.INFO: ProcessCDR(1,14117196,1,1,2) [2024-12-27 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117196', 'tblTempUsageDetail_20' ) start [2024-12-27 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117196', 'tblTempUsageDetail_20' ) end [2024-12-27 22:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:18:21] Production.INFO: ==2765== Releasing lock... [2024-12-27 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:18:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-27 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:19:05 [end_date_ymd] => 2024-12-27 22:19:05 [RateCDR] => 1 ) [2024-12-27 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:19:05' and `end` < '2024-12-27 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:19:17] Production.INFO: count ==1240 [2024-12-27 22:19:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:19:05 - End Time 2024-12-27 22:19:05 [2024-12-27 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117201', 'tblTempUsageDetail_20' ) start [2024-12-27 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117201', 'tblTempUsageDetail_20' ) end [2024-12-27 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117201', 'tblTempVendorCDR_20' ) start [2024-12-27 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117201', 'tblTempVendorCDR_20' ) end [2024-12-27 22:19:18] Production.INFO: ProcessCDR(1,14117201,1,1,2) [2024-12-27 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117201', 'tblTempUsageDetail_20' ) start [2024-12-27 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117201', 'tblTempUsageDetail_20' ) end [2024-12-27 22:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:19:21] Production.INFO: ==2837== Releasing lock... [2024-12-27 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:19:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-27 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:20:05 [end_date_ymd] => 2024-12-27 22:20:05 [RateCDR] => 1 ) [2024-12-27 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-27 19:20:05' and `end` < '2024-12-27 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-27 22:20:17] Production.INFO: count ==1239 [2024-12-27 22:20:17] Production.ERROR: pbx CDR StartTime 2024-12-27 19:20:05 - End Time 2024-12-27 22:20:05 [2024-12-27 22:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117206', 'tblTempUsageDetail_20' ) start [2024-12-27 22:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117206', 'tblTempUsageDetail_20' ) end [2024-12-27 22:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117206', 'tblTempVendorCDR_20' ) start [2024-12-27 22:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117206', 'tblTempVendorCDR_20' ) end [2024-12-27 22:20:17] Production.INFO: ProcessCDR(1,14117206,1,1,2) [2024-12-27 22:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117206', 'tblTempUsageDetail_20' ) start [2024-12-27 22:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117206', 'tblTempUsageDetail_20' ) end [2024-12-27 22:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:20:20] Production.INFO: ==2913== Releasing lock... [2024-12-27 22:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:20:20] Production.INFO: 37 MB #Memory Used# [2024-12-27 22:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:21:04 [end_date_ymd] => 2024-12-27 22:21:04 [RateCDR] => 1 ) [2024-12-27 22: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-27 19:21:04' and `end` < '2024-12-27 22: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-27 22:21:17] Production.INFO: count ==1219 [2024-12-27 22:21:17] Production.ERROR: pbx CDR StartTime 2024-12-27 19:21:04 - End Time 2024-12-27 22:21:04 [2024-12-27 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117212', 'tblTempUsageDetail_20' ) start [2024-12-27 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117212', 'tblTempUsageDetail_20' ) end [2024-12-27 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117212', 'tblTempVendorCDR_20' ) start [2024-12-27 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117212', 'tblTempVendorCDR_20' ) end [2024-12-27 22:21:17] Production.INFO: ProcessCDR(1,14117212,1,1,2) [2024-12-27 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117212', 'tblTempUsageDetail_20' ) start [2024-12-27 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117212', 'tblTempUsageDetail_20' ) end [2024-12-27 22:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:21:20] Production.INFO: ==2990== Releasing lock... [2024-12-27 22:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:21:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-27 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:22:05 [end_date_ymd] => 2024-12-27 22:22:05 [RateCDR] => 1 ) [2024-12-27 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:22:05' and `end` < '2024-12-27 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:22:18] Production.INFO: count ==1219 [2024-12-27 22:22:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:22:05 - End Time 2024-12-27 22:22:05 [2024-12-27 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117217', 'tblTempUsageDetail_20' ) start [2024-12-27 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117217', 'tblTempUsageDetail_20' ) end [2024-12-27 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117217', 'tblTempVendorCDR_20' ) start [2024-12-27 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117217', 'tblTempVendorCDR_20' ) end [2024-12-27 22:22:18] Production.INFO: ProcessCDR(1,14117217,1,1,2) [2024-12-27 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117217', 'tblTempUsageDetail_20' ) start [2024-12-27 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117217', 'tblTempUsageDetail_20' ) end [2024-12-27 22:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:22:21] Production.INFO: ==3061== Releasing lock... [2024-12-27 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:22:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-27 22:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:23:04 [end_date_ymd] => 2024-12-27 22:23:04 [RateCDR] => 1 ) [2024-12-27 22: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-27 19:23:04' and `end` < '2024-12-27 22: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-27 22:23:17] Production.INFO: count ==1209 [2024-12-27 22:23:17] Production.ERROR: pbx CDR StartTime 2024-12-27 19:23:04 - End Time 2024-12-27 22:23:04 [2024-12-27 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117222', 'tblTempUsageDetail_20' ) start [2024-12-27 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117222', 'tblTempUsageDetail_20' ) end [2024-12-27 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117222', 'tblTempVendorCDR_20' ) start [2024-12-27 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117222', 'tblTempVendorCDR_20' ) end [2024-12-27 22:23:17] Production.INFO: ProcessCDR(1,14117222,1,1,2) [2024-12-27 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117222', 'tblTempUsageDetail_20' ) start [2024-12-27 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117222', 'tblTempUsageDetail_20' ) end [2024-12-27 22:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:23:20] Production.INFO: ==3136== Releasing lock... [2024-12-27 22:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:23:20] Production.INFO: 37 MB #Memory Used# [2024-12-27 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:24:05 [end_date_ymd] => 2024-12-27 22:24:05 [RateCDR] => 1 ) [2024-12-27 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:24:05' and `end` < '2024-12-27 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:24:19] Production.INFO: count ==1210 [2024-12-27 22:24:19] Production.ERROR: pbx CDR StartTime 2024-12-27 19:24:05 - End Time 2024-12-27 22:24:05 [2024-12-27 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117227', 'tblTempUsageDetail_20' ) start [2024-12-27 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117227', 'tblTempUsageDetail_20' ) end [2024-12-27 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117227', 'tblTempVendorCDR_20' ) start [2024-12-27 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117227', 'tblTempVendorCDR_20' ) end [2024-12-27 22:24:19] Production.INFO: ProcessCDR(1,14117227,1,1,2) [2024-12-27 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117227', 'tblTempUsageDetail_20' ) start [2024-12-27 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117227', 'tblTempUsageDetail_20' ) end [2024-12-27 22:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:24:23] Production.INFO: ==3213== Releasing lock... [2024-12-27 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:24:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-27 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:25:05 [end_date_ymd] => 2024-12-27 22:25:05 [RateCDR] => 1 ) [2024-12-27 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:25:05' and `end` < '2024-12-27 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:25:17] Production.INFO: count ==1208 [2024-12-27 22:25:17] Production.ERROR: pbx CDR StartTime 2024-12-27 19:25:05 - End Time 2024-12-27 22:25:05 [2024-12-27 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117232', 'tblTempUsageDetail_20' ) start [2024-12-27 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117232', 'tblTempUsageDetail_20' ) end [2024-12-27 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117232', 'tblTempVendorCDR_20' ) start [2024-12-27 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117232', 'tblTempVendorCDR_20' ) end [2024-12-27 22:25:17] Production.INFO: ProcessCDR(1,14117232,1,1,2) [2024-12-27 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117232', 'tblTempUsageDetail_20' ) start [2024-12-27 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117232', 'tblTempUsageDetail_20' ) end [2024-12-27 22:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:25:20] Production.INFO: ==3288== Releasing lock... [2024-12-27 22:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:25:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-27 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:26:05 [end_date_ymd] => 2024-12-27 22:26:05 [RateCDR] => 1 ) [2024-12-27 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:26:05' and `end` < '2024-12-27 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:26:17] Production.INFO: count ==1194 [2024-12-27 22:26:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:26:05 - End Time 2024-12-27 22:26:05 [2024-12-27 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117237', 'tblTempUsageDetail_20' ) start [2024-12-27 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117237', 'tblTempUsageDetail_20' ) end [2024-12-27 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117237', 'tblTempVendorCDR_20' ) start [2024-12-27 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117237', 'tblTempVendorCDR_20' ) end [2024-12-27 22:26:18] Production.INFO: ProcessCDR(1,14117237,1,1,2) [2024-12-27 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117237', 'tblTempUsageDetail_20' ) start [2024-12-27 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117237', 'tblTempUsageDetail_20' ) end [2024-12-27 22:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:26:21] Production.INFO: ==3363== Releasing lock... [2024-12-27 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:26:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-27 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:27:04 [end_date_ymd] => 2024-12-27 22:27:04 [RateCDR] => 1 ) [2024-12-27 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:27:04' and `end` < '2024-12-27 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-27 22:27:17] Production.INFO: count ==1191 [2024-12-27 22:27:17] Production.ERROR: pbx CDR StartTime 2024-12-27 19:27:04 - End Time 2024-12-27 22:27:04 [2024-12-27 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117242', 'tblTempUsageDetail_20' ) start [2024-12-27 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117242', 'tblTempUsageDetail_20' ) end [2024-12-27 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117242', 'tblTempVendorCDR_20' ) start [2024-12-27 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117242', 'tblTempVendorCDR_20' ) end [2024-12-27 22:27:17] Production.INFO: ProcessCDR(1,14117242,1,1,2) [2024-12-27 22:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117242', 'tblTempUsageDetail_20' ) start [2024-12-27 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117242', 'tblTempUsageDetail_20' ) end [2024-12-27 22:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:27:20] Production.INFO: ==3439== Releasing lock... [2024-12-27 22:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:27:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-27 22:28:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:28:06 [end_date_ymd] => 2024-12-27 22:28:06 [RateCDR] => 1 ) [2024-12-27 22:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:28:06' and `end` < '2024-12-27 22:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:28:18] Production.INFO: count ==1177 [2024-12-27 22:28:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:28:06 - End Time 2024-12-27 22:28:06 [2024-12-27 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117247', 'tblTempUsageDetail_20' ) start [2024-12-27 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117247', 'tblTempUsageDetail_20' ) end [2024-12-27 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117247', 'tblTempVendorCDR_20' ) start [2024-12-27 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117247', 'tblTempVendorCDR_20' ) end [2024-12-27 22:28:18] Production.INFO: ProcessCDR(1,14117247,1,1,2) [2024-12-27 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117247', 'tblTempUsageDetail_20' ) start [2024-12-27 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117247', 'tblTempUsageDetail_20' ) end [2024-12-27 22:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:28:21] Production.INFO: ==3554== Releasing lock... [2024-12-27 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:28:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-27 22:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:29:04 [end_date_ymd] => 2024-12-27 22:29:04 [RateCDR] => 1 ) [2024-12-27 22:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:29:04' and `end` < '2024-12-27 22:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:29:18] Production.INFO: count ==1174 [2024-12-27 22:29:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:29:04 - End Time 2024-12-27 22:29:04 [2024-12-27 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117252', 'tblTempUsageDetail_20' ) start [2024-12-27 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117252', 'tblTempUsageDetail_20' ) end [2024-12-27 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117252', 'tblTempVendorCDR_20' ) start [2024-12-27 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117252', 'tblTempVendorCDR_20' ) end [2024-12-27 22:29:18] Production.INFO: ProcessCDR(1,14117252,1,1,2) [2024-12-27 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117252', 'tblTempUsageDetail_20' ) start [2024-12-27 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117252', 'tblTempUsageDetail_20' ) end [2024-12-27 22:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:29:21] Production.INFO: ==3626== Releasing lock... [2024-12-27 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:29:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-27 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:30:05 [end_date_ymd] => 2024-12-27 22:30:05 [RateCDR] => 1 ) [2024-12-27 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:30:05' and `end` < '2024-12-27 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:30:18] Production.INFO: count ==1173 [2024-12-27 22:30:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:30:05 - End Time 2024-12-27 22:30:05 [2024-12-27 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117257', 'tblTempUsageDetail_20' ) start [2024-12-27 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117257', 'tblTempUsageDetail_20' ) end [2024-12-27 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117257', 'tblTempVendorCDR_20' ) start [2024-12-27 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117257', 'tblTempVendorCDR_20' ) end [2024-12-27 22:30:18] Production.INFO: ProcessCDR(1,14117257,1,1,2) [2024-12-27 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117257', 'tblTempUsageDetail_20' ) start [2024-12-27 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117257', 'tblTempUsageDetail_20' ) end [2024-12-27 22:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:30:21] Production.INFO: ==3704== Releasing lock... [2024-12-27 22:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:30:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-27 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:31:05 [end_date_ymd] => 2024-12-27 22:31:05 [RateCDR] => 1 ) [2024-12-27 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:31:05' and `end` < '2024-12-27 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:31:17] Production.INFO: count ==1142 [2024-12-27 22:31:17] Production.ERROR: pbx CDR StartTime 2024-12-27 19:31:05 - End Time 2024-12-27 22:31:05 [2024-12-27 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117263', 'tblTempUsageDetail_20' ) start [2024-12-27 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117263', 'tblTempUsageDetail_20' ) end [2024-12-27 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117263', 'tblTempVendorCDR_20' ) start [2024-12-27 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117263', 'tblTempVendorCDR_20' ) end [2024-12-27 22:31:17] Production.INFO: ProcessCDR(1,14117263,1,1,2) [2024-12-27 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117263', 'tblTempUsageDetail_20' ) start [2024-12-27 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117263', 'tblTempUsageDetail_20' ) end [2024-12-27 22:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:31:21] Production.INFO: ==3783== Releasing lock... [2024-12-27 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:31:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-27 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:32:05 [end_date_ymd] => 2024-12-27 22:32:05 [RateCDR] => 1 ) [2024-12-27 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-27 19:32:05' and `end` < '2024-12-27 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-27 22:32:18] Production.INFO: count ==1145 [2024-12-27 22:32:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:32:05 - End Time 2024-12-27 22:32:05 [2024-12-27 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117268', 'tblTempUsageDetail_20' ) start [2024-12-27 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117268', 'tblTempUsageDetail_20' ) end [2024-12-27 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117268', 'tblTempVendorCDR_20' ) start [2024-12-27 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117268', 'tblTempVendorCDR_20' ) end [2024-12-27 22:32:18] Production.INFO: ProcessCDR(1,14117268,1,1,2) [2024-12-27 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117268', 'tblTempUsageDetail_20' ) start [2024-12-27 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117268', 'tblTempUsageDetail_20' ) end [2024-12-27 22:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:32:21] Production.INFO: ==3861== Releasing lock... [2024-12-27 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:32:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-27 22:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:33:04 [end_date_ymd] => 2024-12-27 22:33:04 [RateCDR] => 1 ) [2024-12-27 22: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-27 19:33:04' and `end` < '2024-12-27 22: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-27 22:33:18] Production.INFO: count ==1145 [2024-12-27 22:33:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:33:04 - End Time 2024-12-27 22:33:04 [2024-12-27 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117273', 'tblTempUsageDetail_20' ) start [2024-12-27 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117273', 'tblTempUsageDetail_20' ) end [2024-12-27 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117273', 'tblTempVendorCDR_20' ) start [2024-12-27 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117273', 'tblTempVendorCDR_20' ) end [2024-12-27 22:33:18] Production.INFO: ProcessCDR(1,14117273,1,1,2) [2024-12-27 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117273', 'tblTempUsageDetail_20' ) start [2024-12-27 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117273', 'tblTempUsageDetail_20' ) end [2024-12-27 22:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:33:21] Production.INFO: ==3938== Releasing lock... [2024-12-27 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:33:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-27 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:34:05 [end_date_ymd] => 2024-12-27 22:34:05 [RateCDR] => 1 ) [2024-12-27 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:34:05' and `end` < '2024-12-27 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:34:18] Production.INFO: count ==1151 [2024-12-27 22:34:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:34:05 - End Time 2024-12-27 22:34:05 [2024-12-27 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117278', 'tblTempUsageDetail_20' ) start [2024-12-27 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117278', 'tblTempUsageDetail_20' ) end [2024-12-27 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117278', 'tblTempVendorCDR_20' ) start [2024-12-27 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117278', 'tblTempVendorCDR_20' ) end [2024-12-27 22:34:18] Production.INFO: ProcessCDR(1,14117278,1,1,2) [2024-12-27 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117278', 'tblTempUsageDetail_20' ) start [2024-12-27 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117278', 'tblTempUsageDetail_20' ) end [2024-12-27 22:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:34:21] Production.INFO: ==4011== Releasing lock... [2024-12-27 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:34:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-27 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:35:05 [end_date_ymd] => 2024-12-27 22:35:05 [RateCDR] => 1 ) [2024-12-27 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:35:05' and `end` < '2024-12-27 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:35:19] Production.INFO: count ==1150 [2024-12-27 22:35:19] Production.ERROR: pbx CDR StartTime 2024-12-27 19:35:05 - End Time 2024-12-27 22:35:05 [2024-12-27 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117283', 'tblTempUsageDetail_20' ) start [2024-12-27 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117283', 'tblTempUsageDetail_20' ) end [2024-12-27 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117283', 'tblTempVendorCDR_20' ) start [2024-12-27 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117283', 'tblTempVendorCDR_20' ) end [2024-12-27 22:35:19] Production.INFO: ProcessCDR(1,14117283,1,1,2) [2024-12-27 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117283', 'tblTempUsageDetail_20' ) start [2024-12-27 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117283', 'tblTempUsageDetail_20' ) end [2024-12-27 22:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:35:22] Production.INFO: ==4089== Releasing lock... [2024-12-27 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:35:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-27 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:36:05 [end_date_ymd] => 2024-12-27 22:36:05 [RateCDR] => 1 ) [2024-12-27 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:36:05' and `end` < '2024-12-27 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:36:19] Production.INFO: count ==1148 [2024-12-27 22:36:19] Production.ERROR: pbx CDR StartTime 2024-12-27 19:36:05 - End Time 2024-12-27 22:36:05 [2024-12-27 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117288', 'tblTempUsageDetail_20' ) start [2024-12-27 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117288', 'tblTempUsageDetail_20' ) end [2024-12-27 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117288', 'tblTempVendorCDR_20' ) start [2024-12-27 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117288', 'tblTempVendorCDR_20' ) end [2024-12-27 22:36:19] Production.INFO: ProcessCDR(1,14117288,1,1,2) [2024-12-27 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117288', 'tblTempUsageDetail_20' ) start [2024-12-27 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117288', 'tblTempUsageDetail_20' ) end [2024-12-27 22:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:36:22] Production.INFO: ==4168== Releasing lock... [2024-12-27 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:36:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-27 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:37:05 [end_date_ymd] => 2024-12-27 22:37:05 [RateCDR] => 1 ) [2024-12-27 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:37:05' and `end` < '2024-12-27 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:37:18] Production.INFO: count ==1144 [2024-12-27 22:37:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:37:05 - End Time 2024-12-27 22:37:05 [2024-12-27 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117293', 'tblTempUsageDetail_20' ) start [2024-12-27 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117293', 'tblTempUsageDetail_20' ) end [2024-12-27 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117293', 'tblTempVendorCDR_20' ) start [2024-12-27 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117293', 'tblTempVendorCDR_20' ) end [2024-12-27 22:37:18] Production.INFO: ProcessCDR(1,14117293,1,1,2) [2024-12-27 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117293', 'tblTempUsageDetail_20' ) start [2024-12-27 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117293', 'tblTempUsageDetail_20' ) end [2024-12-27 22:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:37:21] Production.INFO: ==4248== Releasing lock... [2024-12-27 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:37:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-27 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:38:05 [end_date_ymd] => 2024-12-27 22:38:05 [RateCDR] => 1 ) [2024-12-27 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:38:05' and `end` < '2024-12-27 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:38:19] Production.INFO: count ==1143 [2024-12-27 22:38:19] Production.ERROR: pbx CDR StartTime 2024-12-27 19:38:05 - End Time 2024-12-27 22:38:05 [2024-12-27 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117298', 'tblTempUsageDetail_20' ) start [2024-12-27 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117298', 'tblTempUsageDetail_20' ) end [2024-12-27 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117298', 'tblTempVendorCDR_20' ) start [2024-12-27 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117298', 'tblTempVendorCDR_20' ) end [2024-12-27 22:38:19] Production.INFO: ProcessCDR(1,14117298,1,1,2) [2024-12-27 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117298', 'tblTempUsageDetail_20' ) start [2024-12-27 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117298', 'tblTempUsageDetail_20' ) end [2024-12-27 22:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:38:22] Production.INFO: ==4331== Releasing lock... [2024-12-27 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:38:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-27 22:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:39:04 [end_date_ymd] => 2024-12-27 22:39:04 [RateCDR] => 1 ) [2024-12-27 22:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:39:04' and `end` < '2024-12-27 22:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:39:18] Production.INFO: count ==1142 [2024-12-27 22:39:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:39:04 - End Time 2024-12-27 22:39:04 [2024-12-27 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117303', 'tblTempUsageDetail_20' ) start [2024-12-27 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117303', 'tblTempUsageDetail_20' ) end [2024-12-27 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117303', 'tblTempVendorCDR_20' ) start [2024-12-27 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117303', 'tblTempVendorCDR_20' ) end [2024-12-27 22:39:18] Production.INFO: ProcessCDR(1,14117303,1,1,2) [2024-12-27 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117303', 'tblTempUsageDetail_20' ) start [2024-12-27 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117303', 'tblTempUsageDetail_20' ) end [2024-12-27 22:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:39:21] Production.INFO: ==4412== Releasing lock... [2024-12-27 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:39:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-27 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:40:05 [end_date_ymd] => 2024-12-27 22:40:05 [RateCDR] => 1 ) [2024-12-27 22:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:40:05' and `end` < '2024-12-27 22:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:40:18] Production.INFO: count ==1134 [2024-12-27 22:40:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:40:05 - End Time 2024-12-27 22:40:05 [2024-12-27 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117308', 'tblTempUsageDetail_20' ) start [2024-12-27 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117308', 'tblTempUsageDetail_20' ) end [2024-12-27 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117308', 'tblTempVendorCDR_20' ) start [2024-12-27 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117308', 'tblTempVendorCDR_20' ) end [2024-12-27 22:40:18] Production.INFO: ProcessCDR(1,14117308,1,1,2) [2024-12-27 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117308', 'tblTempUsageDetail_20' ) start [2024-12-27 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117308', 'tblTempUsageDetail_20' ) end [2024-12-27 22:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:40:21] Production.INFO: ==4499== Releasing lock... [2024-12-27 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:40:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-27 22:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:41:04 [end_date_ymd] => 2024-12-27 22:41:04 [RateCDR] => 1 ) [2024-12-27 22:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:41:04' and `end` < '2024-12-27 22:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:41:18] Production.INFO: count ==1086 [2024-12-27 22:41:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:41:04 - End Time 2024-12-27 22:41:04 [2024-12-27 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117314', 'tblTempUsageDetail_20' ) start [2024-12-27 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117314', 'tblTempUsageDetail_20' ) end [2024-12-27 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117314', 'tblTempVendorCDR_20' ) start [2024-12-27 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117314', 'tblTempVendorCDR_20' ) end [2024-12-27 22:41:18] Production.INFO: ProcessCDR(1,14117314,1,1,2) [2024-12-27 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117314', 'tblTempUsageDetail_20' ) start [2024-12-27 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117314', 'tblTempUsageDetail_20' ) end [2024-12-27 22:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:41:21] Production.INFO: ==4613== Releasing lock... [2024-12-27 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:41:21] Production.INFO: 36 MB #Memory Used# [2024-12-27 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:42:05 [end_date_ymd] => 2024-12-27 22:42:05 [RateCDR] => 1 ) [2024-12-27 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:42:05' and `end` < '2024-12-27 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:42:19] Production.INFO: count ==1084 [2024-12-27 22:42:19] Production.ERROR: pbx CDR StartTime 2024-12-27 19:42:05 - End Time 2024-12-27 22:42:05 [2024-12-27 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117319', 'tblTempUsageDetail_20' ) start [2024-12-27 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117319', 'tblTempUsageDetail_20' ) end [2024-12-27 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117319', 'tblTempVendorCDR_20' ) start [2024-12-27 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117319', 'tblTempVendorCDR_20' ) end [2024-12-27 22:42:19] Production.INFO: ProcessCDR(1,14117319,1,1,2) [2024-12-27 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117319', 'tblTempUsageDetail_20' ) start [2024-12-27 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117319', 'tblTempUsageDetail_20' ) end [2024-12-27 22:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:42:22] Production.INFO: ==4715== Releasing lock... [2024-12-27 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:42:22] Production.INFO: 36 MB #Memory Used# [2024-12-27 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:43:05 [end_date_ymd] => 2024-12-27 22:43:05 [RateCDR] => 1 ) [2024-12-27 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:43:05' and `end` < '2024-12-27 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:43:18] Production.INFO: count ==1078 [2024-12-27 22:43:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:43:05 - End Time 2024-12-27 22:43:05 [2024-12-27 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117324', 'tblTempUsageDetail_20' ) start [2024-12-27 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117324', 'tblTempUsageDetail_20' ) end [2024-12-27 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117324', 'tblTempVendorCDR_20' ) start [2024-12-27 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117324', 'tblTempVendorCDR_20' ) end [2024-12-27 22:43:18] Production.INFO: ProcessCDR(1,14117324,1,1,2) [2024-12-27 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117324', 'tblTempUsageDetail_20' ) start [2024-12-27 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117324', 'tblTempUsageDetail_20' ) end [2024-12-27 22:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:43:21] Production.INFO: ==4859== Releasing lock... [2024-12-27 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:43:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-27 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:44:05 [end_date_ymd] => 2024-12-27 22:44:05 [RateCDR] => 1 ) [2024-12-27 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:44:05' and `end` < '2024-12-27 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:44:17] Production.INFO: count ==1079 [2024-12-27 22:44:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:44:05 - End Time 2024-12-27 22:44:05 [2024-12-27 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117329', 'tblTempUsageDetail_20' ) start [2024-12-27 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117329', 'tblTempUsageDetail_20' ) end [2024-12-27 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117329', 'tblTempVendorCDR_20' ) start [2024-12-27 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117329', 'tblTempVendorCDR_20' ) end [2024-12-27 22:44:18] Production.INFO: ProcessCDR(1,14117329,1,1,2) [2024-12-27 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117329', 'tblTempUsageDetail_20' ) start [2024-12-27 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117329', 'tblTempUsageDetail_20' ) end [2024-12-27 22:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:44:22] Production.INFO: ==4965== Releasing lock... [2024-12-27 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:44:22] Production.INFO: 36 MB #Memory Used# [2024-12-27 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:45:05 [end_date_ymd] => 2024-12-27 22:45:05 [RateCDR] => 1 ) [2024-12-27 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:45:05' and `end` < '2024-12-27 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:45:17] Production.INFO: count ==1079 [2024-12-27 22:45:17] Production.ERROR: pbx CDR StartTime 2024-12-27 19:45:05 - End Time 2024-12-27 22:45:05 [2024-12-27 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117333', 'tblTempUsageDetail_20' ) start [2024-12-27 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117333', 'tblTempUsageDetail_20' ) end [2024-12-27 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117333', 'tblTempVendorCDR_20' ) start [2024-12-27 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117333', 'tblTempVendorCDR_20' ) end [2024-12-27 22:45:17] Production.INFO: ProcessCDR(1,14117333,1,1,2) [2024-12-27 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117333', 'tblTempUsageDetail_20' ) start [2024-12-27 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117333', 'tblTempUsageDetail_20' ) end [2024-12-27 22:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:45:22] Production.INFO: ==5070== Releasing lock... [2024-12-27 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:45:22] Production.INFO: 36 MB #Memory Used# [2024-12-27 22:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:46:04 [end_date_ymd] => 2024-12-27 22:46:04 [RateCDR] => 1 ) [2024-12-27 22: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-27 19:46:04' and `end` < '2024-12-27 22:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:46:18] Production.INFO: count ==1082 [2024-12-27 22:46:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:46:04 - End Time 2024-12-27 22:46:04 [2024-12-27 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117339', 'tblTempUsageDetail_20' ) start [2024-12-27 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117339', 'tblTempUsageDetail_20' ) end [2024-12-27 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117339', 'tblTempVendorCDR_20' ) start [2024-12-27 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117339', 'tblTempVendorCDR_20' ) end [2024-12-27 22:46:18] Production.INFO: ProcessCDR(1,14117339,1,1,2) [2024-12-27 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117339', 'tblTempUsageDetail_20' ) start [2024-12-27 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117339', 'tblTempUsageDetail_20' ) end [2024-12-27 22:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:46:21] Production.INFO: ==5188== Releasing lock... [2024-12-27 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:46:21] Production.INFO: 36 MB #Memory Used# [2024-12-27 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:47:05 [end_date_ymd] => 2024-12-27 22:47:05 [RateCDR] => 1 ) [2024-12-27 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:47:05' and `end` < '2024-12-27 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:47:19] Production.INFO: count ==1080 [2024-12-27 22:47:19] Production.ERROR: pbx CDR StartTime 2024-12-27 19:47:05 - End Time 2024-12-27 22:47:05 [2024-12-27 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117344', 'tblTempUsageDetail_20' ) start [2024-12-27 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117344', 'tblTempUsageDetail_20' ) end [2024-12-27 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117344', 'tblTempVendorCDR_20' ) start [2024-12-27 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117344', 'tblTempVendorCDR_20' ) end [2024-12-27 22:47:19] Production.INFO: ProcessCDR(1,14117344,1,1,2) [2024-12-27 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117344', 'tblTempUsageDetail_20' ) start [2024-12-27 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117344', 'tblTempUsageDetail_20' ) end [2024-12-27 22:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:47:22] Production.INFO: ==5316== Releasing lock... [2024-12-27 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:47:22] Production.INFO: 36 MB #Memory Used# [2024-12-27 22:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:48:04 [end_date_ymd] => 2024-12-27 22:48:04 [RateCDR] => 1 ) [2024-12-27 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-27 19:48:04' and `end` < '2024-12-27 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-27 22:48:18] Production.INFO: count ==1080 [2024-12-27 22:48:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:48:04 - End Time 2024-12-27 22:48:04 [2024-12-27 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117349', 'tblTempUsageDetail_20' ) start [2024-12-27 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117349', 'tblTempUsageDetail_20' ) end [2024-12-27 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117349', 'tblTempVendorCDR_20' ) start [2024-12-27 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117349', 'tblTempVendorCDR_20' ) end [2024-12-27 22:48:18] Production.INFO: ProcessCDR(1,14117349,1,1,2) [2024-12-27 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117349', 'tblTempUsageDetail_20' ) start [2024-12-27 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117349', 'tblTempUsageDetail_20' ) end [2024-12-27 22:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:48:21] Production.INFO: ==5423== Releasing lock... [2024-12-27 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:48:21] Production.INFO: 36 MB #Memory Used# [2024-12-27 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:49:05 [end_date_ymd] => 2024-12-27 22:49:05 [RateCDR] => 1 ) [2024-12-27 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:49:05' and `end` < '2024-12-27 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:49:18] Production.INFO: count ==1081 [2024-12-27 22:49:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:49:05 - End Time 2024-12-27 22:49:05 [2024-12-27 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117354', 'tblTempUsageDetail_20' ) start [2024-12-27 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117354', 'tblTempUsageDetail_20' ) end [2024-12-27 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117354', 'tblTempVendorCDR_20' ) start [2024-12-27 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117354', 'tblTempVendorCDR_20' ) end [2024-12-27 22:49:18] Production.INFO: ProcessCDR(1,14117354,1,1,2) [2024-12-27 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117354', 'tblTempUsageDetail_20' ) start [2024-12-27 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117354', 'tblTempUsageDetail_20' ) end [2024-12-27 22:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:49:23] Production.INFO: ==5557== Releasing lock... [2024-12-27 22:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:49:23] Production.INFO: 36 MB #Memory Used# [2024-12-27 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:50:05 [end_date_ymd] => 2024-12-27 22:50:05 [RateCDR] => 1 ) [2024-12-27 22:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:50:05' and `end` < '2024-12-27 22:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:50:17] Production.INFO: count ==1083 [2024-12-27 22:50:17] Production.ERROR: pbx CDR StartTime 2024-12-27 19:50:05 - End Time 2024-12-27 22:50:05 [2024-12-27 22:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117360', 'tblTempUsageDetail_20' ) start [2024-12-27 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117360', 'tblTempUsageDetail_20' ) end [2024-12-27 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117360', 'tblTempVendorCDR_20' ) start [2024-12-27 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117360', 'tblTempVendorCDR_20' ) end [2024-12-27 22:50:17] Production.INFO: ProcessCDR(1,14117360,1,1,2) [2024-12-27 22:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117360', 'tblTempUsageDetail_20' ) start [2024-12-27 22:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117360', 'tblTempUsageDetail_20' ) end [2024-12-27 22:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:50:20] Production.INFO: ==5662== Releasing lock... [2024-12-27 22:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:50:20] Production.INFO: 36 MB #Memory Used# [2024-12-27 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:51:05 [end_date_ymd] => 2024-12-27 22:51:05 [RateCDR] => 1 ) [2024-12-27 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:51:05' and `end` < '2024-12-27 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:51:17] Production.INFO: count ==1076 [2024-12-27 22:51:17] Production.ERROR: pbx CDR StartTime 2024-12-27 19:51:05 - End Time 2024-12-27 22:51:05 [2024-12-27 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117365', 'tblTempUsageDetail_20' ) start [2024-12-27 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117365', 'tblTempUsageDetail_20' ) end [2024-12-27 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117365', 'tblTempVendorCDR_20' ) start [2024-12-27 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117365', 'tblTempVendorCDR_20' ) end [2024-12-27 22:51:18] Production.INFO: ProcessCDR(1,14117365,1,1,2) [2024-12-27 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117365', 'tblTempUsageDetail_20' ) start [2024-12-27 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117365', 'tblTempUsageDetail_20' ) end [2024-12-27 22:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:51:22] Production.INFO: ==5807== Releasing lock... [2024-12-27 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:51:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-27 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:52:05 [end_date_ymd] => 2024-12-27 22:52:05 [RateCDR] => 1 ) [2024-12-27 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:52:05' and `end` < '2024-12-27 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:52:18] Production.INFO: count ==1076 [2024-12-27 22:52:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:52:05 - End Time 2024-12-27 22:52:05 [2024-12-27 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117370', 'tblTempUsageDetail_20' ) start [2024-12-27 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117370', 'tblTempUsageDetail_20' ) end [2024-12-27 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117370', 'tblTempVendorCDR_20' ) start [2024-12-27 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117370', 'tblTempVendorCDR_20' ) end [2024-12-27 22:52:18] Production.INFO: ProcessCDR(1,14117370,1,1,2) [2024-12-27 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117370', 'tblTempUsageDetail_20' ) start [2024-12-27 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117370', 'tblTempUsageDetail_20' ) end [2024-12-27 22:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:52:21] Production.INFO: ==5909== Releasing lock... [2024-12-27 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:52:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-27 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:53:05 [end_date_ymd] => 2024-12-27 22:53:05 [RateCDR] => 1 ) [2024-12-27 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:53:05' and `end` < '2024-12-27 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:53:17] Production.INFO: count ==1072 [2024-12-27 22:53:17] Production.ERROR: pbx CDR StartTime 2024-12-27 19:53:05 - End Time 2024-12-27 22:53:05 [2024-12-27 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117375', 'tblTempUsageDetail_20' ) start [2024-12-27 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117375', 'tblTempUsageDetail_20' ) end [2024-12-27 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117375', 'tblTempVendorCDR_20' ) start [2024-12-27 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117375', 'tblTempVendorCDR_20' ) end [2024-12-27 22:53:17] Production.INFO: ProcessCDR(1,14117375,1,1,2) [2024-12-27 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117375', 'tblTempUsageDetail_20' ) start [2024-12-27 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117375', 'tblTempUsageDetail_20' ) end [2024-12-27 22:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:53:20] Production.INFO: ==6043== Releasing lock... [2024-12-27 22:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:53:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-27 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:54:05 [end_date_ymd] => 2024-12-27 22:54:05 [RateCDR] => 1 ) [2024-12-27 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:54:05' and `end` < '2024-12-27 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:54:19] Production.INFO: count ==1071 [2024-12-27 22:54:19] Production.ERROR: pbx CDR StartTime 2024-12-27 19:54:05 - End Time 2024-12-27 22:54:05 [2024-12-27 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117380', 'tblTempUsageDetail_20' ) start [2024-12-27 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117380', 'tblTempUsageDetail_20' ) end [2024-12-27 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117380', 'tblTempVendorCDR_20' ) start [2024-12-27 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117380', 'tblTempVendorCDR_20' ) end [2024-12-27 22:54:19] Production.INFO: ProcessCDR(1,14117380,1,1,2) [2024-12-27 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117380', 'tblTempUsageDetail_20' ) start [2024-12-27 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117380', 'tblTempUsageDetail_20' ) end [2024-12-27 22:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:54:22] Production.INFO: ==6147== Releasing lock... [2024-12-27 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:54:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-27 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:55:05 [end_date_ymd] => 2024-12-27 22:55:05 [RateCDR] => 1 ) [2024-12-27 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:55:05' and `end` < '2024-12-27 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:55:17] Production.INFO: count ==1072 [2024-12-27 22:55:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:55:05 - End Time 2024-12-27 22:55:05 [2024-12-27 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117385', 'tblTempUsageDetail_20' ) start [2024-12-27 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117385', 'tblTempUsageDetail_20' ) end [2024-12-27 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117385', 'tblTempVendorCDR_20' ) start [2024-12-27 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117385', 'tblTempVendorCDR_20' ) end [2024-12-27 22:55:18] Production.INFO: ProcessCDR(1,14117385,1,1,2) [2024-12-27 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117385', 'tblTempUsageDetail_20' ) start [2024-12-27 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117385', 'tblTempUsageDetail_20' ) end [2024-12-27 22:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:55:22] Production.INFO: ==6274== Releasing lock... [2024-12-27 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:55:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-27 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:56:05 [end_date_ymd] => 2024-12-27 22:56:05 [RateCDR] => 1 ) [2024-12-27 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:56:05' and `end` < '2024-12-27 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:56:17] Production.INFO: count ==1071 [2024-12-27 22:56:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:56:05 - End Time 2024-12-27 22:56:05 [2024-12-27 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117390', 'tblTempUsageDetail_20' ) start [2024-12-27 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117390', 'tblTempUsageDetail_20' ) end [2024-12-27 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117390', 'tblTempVendorCDR_20' ) start [2024-12-27 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117390', 'tblTempVendorCDR_20' ) end [2024-12-27 22:56:18] Production.INFO: ProcessCDR(1,14117390,1,1,2) [2024-12-27 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117390', 'tblTempUsageDetail_20' ) start [2024-12-27 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117390', 'tblTempUsageDetail_20' ) end [2024-12-27 22:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:56:21] Production.INFO: ==6385== Releasing lock... [2024-12-27 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:56:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-27 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:57:05 [end_date_ymd] => 2024-12-27 22:57:05 [RateCDR] => 1 ) [2024-12-27 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:57:05' and `end` < '2024-12-27 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:57:19] Production.INFO: count ==1062 [2024-12-27 22:57:19] Production.ERROR: pbx CDR StartTime 2024-12-27 19:57:05 - End Time 2024-12-27 22:57:05 [2024-12-27 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117395', 'tblTempUsageDetail_20' ) start [2024-12-27 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117395', 'tblTempUsageDetail_20' ) end [2024-12-27 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117395', 'tblTempVendorCDR_20' ) start [2024-12-27 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117395', 'tblTempVendorCDR_20' ) end [2024-12-27 22:57:19] Production.INFO: ProcessCDR(1,14117395,1,1,2) [2024-12-27 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117395', 'tblTempUsageDetail_20' ) start [2024-12-27 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117395', 'tblTempUsageDetail_20' ) end [2024-12-27 22:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:57:22] Production.INFO: ==6516== Releasing lock... [2024-12-27 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:57:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-27 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:58:05 [end_date_ymd] => 2024-12-27 22:58:05 [RateCDR] => 1 ) [2024-12-27 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-27 19:58:05' and `end` < '2024-12-27 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-27 22:58:19] Production.INFO: count ==1052 [2024-12-27 22:58:19] Production.ERROR: pbx CDR StartTime 2024-12-27 19:58:05 - End Time 2024-12-27 22:58:05 [2024-12-27 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117400', 'tblTempUsageDetail_20' ) start [2024-12-27 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117400', 'tblTempUsageDetail_20' ) end [2024-12-27 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117400', 'tblTempVendorCDR_20' ) start [2024-12-27 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117400', 'tblTempVendorCDR_20' ) end [2024-12-27 22:58:19] Production.INFO: ProcessCDR(1,14117400,1,1,2) [2024-12-27 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117400', 'tblTempUsageDetail_20' ) start [2024-12-27 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117400', 'tblTempUsageDetail_20' ) end [2024-12-27 22:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:58:22] Production.INFO: ==6632== Releasing lock... [2024-12-27 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:58:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-27 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 19:59:05 [end_date_ymd] => 2024-12-27 22:59:05 [RateCDR] => 1 ) [2024-12-27 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 19:59:05' and `end` < '2024-12-27 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 22:59:18] Production.INFO: count ==1029 [2024-12-27 22:59:18] Production.ERROR: pbx CDR StartTime 2024-12-27 19:59:05 - End Time 2024-12-27 22:59:05 [2024-12-27 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117405', 'tblTempUsageDetail_20' ) start [2024-12-27 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117405', 'tblTempUsageDetail_20' ) end [2024-12-27 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117405', 'tblTempVendorCDR_20' ) start [2024-12-27 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117405', 'tblTempVendorCDR_20' ) end [2024-12-27 22:59:18] Production.INFO: ProcessCDR(1,14117405,1,1,2) [2024-12-27 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117405', 'tblTempUsageDetail_20' ) start [2024-12-27 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117405', 'tblTempUsageDetail_20' ) end [2024-12-27 22:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 22:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 22:59:21] Production.INFO: ==6800== Releasing lock... [2024-12-27 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 22:59:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-27 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:00:05 [end_date_ymd] => 2024-12-27 23:00:05 [RateCDR] => 1 ) [2024-12-27 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-27 20:00:05' and `end` < '2024-12-27 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-27 23:00:18] Production.INFO: count ==1029 [2024-12-27 23:00:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:00:05 - End Time 2024-12-27 23:00:05 [2024-12-27 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117410', 'tblTempUsageDetail_20' ) start [2024-12-27 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117410', 'tblTempUsageDetail_20' ) end [2024-12-27 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117410', 'tblTempVendorCDR_20' ) start [2024-12-27 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117410', 'tblTempVendorCDR_20' ) end [2024-12-27 23:00:18] Production.INFO: ProcessCDR(1,14117410,1,1,2) [2024-12-27 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117410', 'tblTempUsageDetail_20' ) start [2024-12-27 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117410', 'tblTempUsageDetail_20' ) end [2024-12-27 23:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:00:22] Production.INFO: ==6912== Releasing lock... [2024-12-27 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:00:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-27 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:01:06 [end_date_ymd] => 2024-12-27 23:01:06 [RateCDR] => 1 ) [2024-12-27 23: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-27 20:01:06' and `end` < '2024-12-27 23: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-27 23:01:18] Production.INFO: count ==983 [2024-12-27 23:01:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:01:06 - End Time 2024-12-27 23:01:06 [2024-12-27 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117416', 'tblTempUsageDetail_20' ) start [2024-12-27 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117416', 'tblTempUsageDetail_20' ) end [2024-12-27 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117416', 'tblTempVendorCDR_20' ) start [2024-12-27 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117416', 'tblTempVendorCDR_20' ) end [2024-12-27 23:01:18] Production.INFO: ProcessCDR(1,14117416,1,1,2) [2024-12-27 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117416', 'tblTempUsageDetail_20' ) start [2024-12-27 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117416', 'tblTempUsageDetail_20' ) end [2024-12-27 23:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:01:23] Production.INFO: ==7024== Releasing lock... [2024-12-27 23:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:01:23] Production.INFO: 35.25 MB #Memory Used# [2024-12-27 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:02:05 [end_date_ymd] => 2024-12-27 23:02:05 [RateCDR] => 1 ) [2024-12-27 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:02:05' and `end` < '2024-12-27 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:02:17] Production.INFO: count ==982 [2024-12-27 23:02:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:02:05 - End Time 2024-12-27 23:02:05 [2024-12-27 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117421', 'tblTempUsageDetail_20' ) start [2024-12-27 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117421', 'tblTempUsageDetail_20' ) end [2024-12-27 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117421', 'tblTempVendorCDR_20' ) start [2024-12-27 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117421', 'tblTempVendorCDR_20' ) end [2024-12-27 23:02:18] Production.INFO: ProcessCDR(1,14117421,1,1,2) [2024-12-27 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117421', 'tblTempUsageDetail_20' ) start [2024-12-27 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117421', 'tblTempUsageDetail_20' ) end [2024-12-27 23:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:02:21] Production.INFO: ==7197== Releasing lock... [2024-12-27 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:02:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-27 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:03:05 [end_date_ymd] => 2024-12-27 23:03:05 [RateCDR] => 1 ) [2024-12-27 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:03:05' and `end` < '2024-12-27 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:03:17] Production.INFO: count ==987 [2024-12-27 23:03:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:03:05 - End Time 2024-12-27 23:03:05 [2024-12-27 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117426', 'tblTempUsageDetail_20' ) start [2024-12-27 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117426', 'tblTempUsageDetail_20' ) end [2024-12-27 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117426', 'tblTempVendorCDR_20' ) start [2024-12-27 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117426', 'tblTempVendorCDR_20' ) end [2024-12-27 23:03:18] Production.INFO: ProcessCDR(1,14117426,1,1,2) [2024-12-27 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117426', 'tblTempUsageDetail_20' ) start [2024-12-27 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117426', 'tblTempUsageDetail_20' ) end [2024-12-27 23:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:03:21] Production.INFO: ==7292== Releasing lock... [2024-12-27 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:03:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-27 23:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:04:04 [end_date_ymd] => 2024-12-27 23:04:04 [RateCDR] => 1 ) [2024-12-27 23: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-27 20:04:04' and `end` < '2024-12-27 23: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-27 23:04:17] Production.INFO: count ==992 [2024-12-27 23:04:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:04:04 - End Time 2024-12-27 23:04:04 [2024-12-27 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117431', 'tblTempUsageDetail_20' ) start [2024-12-27 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117431', 'tblTempUsageDetail_20' ) end [2024-12-27 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117431', 'tblTempVendorCDR_20' ) start [2024-12-27 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117431', 'tblTempVendorCDR_20' ) end [2024-12-27 23:04:17] Production.INFO: ProcessCDR(1,14117431,1,1,2) [2024-12-27 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117431', 'tblTempUsageDetail_20' ) start [2024-12-27 23:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117431', 'tblTempUsageDetail_20' ) end [2024-12-27 23:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:04:20] Production.INFO: ==7374== Releasing lock... [2024-12-27 23:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:04:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-27 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:05:05 [end_date_ymd] => 2024-12-27 23:05:05 [RateCDR] => 1 ) [2024-12-27 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-27 20:05:05' and `end` < '2024-12-27 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-27 23:05:17] Production.INFO: count ==992 [2024-12-27 23:05:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:05:05 - End Time 2024-12-27 23:05:05 [2024-12-27 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117436', 'tblTempUsageDetail_20' ) start [2024-12-27 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117436', 'tblTempUsageDetail_20' ) end [2024-12-27 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117436', 'tblTempVendorCDR_20' ) start [2024-12-27 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117436', 'tblTempVendorCDR_20' ) end [2024-12-27 23:05:17] Production.INFO: ProcessCDR(1,14117436,1,1,2) [2024-12-27 23:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117436', 'tblTempUsageDetail_20' ) start [2024-12-27 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117436', 'tblTempUsageDetail_20' ) end [2024-12-27 23:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:05:20] Production.INFO: ==7531== Releasing lock... [2024-12-27 23:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:05:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-27 23:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:06:04 [end_date_ymd] => 2024-12-27 23:06:04 [RateCDR] => 1 ) [2024-12-27 23: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-27 20:06:04' and `end` < '2024-12-27 23: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-27 23:06:18] Production.INFO: count ==992 [2024-12-27 23:06:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:06:04 - End Time 2024-12-27 23:06:04 [2024-12-27 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117441', 'tblTempUsageDetail_20' ) start [2024-12-27 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117441', 'tblTempUsageDetail_20' ) end [2024-12-27 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117441', 'tblTempVendorCDR_20' ) start [2024-12-27 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117441', 'tblTempVendorCDR_20' ) end [2024-12-27 23:06:18] Production.INFO: ProcessCDR(1,14117441,1,1,2) [2024-12-27 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117441', 'tblTempUsageDetail_20' ) start [2024-12-27 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117441', 'tblTempUsageDetail_20' ) end [2024-12-27 23:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:06:21] Production.INFO: ==7604== Releasing lock... [2024-12-27 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:06:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-27 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:07:05 [end_date_ymd] => 2024-12-27 23:07:05 [RateCDR] => 1 ) [2024-12-27 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:07:05' and `end` < '2024-12-27 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:07:18] Production.INFO: count ==993 [2024-12-27 23:07:19] Production.ERROR: pbx CDR StartTime 2024-12-27 20:07:05 - End Time 2024-12-27 23:07:05 [2024-12-27 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117446', 'tblTempUsageDetail_20' ) start [2024-12-27 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117446', 'tblTempUsageDetail_20' ) end [2024-12-27 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117446', 'tblTempVendorCDR_20' ) start [2024-12-27 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117446', 'tblTempVendorCDR_20' ) end [2024-12-27 23:07:19] Production.INFO: ProcessCDR(1,14117446,1,1,2) [2024-12-27 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117446', 'tblTempUsageDetail_20' ) start [2024-12-27 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117446', 'tblTempUsageDetail_20' ) end [2024-12-27 23:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:07:22] Production.INFO: ==7679== Releasing lock... [2024-12-27 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:07:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-27 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:08:05 [end_date_ymd] => 2024-12-27 23:08:05 [RateCDR] => 1 ) [2024-12-27 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:08:05' and `end` < '2024-12-27 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:08:20] Production.INFO: count ==993 [2024-12-27 23:08:20] Production.ERROR: pbx CDR StartTime 2024-12-27 20:08:05 - End Time 2024-12-27 23:08:05 [2024-12-27 23:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117451', 'tblTempUsageDetail_20' ) start [2024-12-27 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117451', 'tblTempUsageDetail_20' ) end [2024-12-27 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117451', 'tblTempVendorCDR_20' ) start [2024-12-27 23:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117451', 'tblTempVendorCDR_20' ) end [2024-12-27 23:08:20] Production.INFO: ProcessCDR(1,14117451,1,1,2) [2024-12-27 23:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117451', 'tblTempUsageDetail_20' ) start [2024-12-27 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117451', 'tblTempUsageDetail_20' ) end [2024-12-27 23:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:08:23] Production.INFO: ==7832== Releasing lock... [2024-12-27 23:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:08:23] Production.INFO: 35.25 MB #Memory Used# [2024-12-27 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:09:05 [end_date_ymd] => 2024-12-27 23:09:05 [RateCDR] => 1 ) [2024-12-27 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:09:05' and `end` < '2024-12-27 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:09:17] Production.INFO: count ==993 [2024-12-27 23:09:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:09:05 - End Time 2024-12-27 23:09:05 [2024-12-27 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117456', 'tblTempUsageDetail_20' ) start [2024-12-27 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117456', 'tblTempUsageDetail_20' ) end [2024-12-27 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117456', 'tblTempVendorCDR_20' ) start [2024-12-27 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117456', 'tblTempVendorCDR_20' ) end [2024-12-27 23:09:17] Production.INFO: ProcessCDR(1,14117456,1,1,2) [2024-12-27 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117456', 'tblTempUsageDetail_20' ) start [2024-12-27 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117456', 'tblTempUsageDetail_20' ) end [2024-12-27 23:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:09:20] Production.INFO: ==7903== Releasing lock... [2024-12-27 23:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:09:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-27 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:10:06 [end_date_ymd] => 2024-12-27 23:10:06 [RateCDR] => 1 ) [2024-12-27 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:10:06' and `end` < '2024-12-27 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:10:18] Production.INFO: count ==987 [2024-12-27 23:10:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:10:06 - End Time 2024-12-27 23:10:06 [2024-12-27 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117461', 'tblTempUsageDetail_20' ) start [2024-12-27 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117461', 'tblTempUsageDetail_20' ) end [2024-12-27 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117461', 'tblTempVendorCDR_20' ) start [2024-12-27 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117461', 'tblTempVendorCDR_20' ) end [2024-12-27 23:10:18] Production.INFO: ProcessCDR(1,14117461,1,1,2) [2024-12-27 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117461', 'tblTempUsageDetail_20' ) start [2024-12-27 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117461', 'tblTempUsageDetail_20' ) end [2024-12-27 23:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:10:21] Production.INFO: ==7976== Releasing lock... [2024-12-27 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:10:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-27 23:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:11:04 [end_date_ymd] => 2024-12-27 23:11:04 [RateCDR] => 1 ) [2024-12-27 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-27 20:11:04' and `end` < '2024-12-27 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-27 23:11:17] Production.INFO: count ==960 [2024-12-27 23:11:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:11:04 - End Time 2024-12-27 23:11:04 [2024-12-27 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117467', 'tblTempUsageDetail_20' ) start [2024-12-27 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117467', 'tblTempUsageDetail_20' ) end [2024-12-27 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117467', 'tblTempVendorCDR_20' ) start [2024-12-27 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117467', 'tblTempVendorCDR_20' ) end [2024-12-27 23:11:17] Production.INFO: ProcessCDR(1,14117467,1,1,2) [2024-12-27 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117467', 'tblTempUsageDetail_20' ) start [2024-12-27 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117467', 'tblTempUsageDetail_20' ) end [2024-12-27 23:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:11:20] Production.INFO: ==8048== Releasing lock... [2024-12-27 23:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:11:20] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:12:05 [end_date_ymd] => 2024-12-27 23:12:05 [RateCDR] => 1 ) [2024-12-27 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:12:05' and `end` < '2024-12-27 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:12:18] Production.INFO: count ==953 [2024-12-27 23:12:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:12:05 - End Time 2024-12-27 23:12:05 [2024-12-27 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117472', 'tblTempUsageDetail_20' ) start [2024-12-27 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117472', 'tblTempUsageDetail_20' ) end [2024-12-27 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117472', 'tblTempVendorCDR_20' ) start [2024-12-27 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117472', 'tblTempVendorCDR_20' ) end [2024-12-27 23:12:18] Production.INFO: ProcessCDR(1,14117472,1,1,2) [2024-12-27 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117472', 'tblTempUsageDetail_20' ) start [2024-12-27 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117472', 'tblTempUsageDetail_20' ) end [2024-12-27 23:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:12:21] Production.INFO: ==8200== Releasing lock... [2024-12-27 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:12:21] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:13:05 [end_date_ymd] => 2024-12-27 23:13:05 [RateCDR] => 1 ) [2024-12-27 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:13:05' and `end` < '2024-12-27 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:13:18] Production.INFO: count ==952 [2024-12-27 23:13:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:13:05 - End Time 2024-12-27 23:13:05 [2024-12-27 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117477', 'tblTempUsageDetail_20' ) start [2024-12-27 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117477', 'tblTempUsageDetail_20' ) end [2024-12-27 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117477', 'tblTempVendorCDR_20' ) start [2024-12-27 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117477', 'tblTempVendorCDR_20' ) end [2024-12-27 23:13:18] Production.INFO: ProcessCDR(1,14117477,1,1,2) [2024-12-27 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117477', 'tblTempUsageDetail_20' ) start [2024-12-27 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117477', 'tblTempUsageDetail_20' ) end [2024-12-27 23:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:13:22] Production.INFO: ==8271== Releasing lock... [2024-12-27 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:13:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-27 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:14:05 [end_date_ymd] => 2024-12-27 23:14:05 [RateCDR] => 1 ) [2024-12-27 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:14:05' and `end` < '2024-12-27 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:14:18] Production.INFO: count ==952 [2024-12-27 23:14:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:14:05 - End Time 2024-12-27 23:14:05 [2024-12-27 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117482', 'tblTempUsageDetail_20' ) start [2024-12-27 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117482', 'tblTempUsageDetail_20' ) end [2024-12-27 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117482', 'tblTempVendorCDR_20' ) start [2024-12-27 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117482', 'tblTempVendorCDR_20' ) end [2024-12-27 23:14:18] Production.INFO: ProcessCDR(1,14117482,1,1,2) [2024-12-27 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117482', 'tblTempUsageDetail_20' ) start [2024-12-27 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117482', 'tblTempUsageDetail_20' ) end [2024-12-27 23:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:14:22] Production.INFO: ==8344== Releasing lock... [2024-12-27 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:14:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-27 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:15:05 [end_date_ymd] => 2024-12-27 23:15:05 [RateCDR] => 1 ) [2024-12-27 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:15:05' and `end` < '2024-12-27 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:15:19] Production.INFO: count ==954 [2024-12-27 23:15:19] Production.ERROR: pbx CDR StartTime 2024-12-27 20:15:05 - End Time 2024-12-27 23:15:05 [2024-12-27 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117487', 'tblTempUsageDetail_20' ) start [2024-12-27 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117487', 'tblTempUsageDetail_20' ) end [2024-12-27 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117487', 'tblTempVendorCDR_20' ) start [2024-12-27 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117487', 'tblTempVendorCDR_20' ) end [2024-12-27 23:15:19] Production.INFO: ProcessCDR(1,14117487,1,1,2) [2024-12-27 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117487', 'tblTempUsageDetail_20' ) start [2024-12-27 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117487', 'tblTempUsageDetail_20' ) end [2024-12-27 23:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:15:22] Production.INFO: ==8532== Releasing lock... [2024-12-27 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:15:22] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:16:05 [end_date_ymd] => 2024-12-27 23:16:05 [RateCDR] => 1 ) [2024-12-27 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:16:05' and `end` < '2024-12-27 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:16:18] Production.INFO: count ==952 [2024-12-27 23:16:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:16:05 - End Time 2024-12-27 23:16:05 [2024-12-27 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117492', 'tblTempUsageDetail_20' ) start [2024-12-27 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117492', 'tblTempUsageDetail_20' ) end [2024-12-27 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117492', 'tblTempVendorCDR_20' ) start [2024-12-27 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117492', 'tblTempVendorCDR_20' ) end [2024-12-27 23:16:18] Production.INFO: ProcessCDR(1,14117492,1,1,2) [2024-12-27 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117492', 'tblTempUsageDetail_20' ) start [2024-12-27 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117492', 'tblTempUsageDetail_20' ) end [2024-12-27 23:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:16:22] Production.INFO: ==8603== Releasing lock... [2024-12-27 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:16:22] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:17:04 [end_date_ymd] => 2024-12-27 23:17:04 [RateCDR] => 1 ) [2024-12-27 23: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-27 20:17:04' and `end` < '2024-12-27 23: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-27 23:17:17] Production.INFO: count ==952 [2024-12-27 23:17:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:17:04 - End Time 2024-12-27 23:17:04 [2024-12-27 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117497', 'tblTempUsageDetail_20' ) start [2024-12-27 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117497', 'tblTempUsageDetail_20' ) end [2024-12-27 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117497', 'tblTempVendorCDR_20' ) start [2024-12-27 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117497', 'tblTempVendorCDR_20' ) end [2024-12-27 23:17:17] Production.INFO: ProcessCDR(1,14117497,1,1,2) [2024-12-27 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117497', 'tblTempUsageDetail_20' ) start [2024-12-27 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117497', 'tblTempUsageDetail_20' ) end [2024-12-27 23:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:17:20] Production.INFO: ==8673== Releasing lock... [2024-12-27 23:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:17:20] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:18:05 [end_date_ymd] => 2024-12-27 23:18:05 [RateCDR] => 1 ) [2024-12-27 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:18:05' and `end` < '2024-12-27 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:18:20] Production.INFO: count ==952 [2024-12-27 23:18:20] Production.ERROR: pbx CDR StartTime 2024-12-27 20:18:05 - End Time 2024-12-27 23:18:05 [2024-12-27 23:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117502', 'tblTempUsageDetail_20' ) start [2024-12-27 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117502', 'tblTempUsageDetail_20' ) end [2024-12-27 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117502', 'tblTempVendorCDR_20' ) start [2024-12-27 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117502', 'tblTempVendorCDR_20' ) end [2024-12-27 23:18:20] Production.INFO: ProcessCDR(1,14117502,1,1,2) [2024-12-27 23:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117502', 'tblTempUsageDetail_20' ) start [2024-12-27 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117502', 'tblTempUsageDetail_20' ) end [2024-12-27 23:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:18:23] Production.INFO: ==8746== Releasing lock... [2024-12-27 23:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:18:23] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:19:04 [end_date_ymd] => 2024-12-27 23:19:04 [RateCDR] => 1 ) [2024-12-27 23:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:19:04' and `end` < '2024-12-27 23:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:19:17] Production.INFO: count ==948 [2024-12-27 23:19:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:19:04 - End Time 2024-12-27 23:19:04 [2024-12-27 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117507', 'tblTempUsageDetail_20' ) start [2024-12-27 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117507', 'tblTempUsageDetail_20' ) end [2024-12-27 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117507', 'tblTempVendorCDR_20' ) start [2024-12-27 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117507', 'tblTempVendorCDR_20' ) end [2024-12-27 23:19:18] Production.INFO: ProcessCDR(1,14117507,1,1,2) [2024-12-27 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117507', 'tblTempUsageDetail_20' ) start [2024-12-27 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117507', 'tblTempUsageDetail_20' ) end [2024-12-27 23:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:19:21] Production.INFO: ==8815== Releasing lock... [2024-12-27 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:19:21] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:20:05 [end_date_ymd] => 2024-12-27 23:20:05 [RateCDR] => 1 ) [2024-12-27 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:20:05' and `end` < '2024-12-27 23:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:20:18] Production.INFO: count ==948 [2024-12-27 23:20:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:20:05 - End Time 2024-12-27 23:20:05 [2024-12-27 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117513', 'tblTempUsageDetail_20' ) start [2024-12-27 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117513', 'tblTempUsageDetail_20' ) end [2024-12-27 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117513', 'tblTempVendorCDR_20' ) start [2024-12-27 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117513', 'tblTempVendorCDR_20' ) end [2024-12-27 23:20:18] Production.INFO: ProcessCDR(1,14117513,1,1,2) [2024-12-27 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117513', 'tblTempUsageDetail_20' ) start [2024-12-27 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117513', 'tblTempUsageDetail_20' ) end [2024-12-27 23:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:20:21] Production.INFO: ==8889== Releasing lock... [2024-12-27 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:20:21] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:21:04 [end_date_ymd] => 2024-12-27 23:21:04 [RateCDR] => 1 ) [2024-12-27 23: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-27 20:21:04' and `end` < '2024-12-27 23: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-27 23:21:17] Production.INFO: count ==927 [2024-12-27 23:21:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:21:04 - End Time 2024-12-27 23:21:04 [2024-12-27 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117518', 'tblTempUsageDetail_20' ) start [2024-12-27 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117518', 'tblTempUsageDetail_20' ) end [2024-12-27 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117518', 'tblTempVendorCDR_20' ) start [2024-12-27 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117518', 'tblTempVendorCDR_20' ) end [2024-12-27 23:21:17] Production.INFO: ProcessCDR(1,14117518,1,1,2) [2024-12-27 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117518', 'tblTempUsageDetail_20' ) start [2024-12-27 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117518', 'tblTempUsageDetail_20' ) end [2024-12-27 23:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:21:20] Production.INFO: ==8963== Releasing lock... [2024-12-27 23:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:21:20] Production.INFO: 34.5 MB #Memory Used# [2024-12-27 23:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:22:04 [end_date_ymd] => 2024-12-27 23:22:04 [RateCDR] => 1 ) [2024-12-27 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-27 20:22:04' and `end` < '2024-12-27 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-27 23:22:18] Production.INFO: count ==927 [2024-12-27 23:22:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:22:04 - End Time 2024-12-27 23:22:04 [2024-12-27 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117523', 'tblTempUsageDetail_20' ) start [2024-12-27 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117523', 'tblTempUsageDetail_20' ) end [2024-12-27 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117523', 'tblTempVendorCDR_20' ) start [2024-12-27 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117523', 'tblTempVendorCDR_20' ) end [2024-12-27 23:22:18] Production.INFO: ProcessCDR(1,14117523,1,1,2) [2024-12-27 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117523', 'tblTempUsageDetail_20' ) start [2024-12-27 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117523', 'tblTempUsageDetail_20' ) end [2024-12-27 23:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:22:21] Production.INFO: ==9038== Releasing lock... [2024-12-27 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:22:21] Production.INFO: 34.5 MB #Memory Used# [2024-12-27 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:23:05 [end_date_ymd] => 2024-12-27 23:23:05 [RateCDR] => 1 ) [2024-12-27 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:23:05' and `end` < '2024-12-27 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:23:17] Production.INFO: count ==928 [2024-12-27 23:23:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:23:05 - End Time 2024-12-27 23:23:05 [2024-12-27 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117528', 'tblTempUsageDetail_20' ) start [2024-12-27 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117528', 'tblTempUsageDetail_20' ) end [2024-12-27 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117528', 'tblTempVendorCDR_20' ) start [2024-12-27 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117528', 'tblTempVendorCDR_20' ) end [2024-12-27 23:23:17] Production.INFO: ProcessCDR(1,14117528,1,1,2) [2024-12-27 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117528', 'tblTempUsageDetail_20' ) start [2024-12-27 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117528', 'tblTempUsageDetail_20' ) end [2024-12-27 23:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:23:22] Production.INFO: ==9117== Releasing lock... [2024-12-27 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:23:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-27 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:24:05 [end_date_ymd] => 2024-12-27 23:24:05 [RateCDR] => 1 ) [2024-12-27 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:24:05' and `end` < '2024-12-27 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:24:17] Production.INFO: count ==928 [2024-12-27 23:24:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:24:05 - End Time 2024-12-27 23:24:05 [2024-12-27 23:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117533', 'tblTempUsageDetail_20' ) start [2024-12-27 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117533', 'tblTempUsageDetail_20' ) end [2024-12-27 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117533', 'tblTempVendorCDR_20' ) start [2024-12-27 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117533', 'tblTempVendorCDR_20' ) end [2024-12-27 23:24:17] Production.INFO: ProcessCDR(1,14117533,1,1,2) [2024-12-27 23:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117533', 'tblTempUsageDetail_20' ) start [2024-12-27 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117533', 'tblTempUsageDetail_20' ) end [2024-12-27 23:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:24:20] Production.INFO: ==9192== Releasing lock... [2024-12-27 23:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:24:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-27 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:25:05 [end_date_ymd] => 2024-12-27 23:25:05 [RateCDR] => 1 ) [2024-12-27 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:25:05' and `end` < '2024-12-27 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:25:19] Production.INFO: count ==933 [2024-12-27 23:25:19] Production.ERROR: pbx CDR StartTime 2024-12-27 20:25:05 - End Time 2024-12-27 23:25:05 [2024-12-27 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117538', 'tblTempUsageDetail_20' ) start [2024-12-27 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117538', 'tblTempUsageDetail_20' ) end [2024-12-27 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117538', 'tblTempVendorCDR_20' ) start [2024-12-27 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117538', 'tblTempVendorCDR_20' ) end [2024-12-27 23:25:19] Production.INFO: ProcessCDR(1,14117538,1,1,2) [2024-12-27 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117538', 'tblTempUsageDetail_20' ) start [2024-12-27 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117538', 'tblTempUsageDetail_20' ) end [2024-12-27 23:25:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:25:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:25:24] Production.INFO: ==9267== Releasing lock... [2024-12-27 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:25:24] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:26:05 [end_date_ymd] => 2024-12-27 23:26:05 [RateCDR] => 1 ) [2024-12-27 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:26:05' and `end` < '2024-12-27 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:26:17] Production.INFO: count ==936 [2024-12-27 23:26:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:26:05 - End Time 2024-12-27 23:26:05 [2024-12-27 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117543', 'tblTempUsageDetail_20' ) start [2024-12-27 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117543', 'tblTempUsageDetail_20' ) end [2024-12-27 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117543', 'tblTempVendorCDR_20' ) start [2024-12-27 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117543', 'tblTempVendorCDR_20' ) end [2024-12-27 23:26:17] Production.INFO: ProcessCDR(1,14117543,1,1,2) [2024-12-27 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117543', 'tblTempUsageDetail_20' ) start [2024-12-27 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117543', 'tblTempUsageDetail_20' ) end [2024-12-27 23:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:26:20] Production.INFO: ==9340== Releasing lock... [2024-12-27 23:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:26:20] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:27:05 [end_date_ymd] => 2024-12-27 23:27:05 [RateCDR] => 1 ) [2024-12-27 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:27:05' and `end` < '2024-12-27 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:27:18] Production.INFO: count ==937 [2024-12-27 23:27:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:27:05 - End Time 2024-12-27 23:27:05 [2024-12-27 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117548', 'tblTempUsageDetail_20' ) start [2024-12-27 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117548', 'tblTempUsageDetail_20' ) end [2024-12-27 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117548', 'tblTempVendorCDR_20' ) start [2024-12-27 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117548', 'tblTempVendorCDR_20' ) end [2024-12-27 23:27:18] Production.INFO: ProcessCDR(1,14117548,1,1,2) [2024-12-27 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117548', 'tblTempUsageDetail_20' ) start [2024-12-27 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117548', 'tblTempUsageDetail_20' ) end [2024-12-27 23:27:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:27:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:27:23] Production.INFO: ==9415== Releasing lock... [2024-12-27 23:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:27:23] Production.INFO: 35.25 MB #Memory Used# [2024-12-27 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:28:05 [end_date_ymd] => 2024-12-27 23:28:05 [RateCDR] => 1 ) [2024-12-27 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:28:05' and `end` < '2024-12-27 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:28:17] Production.INFO: count ==936 [2024-12-27 23:28:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:28:05 - End Time 2024-12-27 23:28:05 [2024-12-27 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117553', 'tblTempUsageDetail_20' ) start [2024-12-27 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117553', 'tblTempUsageDetail_20' ) end [2024-12-27 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117553', 'tblTempVendorCDR_20' ) start [2024-12-27 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117553', 'tblTempVendorCDR_20' ) end [2024-12-27 23:28:17] Production.INFO: ProcessCDR(1,14117553,1,1,2) [2024-12-27 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117553', 'tblTempUsageDetail_20' ) start [2024-12-27 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117553', 'tblTempUsageDetail_20' ) end [2024-12-27 23:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:28:20] Production.INFO: ==9490== Releasing lock... [2024-12-27 23:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:28:20] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:29:05 [end_date_ymd] => 2024-12-27 23:29:05 [RateCDR] => 1 ) [2024-12-27 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:29:05' and `end` < '2024-12-27 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:29:20] Production.INFO: count ==939 [2024-12-27 23:29:20] Production.ERROR: pbx CDR StartTime 2024-12-27 20:29:05 - End Time 2024-12-27 23:29:05 [2024-12-27 23:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117558', 'tblTempUsageDetail_20' ) start [2024-12-27 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117558', 'tblTempUsageDetail_20' ) end [2024-12-27 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117558', 'tblTempVendorCDR_20' ) start [2024-12-27 23:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117558', 'tblTempVendorCDR_20' ) end [2024-12-27 23:29:20] Production.INFO: ProcessCDR(1,14117558,1,1,2) [2024-12-27 23:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117558', 'tblTempUsageDetail_20' ) start [2024-12-27 23:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117558', 'tblTempUsageDetail_20' ) end [2024-12-27 23:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:29:24] Production.INFO: ==9564== Releasing lock... [2024-12-27 23:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:29:24] Production.INFO: 34.75 MB #Memory Used# [2024-12-27 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:30:06 [end_date_ymd] => 2024-12-27 23:30:06 [RateCDR] => 1 ) [2024-12-27 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:30:06' and `end` < '2024-12-27 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:30:19] Production.INFO: count ==937 [2024-12-27 23:30:19] Production.ERROR: pbx CDR StartTime 2024-12-27 20:30:06 - End Time 2024-12-27 23:30:06 [2024-12-27 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117564', 'tblTempUsageDetail_20' ) start [2024-12-27 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117564', 'tblTempUsageDetail_20' ) end [2024-12-27 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117564', 'tblTempVendorCDR_20' ) start [2024-12-27 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117564', 'tblTempVendorCDR_20' ) end [2024-12-27 23:30:19] Production.INFO: ProcessCDR(1,14117564,1,1,2) [2024-12-27 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117564', 'tblTempUsageDetail_20' ) start [2024-12-27 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117564', 'tblTempUsageDetail_20' ) end [2024-12-27 23:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:30:22] Production.INFO: ==9640== Releasing lock... [2024-12-27 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:30:22] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:31:05 [end_date_ymd] => 2024-12-27 23:31:05 [RateCDR] => 1 ) [2024-12-27 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:31:05' and `end` < '2024-12-27 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:31:17] Production.INFO: count ==922 [2024-12-27 23:31:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:31:05 - End Time 2024-12-27 23:31:05 [2024-12-27 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117569', 'tblTempUsageDetail_20' ) start [2024-12-27 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117569', 'tblTempUsageDetail_20' ) end [2024-12-27 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117569', 'tblTempVendorCDR_20' ) start [2024-12-27 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117569', 'tblTempVendorCDR_20' ) end [2024-12-27 23:31:17] Production.INFO: ProcessCDR(1,14117569,1,1,2) [2024-12-27 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117569', 'tblTempUsageDetail_20' ) start [2024-12-27 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117569', 'tblTempUsageDetail_20' ) end [2024-12-27 23:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:31:20] Production.INFO: ==9757== Releasing lock... [2024-12-27 23:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:31:20] Production.INFO: 34.5 MB #Memory Used# [2024-12-27 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:32:05 [end_date_ymd] => 2024-12-27 23:32:05 [RateCDR] => 1 ) [2024-12-27 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:32:05' and `end` < '2024-12-27 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:32:17] Production.INFO: count ==923 [2024-12-27 23:32:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:32:05 - End Time 2024-12-27 23:32:05 [2024-12-27 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117574', 'tblTempUsageDetail_20' ) start [2024-12-27 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117574', 'tblTempUsageDetail_20' ) end [2024-12-27 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117574', 'tblTempVendorCDR_20' ) start [2024-12-27 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117574', 'tblTempVendorCDR_20' ) end [2024-12-27 23:32:17] Production.INFO: ProcessCDR(1,14117574,1,1,2) [2024-12-27 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117574', 'tblTempUsageDetail_20' ) start [2024-12-27 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117574', 'tblTempUsageDetail_20' ) end [2024-12-27 23:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:32:22] Production.INFO: ==9833== Releasing lock... [2024-12-27 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:32:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-27 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:33:05 [end_date_ymd] => 2024-12-27 23:33:05 [RateCDR] => 1 ) [2024-12-27 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:33:05' and `end` < '2024-12-27 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:33:17] Production.INFO: count ==922 [2024-12-27 23:33:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:33:05 - End Time 2024-12-27 23:33:05 [2024-12-27 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117579', 'tblTempUsageDetail_20' ) start [2024-12-27 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117579', 'tblTempUsageDetail_20' ) end [2024-12-27 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117579', 'tblTempVendorCDR_20' ) start [2024-12-27 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117579', 'tblTempVendorCDR_20' ) end [2024-12-27 23:33:17] Production.INFO: ProcessCDR(1,14117579,1,1,2) [2024-12-27 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117579', 'tblTempUsageDetail_20' ) start [2024-12-27 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117579', 'tblTempUsageDetail_20' ) end [2024-12-27 23:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:33:20] Production.INFO: ==9906== Releasing lock... [2024-12-27 23:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:33:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-27 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:34:05 [end_date_ymd] => 2024-12-27 23:34:05 [RateCDR] => 1 ) [2024-12-27 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:34:05' and `end` < '2024-12-27 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:34:17] Production.INFO: count ==922 [2024-12-27 23:34:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:34:05 - End Time 2024-12-27 23:34:05 [2024-12-27 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117584', 'tblTempUsageDetail_20' ) start [2024-12-27 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117584', 'tblTempUsageDetail_20' ) end [2024-12-27 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117584', 'tblTempVendorCDR_20' ) start [2024-12-27 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117584', 'tblTempVendorCDR_20' ) end [2024-12-27 23:34:17] Production.INFO: ProcessCDR(1,14117584,1,1,2) [2024-12-27 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117584', 'tblTempUsageDetail_20' ) start [2024-12-27 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117584', 'tblTempUsageDetail_20' ) end [2024-12-27 23:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:34:20] Production.INFO: ==9981== Releasing lock... [2024-12-27 23:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:34:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-27 23:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:35:04 [end_date_ymd] => 2024-12-27 23:35:04 [RateCDR] => 1 ) [2024-12-27 23: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-27 20:35:04' and `end` < '2024-12-27 23: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-27 23:35:17] Production.INFO: count ==925 [2024-12-27 23:35:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:35:04 - End Time 2024-12-27 23:35:04 [2024-12-27 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117589', 'tblTempUsageDetail_20' ) start [2024-12-27 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117589', 'tblTempUsageDetail_20' ) end [2024-12-27 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117589', 'tblTempVendorCDR_20' ) start [2024-12-27 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117589', 'tblTempVendorCDR_20' ) end [2024-12-27 23:35:17] Production.INFO: ProcessCDR(1,14117589,1,1,2) [2024-12-27 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117589', 'tblTempUsageDetail_20' ) start [2024-12-27 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117589', 'tblTempUsageDetail_20' ) end [2024-12-27 23:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:35:20] Production.INFO: ==10058== Releasing lock... [2024-12-27 23:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:35:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-27 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:36:05 [end_date_ymd] => 2024-12-27 23:36:05 [RateCDR] => 1 ) [2024-12-27 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:36:05' and `end` < '2024-12-27 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:36:18] Production.INFO: count ==929 [2024-12-27 23:36:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:36:05 - End Time 2024-12-27 23:36:05 [2024-12-27 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117594', 'tblTempUsageDetail_20' ) start [2024-12-27 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117594', 'tblTempUsageDetail_20' ) end [2024-12-27 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117594', 'tblTempVendorCDR_20' ) start [2024-12-27 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117594', 'tblTempVendorCDR_20' ) end [2024-12-27 23:36:18] Production.INFO: ProcessCDR(1,14117594,1,1,2) [2024-12-27 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117594', 'tblTempUsageDetail_20' ) start [2024-12-27 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117594', 'tblTempUsageDetail_20' ) end [2024-12-27 23:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:36:21] Production.INFO: ==10129== Releasing lock... [2024-12-27 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:36:21] Production.INFO: 34.5 MB #Memory Used# [2024-12-27 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:37:05 [end_date_ymd] => 2024-12-27 23:37:05 [RateCDR] => 1 ) [2024-12-27 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:37:05' and `end` < '2024-12-27 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:37:19] Production.INFO: count ==929 [2024-12-27 23:37:19] Production.ERROR: pbx CDR StartTime 2024-12-27 20:37:05 - End Time 2024-12-27 23:37:05 [2024-12-27 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117599', 'tblTempUsageDetail_20' ) start [2024-12-27 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117599', 'tblTempUsageDetail_20' ) end [2024-12-27 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117599', 'tblTempVendorCDR_20' ) start [2024-12-27 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117599', 'tblTempVendorCDR_20' ) end [2024-12-27 23:37:19] Production.INFO: ProcessCDR(1,14117599,1,1,2) [2024-12-27 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117599', 'tblTempUsageDetail_20' ) start [2024-12-27 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117599', 'tblTempUsageDetail_20' ) end [2024-12-27 23:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:37:22] Production.INFO: ==10212== Releasing lock... [2024-12-27 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:37:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-27 23:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:38:04 [end_date_ymd] => 2024-12-27 23:38:04 [RateCDR] => 1 ) [2024-12-27 23: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-27 20:38:04' and `end` < '2024-12-27 23: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-27 23:38:17] Production.INFO: count ==935 [2024-12-27 23:38:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:38:04 - End Time 2024-12-27 23:38:04 [2024-12-27 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117604', 'tblTempUsageDetail_20' ) start [2024-12-27 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117604', 'tblTempUsageDetail_20' ) end [2024-12-27 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117604', 'tblTempVendorCDR_20' ) start [2024-12-27 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117604', 'tblTempVendorCDR_20' ) end [2024-12-27 23:38:17] Production.INFO: ProcessCDR(1,14117604,1,1,2) [2024-12-27 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117604', 'tblTempUsageDetail_20' ) start [2024-12-27 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117604', 'tblTempUsageDetail_20' ) end [2024-12-27 23:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:38:22] Production.INFO: ==10290== Releasing lock... [2024-12-27 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:38:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-27 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:39:05 [end_date_ymd] => 2024-12-27 23:39:05 [RateCDR] => 1 ) [2024-12-27 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:39:05' and `end` < '2024-12-27 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:39:17] Production.INFO: count ==935 [2024-12-27 23:39:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:39:05 - End Time 2024-12-27 23:39:05 [2024-12-27 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117609', 'tblTempUsageDetail_20' ) start [2024-12-27 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117609', 'tblTempUsageDetail_20' ) end [2024-12-27 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117609', 'tblTempVendorCDR_20' ) start [2024-12-27 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117609', 'tblTempVendorCDR_20' ) end [2024-12-27 23:39:17] Production.INFO: ProcessCDR(1,14117609,1,1,2) [2024-12-27 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117609', 'tblTempUsageDetail_20' ) start [2024-12-27 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117609', 'tblTempUsageDetail_20' ) end [2024-12-27 23:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:39:20] Production.INFO: ==10365== Releasing lock... [2024-12-27 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:39:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-27 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:40:05 [end_date_ymd] => 2024-12-27 23:40:05 [RateCDR] => 1 ) [2024-12-27 23:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:40:05' and `end` < '2024-12-27 23:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:40:17] Production.INFO: count ==935 [2024-12-27 23:40:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:40:05 - End Time 2024-12-27 23:40:05 [2024-12-27 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117615', 'tblTempUsageDetail_20' ) start [2024-12-27 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117615', 'tblTempUsageDetail_20' ) end [2024-12-27 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117615', 'tblTempVendorCDR_20' ) start [2024-12-27 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117615', 'tblTempVendorCDR_20' ) end [2024-12-27 23:40:18] Production.INFO: ProcessCDR(1,14117615,1,1,2) [2024-12-27 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117615', 'tblTempUsageDetail_20' ) start [2024-12-27 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117615', 'tblTempUsageDetail_20' ) end [2024-12-27 23:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:40:21] Production.INFO: ==10441== Releasing lock... [2024-12-27 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:40:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-27 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:41:05 [end_date_ymd] => 2024-12-27 23:41:05 [RateCDR] => 1 ) [2024-12-27 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:41:05' and `end` < '2024-12-27 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:41:19] Production.INFO: count ==942 [2024-12-27 23:41:19] Production.ERROR: pbx CDR StartTime 2024-12-27 20:41:05 - End Time 2024-12-27 23:41:05 [2024-12-27 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117620', 'tblTempUsageDetail_20' ) start [2024-12-27 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117620', 'tblTempUsageDetail_20' ) end [2024-12-27 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117620', 'tblTempVendorCDR_20' ) start [2024-12-27 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117620', 'tblTempVendorCDR_20' ) end [2024-12-27 23:41:19] Production.INFO: ProcessCDR(1,14117620,1,1,2) [2024-12-27 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117620', 'tblTempUsageDetail_20' ) start [2024-12-27 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117620', 'tblTempUsageDetail_20' ) end [2024-12-27 23:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:41:22] Production.INFO: ==10517== Releasing lock... [2024-12-27 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:41:22] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:42:06 [end_date_ymd] => 2024-12-27 23:42:06 [RateCDR] => 1 ) [2024-12-27 23: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-27 20:42:06' and `end` < '2024-12-27 23: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-27 23:42:20] Production.INFO: count ==932 [2024-12-27 23:42:20] Production.ERROR: pbx CDR StartTime 2024-12-27 20:42:06 - End Time 2024-12-27 23:42:06 [2024-12-27 23:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117625', 'tblTempUsageDetail_20' ) start [2024-12-27 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117625', 'tblTempUsageDetail_20' ) end [2024-12-27 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117625', 'tblTempVendorCDR_20' ) start [2024-12-27 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117625', 'tblTempVendorCDR_20' ) end [2024-12-27 23:42:20] Production.INFO: ProcessCDR(1,14117625,1,1,2) [2024-12-27 23:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117625', 'tblTempUsageDetail_20' ) start [2024-12-27 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117625', 'tblTempUsageDetail_20' ) end [2024-12-27 23:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:42:23] Production.INFO: ==10597== Releasing lock... [2024-12-27 23:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:42:23] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:43:05 [end_date_ymd] => 2024-12-27 23:43:05 [RateCDR] => 1 ) [2024-12-27 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:43:05' and `end` < '2024-12-27 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:43:18] Production.INFO: count ==935 [2024-12-27 23:43:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:43:05 - End Time 2024-12-27 23:43:05 [2024-12-27 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117630', 'tblTempUsageDetail_20' ) start [2024-12-27 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117630', 'tblTempUsageDetail_20' ) end [2024-12-27 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117630', 'tblTempVendorCDR_20' ) start [2024-12-27 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117630', 'tblTempVendorCDR_20' ) end [2024-12-27 23:43:18] Production.INFO: ProcessCDR(1,14117630,1,1,2) [2024-12-27 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117630', 'tblTempUsageDetail_20' ) start [2024-12-27 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117630', 'tblTempUsageDetail_20' ) end [2024-12-27 23:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:43:22] Production.INFO: ==10666== Releasing lock... [2024-12-27 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:43:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-27 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:44:05 [end_date_ymd] => 2024-12-27 23:44:05 [RateCDR] => 1 ) [2024-12-27 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:44:05' and `end` < '2024-12-27 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:44:17] Production.INFO: count ==935 [2024-12-27 23:44:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:44:05 - End Time 2024-12-27 23:44:05 [2024-12-27 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117635', 'tblTempUsageDetail_20' ) start [2024-12-27 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117635', 'tblTempUsageDetail_20' ) end [2024-12-27 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117635', 'tblTempVendorCDR_20' ) start [2024-12-27 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117635', 'tblTempVendorCDR_20' ) end [2024-12-27 23:44:18] Production.INFO: ProcessCDR(1,14117635,1,1,2) [2024-12-27 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117635', 'tblTempUsageDetail_20' ) start [2024-12-27 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117635', 'tblTempUsageDetail_20' ) end [2024-12-27 23:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:44:21] Production.INFO: ==10757== Releasing lock... [2024-12-27 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:44:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-27 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:45:04 [end_date_ymd] => 2024-12-27 23:45:04 [RateCDR] => 1 ) [2024-12-27 23:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:45:04' and `end` < '2024-12-27 23:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:45:17] Production.INFO: count ==937 [2024-12-27 23:45:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:45:04 - End Time 2024-12-27 23:45:04 [2024-12-27 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117640', 'tblTempUsageDetail_20' ) start [2024-12-27 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117640', 'tblTempUsageDetail_20' ) end [2024-12-27 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117640', 'tblTempVendorCDR_20' ) start [2024-12-27 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117640', 'tblTempVendorCDR_20' ) end [2024-12-27 23:45:17] Production.INFO: ProcessCDR(1,14117640,1,1,2) [2024-12-27 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117640', 'tblTempUsageDetail_20' ) start [2024-12-27 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117640', 'tblTempUsageDetail_20' ) end [2024-12-27 23:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:45:20] Production.INFO: ==10880== Releasing lock... [2024-12-27 23:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:45:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-27 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:46:05 [end_date_ymd] => 2024-12-27 23:46:05 [RateCDR] => 1 ) [2024-12-27 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:46:05' and `end` < '2024-12-27 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:46:18] Production.INFO: count ==939 [2024-12-27 23:46:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:46:05 - End Time 2024-12-27 23:46:05 [2024-12-27 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117645', 'tblTempUsageDetail_20' ) start [2024-12-27 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117645', 'tblTempUsageDetail_20' ) end [2024-12-27 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117645', 'tblTempVendorCDR_20' ) start [2024-12-27 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117645', 'tblTempVendorCDR_20' ) end [2024-12-27 23:46:18] Production.INFO: ProcessCDR(1,14117645,1,1,2) [2024-12-27 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117645', 'tblTempUsageDetail_20' ) start [2024-12-27 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117645', 'tblTempUsageDetail_20' ) end [2024-12-27 23:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:46:21] Production.INFO: ==11019== Releasing lock... [2024-12-27 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:46:21] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:47:04 [end_date_ymd] => 2024-12-27 23:47:04 [RateCDR] => 1 ) [2024-12-27 23: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-27 20:47:04' and `end` < '2024-12-27 23: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-27 23:47:17] Production.INFO: count ==938 [2024-12-27 23:47:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:47:04 - End Time 2024-12-27 23:47:04 [2024-12-27 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117650', 'tblTempUsageDetail_20' ) start [2024-12-27 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117650', 'tblTempUsageDetail_20' ) end [2024-12-27 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117650', 'tblTempVendorCDR_20' ) start [2024-12-27 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117650', 'tblTempVendorCDR_20' ) end [2024-12-27 23:47:17] Production.INFO: ProcessCDR(1,14117650,1,1,2) [2024-12-27 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117650', 'tblTempUsageDetail_20' ) start [2024-12-27 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117650', 'tblTempUsageDetail_20' ) end [2024-12-27 23:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:47:20] Production.INFO: ==11094== Releasing lock... [2024-12-27 23:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:47:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-27 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:48:05 [end_date_ymd] => 2024-12-27 23:48:05 [RateCDR] => 1 ) [2024-12-27 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:48:05' and `end` < '2024-12-27 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:48:18] Production.INFO: count ==939 [2024-12-27 23:48:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:48:05 - End Time 2024-12-27 23:48:05 [2024-12-27 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117655', 'tblTempUsageDetail_20' ) start [2024-12-27 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117655', 'tblTempUsageDetail_20' ) end [2024-12-27 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117655', 'tblTempVendorCDR_20' ) start [2024-12-27 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117655', 'tblTempVendorCDR_20' ) end [2024-12-27 23:48:18] Production.INFO: ProcessCDR(1,14117655,1,1,2) [2024-12-27 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117655', 'tblTempUsageDetail_20' ) start [2024-12-27 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117655', 'tblTempUsageDetail_20' ) end [2024-12-27 23:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:48:21] Production.INFO: ==11171== Releasing lock... [2024-12-27 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:48:21] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:49:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:49:06 [end_date_ymd] => 2024-12-27 23:49:06 [RateCDR] => 1 ) [2024-12-27 23:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:49:06' and `end` < '2024-12-27 23:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:49:18] Production.INFO: count ==963 [2024-12-27 23:49:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:49:06 - End Time 2024-12-27 23:49:06 [2024-12-27 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117660', 'tblTempUsageDetail_20' ) start [2024-12-27 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117660', 'tblTempUsageDetail_20' ) end [2024-12-27 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117660', 'tblTempVendorCDR_20' ) start [2024-12-27 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117660', 'tblTempVendorCDR_20' ) end [2024-12-27 23:49:18] Production.INFO: ProcessCDR(1,14117660,1,1,2) [2024-12-27 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117660', 'tblTempUsageDetail_20' ) start [2024-12-27 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117660', 'tblTempUsageDetail_20' ) end [2024-12-27 23:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:49:21] Production.INFO: ==11249== Releasing lock... [2024-12-27 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:49:21] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:50:05 [end_date_ymd] => 2024-12-27 23:50:05 [RateCDR] => 1 ) [2024-12-27 23: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-27 20:50:05' and `end` < '2024-12-27 23: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-27 23:50:18] Production.INFO: count ==969 [2024-12-27 23:50:18] Production.ERROR: pbx CDR StartTime 2024-12-27 20:50:05 - End Time 2024-12-27 23:50:05 [2024-12-27 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117666', 'tblTempUsageDetail_20' ) start [2024-12-27 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117666', 'tblTempUsageDetail_20' ) end [2024-12-27 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117666', 'tblTempVendorCDR_20' ) start [2024-12-27 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117666', 'tblTempVendorCDR_20' ) end [2024-12-27 23:50:18] Production.INFO: ProcessCDR(1,14117666,1,1,2) [2024-12-27 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117666', 'tblTempUsageDetail_20' ) start [2024-12-27 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117666', 'tblTempUsageDetail_20' ) end [2024-12-27 23:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:50:21] Production.INFO: ==11334== Releasing lock... [2024-12-27 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:50:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-27 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:51:05 [end_date_ymd] => 2024-12-27 23:51:05 [RateCDR] => 1 ) [2024-12-27 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:51:05' and `end` < '2024-12-27 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:51:20] Production.INFO: count ==963 [2024-12-27 23:51:20] Production.ERROR: pbx CDR StartTime 2024-12-27 20:51:05 - End Time 2024-12-27 23:51:05 [2024-12-27 23:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117671', 'tblTempUsageDetail_20' ) start [2024-12-27 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117671', 'tblTempUsageDetail_20' ) end [2024-12-27 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117671', 'tblTempVendorCDR_20' ) start [2024-12-27 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117671', 'tblTempVendorCDR_20' ) end [2024-12-27 23:51:20] Production.INFO: ProcessCDR(1,14117671,1,1,2) [2024-12-27 23:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117671', 'tblTempUsageDetail_20' ) start [2024-12-27 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117671', 'tblTempUsageDetail_20' ) end [2024-12-27 23:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:51:23] Production.INFO: ==11415== Releasing lock... [2024-12-27 23:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:51:23] Production.INFO: 35.25 MB #Memory Used# [2024-12-27 23:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:52:04 [end_date_ymd] => 2024-12-27 23:52:04 [RateCDR] => 1 ) [2024-12-27 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-27 20:52:04' and `end` < '2024-12-27 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-27 23:52:20] Production.INFO: count ==958 [2024-12-27 23:52:20] Production.ERROR: pbx CDR StartTime 2024-12-27 20:52:04 - End Time 2024-12-27 23:52:04 [2024-12-27 23:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117676', 'tblTempUsageDetail_20' ) start [2024-12-27 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117676', 'tblTempUsageDetail_20' ) end [2024-12-27 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117676', 'tblTempVendorCDR_20' ) start [2024-12-27 23:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117676', 'tblTempVendorCDR_20' ) end [2024-12-27 23:52:20] Production.INFO: ProcessCDR(1,14117676,1,1,2) [2024-12-27 23:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117676', 'tblTempUsageDetail_20' ) start [2024-12-27 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117676', 'tblTempUsageDetail_20' ) end [2024-12-27 23:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:52:23] Production.INFO: ==11493== Releasing lock... [2024-12-27 23:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:52:23] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:53:05 [end_date_ymd] => 2024-12-27 23:53:05 [RateCDR] => 1 ) [2024-12-27 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:53:05' and `end` < '2024-12-27 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:53:17] Production.INFO: count ==958 [2024-12-27 23:53:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:53:05 - End Time 2024-12-27 23:53:05 [2024-12-27 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117677', 'tblTempUsageDetail_20' ) start [2024-12-27 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117677', 'tblTempUsageDetail_20' ) end [2024-12-27 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117677', 'tblTempVendorCDR_20' ) start [2024-12-27 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117677', 'tblTempVendorCDR_20' ) end [2024-12-27 23:53:17] Production.INFO: ProcessCDR(1,14117677,1,1,2) [2024-12-27 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117677', 'tblTempUsageDetail_20' ) start [2024-12-27 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117677', 'tblTempUsageDetail_20' ) end [2024-12-27 23:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:53:20] Production.INFO: ==11582== Releasing lock... [2024-12-27 23:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:53:20] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:54:05 [end_date_ymd] => 2024-12-27 23:54:05 [RateCDR] => 1 ) [2024-12-27 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:54:05' and `end` < '2024-12-27 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:54:17] Production.INFO: count ==958 [2024-12-27 23:54:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:54:05 - End Time 2024-12-27 23:54:05 [2024-12-27 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117686', 'tblTempUsageDetail_20' ) start [2024-12-27 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117686', 'tblTempUsageDetail_20' ) end [2024-12-27 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117686', 'tblTempVendorCDR_20' ) start [2024-12-27 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117686', 'tblTempVendorCDR_20' ) end [2024-12-27 23:54:17] Production.INFO: ProcessCDR(1,14117686,1,1,2) [2024-12-27 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117686', 'tblTempUsageDetail_20' ) start [2024-12-27 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117686', 'tblTempUsageDetail_20' ) end [2024-12-27 23:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:54:20] Production.INFO: ==11674== Releasing lock... [2024-12-27 23:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:54:20] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:55:05 [end_date_ymd] => 2024-12-27 23:55:05 [RateCDR] => 1 ) [2024-12-27 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:55:05' and `end` < '2024-12-27 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:55:19] Production.INFO: count ==956 [2024-12-27 23:55:19] Production.ERROR: pbx CDR StartTime 2024-12-27 20:55:05 - End Time 2024-12-27 23:55:05 [2024-12-27 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117691', 'tblTempUsageDetail_20' ) start [2024-12-27 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117691', 'tblTempUsageDetail_20' ) end [2024-12-27 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117691', 'tblTempVendorCDR_20' ) start [2024-12-27 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117691', 'tblTempVendorCDR_20' ) end [2024-12-27 23:55:19] Production.INFO: ProcessCDR(1,14117691,1,1,2) [2024-12-27 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117691', 'tblTempUsageDetail_20' ) start [2024-12-27 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117691', 'tblTempUsageDetail_20' ) end [2024-12-27 23:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:55:22] Production.INFO: ==11759== Releasing lock... [2024-12-27 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:55:22] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:56:05 [end_date_ymd] => 2024-12-27 23:56:05 [RateCDR] => 1 ) [2024-12-27 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-27 20:56:05' and `end` < '2024-12-27 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-27 23:56:17] Production.INFO: count ==955 [2024-12-27 23:56:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:56:05 - End Time 2024-12-27 23:56:05 [2024-12-27 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117696', 'tblTempUsageDetail_20' ) start [2024-12-27 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117696', 'tblTempUsageDetail_20' ) end [2024-12-27 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117696', 'tblTempVendorCDR_20' ) start [2024-12-27 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117696', 'tblTempVendorCDR_20' ) end [2024-12-27 23:56:17] Production.INFO: ProcessCDR(1,14117696,1,1,2) [2024-12-27 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117696', 'tblTempUsageDetail_20' ) start [2024-12-27 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117696', 'tblTempUsageDetail_20' ) end [2024-12-27 23:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:56:21] Production.INFO: ==11846== Releasing lock... [2024-12-27 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:56:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-27 23:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:57:04 [end_date_ymd] => 2024-12-27 23:57:04 [RateCDR] => 1 ) [2024-12-27 23: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-27 20:57:04' and `end` < '2024-12-27 23: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-27 23:57:17] Production.INFO: count ==951 [2024-12-27 23:57:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:57:04 - End Time 2024-12-27 23:57:04 [2024-12-27 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117699', 'tblTempUsageDetail_20' ) start [2024-12-27 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117699', 'tblTempUsageDetail_20' ) end [2024-12-27 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117699', 'tblTempVendorCDR_20' ) start [2024-12-27 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117699', 'tblTempVendorCDR_20' ) end [2024-12-27 23:57:17] Production.INFO: ProcessCDR(1,14117699,1,1,2) [2024-12-27 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117699', 'tblTempUsageDetail_20' ) start [2024-12-27 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117699', 'tblTempUsageDetail_20' ) end [2024-12-27 23:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:57:20] Production.INFO: ==11919== Releasing lock... [2024-12-27 23:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:57:20] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:58:05 [end_date_ymd] => 2024-12-27 23:58:05 [RateCDR] => 1 ) [2024-12-27 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-27 20:58:05' and `end` < '2024-12-27 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-27 23:58:19] Production.INFO: count ==951 [2024-12-27 23:58:19] Production.ERROR: pbx CDR StartTime 2024-12-27 20:58:05 - End Time 2024-12-27 23:58:05 [2024-12-27 23:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117706', 'tblTempUsageDetail_20' ) start [2024-12-27 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117706', 'tblTempUsageDetail_20' ) end [2024-12-27 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117706', 'tblTempVendorCDR_20' ) start [2024-12-27 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117706', 'tblTempVendorCDR_20' ) end [2024-12-27 23:58:19] Production.INFO: ProcessCDR(1,14117706,1,1,2) [2024-12-27 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117706', 'tblTempUsageDetail_20' ) start [2024-12-27 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117706', 'tblTempUsageDetail_20' ) end [2024-12-27 23:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:58:22] Production.INFO: ==11992== Releasing lock... [2024-12-27 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:58:22] Production.INFO: 35 MB #Memory Used# [2024-12-27 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-27 20:59:04 [end_date_ymd] => 2024-12-27 23:59:04 [RateCDR] => 1 ) [2024-12-27 23: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-27 20:59:04' and `end` < '2024-12-27 23: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-27 23:59:17] Production.INFO: count ==948 [2024-12-27 23:59:17] Production.ERROR: pbx CDR StartTime 2024-12-27 20:59:04 - End Time 2024-12-27 23:59:04 [2024-12-27 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-27 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117711', 'tblTempUsageDetail_20' ) start [2024-12-27 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14117711', 'tblTempUsageDetail_20' ) end [2024-12-27 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117711', 'tblTempVendorCDR_20' ) start [2024-12-27 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14117711', 'tblTempVendorCDR_20' ) end [2024-12-27 23:59:17] Production.INFO: ProcessCDR(1,14117711,1,1,2) [2024-12-27 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14117711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14117711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-27 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14117711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14117711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-27 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117711', 'tblTempUsageDetail_20' ) start [2024-12-27 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14117711', 'tblTempUsageDetail_20' ) end [2024-12-27 23:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-27 23:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-27 23:59:20] Production.INFO: ==12063== Releasing lock... [2024-12-27 23:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-27 23:59:20] Production.INFO: 35.25 MB #Memory Used#